@sanity/cli 3.92.1-next.66.aa28847ed9 → 3.92.1-next.69.23d5f5009b
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-cjs/cli.js
CHANGED
|
@@ -1452,7 +1452,7 @@ function requireLodash() {
|
|
|
1452
1452
|
if (isSymbol(value))
|
|
1453
1453
|
return symbolToString ? symbolToString.call(value) : "";
|
|
1454
1454
|
var result2 = value + "";
|
|
1455
|
-
return result2 == "0" && 1 / value == -
|
|
1455
|
+
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
1456
1456
|
}
|
|
1457
1457
|
function baseUniq(array, iteratee2, comparator) {
|
|
1458
1458
|
var index = -1, includes2 = arrayIncludes, length = array.length, isCommon = !0, result2 = [], seen = result2;
|
|
@@ -2311,7 +2311,7 @@ function requireLodash() {
|
|
|
2311
2311
|
if (typeof value == "string" || isSymbol(value))
|
|
2312
2312
|
return value;
|
|
2313
2313
|
var result2 = value + "";
|
|
2314
|
-
return result2 == "0" && 1 / value == -
|
|
2314
|
+
return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
|
|
2315
2315
|
}
|
|
2316
2316
|
function toSource(func) {
|
|
2317
2317
|
if (func != null) {
|
|
@@ -3079,7 +3079,7 @@ function requireLodash() {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
3081
3081
|
function isSafeInteger(value) {
|
|
3082
|
-
return isInteger2(value) && value >= -
|
|
3082
|
+
return isInteger2(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
|
|
3083
3083
|
}
|
|
3084
3084
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
3085
3085
|
function isString(value) {
|
|
@@ -3114,7 +3114,7 @@ function requireLodash() {
|
|
|
3114
3114
|
function toFinite(value) {
|
|
3115
3115
|
if (!value)
|
|
3116
3116
|
return value === 0 ? value : 0;
|
|
3117
|
-
if (value = toNumber(value), value === INFINITY || value === -
|
|
3117
|
+
if (value = toNumber(value), value === INFINITY || value === -INFINITY) {
|
|
3118
3118
|
var sign2 = value < 0 ? -1 : 1;
|
|
3119
3119
|
return sign2 * MAX_INTEGER;
|
|
3120
3120
|
}
|
|
@@ -3146,7 +3146,7 @@ function requireLodash() {
|
|
|
3146
3146
|
return copyObject(value, keysIn(value));
|
|
3147
3147
|
}
|
|
3148
3148
|
function toSafeInteger(value) {
|
|
3149
|
-
return value ? baseClamp(toInteger(value), -
|
|
3149
|
+
return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
|
|
3150
3150
|
}
|
|
3151
3151
|
function toString(value) {
|
|
3152
3152
|
return value == null ? "" : baseToString(value);
|
|
@@ -13265,7 +13265,7 @@ function requireBraceExpansion$1() {
|
|
|
13265
13265
|
if (!m || /\$$/.test(m.pre)) return [str2];
|
|
13266
13266
|
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
|
|
13267
13267
|
if (!isSequence && !isOptions)
|
|
13268
|
-
return m.post.match(
|
|
13268
|
+
return m.post.match(/,(?!,).*\}/) ? (str2 = m.pre + "{" + m.body + escClose + m.post, expand2(str2)) : [str2];
|
|
13269
13269
|
var n;
|
|
13270
13270
|
if (isSequence)
|
|
13271
13271
|
n = m.body.split(/\.\./);
|
|
@@ -16251,7 +16251,7 @@ function requireBraceExpansion() {
|
|
|
16251
16251
|
else {
|
|
16252
16252
|
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body), isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body), isSequence = isNumericSequence || isAlphaSequence, isOptions = m.body.indexOf(",") >= 0;
|
|
16253
16253
|
if (!isSequence && !isOptions)
|
|
16254
|
-
return m.post.match(
|
|
16254
|
+
return m.post.match(/,(?!,).*\}/) ? (str2 = m.pre + "{" + m.body + escClose + m.post, expand2(str2)) : [str2];
|
|
16255
16255
|
var n;
|
|
16256
16256
|
if (isSequence)
|
|
16257
16257
|
n = m.body.split(/\.\./);
|
|
@@ -19200,7 +19200,7 @@ function requireEndOfStream() {
|
|
|
19200
19200
|
if (hasRequiredEndOfStream) return endOfStream;
|
|
19201
19201
|
hasRequiredEndOfStream = 1;
|
|
19202
19202
|
var once2 = requireOnce(), noop2 = function() {
|
|
19203
|
-
}, isRequest = function(stream2) {
|
|
19203
|
+
}, qnt = loadEnv.commonjsGlobal.Bare ? queueMicrotask : process.nextTick.bind(process), isRequest = function(stream2) {
|
|
19204
19204
|
return stream2.setHeader && typeof stream2.abort == "function";
|
|
19205
19205
|
}, isChildProcess = function(stream2) {
|
|
19206
19206
|
return stream2.stdio && Array.isArray(stream2.stdio) && stream2.stdio.length === 3;
|
|
@@ -19218,7 +19218,7 @@ function requireEndOfStream() {
|
|
|
19218
19218
|
}, onerror = function(err) {
|
|
19219
19219
|
callback.call(stream2, err);
|
|
19220
19220
|
}, onclose = function() {
|
|
19221
|
-
|
|
19221
|
+
qnt(onclosenexttick);
|
|
19222
19222
|
}, onclosenexttick = function() {
|
|
19223
19223
|
if (!cancelled) {
|
|
19224
19224
|
if (readable && !(rs && rs.ended && !rs.destroyed)) return callback.call(stream2, new Error("premature close"));
|
|
@@ -19243,7 +19243,7 @@ function requirePump() {
|
|
|
19243
19243
|
} catch {
|
|
19244
19244
|
}
|
|
19245
19245
|
var noop2 = function() {
|
|
19246
|
-
}, ancient = /^v?\.0/.test(process.version), isFn = function(fn) {
|
|
19246
|
+
}, ancient = typeof process > "u" ? !1 : /^v?\.0/.test(process.version), isFn = function(fn) {
|
|
19247
19247
|
return typeof fn == "function";
|
|
19248
19248
|
}, isFS = function(stream2) {
|
|
19249
19249
|
return !ancient || !fs2 ? !1 : (stream2 instanceof (fs2.ReadStream || noop2) || stream2 instanceof (fs2.WriteStream || noop2)) && isFn(stream2.close);
|
|
@@ -23910,7 +23910,7 @@ async function getProjectDescription({
|
|
|
23910
23910
|
isPlugin,
|
|
23911
23911
|
outputDir
|
|
23912
23912
|
}) {
|
|
23913
|
-
if (!isSanityRoot)
|
|
23913
|
+
if (!(isSanityRoot && !isPlugin))
|
|
23914
23914
|
return Promise.resolve("");
|
|
23915
23915
|
try {
|
|
23916
23916
|
const readmePath = path__default.default.join(outputDir, "README.md"), match2 = (await fs__default.default.readFile(readmePath, { encoding: "utf8" })).match(/^# .*?\n+(\w.*?)(?:$|\n)/);
|
|
@@ -33994,14 +33994,14 @@ function requireEsprima$1() {
|
|
|
33994
33994
|
return !1;
|
|
33995
33995
|
}, Parser2.prototype.parseGetterMethod = function() {
|
|
33996
33996
|
var node = this.createNode(), isGenerator = !1, previousAllowYield = this.context.allowYield;
|
|
33997
|
-
this.context.allowYield = !
|
|
33997
|
+
this.context.allowYield = !isGenerator;
|
|
33998
33998
|
var formalParameters = this.parseFormalParameters();
|
|
33999
33999
|
formalParameters.params.length > 0 && this.tolerateError(messages_1.Messages.BadGetterArity);
|
|
34000
34000
|
var method = this.parsePropertyMethod(formalParameters);
|
|
34001
34001
|
return this.context.allowYield = previousAllowYield, this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator));
|
|
34002
34002
|
}, Parser2.prototype.parseSetterMethod = function() {
|
|
34003
34003
|
var node = this.createNode(), isGenerator = !1, previousAllowYield = this.context.allowYield;
|
|
34004
|
-
this.context.allowYield = !
|
|
34004
|
+
this.context.allowYield = !isGenerator;
|
|
34005
34005
|
var formalParameters = this.parseFormalParameters();
|
|
34006
34006
|
formalParameters.params.length !== 1 ? this.tolerateError(messages_1.Messages.BadSetterArity) : formalParameters.params[0] instanceof Node.RestElement && this.tolerateError(messages_1.Messages.BadSetterRestParameter);
|
|
34007
34007
|
var method = this.parsePropertyMethod(formalParameters);
|
|
@@ -48393,7 +48393,7 @@ class AST {
|
|
|
48393
48393
|
const s = this.toString();
|
|
48394
48394
|
return this.#parts = [s], this.type = null, this.#hasMagic = void 0, [s, unescape(this.toString()), !1, !1];
|
|
48395
48395
|
}
|
|
48396
|
-
let bodyDotAllowed = !repeated || allowDot || dot ? "" : this.#partsToRegExp(!0);
|
|
48396
|
+
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(!0);
|
|
48397
48397
|
bodyDotAllowed === body && (bodyDotAllowed = ""), bodyDotAllowed && (body = `(?:${body})(?:${bodyDotAllowed})*?`);
|
|
48398
48398
|
let final = "";
|
|
48399
48399
|
if (this.type === "!" && this.#emptyExt)
|
|
@@ -50371,7 +50371,7 @@ const realpathSync = require$$0$4.realpathSync.native, defaultFS = {
|
|
|
50371
50371
|
...defaultFS.promises,
|
|
50372
50372
|
...fsOption.promises || {}
|
|
50373
50373
|
}
|
|
50374
|
-
}, uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i, uncToDrive = (rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\"), eitherSep = /[\\\/]/, UNKNOWN = 0, IFIFO = 1, IFCHR = 2, IFDIR = 4, IFBLK = 6, IFREG = 8, IFLNK = 10, IFSOCK = 12, IFMT = 15, IFMT_UNKNOWN =
|
|
50374
|
+
}, uncDriveRegexp = /^\\\\\?\\([a-z]:)\\?$/i, uncToDrive = (rootPath) => rootPath.replace(/\//g, "\\").replace(uncDriveRegexp, "$1\\"), eitherSep = /[\\\/]/, UNKNOWN = 0, IFIFO = 1, IFCHR = 2, IFDIR = 4, IFBLK = 6, IFREG = 8, IFLNK = 10, IFSOCK = 12, IFMT = 15, IFMT_UNKNOWN = ~IFMT, READDIR_CALLED = 16, LSTAT_CALLED = 32, ENOTDIR = 64, ENOENT = 128, ENOREADLINK = 256, ENOREALPATH = 512, ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH, TYPEMASK = 1023, entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN, normalizeCache = /* @__PURE__ */ new Map(), normalize = (s) => {
|
|
50375
50375
|
const c2 = normalizeCache.get(s);
|
|
50376
50376
|
if (c2)
|
|
50377
50377
|
return c2;
|
|
@@ -50590,7 +50590,7 @@ class PathBase {
|
|
|
50590
50590
|
if (cached)
|
|
50591
50591
|
return cached;
|
|
50592
50592
|
const children = Object.assign([], { provisional: 0 });
|
|
50593
|
-
return this.#children.set(this, children), this.#type &=
|
|
50593
|
+
return this.#children.set(this, children), this.#type &= ~READDIR_CALLED, children;
|
|
50594
50594
|
}
|
|
50595
50595
|
/**
|
|
50596
50596
|
* Resolves a path portion and returns or creates the child Path.
|