@sanity/cli 4.5.0-next.1 → 4.5.0-next.10

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.
@@ -38862,8 +38862,13 @@ function requireLib$1() {
38862
38862
  finishCallExpression(unfinished, optional) {
38863
38863
  const node = super.finishCallExpression(unfinished, optional);
38864
38864
  if (node.callee.type === "Import") {
38865
- var _ref, _ref2;
38866
- this.castNodeTo(node, "ImportExpression"), node.source = node.arguments[0], node.options = (_ref = node.arguments[1]) != null ? _ref : null, node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null, delete node.arguments, delete node.callee;
38865
+ var _ref;
38866
+ this.castNodeTo(node, "ImportExpression"), node.source = node.arguments[0], node.options = (_ref = node.arguments[1]) != null ? _ref : null;
38867
+ {
38868
+ var _ref2;
38869
+ node.attributes = (_ref2 = node.arguments[1]) != null ? _ref2 : null;
38870
+ }
38871
+ delete node.arguments, delete node.callee;
38867
38872
  } else node.type === "OptionalCallExpression" ? this.castNodeTo(node, "CallExpression") : node.optional = !1;
38868
38873
  return node;
38869
38874
  }
@@ -43773,7 +43778,7 @@ function requireLib$1() {
43773
43778
  const node = this.startNode();
43774
43779
  this.expect(5);
43775
43780
  const withProperty = this.startNode();
43776
- return this.isContextual(76) ? (withProperty.method = !1, withProperty.key = this.parseIdentifier(!0), withProperty.computed = !1, withProperty.shorthand = !1) : this.unexpected(null, 76), this.expect(14), withProperty.value = this.tsParseImportTypeWithPropertyValue(), node.properties = [this.finishObjectProperty(withProperty)], this.expect(8), this.finishNode(node, "ObjectExpression");
43781
+ return this.isContextual(76) ? (withProperty.method = !1, withProperty.key = this.parseIdentifier(!0), withProperty.computed = !1, withProperty.shorthand = !1) : this.unexpected(null, 76), this.expect(14), withProperty.value = this.tsParseImportTypeWithPropertyValue(), node.properties = [this.finishObjectProperty(withProperty)], this.eat(12), this.expect(8), this.finishNode(node, "ObjectExpression");
43777
43782
  }
43778
43783
  tsParseImportTypeWithPropertyValue() {
43779
43784
  const node = this.startNode(), properties = [];
@@ -44513,7 +44518,7 @@ function requireLib$1() {
44513
44518
  if (!noCalls && this.atPossibleAsyncArrow(base2)) {
44514
44519
  const asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startLoc);
44515
44520
  if (asyncArrowFn)
44516
- return asyncArrowFn;
44521
+ return state.stop = !0, asyncArrowFn;
44517
44522
  }
44518
44523
  const typeArguments = this.tsParseTypeArgumentsInExpression();
44519
44524
  if (!typeArguments) return;