@sanity/pkg-utils 5.1.7 → 5.1.9

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.
@@ -18841,8 +18841,8 @@ function requireLib() {
18841
18841
  const decl = this.startNode();
18842
18842
  if (this.parseVarId(decl, kind), decl.init = this.eat(29) ? isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, decl.init === null && !allowMissingInitializer && (decl.id.type !== "Identifier" && !(isFor && (this.match(58) || this.isContextual(102))) ? this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
18843
18843
  kind: "destructuring"
18844
- }) : kind === "const" && !(this.match(58) || this.isContextual(102)) && this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
18845
- kind: "const"
18844
+ }) : (kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
18845
+ kind
18846
18846
  })), declarations.push(this.finishNode(decl, "VariableDeclarator")), !this.eat(12))
18847
18847
  break;
18848
18848
  }