sanity 5.0.1-next.39 → 5.0.1-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-es/LiveQueries.js +2 -1
- package/lib/_chunks-es/LiveQueries.js.map +1 -1
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +2 -1
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
- package/lib/_chunks-es/StructureToolProvider.js +6 -1
- package/lib/_chunks-es/StructureToolProvider.js.map +1 -1
- package/lib/_chunks-es/_internal.js +11 -3
- package/lib/_chunks-es/_internal.js.map +1 -1
- package/lib/_chunks-es/createAspectAction.js +1 -1
- package/lib/_chunks-es/createAspectAction.js.map +1 -1
- package/lib/_chunks-es/deleteSchemaAction.js +1 -1
- package/lib/_chunks-es/deleteSchemaAction.js.map +1 -1
- package/lib/_chunks-es/deployApiAction.js +5 -1
- package/lib/_chunks-es/deployApiAction.js.map +1 -1
- package/lib/_chunks-es/deploySchemasAction.js +1 -1
- package/lib/_chunks-es/deploySchemasAction.js.map +1 -1
- package/lib/_chunks-es/index3.js +2 -1
- package/lib/_chunks-es/index3.js.map +1 -1
- package/lib/_chunks-es/listSchemasAction.js +1 -1
- package/lib/_chunks-es/listSchemasAction.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +9 -2
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/presentation.js +2 -1
- package/lib/_chunks-es/presentation.js.map +1 -1
- package/lib/_chunks-es/runtime.js +1 -1
- package/lib/_chunks-es/runtime.js.map +1 -1
- package/lib/_chunks-es/schemaStoreOutStrings.js +1 -1
- package/lib/_chunks-es/schemaStoreOutStrings.js.map +1 -1
- package/lib/_chunks-es/uniqueProjectIdDataset.js +1 -1
- package/lib/_chunks-es/uniqueProjectIdDataset.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_internal/cli/threads/extractManifest.cjs +3 -3
- package/lib/_internal/cli/threads/extractManifest.cjs.map +1 -1
- package/lib/_internal/cli/threads/getGraphQLAPIs.cjs +3 -3
- package/lib/_internal/cli/threads/getGraphQLAPIs.cjs.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +52 -2
- package/lib/index.js.map +1 -1
- package/lib/router.js +8 -1
- package/lib/router.js.map +1 -1
- package/package.json +36 -35
|
@@ -6,7 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
import { pipeline, finished } from "node:stream/promises";
|
|
7
7
|
import { absolutify } from "@sanity/util/fs";
|
|
8
8
|
import { Mutex } from "async-mutex";
|
|
9
|
-
import
|
|
9
|
+
import isString from "lodash/isString.js";
|
|
10
10
|
import prettyMs from "pretty-ms";
|
|
11
11
|
import { hideBin } from "yargs/helpers";
|
|
12
12
|
import yargs from "yargs/yargs";
|
|
@@ -25,19 +25,27 @@ import oneline from "oneline";
|
|
|
25
25
|
import EventSource from "@sanity/eventsource";
|
|
26
26
|
import { Observable } from "rxjs";
|
|
27
27
|
import { exportDataset } from "@sanity/export";
|
|
28
|
-
import
|
|
28
|
+
import sanityImport from "@sanity/import";
|
|
29
|
+
import padStart from "lodash/padStart.js";
|
|
29
30
|
import { uuid } from "@sanity/uuid";
|
|
30
31
|
import chokidar from "chokidar";
|
|
31
32
|
import execa from "execa";
|
|
32
33
|
import json5 from "json5";
|
|
34
|
+
import isEqual from "lodash/isEqual.js";
|
|
35
|
+
import isPlainObject from "lodash/isPlainObject.js";
|
|
36
|
+
import noop$1 from "lodash/noop.js";
|
|
33
37
|
import pluralize from "pluralize-esm";
|
|
34
38
|
import tokenize from "json-lexer";
|
|
35
39
|
import open from "open";
|
|
36
40
|
import { inspect } from "node:util";
|
|
41
|
+
import groupBy from "lodash/groupBy.js";
|
|
42
|
+
import deburr from "lodash/deburr.js";
|
|
37
43
|
import { register } from "esbuild-register/dist/node";
|
|
38
44
|
import { MAX_MUTATION_CONCURRENCY, DEFAULT_MUTATION_CONCURRENCY, run, dryRun } from "@sanity/migrate";
|
|
39
45
|
import { isatty } from "node:tty";
|
|
40
46
|
import { isIndexSegment, isKeySegment, isIndexTuple } from "@sanity/types";
|
|
47
|
+
import size from "lodash/size.js";
|
|
48
|
+
import sortBy from "lodash/sortBy.js";
|
|
41
49
|
const defaultApiVersion$1 = "v2024-02-21", datasetBackupGroup = {
|
|
42
50
|
name: "backup",
|
|
43
51
|
signature: "[COMMAND]",
|
|
@@ -1642,7 +1650,7 @@ function toBoolIfSet(flag) {
|
|
|
1642
1650
|
return typeof flag > "u" ? void 0 : !!flag;
|
|
1643
1651
|
}
|
|
1644
1652
|
function parseFlags(rawFlags) {
|
|
1645
|
-
const allowAssetsInDifferentDataset = toBoolIfSet(rawFlags["allow-assets-in-different-dataset"]), allowFailingAssets = toBoolIfSet(rawFlags["allow-failing-assets"]), assetConcurrency =
|
|
1653
|
+
const allowAssetsInDifferentDataset = toBoolIfSet(rawFlags["allow-assets-in-different-dataset"]), allowFailingAssets = toBoolIfSet(rawFlags["allow-failing-assets"]), assetConcurrency = toBoolIfSet(rawFlags["asset-concurrency"]), replaceAssets = toBoolIfSet(rawFlags["replace-assets"]), skipCrossDatasetReferences = toBoolIfSet(rawFlags["skip-cross-dataset-references"]), allowSystemDocuments = toBoolIfSet(rawFlags["allow-system-documents"]), replace = toBoolIfSet(rawFlags.replace), missing = toBoolIfSet(rawFlags.missing);
|
|
1646
1654
|
return {
|
|
1647
1655
|
allowAssetsInDifferentDataset,
|
|
1648
1656
|
allowFailingAssets,
|