@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/cli.cjs CHANGED
@@ -3,7 +3,7 @@ var cac = require("cac");
3
3
  function _interopDefaultCompat(e) {
4
4
  return e && typeof e == "object" && "default" in e ? e : { default: e };
5
5
  }
6
- var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "4.3.0";
6
+ var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "4.3.1";
7
7
  const cli = cac__default.default();
8
8
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
9
9
  const { checkAction } = await Promise.resolve().then(function() {
package/dist/index.js CHANGED
@@ -15779,7 +15779,7 @@ function requireLib() {
15779
15779
  super.checkLocalExport(id);
15780
15780
  }
15781
15781
  }
15782
- const getOwn$1 = (object, key) => Object.hasOwnProperty.call(object, key) && object[key], unwrapParenthesizedExpression = (node) => node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
15782
+ const getOwn$1 = (object, key) => hasOwnProperty.call(object, key) && object[key], unwrapParenthesizedExpression = (node) => node.type === "ParenthesizedExpression" ? unwrapParenthesizedExpression(node.expression) : node;
15783
15783
  class LValParser extends NodeUtils {
15784
15784
  toAssignable(node, isLHS = !1) {
15785
15785
  var _node$extra, _node$extra3;
@@ -16041,7 +16041,7 @@ function requireLib() {
16041
16041
  return this.match(12) ? (this.raise(this.lookaheadCharCode() === close ? Errors.RestTrailingComma : Errors.ElementAfterRest, this.state.startLoc), !0) : !1;
16042
16042
  }
16043
16043
  }
16044
- const getOwn = (object, key) => Object.hasOwnProperty.call(object, key) && object[key];
16044
+ const getOwn = (object, key) => hasOwnProperty.call(object, key) && object[key];
16045
16045
  function nonNull(x) {
16046
16046
  if (x == null)
16047
16047
  throw new Error(`Unexpected ${x} value.`);
@@ -16240,7 +16240,7 @@ function requireLib() {
16240
16240
  modifier
16241
16241
  }) : (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, {
16242
16242
  modifier
16243
- }), modified[modifier] = !0, enforceOrder(startLoc, modifier, "in", "out")) : (Object.hasOwnProperty.call(modified, modifier) ? this.raise(TSErrors.DuplicateModifier, startLoc, {
16243
+ }), modified[modifier] = !0, enforceOrder(startLoc, modifier, "in", "out")) : (hasOwnProperty.call(modified, modifier) ? this.raise(TSErrors.DuplicateModifier, startLoc, {
16244
16244
  modifier
16245
16245
  }) : (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, {
16246
16246
  modifier
@@ -16295,7 +16295,7 @@ function requireLib() {
16295
16295
  }
16296
16296
  tsParseImportType() {
16297
16297
  const node = this.startNode();
16298
- 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");
16298
+ 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");
16299
16299
  }
16300
16300
  tsParseEntityName(allowReservedWords = !0) {
16301
16301
  let entity = this.parseIdentifier(allowReservedWords);