@sanity/schema
Advanced tools
Comparing version 3.42.1-use-lodash-es.1 to 3.42.1
@@ -1,5 +0,11 @@ | ||
import { difference, flatten, get, uniq, partition, omit, isPlainObject } from "lodash-es"; | ||
import { DEFAULT_MAX_FIELD_DEPTH, resolveSearchConfig, resolveSearchConfigForBaseFieldPaths } from "./_legacy/resolve.esm.js"; | ||
import difference from "lodash/difference.js"; | ||
import { D, a, r } from "./_legacy/resolve.esm.js"; | ||
import { createReferenceTypeNode } from "groq-js"; | ||
import flatten from "lodash/flatten.js"; | ||
import get from "lodash/get.js"; | ||
import uniq from "lodash/uniq.js"; | ||
import humanizeList from "humanize-list"; | ||
import partition from "lodash/partition.js"; | ||
import isPlainObject from "lodash/isPlainObject.js"; | ||
import omit from "lodash/omit.js"; | ||
import leven from "leven"; | ||
@@ -212,3 +218,3 @@ import inspect from "object-inspect"; | ||
); | ||
if (typeof rule == "function" && (rule(proxy), assetRequired) || typeof rule == "object" && rule !== null && "_rules" in rule && Array.isArray(rule._rules) && rule._rules.some((r) => r.flag === "assetRequired")) | ||
if (typeof rule == "function" && (rule(proxy), assetRequired) || typeof rule == "object" && rule !== null && "_rules" in rule && Array.isArray(rule._rules) && rule._rules.some((r2) => r2.flag === "assetRequired")) | ||
return !0; | ||
@@ -1350,10 +1356,10 @@ } | ||
export { | ||
DEFAULT_MAX_FIELD_DEPTH, | ||
D as DEFAULT_MAX_FIELD_DEPTH, | ||
extractSchema, | ||
groupProblems, | ||
isActionEnabled, | ||
resolveSearchConfig, | ||
resolveSearchConfigForBaseFieldPaths, | ||
a as resolveSearchConfig, | ||
r as resolveSearchConfigForBaseFieldPaths, | ||
validateSchema | ||
}; | ||
//# sourceMappingURL=_internal.esm.js.map |
@@ -1,2 +0,3 @@ | ||
import { isFinite, uniqBy } from "lodash-es"; | ||
import isFinite from "lodash/isFinite.js"; | ||
import uniqBy from "lodash/uniqBy.js"; | ||
const DEFAULT_MAX_FIELD_DEPTH = 5, stringFieldsSymbols = {}, getStringFieldSymbol = (maxDepth) => (stringFieldsSymbols[maxDepth] || (stringFieldsSymbols[maxDepth] = Symbol(`__cachedStringFields_${maxDepth}`)), stringFieldsSymbols[maxDepth]), isReference = (type) => type.type && type.type.name === "reference", portableTextFields = ["style", "list"], isPortableTextBlock = (type) => type.name === "block" || type.type && isPortableTextBlock(type.type), isPortableTextArray = (type) => type.jsonType === "array" && Array.isArray(type.of) && type.of.some(isPortableTextBlock); | ||
@@ -88,6 +89,6 @@ function reduceType(type, reducer, acc, path = [], maxDepth) { | ||
export { | ||
DEFAULT_MAX_FIELD_DEPTH, | ||
resolveSearchConfig, | ||
resolveSearchConfigForBaseFieldPaths | ||
DEFAULT_MAX_FIELD_DEPTH as D, | ||
resolveSearchConfig as a, | ||
resolveSearchConfigForBaseFieldPaths as r | ||
}; | ||
//# sourceMappingURL=resolve.esm.js.map |
@@ -1,4 +0,13 @@ | ||
import { pick, omit, omitBy, isUndefined, capitalize, startCase, isPlainObject, toPath, castArray, flatMap } from "lodash-es"; | ||
import omit from "lodash/omit.js"; | ||
import pick from "lodash/pick.js"; | ||
import arrify from "arrify"; | ||
import { resolveSearchConfigForBaseFieldPaths, resolveSearchConfig } from "./_legacy/resolve.esm.js"; | ||
import isUndefined from "lodash/isUndefined.js"; | ||
import omitBy from "lodash/omitBy.js"; | ||
import capitalize from "lodash/capitalize.js"; | ||
import { r as resolveSearchConfigForBaseFieldPaths, a as resolveSearchConfig } from "./_legacy/resolve.esm.js"; | ||
import castArray from "lodash/castArray.js"; | ||
import flatMap from "lodash/flatMap.js"; | ||
import startCase from "lodash/startCase.js"; | ||
import isPlainObject from "lodash/isPlainObject.js"; | ||
import toPath from "lodash/toPath.js"; | ||
const DEFAULT_OVERRIDEABLE_FIELDS = [ | ||
@@ -5,0 +14,0 @@ "jsonType", |
{ | ||
"name": "@sanity/schema", | ||
"version": "3.42.1-use-lodash-es.1+935b333f2f", | ||
"version": "3.42.1", | ||
"description": "", | ||
@@ -67,3 +67,3 @@ "keywords": [ | ||
"@sanity/generate-help-url": "^3.0.0", | ||
"@sanity/types": "3.42.1-use-lodash-es.1+935b333f2f", | ||
"@sanity/types": "3.42.1", | ||
"arrify": "^1.0.1", | ||
@@ -74,3 +74,2 @@ "groq-js": "^1.8.0", | ||
"lodash": "^4.17.21", | ||
"lodash-es": "^4.17.21", | ||
"object-inspect": "^1.13.1" | ||
@@ -80,3 +79,3 @@ }, | ||
"@jest/globals": "^29.7.0", | ||
"@repo/package.config": "3.42.0", | ||
"@repo/package.config": "3.42.1", | ||
"@sanity/icons": "^2.11.8", | ||
@@ -88,3 +87,3 @@ "@types/arrify": "^1.0.4", | ||
}, | ||
"gitHead": "935b333f2f0fa08bae8c9c62259a8bc6f25fb017" | ||
"gitHead": "fd0b34794647918ae5a16a816011d2ccd4334b28" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1123882
8
13717
0
0
+ Added@sanity/client@6.20.0(transitive)
+ Added@sanity/eventsource@5.0.2(transitive)
+ Added@sanity/types@3.42.1(transitive)
+ Added@types/event-source-polyfill@1.0.5(transitive)
+ Added@types/eventsource@1.1.15(transitive)
+ Added@types/prop-types@15.7.12(transitive)
+ Added@types/react@18.3.3(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addeddecompress-response@7.0.0(transitive)
+ Addedevent-source-polyfill@1.0.31(transitive)
+ Addedeventsource@2.0.2(transitive)
+ Addedfollow-redirects@1.15.6(transitive)
+ Addedget-it@8.6.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-retry-allowed@2.2.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedmimic-response@3.1.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedprogress-stream@2.0.0(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrxjs@7.8.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedspeedometer@1.0.0(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedtslib@2.6.3(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedlodash-es@^4.17.21
- Removedlodash-es@4.17.21(transitive)
Updated@sanity/types@3.42.1