Skip to content

Commit 5324107

Browse files
committed
Fixed the import from lodash, instead import from lodash.omit
1 parent 081e889 commit 5324107

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

package-lock.json

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@tsconfig/node16": "^1.0.2",
4444
"@types/jest": "^27.0.2",
45-
"@types/lodash": "^4.14.178",
45+
"@types/lodash.omit": "^4.5.6",
4646
"@types/node": "^16.11.7",
4747
"@typescript-eslint/eslint-plugin": "^5.8.1",
4848
"@typescript-eslint/parser": "^5.8.1",

src/SchemaInference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { inferType, JSONValueType } from "@jsonhero/json-infer-types";
33
import { InferredSchema, inferRange } from "./inferredSchema";
44
import { Schema } from "@jsonhero/json-schema-fns";
55
import { toJSONSchema } from "./jsonSchema";
6-
import { omit } from "lodash";
6+
import omit from "lodash.omit";
77

88
function convertToAnySchema(schema: InferredSchema, value: unknown) {
99
const schemas = new Set<InferredSchema>([schema]);

0 commit comments

Comments
 (0)