@sanity/cli 4.16.0-next.49 → 4.16.0-next.54
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 +10 -2
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/package.json +7 -7
package/lib/_chunks-cjs/cli.js
CHANGED
|
@@ -22535,6 +22535,14 @@ function requireLoader() {
|
|
|
22535
22535
|
(c2 - 65536 & 1023) + 56320
|
|
22536
22536
|
);
|
|
22537
22537
|
}
|
|
22538
|
+
function setProperty(object, key2, value) {
|
|
22539
|
+
key2 === "__proto__" ? Object.defineProperty(object, key2, {
|
|
22540
|
+
configurable: !0,
|
|
22541
|
+
enumerable: !0,
|
|
22542
|
+
writable: !0,
|
|
22543
|
+
value
|
|
22544
|
+
}) : object[key2] = value;
|
|
22545
|
+
}
|
|
22538
22546
|
for (var simpleEscapeCheck = new Array(256), simpleEscapeMap = new Array(256), i = 0; i < 256; i++)
|
|
22539
22547
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0, simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
22540
22548
|
function State(input2, options2) {
|
|
@@ -22575,7 +22583,7 @@ function requireLoader() {
|
|
|
22575
22583
|
function mergeMappings(state, destination, source2, overridableKeys) {
|
|
22576
22584
|
var sourceKeys, key2, index, quantity;
|
|
22577
22585
|
for (common2.isObject(source2) || throwError2(state, "cannot merge mappings; the provided source object is unacceptable"), sourceKeys = Object.keys(source2), index = 0, quantity = sourceKeys.length; index < quantity; index += 1)
|
|
22578
|
-
key2 = sourceKeys[index], _hasOwnProperty.call(destination, key2) || (destination
|
|
22586
|
+
key2 = sourceKeys[index], _hasOwnProperty.call(destination, key2) || (setProperty(destination, key2, source2[key2]), overridableKeys[key2] = !0);
|
|
22579
22587
|
}
|
|
22580
22588
|
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
|
|
22581
22589
|
var index, quantity;
|
|
@@ -22589,7 +22597,7 @@ function requireLoader() {
|
|
|
22589
22597
|
else
|
|
22590
22598
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
22591
22599
|
else
|
|
22592
|
-
!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode) && (state.line = startLine || state.line, state.position = startPos || state.position, throwError2(state, "duplicated mapping key")), _result
|
|
22600
|
+
!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode) && (state.line = startLine || state.line, state.position = startPos || state.position, throwError2(state, "duplicated mapping key")), setProperty(_result, keyNode, valueNode), delete overridableKeys[keyNode];
|
|
22593
22601
|
return _result;
|
|
22594
22602
|
}
|
|
22595
22603
|
function readLineBreak(state) {
|