Socket
Socket
Sign inDemoInstall

@sanity/schema

Package Overview
Dependencies
39
Maintainers
51
Versions
1290
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.42.1-use-lodash-es.1 to 3.42.1

18

lib/_internal.esm.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc