@sanity/pkg-utils 4.3.0 → 4.3.1
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/dist/_chunks/index.cjs +4 -4
- package/dist/_chunks/index.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/_chunks/index.cjs
CHANGED
|
@@ -15195,7 +15195,7 @@ function requireLib() {
|
|
|
15195
15195
|
super.checkLocalExport(id);
|
|
15196
15196
|
}
|
|
15197
15197
|
}
|
|
15198
|
-
const getOwn$1 = (object, key) =>
|
|
15198
|
+
const getOwn$1 = (object, key) => hasOwnProperty.call(object, key) && object[key], unwrapParenthesizedExpression = (node) => node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
|
|
15199
15199
|
class LValParser extends NodeUtils {
|
|
15200
15200
|
toAssignable(node, isLHS = !1) {
|
|
15201
15201
|
var _node$extra, _node$extra3;
|
|
@@ -15457,7 +15457,7 @@ function requireLib() {
|
|
|
15457
15457
|
return this.match(12) ? (this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, this.state.startLoc), !0) : !1;
|
|
15458
15458
|
}
|
|
15459
15459
|
}
|
|
15460
|
-
const getOwn = (object, key) =>
|
|
15460
|
+
const getOwn = (object, key) => hasOwnProperty.call(object, key) && object[key];
|
|
15461
15461
|
function nonNull(x) {
|
|
15462
15462
|
if (x == null)
|
|
15463
15463
|
throw new Error(`Unexpected ${x} value.`);
|
|
@@ -15656,7 +15656,7 @@ function requireLib() {
|
|
|
15656
15656
|
modifier
|
|
15657
15657
|
}) : (enforceOrder(startLoc, modifier, modifier, "override"), enforceOrder(startLoc, modifier, modifier, "static"), enforceOrder(startLoc, modifier, modifier, "readonly"), modified.accessibility = modifier) : tsIsVarianceAnnotations(modifier) ? (modified[modifier] && this.raise(TSErrors.DuplicateModifier, startLoc, {
|
|
15658
15658
|
modifier
|
|
15659
|
-
}), modified[modifier] = !0, enforceOrder(startLoc, modifier, "in", "out")) : (
|
|
15659
|
+
}), modified[modifier] = !0, enforceOrder(startLoc, modifier, "in", "out")) : (hasOwnProperty.call(modified, modifier) ? this.raise(TSErrors.DuplicateModifier, startLoc, {
|
|
15660
15660
|
modifier
|
|
15661
15661
|
}) : (enforceOrder(startLoc, modifier, "static", "readonly"), enforceOrder(startLoc, modifier, "static", "override"), enforceOrder(startLoc, modifier, "override", "readonly"), enforceOrder(startLoc, modifier, "abstract", "override"), incompatible(startLoc, modifier, "declare", "override"), incompatible(startLoc, modifier, "static", "abstract")), modified[modifier] = !0), disallowedModifiers != null && disallowedModifiers.includes(modifier) && this.raise(errorTemplate, startLoc, {
|
|
15662
15662
|
modifier
|
|
@@ -15711,7 +15711,7 @@ function requireLib() {
|
|
|
15711
15711
|
}
|
|
15712
15712
|
tsParseImportType() {
|
|
15713
15713
|
const node = this.startNode();
|
|
15714
|
-
return this.expect(83), this.expect(10), this.match(133) || this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc), node.argument = super.parseExprAtom(), this.expect(11), this.eat(16) && (node.qualifier = this.tsParseEntityName()), this.match(47) && (node.typeParameters = this.tsParseTypeArguments()), this.finishNode(node, "TSImportType");
|
|
15714
|
+
return this.expect(83), this.expect(10), this.match(133) || this.raise(TSErrors.UnsupportedImportTypeArgument, this.state.startLoc), node.argument = super.parseExprAtom(), (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) && (node.options = null), this.eat(12) && (this.expectImportAttributesPlugin(), this.match(11) || (node.options = super.parseMaybeAssignAllowIn(), this.eat(12))), this.expect(11), this.eat(16) && (node.qualifier = this.tsParseEntityName()), this.match(47) && (node.typeParameters = this.tsParseTypeArguments()), this.finishNode(node, "TSImportType");
|
|
15715
15715
|
}
|
|
15716
15716
|
tsParseEntityName(allowReservedWords = !0) {
|
|
15717
15717
|
let entity = this.parseIdentifier(allowReservedWords);
|