From 897c60f9788ebc7d30e20843d603609972563c43 Mon Sep 17 00:00:00 2001 From: Robin Pyon Date: Mon, 26 Jun 2023 02:33:39 +0100 Subject: [PATCH] fixup! fix(core): add a cap on total search paths extracted per root-level object --- packages/@sanity/schema/package.json | 1 + packages/@sanity/schema/src/legacy/searchConfig/resolve.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@sanity/schema/package.json b/packages/@sanity/schema/package.json index cbd192d2c6a..2ee2314dfe7 100644 --- a/packages/@sanity/schema/package.json +++ b/packages/@sanity/schema/package.json @@ -31,6 +31,7 @@ "license": "MIT", "dependencies": { "@sanity/generate-help-url": "^3.0.0", + "@sanity/types": "2.35.0", "arrify": "^1.0.1", "humanize-list": "^1.0.1", "leven": "^3.1.0", diff --git a/packages/@sanity/schema/src/legacy/searchConfig/resolve.ts b/packages/@sanity/schema/src/legacy/searchConfig/resolve.ts index aba632cc0d5..b7f83073619 100644 --- a/packages/@sanity/schema/src/legacy/searchConfig/resolve.ts +++ b/packages/@sanity/schema/src/legacy/searchConfig/resolve.ts @@ -7,7 +7,7 @@ import { isReferenceSchemaType, ObjectSchemaType, SchemaType, -} from '../../../../types' +} from '@sanity/types' import {stringsToNumbers} from './normalize' interface SearchPath {