houdini 1.5.8 → 1.5.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.
@@ -10911,10 +10911,10 @@ var require_ponyfill_es2018 = __commonJS({
10911
10911
  }
10912
10912
  return size;
10913
10913
  }
10914
- function convertQueuingStrategy(init, context) {
10915
- assertDictionary(init, context);
10916
- const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;
10917
- const size = init === null || init === void 0 ? void 0 : init.size;
10914
+ function convertQueuingStrategy(init2, context) {
10915
+ assertDictionary(init2, context);
10916
+ const highWaterMark = init2 === null || init2 === void 0 ? void 0 : init2.highWaterMark;
10917
+ const size = init2 === null || init2 === void 0 ? void 0 : init2.size;
10918
10918
  return {
10919
10919
  highWaterMark: highWaterMark === void 0 ? void 0 : convertUnrestrictedDouble(highWaterMark),
10920
10920
  size: size === void 0 ? void 0 : convertQueuingStrategySize(size, `${context} has member 'size' that`)
@@ -12766,9 +12766,9 @@ var require_ponyfill_es2018 = __commonJS({
12766
12766
  function streamBrandCheckException$1(name) {
12767
12767
  return new TypeError(`ReadableStream.prototype.${name} can only be used on a ReadableStream`);
12768
12768
  }
12769
- function convertQueuingStrategyInit(init, context) {
12770
- assertDictionary(init, context);
12771
- const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;
12769
+ function convertQueuingStrategyInit(init2, context) {
12770
+ assertDictionary(init2, context);
12771
+ const highWaterMark = init2 === null || init2 === void 0 ? void 0 : init2.highWaterMark;
12772
12772
  assertRequiredField(highWaterMark, "highWaterMark", "QueuingStrategyInit");
12773
12773
  return {
12774
12774
  highWaterMark: convertUnrestrictedDouble(highWaterMark)
@@ -21982,10 +21982,10 @@ var require_generated2 = __commonJS({
21982
21982
  body
21983
21983
  });
21984
21984
  }
21985
- function forStatement(init = null, test = null, update = null, body) {
21985
+ function forStatement(init2 = null, test = null, update = null, body) {
21986
21986
  return (0, _validateNode.default)({
21987
21987
  type: "ForStatement",
21988
- init,
21988
+ init: init2,
21989
21989
  test,
21990
21990
  update,
21991
21991
  body
@@ -22203,11 +22203,11 @@ var require_generated2 = __commonJS({
22203
22203
  declarations
22204
22204
  });
22205
22205
  }
22206
- function variableDeclarator(id, init = null) {
22206
+ function variableDeclarator(id, init2 = null) {
22207
22207
  return (0, _validateNode.default)({
22208
22208
  type: "VariableDeclarator",
22209
22209
  id,
22210
- init
22210
+ init: init2
22211
22211
  });
22212
22212
  }
22213
22213
  function whileStatement(test, body) {
@@ -22909,18 +22909,18 @@ var require_generated2 = __commonJS({
22909
22909
  init: null
22910
22910
  });
22911
22911
  }
22912
- function enumNumberMember(id, init) {
22912
+ function enumNumberMember(id, init2) {
22913
22913
  return (0, _validateNode.default)({
22914
22914
  type: "EnumNumberMember",
22915
22915
  id,
22916
- init
22916
+ init: init2
22917
22917
  });
22918
22918
  }
22919
- function enumStringMember(id, init) {
22919
+ function enumStringMember(id, init2) {
22920
22920
  return (0, _validateNode.default)({
22921
22921
  type: "EnumStringMember",
22922
22922
  id,
22923
- init
22923
+ init: init2
22924
22924
  });
22925
22925
  }
22926
22926
  function enumDefaultedMember(id) {
@@ -34742,13 +34742,13 @@ var require_lib6 = __commonJS({
34742
34742
  flowEnumMemberRaw() {
34743
34743
  const loc = this.state.startLoc;
34744
34744
  const id = this.parseIdentifier(true);
34745
- const init = this.eat(29) ? this.flowEnumMemberInit() : {
34745
+ const init2 = this.eat(29) ? this.flowEnumMemberInit() : {
34746
34746
  type: "none",
34747
34747
  loc
34748
34748
  };
34749
34749
  return {
34750
34750
  id,
34751
- init
34751
+ init: init2
34752
34752
  };
34753
34753
  }
34754
34754
  flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) {
@@ -34782,7 +34782,7 @@ var require_lib6 = __commonJS({
34782
34782
  const memberNode = this.startNode();
34783
34783
  const {
34784
34784
  id,
34785
- init
34785
+ init: init2
34786
34786
  } = this.flowEnumMemberRaw();
34787
34787
  const memberName = id.name;
34788
34788
  if (memberName === "") {
@@ -34808,35 +34808,35 @@ var require_lib6 = __commonJS({
34808
34808
  memberName
34809
34809
  };
34810
34810
  memberNode.id = id;
34811
- switch (init.type) {
34811
+ switch (init2.type) {
34812
34812
  case "boolean": {
34813
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "boolean");
34814
- memberNode.init = init.value;
34813
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "boolean");
34814
+ memberNode.init = init2.value;
34815
34815
  members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember"));
34816
34816
  break;
34817
34817
  }
34818
34818
  case "number": {
34819
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "number");
34820
- memberNode.init = init.value;
34819
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "number");
34820
+ memberNode.init = init2.value;
34821
34821
  members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember"));
34822
34822
  break;
34823
34823
  }
34824
34824
  case "string": {
34825
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "string");
34826
- memberNode.init = init.value;
34825
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "string");
34826
+ memberNode.init = init2.value;
34827
34827
  members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember"));
34828
34828
  break;
34829
34829
  }
34830
34830
  case "invalid": {
34831
- throw this.flowEnumErrorInvalidMemberInitializer(init.loc, context);
34831
+ throw this.flowEnumErrorInvalidMemberInitializer(init2.loc, context);
34832
34832
  }
34833
34833
  case "none": {
34834
34834
  switch (explicitType) {
34835
34835
  case "boolean":
34836
- this.flowEnumErrorBooleanMemberNotInitialized(init.loc, context);
34836
+ this.flowEnumErrorBooleanMemberNotInitialized(init2.loc, context);
34837
34837
  break;
34838
34838
  case "number":
34839
- this.flowEnumErrorNumberMemberNotInitialized(init.loc, context);
34839
+ this.flowEnumErrorNumberMemberNotInitialized(init2.loc, context);
34840
34840
  break;
34841
34841
  default:
34842
34842
  members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember"));
@@ -37937,14 +37937,14 @@ var require_lib6 = __commonJS({
37937
37937
  return declaration;
37938
37938
  for (const {
37939
37939
  id,
37940
- init
37940
+ init: init2
37941
37941
  } of declaration.declarations) {
37942
- if (!init)
37942
+ if (!init2)
37943
37943
  continue;
37944
37944
  if (kind !== "const" || !!id.typeAnnotation) {
37945
- this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
37946
- } else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) {
37947
- this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
37945
+ this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init2);
37946
+ } else if (!isValidAmbientConstInitializer(init2, this.hasPlugin("estree"))) {
37947
+ this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, init2);
37948
37948
  }
37949
37949
  }
37950
37950
  return declaration;
@@ -41424,49 +41424,49 @@ var require_lib6 = __commonJS({
41424
41424
  }
41425
41425
  this.next();
41426
41426
  this.parseVar(initNode, true, kind);
41427
- const init2 = this.finishNode(initNode, "VariableDeclaration");
41427
+ const init3 = this.finishNode(initNode, "VariableDeclaration");
41428
41428
  const isForIn = this.match(58);
41429
41429
  if (isForIn && starsWithUsingDeclaration) {
41430
- this.raise(Errors.ForInUsing, init2);
41430
+ this.raise(Errors.ForInUsing, init3);
41431
41431
  }
41432
- if ((isForIn || this.isContextual(102)) && init2.declarations.length === 1) {
41433
- return this.parseForIn(node, init2, awaitAt);
41432
+ if ((isForIn || this.isContextual(102)) && init3.declarations.length === 1) {
41433
+ return this.parseForIn(node, init3, awaitAt);
41434
41434
  }
41435
41435
  if (awaitAt !== null) {
41436
41436
  this.unexpected(awaitAt);
41437
41437
  }
41438
- return this.parseFor(node, init2);
41438
+ return this.parseFor(node, init3);
41439
41439
  }
41440
41440
  }
41441
41441
  const startsWithAsync = this.isContextual(95);
41442
41442
  const refExpressionErrors = new ExpressionErrors();
41443
- const init = this.parseExpression(true, refExpressionErrors);
41443
+ const init2 = this.parseExpression(true, refExpressionErrors);
41444
41444
  const isForOf = this.isContextual(102);
41445
41445
  if (isForOf) {
41446
41446
  if (startsWithLet) {
41447
- this.raise(Errors.ForOfLet, init);
41447
+ this.raise(Errors.ForOfLet, init2);
41448
41448
  }
41449
- if (awaitAt === null && startsWithAsync && init.type === "Identifier") {
41450
- this.raise(Errors.ForOfAsync, init);
41449
+ if (awaitAt === null && startsWithAsync && init2.type === "Identifier") {
41450
+ this.raise(Errors.ForOfAsync, init2);
41451
41451
  }
41452
41452
  }
41453
41453
  if (isForOf || this.match(58)) {
41454
41454
  this.checkDestructuringPrivate(refExpressionErrors);
41455
- this.toAssignable(init, true);
41455
+ this.toAssignable(init2, true);
41456
41456
  const type = isForOf ? "ForOfStatement" : "ForInStatement";
41457
- this.checkLVal(init, {
41457
+ this.checkLVal(init2, {
41458
41458
  in: {
41459
41459
  type
41460
41460
  }
41461
41461
  });
41462
- return this.parseForIn(node, init, awaitAt);
41462
+ return this.parseForIn(node, init2, awaitAt);
41463
41463
  } else {
41464
41464
  this.checkExpressionErrors(refExpressionErrors, true);
41465
41465
  }
41466
41466
  if (awaitAt !== null) {
41467
41467
  this.unexpected(awaitAt);
41468
41468
  }
41469
- return this.parseFor(node, init);
41469
+ return this.parseFor(node, init2);
41470
41470
  }
41471
41471
  parseFunctionStatement(node, isAsync, isHangingDeclaration) {
41472
41472
  this.next();
@@ -41688,8 +41688,8 @@ var require_lib6 = __commonJS({
41688
41688
  }
41689
41689
  this.next();
41690
41690
  }
41691
- parseFor(node, init) {
41692
- node.init = init;
41691
+ parseFor(node, init2) {
41692
+ node.init = init2;
41693
41693
  this.semicolon(false);
41694
41694
  node.test = this.match(13) ? null : this.parseExpression();
41695
41695
  this.semicolon(false);
@@ -41700,7 +41700,7 @@ var require_lib6 = __commonJS({
41700
41700
  this.state.labels.pop();
41701
41701
  return this.finishNode(node, "ForStatement");
41702
41702
  }
41703
- parseForIn(node, init, awaitAt) {
41703
+ parseForIn(node, init2, awaitAt) {
41704
41704
  const isForIn = this.match(58);
41705
41705
  this.next();
41706
41706
  if (isForIn) {
@@ -41709,19 +41709,19 @@ var require_lib6 = __commonJS({
41709
41709
  } else {
41710
41710
  node.await = awaitAt !== null;
41711
41711
  }
41712
- if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) {
41713
- this.raise(Errors.ForInOfLoopInitializer, init, {
41712
+ if (init2.type === "VariableDeclaration" && init2.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init2.kind !== "var" || init2.declarations[0].id.type !== "Identifier")) {
41713
+ this.raise(Errors.ForInOfLoopInitializer, init2, {
41714
41714
  type: isForIn ? "ForInStatement" : "ForOfStatement"
41715
41715
  });
41716
41716
  }
41717
- if (init.type === "AssignmentPattern") {
41718
- this.raise(Errors.InvalidLhs, init, {
41717
+ if (init2.type === "AssignmentPattern") {
41718
+ this.raise(Errors.InvalidLhs, init2, {
41719
41719
  ancestor: {
41720
41720
  type: "ForStatement"
41721
41721
  }
41722
41722
  });
41723
41723
  }
41724
- node.left = init;
41724
+ node.left = init2;
41725
41725
  node.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn();
41726
41726
  this.expect(11);
41727
41727
  node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement());
@@ -43671,11 +43671,11 @@ var require_types = __commonJS({
43671
43671
  }();
43672
43672
  exports.Def = Def;
43673
43673
  var Field = function() {
43674
- function Field2(name, type, defaultFn, hidden6) {
43674
+ function Field2(name, type, defaultFn, hidden7) {
43675
43675
  this.name = name;
43676
43676
  this.type = type;
43677
43677
  this.defaultFn = defaultFn;
43678
- this.hidden = !!hidden6;
43678
+ this.hidden = !!hidden7;
43679
43679
  }
43680
43680
  Field2.prototype.toString = function() {
43681
43681
  return JSON.stringify(this.name) + ": " + this.type;
@@ -43924,12 +43924,12 @@ var require_types = __commonJS({
43924
43924
  });
43925
43925
  return this;
43926
43926
  };
43927
- DefImpl2.prototype.field = function(name, type, defaultFn, hidden6) {
43927
+ DefImpl2.prototype.field = function(name, type, defaultFn, hidden7) {
43928
43928
  if (this.finalized) {
43929
43929
  console.error("Ignoring attempt to redefine field " + JSON.stringify(name) + " of finalized type " + JSON.stringify(this.typeName));
43930
43930
  return this;
43931
43931
  }
43932
- this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden6);
43932
+ this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden7);
43933
43933
  return this;
43934
43934
  };
43935
43935
  DefImpl2.prototype.finalize = function() {
@@ -44530,13 +44530,13 @@ var require_scope = __commonJS({
44530
44530
  var name = prefix + index;
44531
44531
  return this.bindings[name] = types19.builders.identifier(name);
44532
44532
  };
44533
- Sp.injectTemporary = function(identifier, init) {
44533
+ Sp.injectTemporary = function(identifier, init2) {
44534
44534
  identifier || (identifier = this.declareTemporary());
44535
44535
  var bodyPath = this.path.get("body");
44536
44536
  if (namedTypes.BlockStatement.check(bodyPath.value)) {
44537
44537
  bodyPath = bodyPath.get("body");
44538
44538
  }
44539
- bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init || null)]));
44539
+ bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init2 || null)]));
44540
44540
  return identifier;
44541
44541
  };
44542
44542
  Sp.scan = function(force) {
@@ -45309,7 +45309,7 @@ var require_path_visitor = __commonJS({
45309
45309
  return Context;
45310
45310
  }
45311
45311
  var sharedContextProtoMethods = /* @__PURE__ */ Object.create(null);
45312
- sharedContextProtoMethods.reset = function reset6(path4) {
45312
+ sharedContextProtoMethods.reset = function reset7(path4) {
45313
45313
  if (!(this instanceof this.Context)) {
45314
45314
  throw new Error("");
45315
45315
  }
@@ -50096,9 +50096,9 @@ var require_esprima2 = __commonJS({
50096
50096
  }();
50097
50097
  exports2.ForOfStatement = ForOfStatement;
50098
50098
  var ForStatement = function() {
50099
- function ForStatement2(init, test, update, body) {
50099
+ function ForStatement2(init2, test, update, body) {
50100
50100
  this.type = syntax_1.Syntax.ForStatement;
50101
- this.init = init;
50101
+ this.init = init2;
50102
50102
  this.test = test;
50103
50103
  this.update = update;
50104
50104
  this.body = body;
@@ -50438,10 +50438,10 @@ var require_esprima2 = __commonJS({
50438
50438
  }();
50439
50439
  exports2.VariableDeclaration = VariableDeclaration;
50440
50440
  var VariableDeclarator = function() {
50441
- function VariableDeclarator2(id, init) {
50441
+ function VariableDeclarator2(id, init2) {
50442
50442
  this.type = syntax_1.Syntax.VariableDeclarator;
50443
50443
  this.id = id;
50444
- this.init = init;
50444
+ this.init = init2;
50445
50445
  }
50446
50446
  return VariableDeclarator2;
50447
50447
  }();
@@ -51146,8 +51146,8 @@ var require_esprima2 = __commonJS({
51146
51146
  this.context.firstCoverInitializedNameError = this.lookahead;
51147
51147
  this.nextToken();
51148
51148
  shorthand = true;
51149
- var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51150
- value = this.finalize(node, new Node.AssignmentPattern(id, init));
51149
+ var init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51150
+ value = this.finalize(node, new Node.AssignmentPattern(id, init2));
51151
51151
  } else {
51152
51152
  shorthand = true;
51153
51153
  value = id;
@@ -51925,21 +51925,21 @@ var require_esprima2 = __commonJS({
51925
51925
  this.tolerateError(messages_1.Messages.StrictVarName);
51926
51926
  }
51927
51927
  }
51928
- var init = null;
51928
+ var init2 = null;
51929
51929
  if (kind === "const") {
51930
51930
  if (!this.matchKeyword("in") && !this.matchContextualKeyword("of")) {
51931
51931
  if (this.match("=")) {
51932
51932
  this.nextToken();
51933
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51933
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51934
51934
  } else {
51935
51935
  this.throwError(messages_1.Messages.DeclarationMissingInitializer, "const");
51936
51936
  }
51937
51937
  }
51938
51938
  } else if (!options.inFor && id.type !== syntax_1.Syntax.Identifier || this.match("=")) {
51939
51939
  this.expect("=");
51940
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51940
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51941
51941
  }
51942
- return this.finalize(node, new Node.VariableDeclarator(id, init));
51942
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
51943
51943
  };
51944
51944
  Parser2.prototype.parseBindingList = function(kind, options) {
51945
51945
  var list = [this.parseLexicalBinding(kind, options)];
@@ -52003,17 +52003,17 @@ var require_esprima2 = __commonJS({
52003
52003
  if (this.lookahead.type === 3) {
52004
52004
  var keyToken = this.lookahead;
52005
52005
  key = this.parseVariableIdentifier();
52006
- var init = this.finalize(node, new Node.Identifier(keyToken.value));
52006
+ var init2 = this.finalize(node, new Node.Identifier(keyToken.value));
52007
52007
  if (this.match("=")) {
52008
52008
  params.push(keyToken);
52009
52009
  shorthand = true;
52010
52010
  this.nextToken();
52011
52011
  var expr = this.parseAssignmentExpression();
52012
- value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init, expr));
52012
+ value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init2, expr));
52013
52013
  } else if (!this.match(":")) {
52014
52014
  params.push(keyToken);
52015
52015
  shorthand = true;
52016
- value = init;
52016
+ value = init2;
52017
52017
  } else {
52018
52018
  this.expect(":");
52019
52019
  value = this.parsePatternWithDefault(params, kind);
@@ -52098,14 +52098,14 @@ var require_esprima2 = __commonJS({
52098
52098
  this.tolerateError(messages_1.Messages.StrictVarName);
52099
52099
  }
52100
52100
  }
52101
- var init = null;
52101
+ var init2 = null;
52102
52102
  if (this.match("=")) {
52103
52103
  this.nextToken();
52104
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
52104
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
52105
52105
  } else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
52106
52106
  this.expect("=");
52107
52107
  }
52108
- return this.finalize(node, new Node.VariableDeclarator(id, init));
52108
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
52109
52109
  };
52110
52110
  Parser2.prototype.parseVariableDeclarationList = function(options) {
52111
52111
  var opt = { inFor: options.inFor };
@@ -52200,7 +52200,7 @@ var require_esprima2 = __commonJS({
52200
52200
  return this.finalize(node, new Node.WhileStatement(test, body));
52201
52201
  };
52202
52202
  Parser2.prototype.parseForStatement = function() {
52203
- var init = null;
52203
+ var init2 = null;
52204
52204
  var test = null;
52205
52205
  var update = null;
52206
52206
  var forIn = true;
@@ -52212,7 +52212,7 @@ var require_esprima2 = __commonJS({
52212
52212
  this.nextToken();
52213
52213
  } else {
52214
52214
  if (this.matchKeyword("var")) {
52215
- init = this.createNode();
52215
+ init2 = this.createNode();
52216
52216
  this.nextToken();
52217
52217
  var previousAllowIn = this.context.allowIn;
52218
52218
  this.context.allowIn = false;
@@ -52223,87 +52223,87 @@ var require_esprima2 = __commonJS({
52223
52223
  if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) {
52224
52224
  this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, "for-in");
52225
52225
  }
52226
- init = this.finalize(init, new Node.VariableDeclaration(declarations, "var"));
52226
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
52227
52227
  this.nextToken();
52228
- left = init;
52228
+ left = init2;
52229
52229
  right = this.parseExpression();
52230
- init = null;
52230
+ init2 = null;
52231
52231
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
52232
- init = this.finalize(init, new Node.VariableDeclaration(declarations, "var"));
52232
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
52233
52233
  this.nextToken();
52234
- left = init;
52234
+ left = init2;
52235
52235
  right = this.parseAssignmentExpression();
52236
- init = null;
52236
+ init2 = null;
52237
52237
  forIn = false;
52238
52238
  } else {
52239
- init = this.finalize(init, new Node.VariableDeclaration(declarations, "var"));
52239
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
52240
52240
  this.expect(";");
52241
52241
  }
52242
52242
  } else if (this.matchKeyword("const") || this.matchKeyword("let")) {
52243
- init = this.createNode();
52243
+ init2 = this.createNode();
52244
52244
  var kind = this.nextToken().value;
52245
52245
  if (!this.context.strict && this.lookahead.value === "in") {
52246
- init = this.finalize(init, new Node.Identifier(kind));
52246
+ init2 = this.finalize(init2, new Node.Identifier(kind));
52247
52247
  this.nextToken();
52248
- left = init;
52248
+ left = init2;
52249
52249
  right = this.parseExpression();
52250
- init = null;
52250
+ init2 = null;
52251
52251
  } else {
52252
52252
  var previousAllowIn = this.context.allowIn;
52253
52253
  this.context.allowIn = false;
52254
52254
  var declarations = this.parseBindingList(kind, { inFor: true });
52255
52255
  this.context.allowIn = previousAllowIn;
52256
52256
  if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword("in")) {
52257
- init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
52257
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
52258
52258
  this.nextToken();
52259
- left = init;
52259
+ left = init2;
52260
52260
  right = this.parseExpression();
52261
- init = null;
52261
+ init2 = null;
52262
52262
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
52263
- init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
52263
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
52264
52264
  this.nextToken();
52265
- left = init;
52265
+ left = init2;
52266
52266
  right = this.parseAssignmentExpression();
52267
- init = null;
52267
+ init2 = null;
52268
52268
  forIn = false;
52269
52269
  } else {
52270
52270
  this.consumeSemicolon();
52271
- init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
52271
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
52272
52272
  }
52273
52273
  }
52274
52274
  } else {
52275
52275
  var initStartToken = this.lookahead;
52276
52276
  var previousAllowIn = this.context.allowIn;
52277
52277
  this.context.allowIn = false;
52278
- init = this.inheritCoverGrammar(this.parseAssignmentExpression);
52278
+ init2 = this.inheritCoverGrammar(this.parseAssignmentExpression);
52279
52279
  this.context.allowIn = previousAllowIn;
52280
52280
  if (this.matchKeyword("in")) {
52281
- if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
52281
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
52282
52282
  this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
52283
52283
  }
52284
52284
  this.nextToken();
52285
- this.reinterpretExpressionAsPattern(init);
52286
- left = init;
52285
+ this.reinterpretExpressionAsPattern(init2);
52286
+ left = init2;
52287
52287
  right = this.parseExpression();
52288
- init = null;
52288
+ init2 = null;
52289
52289
  } else if (this.matchContextualKeyword("of")) {
52290
- if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
52290
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
52291
52291
  this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
52292
52292
  }
52293
52293
  this.nextToken();
52294
- this.reinterpretExpressionAsPattern(init);
52295
- left = init;
52294
+ this.reinterpretExpressionAsPattern(init2);
52295
+ left = init2;
52296
52296
  right = this.parseAssignmentExpression();
52297
- init = null;
52297
+ init2 = null;
52298
52298
  forIn = false;
52299
52299
  } else {
52300
52300
  if (this.match(",")) {
52301
- var initSeq = [init];
52301
+ var initSeq = [init2];
52302
52302
  while (this.match(",")) {
52303
52303
  this.nextToken();
52304
52304
  initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
52305
52305
  }
52306
- init = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
52306
+ init2 = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
52307
52307
  }
52308
52308
  this.expect(";");
52309
52309
  }
@@ -52329,7 +52329,7 @@ var require_esprima2 = __commonJS({
52329
52329
  body = this.isolateCoverGrammar(this.parseStatement);
52330
52330
  this.context.inIteration = previousInIteration;
52331
52331
  }
52332
- return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init, test, update, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
52332
+ return typeof left === "undefined" ? this.finalize(node, new Node.ForStatement(init2, test, update, body)) : forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) : this.finalize(node, new Node.ForOfStatement(left, right, body));
52333
52333
  };
52334
52334
  Parser2.prototype.parseContinueStatement = function() {
52335
52335
  var node = this.createNode();
@@ -57720,10 +57720,10 @@ var require_printer = __commonJS({
57720
57720
  return (0, lines_1.concat)(parts);
57721
57721
  }
57722
57722
  case "ForStatement": {
57723
- var init = path4.call(print13, "init");
57724
- var sep3 = init.length > 1 ? ";\n" : "; ";
57723
+ var init2 = path4.call(print13, "init");
57724
+ var sep3 = init2.length > 1 ? ";\n" : "; ";
57725
57725
  var forParen = "for (";
57726
- var indented = (0, lines_1.fromString)(sep3).join([init, path4.call(print13, "test"), path4.call(print13, "update")]).indentTail(forParen.length);
57726
+ var indented = (0, lines_1.fromString)(sep3).join([init2, path4.call(print13, "test"), path4.call(print13, "update")]).indentTail(forParen.length);
57727
57727
  var head = (0, lines_1.concat)([forParen, indented, ")"]);
57728
57728
  var clause = adjustClause(path4.call(print13, "body"), options);
57729
57729
  parts.push(head);
@@ -69227,23 +69227,23 @@ var validateHeaderValue = typeof import_node_http.default.validateHeaderValue ==
69227
69227
  }
69228
69228
  };
69229
69229
  var Headers = class extends URLSearchParams {
69230
- constructor(init) {
69230
+ constructor(init2) {
69231
69231
  let result = [];
69232
- if (init instanceof Headers) {
69233
- const raw = init.raw();
69232
+ if (init2 instanceof Headers) {
69233
+ const raw = init2.raw();
69234
69234
  for (const [name, values] of Object.entries(raw)) {
69235
69235
  result.push(...values.map((value) => [name, value]));
69236
69236
  }
69237
- } else if (init == null) {
69238
- } else if (typeof init === "object" && !import_node_util3.types.isBoxedPrimitive(init)) {
69239
- const method = init[Symbol.iterator];
69237
+ } else if (init2 == null) {
69238
+ } else if (typeof init2 === "object" && !import_node_util3.types.isBoxedPrimitive(init2)) {
69239
+ const method = init2[Symbol.iterator];
69240
69240
  if (method == null) {
69241
- result.push(...Object.entries(init));
69241
+ result.push(...Object.entries(init2));
69242
69242
  } else {
69243
69243
  if (typeof method !== "function") {
69244
69244
  throw new TypeError("Header pairs must be iterable");
69245
69245
  }
69246
- result = [...init].map((pair) => {
69246
+ result = [...init2].map((pair) => {
69247
69247
  if (typeof pair !== "object" || import_node_util3.types.isBoxedPrimitive(pair)) {
69248
69248
  throw new TypeError("Each header pair must be an iterable object");
69249
69249
  }
@@ -69460,17 +69460,17 @@ var Response2 = class extends Body {
69460
69460
  response[INTERNALS2].type = "error";
69461
69461
  return response;
69462
69462
  }
69463
- static json(data = void 0, init = {}) {
69463
+ static json(data = void 0, init2 = {}) {
69464
69464
  const body = JSON.stringify(data);
69465
69465
  if (body === void 0) {
69466
69466
  throw new TypeError("data is not JSON serializable");
69467
69467
  }
69468
- const headers = new Headers(init && init.headers);
69468
+ const headers = new Headers(init2 && init2.headers);
69469
69469
  if (!headers.has("content-type")) {
69470
69470
  headers.set("content-type", "application/json");
69471
69471
  }
69472
69472
  return new Response2(body, {
69473
- ...init,
69473
+ ...init2,
69474
69474
  headers
69475
69475
  });
69476
69476
  }
@@ -69655,7 +69655,7 @@ var doBadDataWarn = (0, import_node_util4.deprecate)(
69655
69655
  "https://github.com/node-fetch/node-fetch/issues/1000 (request)"
69656
69656
  );
69657
69657
  var Request2 = class extends Body {
69658
- constructor(input, init = {}) {
69658
+ constructor(input, init2 = {}) {
69659
69659
  let parsedURL;
69660
69660
  if (isRequest(input)) {
69661
69661
  parsedURL = new URL(input.url);
@@ -69666,21 +69666,21 @@ var Request2 = class extends Body {
69666
69666
  if (parsedURL.username !== "" || parsedURL.password !== "") {
69667
69667
  throw new TypeError(`${parsedURL} is an url with embedded credentials.`);
69668
69668
  }
69669
- let method = init.method || input.method || "GET";
69669
+ let method = init2.method || input.method || "GET";
69670
69670
  if (/^(delete|get|head|options|post|put)$/i.test(method)) {
69671
69671
  method = method.toUpperCase();
69672
69672
  }
69673
- if (!isRequest(init) && "data" in init) {
69673
+ if (!isRequest(init2) && "data" in init2) {
69674
69674
  doBadDataWarn();
69675
69675
  }
69676
- if ((init.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
69676
+ if ((init2.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
69677
69677
  throw new TypeError("Request with GET/HEAD method cannot have body");
69678
69678
  }
69679
- const inputBody = init.body ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
69679
+ const inputBody = init2.body ? init2.body : isRequest(input) && input.body !== null ? clone(input) : null;
69680
69680
  super(inputBody, {
69681
- size: init.size || input.size || 0
69681
+ size: init2.size || input.size || 0
69682
69682
  });
69683
- const headers = new Headers(init.headers || input.headers || {});
69683
+ const headers = new Headers(init2.headers || input.headers || {});
69684
69684
  if (inputBody !== null && !headers.has("Content-Type")) {
69685
69685
  const contentType = extractContentType(inputBody, this);
69686
69686
  if (contentType) {
@@ -69688,13 +69688,13 @@ var Request2 = class extends Body {
69688
69688
  }
69689
69689
  }
69690
69690
  let signal = isRequest(input) ? input.signal : null;
69691
- if ("signal" in init) {
69692
- signal = init.signal;
69691
+ if ("signal" in init2) {
69692
+ signal = init2.signal;
69693
69693
  }
69694
69694
  if (signal != null && !isAbortSignal(signal)) {
69695
69695
  throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
69696
69696
  }
69697
- let referrer = init.referrer == null ? input.referrer : init.referrer;
69697
+ let referrer = init2.referrer == null ? input.referrer : init2.referrer;
69698
69698
  if (referrer === "") {
69699
69699
  referrer = "no-referrer";
69700
69700
  } else if (referrer) {
@@ -69705,19 +69705,19 @@ var Request2 = class extends Body {
69705
69705
  }
69706
69706
  this[INTERNALS3] = {
69707
69707
  method,
69708
- redirect: init.redirect || input.redirect || "follow",
69708
+ redirect: init2.redirect || input.redirect || "follow",
69709
69709
  headers,
69710
69710
  parsedURL,
69711
69711
  signal,
69712
69712
  referrer
69713
69713
  };
69714
- this.follow = init.follow === void 0 ? input.follow === void 0 ? 20 : input.follow : init.follow;
69715
- this.compress = init.compress === void 0 ? input.compress === void 0 ? true : input.compress : init.compress;
69716
- this.counter = init.counter || input.counter || 0;
69717
- this.agent = init.agent || input.agent;
69718
- this.highWaterMark = init.highWaterMark || input.highWaterMark || 16384;
69719
- this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false;
69720
- this.referrerPolicy = init.referrerPolicy || input.referrerPolicy || "";
69714
+ this.follow = init2.follow === void 0 ? input.follow === void 0 ? 20 : input.follow : init2.follow;
69715
+ this.compress = init2.compress === void 0 ? input.compress === void 0 ? true : input.compress : init2.compress;
69716
+ this.counter = init2.counter || input.counter || 0;
69717
+ this.agent = init2.agent || input.agent;
69718
+ this.highWaterMark = init2.highWaterMark || input.highWaterMark || 16384;
69719
+ this.insecureHTTPParser = init2.insecureHTTPParser || input.insecureHTTPParser || false;
69720
+ this.referrerPolicy = init2.referrerPolicy || input.referrerPolicy || "";
69721
69721
  }
69722
69722
  get method() {
69723
69723
  return this[INTERNALS3].method;
@@ -75100,14 +75100,14 @@ var BIGINT = 8;
75100
75100
 
75101
75101
  // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
75102
75102
  var env = typeof self === "object" ? self : globalThis;
75103
- var deserializer = ($, _) => {
75103
+ var deserializer = ($2, _) => {
75104
75104
  const as = (out, index) => {
75105
- $.set(index, out);
75105
+ $2.set(index, out);
75106
75106
  return out;
75107
75107
  };
75108
75108
  const unpair = (index) => {
75109
- if ($.has(index))
75110
- return $.get(index);
75109
+ if ($2.has(index))
75110
+ return $2.get(index);
75111
75111
  const [type, value] = _[index];
75112
75112
  switch (type) {
75113
75113
  case PRIMITIVE:
@@ -75188,15 +75188,15 @@ var typeOf = (value) => {
75188
75188
  return [OBJECT, asString];
75189
75189
  };
75190
75190
  var shouldSkip = ([TYPE2, type]) => TYPE2 === PRIMITIVE && (type === "function" || type === "symbol");
75191
- var serializer = (strict, json, $, _) => {
75191
+ var serializer = (strict, json, $2, _) => {
75192
75192
  const as = (out, value) => {
75193
75193
  const index = _.push(out) - 1;
75194
- $.set(value, index);
75194
+ $2.set(value, index);
75195
75195
  return index;
75196
75196
  };
75197
75197
  const pair = (value) => {
75198
- if ($.has(value))
75199
- return $.get(value);
75198
+ if ($2.has(value))
75199
+ return $2.get(value);
75200
75200
  let [TYPE2, type] = typeOf(value);
75201
75201
  switch (TYPE2) {
75202
75202
  case PRIMITIVE: {
@@ -78096,6 +78096,11 @@ export * from "${module2}"
78096
78096
  module: "./" + path_exports.relative(config2.rootDir, config2.pluginRuntimeDirectory(plugin2.name))
78097
78097
  });
78098
78098
  }
78099
+ if (plugin2.staticRuntime) {
78100
+ indexContent += exportStarFrom2({
78101
+ module: "./" + path_exports.relative(config2.rootDir, config2.pluginStaticRuntimeDirectory(plugin2.name))
78102
+ });
78103
+ }
78099
78104
  }
78100
78105
  await fs_exports.writeFile(config2.typeIndexPath, indexContent);
78101
78106
  const missingScalarNames = [...missingScalars].filter(
@@ -82986,6 +82991,57 @@ function logStyled(kind, stat3, logLevel, plugin2) {
82986
82991
 
82987
82992
  // src/vite/houdini.ts
82988
82993
  var graphql34 = __toESM(require("graphql"), 1);
82994
+
82995
+ // ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs
82996
+ var FORCE_COLOR;
82997
+ var NODE_DISABLE_COLORS;
82998
+ var NO_COLOR;
82999
+ var TERM;
83000
+ var isTTY = true;
83001
+ if (typeof process !== "undefined") {
83002
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
83003
+ isTTY = process.stdout && process.stdout.isTTY;
83004
+ }
83005
+ var $ = {
83006
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
83007
+ };
83008
+ function init(x2, y) {
83009
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
83010
+ let open = `\x1B[${x2}m`, close = `\x1B[${y}m`;
83011
+ return function(txt) {
83012
+ if (!$.enabled || txt == null)
83013
+ return txt;
83014
+ return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close;
83015
+ };
83016
+ }
83017
+ var reset6 = init(0, 0);
83018
+ var bold6 = init(1, 22);
83019
+ var dim6 = init(2, 22);
83020
+ var italic6 = init(3, 23);
83021
+ var underline6 = init(4, 24);
83022
+ var inverse6 = init(7, 27);
83023
+ var hidden6 = init(8, 28);
83024
+ var strikethrough6 = init(9, 29);
83025
+ var black6 = init(30, 39);
83026
+ var red6 = init(31, 39);
83027
+ var green6 = init(32, 39);
83028
+ var yellow6 = init(33, 39);
83029
+ var blue6 = init(34, 39);
83030
+ var magenta6 = init(35, 39);
83031
+ var cyan6 = init(36, 39);
83032
+ var white6 = init(37, 39);
83033
+ var gray6 = init(90, 39);
83034
+ var grey = init(90, 39);
83035
+ var bgBlack6 = init(40, 49);
83036
+ var bgRed6 = init(41, 49);
83037
+ var bgGreen6 = init(42, 49);
83038
+ var bgYellow6 = init(43, 49);
83039
+ var bgBlue6 = init(44, 49);
83040
+ var bgMagenta6 = init(45, 49);
83041
+ var bgCyan6 = init(46, 49);
83042
+ var bgWhite6 = init(47, 49);
83043
+
83044
+ // src/vite/houdini.ts
82989
83045
  var config;
82990
83046
  var viteConfig;
82991
83047
  var viteEnv;
@@ -83125,6 +83181,19 @@ function Plugin(opts = {}) {
83125
83181
  },
83126
83182
  async configureServer(server) {
83127
83183
  devServer = true;
83184
+ if (config.plugins.some((plugin2) => plugin2.name === "houdini-svelte")) {
83185
+ console.log(
83186
+ `${yellow6(
83187
+ "\u{1F4A1} Tip: we recommend upgrading to houdini@next for support with the latest vite and svelte-kit versions. Read more here: https://houdini-docs-next.netlify.app/guides/migrateTo20"
83188
+ )}`
83189
+ );
83190
+ } else {
83191
+ console.log(
83192
+ `${yellow6(
83193
+ "\u{1F4A1} Tip: we recommend upgrading to houdini@next for support with the latest vite version. Read more here: https://houdini-docs-next.netlify.app/guides/migrateTo20"
83194
+ )}`
83195
+ );
83196
+ }
83128
83197
  await writeTsConfig(config);
83129
83198
  if (config.localSchema) {
83130
83199
  try {
@@ -83314,21 +83383,21 @@ function find_exported_fn(body, name) {
83314
83383
  continue;
83315
83384
  }
83316
83385
  const declaration = value.declarations[0];
83317
- let { init } = declaration;
83318
- if (!init) {
83386
+ let { init: init2 } = declaration;
83387
+ if (!init2) {
83319
83388
  continue;
83320
83389
  }
83321
- if (init.type === "TSSatisfiesExpression") {
83322
- init = init.expression;
83390
+ if (init2.type === "TSSatisfiesExpression") {
83391
+ init2 = init2.expression;
83323
83392
  }
83324
- if (init.type === "CallExpression" && init.arguments[0] && (init.arguments[0].type === "FunctionExpression" || init.arguments[0].type === "ArrowFunctionExpression")) {
83325
- init = init.arguments[0];
83393
+ if (init2.type === "CallExpression" && init2.arguments[0] && (init2.arguments[0].type === "FunctionExpression" || init2.arguments[0].type === "ArrowFunctionExpression")) {
83394
+ init2 = init2.arguments[0];
83326
83395
  }
83327
- if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
83328
- return { declaration: init, export: exportDeclaration };
83396
+ if (init2.type === "FunctionExpression" || init2.type === "ArrowFunctionExpression") {
83397
+ return { declaration: init2, export: exportDeclaration };
83329
83398
  }
83330
- if (init.type === "Identifier" || init.type === "CallExpression") {
83331
- return { declaration: init, export: exportDeclaration };
83399
+ if (init2.type === "Identifier" || init2.type === "CallExpression") {
83400
+ return { declaration: init2, export: exportDeclaration };
83332
83401
  }
83333
83402
  } else {
83334
83403
  continue;