houdini 1.5.9 → 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.
@@ -10917,10 +10917,10 @@ var require_ponyfill_es2018 = __commonJS({
10917
10917
  }
10918
10918
  return size;
10919
10919
  }
10920
- function convertQueuingStrategy(init, context) {
10921
- assertDictionary(init, context);
10922
- const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;
10923
- const size = init === null || init === void 0 ? void 0 : init.size;
10920
+ function convertQueuingStrategy(init2, context) {
10921
+ assertDictionary(init2, context);
10922
+ const highWaterMark = init2 === null || init2 === void 0 ? void 0 : init2.highWaterMark;
10923
+ const size = init2 === null || init2 === void 0 ? void 0 : init2.size;
10924
10924
  return {
10925
10925
  highWaterMark: highWaterMark === void 0 ? void 0 : convertUnrestrictedDouble(highWaterMark),
10926
10926
  size: size === void 0 ? void 0 : convertQueuingStrategySize(size, `${context} has member 'size' that`)
@@ -12772,9 +12772,9 @@ var require_ponyfill_es2018 = __commonJS({
12772
12772
  function streamBrandCheckException$1(name) {
12773
12773
  return new TypeError(`ReadableStream.prototype.${name} can only be used on a ReadableStream`);
12774
12774
  }
12775
- function convertQueuingStrategyInit(init, context) {
12776
- assertDictionary(init, context);
12777
- const highWaterMark = init === null || init === void 0 ? void 0 : init.highWaterMark;
12775
+ function convertQueuingStrategyInit(init2, context) {
12776
+ assertDictionary(init2, context);
12777
+ const highWaterMark = init2 === null || init2 === void 0 ? void 0 : init2.highWaterMark;
12778
12778
  assertRequiredField(highWaterMark, "highWaterMark", "QueuingStrategyInit");
12779
12779
  return {
12780
12780
  highWaterMark: convertUnrestrictedDouble(highWaterMark)
@@ -21988,10 +21988,10 @@ var require_generated2 = __commonJS({
21988
21988
  body
21989
21989
  });
21990
21990
  }
21991
- function forStatement(init = null, test = null, update = null, body) {
21991
+ function forStatement(init2 = null, test = null, update = null, body) {
21992
21992
  return (0, _validateNode.default)({
21993
21993
  type: "ForStatement",
21994
- init,
21994
+ init: init2,
21995
21995
  test,
21996
21996
  update,
21997
21997
  body
@@ -22209,11 +22209,11 @@ var require_generated2 = __commonJS({
22209
22209
  declarations
22210
22210
  });
22211
22211
  }
22212
- function variableDeclarator(id, init = null) {
22212
+ function variableDeclarator(id, init2 = null) {
22213
22213
  return (0, _validateNode.default)({
22214
22214
  type: "VariableDeclarator",
22215
22215
  id,
22216
- init
22216
+ init: init2
22217
22217
  });
22218
22218
  }
22219
22219
  function whileStatement(test, body) {
@@ -22915,18 +22915,18 @@ var require_generated2 = __commonJS({
22915
22915
  init: null
22916
22916
  });
22917
22917
  }
22918
- function enumNumberMember(id, init) {
22918
+ function enumNumberMember(id, init2) {
22919
22919
  return (0, _validateNode.default)({
22920
22920
  type: "EnumNumberMember",
22921
22921
  id,
22922
- init
22922
+ init: init2
22923
22923
  });
22924
22924
  }
22925
- function enumStringMember(id, init) {
22925
+ function enumStringMember(id, init2) {
22926
22926
  return (0, _validateNode.default)({
22927
22927
  type: "EnumStringMember",
22928
22928
  id,
22929
- init
22929
+ init: init2
22930
22930
  });
22931
22931
  }
22932
22932
  function enumDefaultedMember(id) {
@@ -34748,13 +34748,13 @@ var require_lib6 = __commonJS({
34748
34748
  flowEnumMemberRaw() {
34749
34749
  const loc = this.state.startLoc;
34750
34750
  const id = this.parseIdentifier(true);
34751
- const init = this.eat(29) ? this.flowEnumMemberInit() : {
34751
+ const init2 = this.eat(29) ? this.flowEnumMemberInit() : {
34752
34752
  type: "none",
34753
34753
  loc
34754
34754
  };
34755
34755
  return {
34756
34756
  id,
34757
- init
34757
+ init: init2
34758
34758
  };
34759
34759
  }
34760
34760
  flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) {
@@ -34788,7 +34788,7 @@ var require_lib6 = __commonJS({
34788
34788
  const memberNode = this.startNode();
34789
34789
  const {
34790
34790
  id,
34791
- init
34791
+ init: init2
34792
34792
  } = this.flowEnumMemberRaw();
34793
34793
  const memberName = id.name;
34794
34794
  if (memberName === "") {
@@ -34814,35 +34814,35 @@ var require_lib6 = __commonJS({
34814
34814
  memberName
34815
34815
  };
34816
34816
  memberNode.id = id;
34817
- switch (init.type) {
34817
+ switch (init2.type) {
34818
34818
  case "boolean": {
34819
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "boolean");
34820
- memberNode.init = init.value;
34819
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "boolean");
34820
+ memberNode.init = init2.value;
34821
34821
  members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember"));
34822
34822
  break;
34823
34823
  }
34824
34824
  case "number": {
34825
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "number");
34826
- memberNode.init = init.value;
34825
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "number");
34826
+ memberNode.init = init2.value;
34827
34827
  members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember"));
34828
34828
  break;
34829
34829
  }
34830
34830
  case "string": {
34831
- this.flowEnumCheckExplicitTypeMismatch(init.loc, context, "string");
34832
- memberNode.init = init.value;
34831
+ this.flowEnumCheckExplicitTypeMismatch(init2.loc, context, "string");
34832
+ memberNode.init = init2.value;
34833
34833
  members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember"));
34834
34834
  break;
34835
34835
  }
34836
34836
  case "invalid": {
34837
- throw this.flowEnumErrorInvalidMemberInitializer(init.loc, context);
34837
+ throw this.flowEnumErrorInvalidMemberInitializer(init2.loc, context);
34838
34838
  }
34839
34839
  case "none": {
34840
34840
  switch (explicitType) {
34841
34841
  case "boolean":
34842
- this.flowEnumErrorBooleanMemberNotInitialized(init.loc, context);
34842
+ this.flowEnumErrorBooleanMemberNotInitialized(init2.loc, context);
34843
34843
  break;
34844
34844
  case "number":
34845
- this.flowEnumErrorNumberMemberNotInitialized(init.loc, context);
34845
+ this.flowEnumErrorNumberMemberNotInitialized(init2.loc, context);
34846
34846
  break;
34847
34847
  default:
34848
34848
  members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember"));
@@ -37943,14 +37943,14 @@ var require_lib6 = __commonJS({
37943
37943
  return declaration;
37944
37944
  for (const {
37945
37945
  id,
37946
- init
37946
+ init: init2
37947
37947
  } of declaration.declarations) {
37948
- if (!init)
37948
+ if (!init2)
37949
37949
  continue;
37950
37950
  if (kind !== "const" || !!id.typeAnnotation) {
37951
- this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
37952
- } else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) {
37953
- this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
37951
+ this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init2);
37952
+ } else if (!isValidAmbientConstInitializer(init2, this.hasPlugin("estree"))) {
37953
+ this.raise(TSErrors.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, init2);
37954
37954
  }
37955
37955
  }
37956
37956
  return declaration;
@@ -41430,49 +41430,49 @@ var require_lib6 = __commonJS({
41430
41430
  }
41431
41431
  this.next();
41432
41432
  this.parseVar(initNode, true, kind);
41433
- const init2 = this.finishNode(initNode, "VariableDeclaration");
41433
+ const init3 = this.finishNode(initNode, "VariableDeclaration");
41434
41434
  const isForIn = this.match(58);
41435
41435
  if (isForIn && starsWithUsingDeclaration) {
41436
- this.raise(Errors.ForInUsing, init2);
41436
+ this.raise(Errors.ForInUsing, init3);
41437
41437
  }
41438
- if ((isForIn || this.isContextual(102)) && init2.declarations.length === 1) {
41439
- return this.parseForIn(node, init2, awaitAt);
41438
+ if ((isForIn || this.isContextual(102)) && init3.declarations.length === 1) {
41439
+ return this.parseForIn(node, init3, awaitAt);
41440
41440
  }
41441
41441
  if (awaitAt !== null) {
41442
41442
  this.unexpected(awaitAt);
41443
41443
  }
41444
- return this.parseFor(node, init2);
41444
+ return this.parseFor(node, init3);
41445
41445
  }
41446
41446
  }
41447
41447
  const startsWithAsync = this.isContextual(95);
41448
41448
  const refExpressionErrors = new ExpressionErrors();
41449
- const init = this.parseExpression(true, refExpressionErrors);
41449
+ const init2 = this.parseExpression(true, refExpressionErrors);
41450
41450
  const isForOf = this.isContextual(102);
41451
41451
  if (isForOf) {
41452
41452
  if (startsWithLet) {
41453
- this.raise(Errors.ForOfLet, init);
41453
+ this.raise(Errors.ForOfLet, init2);
41454
41454
  }
41455
- if (awaitAt === null && startsWithAsync && init.type === "Identifier") {
41456
- this.raise(Errors.ForOfAsync, init);
41455
+ if (awaitAt === null && startsWithAsync && init2.type === "Identifier") {
41456
+ this.raise(Errors.ForOfAsync, init2);
41457
41457
  }
41458
41458
  }
41459
41459
  if (isForOf || this.match(58)) {
41460
41460
  this.checkDestructuringPrivate(refExpressionErrors);
41461
- this.toAssignable(init, true);
41461
+ this.toAssignable(init2, true);
41462
41462
  const type = isForOf ? "ForOfStatement" : "ForInStatement";
41463
- this.checkLVal(init, {
41463
+ this.checkLVal(init2, {
41464
41464
  in: {
41465
41465
  type
41466
41466
  }
41467
41467
  });
41468
- return this.parseForIn(node, init, awaitAt);
41468
+ return this.parseForIn(node, init2, awaitAt);
41469
41469
  } else {
41470
41470
  this.checkExpressionErrors(refExpressionErrors, true);
41471
41471
  }
41472
41472
  if (awaitAt !== null) {
41473
41473
  this.unexpected(awaitAt);
41474
41474
  }
41475
- return this.parseFor(node, init);
41475
+ return this.parseFor(node, init2);
41476
41476
  }
41477
41477
  parseFunctionStatement(node, isAsync, isHangingDeclaration) {
41478
41478
  this.next();
@@ -41694,8 +41694,8 @@ var require_lib6 = __commonJS({
41694
41694
  }
41695
41695
  this.next();
41696
41696
  }
41697
- parseFor(node, init) {
41698
- node.init = init;
41697
+ parseFor(node, init2) {
41698
+ node.init = init2;
41699
41699
  this.semicolon(false);
41700
41700
  node.test = this.match(13) ? null : this.parseExpression();
41701
41701
  this.semicolon(false);
@@ -41706,7 +41706,7 @@ var require_lib6 = __commonJS({
41706
41706
  this.state.labels.pop();
41707
41707
  return this.finishNode(node, "ForStatement");
41708
41708
  }
41709
- parseForIn(node, init, awaitAt) {
41709
+ parseForIn(node, init2, awaitAt) {
41710
41710
  const isForIn = this.match(58);
41711
41711
  this.next();
41712
41712
  if (isForIn) {
@@ -41715,19 +41715,19 @@ var require_lib6 = __commonJS({
41715
41715
  } else {
41716
41716
  node.await = awaitAt !== null;
41717
41717
  }
41718
- 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")) {
41719
- this.raise(Errors.ForInOfLoopInitializer, init, {
41718
+ 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")) {
41719
+ this.raise(Errors.ForInOfLoopInitializer, init2, {
41720
41720
  type: isForIn ? "ForInStatement" : "ForOfStatement"
41721
41721
  });
41722
41722
  }
41723
- if (init.type === "AssignmentPattern") {
41724
- this.raise(Errors.InvalidLhs, init, {
41723
+ if (init2.type === "AssignmentPattern") {
41724
+ this.raise(Errors.InvalidLhs, init2, {
41725
41725
  ancestor: {
41726
41726
  type: "ForStatement"
41727
41727
  }
41728
41728
  });
41729
41729
  }
41730
- node.left = init;
41730
+ node.left = init2;
41731
41731
  node.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn();
41732
41732
  this.expect(11);
41733
41733
  node.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement());
@@ -43677,11 +43677,11 @@ var require_types = __commonJS({
43677
43677
  }();
43678
43678
  exports.Def = Def;
43679
43679
  var Field = function() {
43680
- function Field2(name, type, defaultFn, hidden6) {
43680
+ function Field2(name, type, defaultFn, hidden7) {
43681
43681
  this.name = name;
43682
43682
  this.type = type;
43683
43683
  this.defaultFn = defaultFn;
43684
- this.hidden = !!hidden6;
43684
+ this.hidden = !!hidden7;
43685
43685
  }
43686
43686
  Field2.prototype.toString = function() {
43687
43687
  return JSON.stringify(this.name) + ": " + this.type;
@@ -43930,12 +43930,12 @@ var require_types = __commonJS({
43930
43930
  });
43931
43931
  return this;
43932
43932
  };
43933
- DefImpl2.prototype.field = function(name, type, defaultFn, hidden6) {
43933
+ DefImpl2.prototype.field = function(name, type, defaultFn, hidden7) {
43934
43934
  if (this.finalized) {
43935
43935
  console.error("Ignoring attempt to redefine field " + JSON.stringify(name) + " of finalized type " + JSON.stringify(this.typeName));
43936
43936
  return this;
43937
43937
  }
43938
- this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden6);
43938
+ this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden7);
43939
43939
  return this;
43940
43940
  };
43941
43941
  DefImpl2.prototype.finalize = function() {
@@ -44536,13 +44536,13 @@ var require_scope = __commonJS({
44536
44536
  var name = prefix + index;
44537
44537
  return this.bindings[name] = types19.builders.identifier(name);
44538
44538
  };
44539
- Sp.injectTemporary = function(identifier, init) {
44539
+ Sp.injectTemporary = function(identifier, init2) {
44540
44540
  identifier || (identifier = this.declareTemporary());
44541
44541
  var bodyPath = this.path.get("body");
44542
44542
  if (namedTypes.BlockStatement.check(bodyPath.value)) {
44543
44543
  bodyPath = bodyPath.get("body");
44544
44544
  }
44545
- bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init || null)]));
44545
+ bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init2 || null)]));
44546
44546
  return identifier;
44547
44547
  };
44548
44548
  Sp.scan = function(force) {
@@ -45315,7 +45315,7 @@ var require_path_visitor = __commonJS({
45315
45315
  return Context;
45316
45316
  }
45317
45317
  var sharedContextProtoMethods = /* @__PURE__ */ Object.create(null);
45318
- sharedContextProtoMethods.reset = function reset6(path4) {
45318
+ sharedContextProtoMethods.reset = function reset7(path4) {
45319
45319
  if (!(this instanceof this.Context)) {
45320
45320
  throw new Error("");
45321
45321
  }
@@ -50102,9 +50102,9 @@ var require_esprima2 = __commonJS({
50102
50102
  }();
50103
50103
  exports2.ForOfStatement = ForOfStatement;
50104
50104
  var ForStatement = function() {
50105
- function ForStatement2(init, test, update, body) {
50105
+ function ForStatement2(init2, test, update, body) {
50106
50106
  this.type = syntax_1.Syntax.ForStatement;
50107
- this.init = init;
50107
+ this.init = init2;
50108
50108
  this.test = test;
50109
50109
  this.update = update;
50110
50110
  this.body = body;
@@ -50444,10 +50444,10 @@ var require_esprima2 = __commonJS({
50444
50444
  }();
50445
50445
  exports2.VariableDeclaration = VariableDeclaration;
50446
50446
  var VariableDeclarator = function() {
50447
- function VariableDeclarator2(id, init) {
50447
+ function VariableDeclarator2(id, init2) {
50448
50448
  this.type = syntax_1.Syntax.VariableDeclarator;
50449
50449
  this.id = id;
50450
- this.init = init;
50450
+ this.init = init2;
50451
50451
  }
50452
50452
  return VariableDeclarator2;
50453
50453
  }();
@@ -51152,8 +51152,8 @@ var require_esprima2 = __commonJS({
51152
51152
  this.context.firstCoverInitializedNameError = this.lookahead;
51153
51153
  this.nextToken();
51154
51154
  shorthand = true;
51155
- var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51156
- value = this.finalize(node, new Node.AssignmentPattern(id, init));
51155
+ var init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51156
+ value = this.finalize(node, new Node.AssignmentPattern(id, init2));
51157
51157
  } else {
51158
51158
  shorthand = true;
51159
51159
  value = id;
@@ -51931,21 +51931,21 @@ var require_esprima2 = __commonJS({
51931
51931
  this.tolerateError(messages_1.Messages.StrictVarName);
51932
51932
  }
51933
51933
  }
51934
- var init = null;
51934
+ var init2 = null;
51935
51935
  if (kind === "const") {
51936
51936
  if (!this.matchKeyword("in") && !this.matchContextualKeyword("of")) {
51937
51937
  if (this.match("=")) {
51938
51938
  this.nextToken();
51939
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51939
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51940
51940
  } else {
51941
51941
  this.throwError(messages_1.Messages.DeclarationMissingInitializer, "const");
51942
51942
  }
51943
51943
  }
51944
51944
  } else if (!options.inFor && id.type !== syntax_1.Syntax.Identifier || this.match("=")) {
51945
51945
  this.expect("=");
51946
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
51946
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
51947
51947
  }
51948
- return this.finalize(node, new Node.VariableDeclarator(id, init));
51948
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
51949
51949
  };
51950
51950
  Parser2.prototype.parseBindingList = function(kind, options) {
51951
51951
  var list = [this.parseLexicalBinding(kind, options)];
@@ -52009,17 +52009,17 @@ var require_esprima2 = __commonJS({
52009
52009
  if (this.lookahead.type === 3) {
52010
52010
  var keyToken = this.lookahead;
52011
52011
  key = this.parseVariableIdentifier();
52012
- var init = this.finalize(node, new Node.Identifier(keyToken.value));
52012
+ var init2 = this.finalize(node, new Node.Identifier(keyToken.value));
52013
52013
  if (this.match("=")) {
52014
52014
  params.push(keyToken);
52015
52015
  shorthand = true;
52016
52016
  this.nextToken();
52017
52017
  var expr = this.parseAssignmentExpression();
52018
- value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init, expr));
52018
+ value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init2, expr));
52019
52019
  } else if (!this.match(":")) {
52020
52020
  params.push(keyToken);
52021
52021
  shorthand = true;
52022
- value = init;
52022
+ value = init2;
52023
52023
  } else {
52024
52024
  this.expect(":");
52025
52025
  value = this.parsePatternWithDefault(params, kind);
@@ -52104,14 +52104,14 @@ var require_esprima2 = __commonJS({
52104
52104
  this.tolerateError(messages_1.Messages.StrictVarName);
52105
52105
  }
52106
52106
  }
52107
- var init = null;
52107
+ var init2 = null;
52108
52108
  if (this.match("=")) {
52109
52109
  this.nextToken();
52110
- init = this.isolateCoverGrammar(this.parseAssignmentExpression);
52110
+ init2 = this.isolateCoverGrammar(this.parseAssignmentExpression);
52111
52111
  } else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
52112
52112
  this.expect("=");
52113
52113
  }
52114
- return this.finalize(node, new Node.VariableDeclarator(id, init));
52114
+ return this.finalize(node, new Node.VariableDeclarator(id, init2));
52115
52115
  };
52116
52116
  Parser2.prototype.parseVariableDeclarationList = function(options) {
52117
52117
  var opt = { inFor: options.inFor };
@@ -52206,7 +52206,7 @@ var require_esprima2 = __commonJS({
52206
52206
  return this.finalize(node, new Node.WhileStatement(test, body));
52207
52207
  };
52208
52208
  Parser2.prototype.parseForStatement = function() {
52209
- var init = null;
52209
+ var init2 = null;
52210
52210
  var test = null;
52211
52211
  var update = null;
52212
52212
  var forIn = true;
@@ -52218,7 +52218,7 @@ var require_esprima2 = __commonJS({
52218
52218
  this.nextToken();
52219
52219
  } else {
52220
52220
  if (this.matchKeyword("var")) {
52221
- init = this.createNode();
52221
+ init2 = this.createNode();
52222
52222
  this.nextToken();
52223
52223
  var previousAllowIn = this.context.allowIn;
52224
52224
  this.context.allowIn = false;
@@ -52229,87 +52229,87 @@ var require_esprima2 = __commonJS({
52229
52229
  if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) {
52230
52230
  this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, "for-in");
52231
52231
  }
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.parseExpression();
52236
- init = null;
52236
+ init2 = null;
52237
52237
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
52238
- init = this.finalize(init, new Node.VariableDeclaration(declarations, "var"));
52238
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
52239
52239
  this.nextToken();
52240
- left = init;
52240
+ left = init2;
52241
52241
  right = this.parseAssignmentExpression();
52242
- init = null;
52242
+ init2 = null;
52243
52243
  forIn = false;
52244
52244
  } else {
52245
- init = this.finalize(init, new Node.VariableDeclaration(declarations, "var"));
52245
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, "var"));
52246
52246
  this.expect(";");
52247
52247
  }
52248
52248
  } else if (this.matchKeyword("const") || this.matchKeyword("let")) {
52249
- init = this.createNode();
52249
+ init2 = this.createNode();
52250
52250
  var kind = this.nextToken().value;
52251
52251
  if (!this.context.strict && this.lookahead.value === "in") {
52252
- init = this.finalize(init, new Node.Identifier(kind));
52252
+ init2 = this.finalize(init2, new Node.Identifier(kind));
52253
52253
  this.nextToken();
52254
- left = init;
52254
+ left = init2;
52255
52255
  right = this.parseExpression();
52256
- init = null;
52256
+ init2 = null;
52257
52257
  } else {
52258
52258
  var previousAllowIn = this.context.allowIn;
52259
52259
  this.context.allowIn = false;
52260
52260
  var declarations = this.parseBindingList(kind, { inFor: true });
52261
52261
  this.context.allowIn = previousAllowIn;
52262
52262
  if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword("in")) {
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.parseExpression();
52267
- init = null;
52267
+ init2 = null;
52268
52268
  } else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword("of")) {
52269
- init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
52269
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
52270
52270
  this.nextToken();
52271
- left = init;
52271
+ left = init2;
52272
52272
  right = this.parseAssignmentExpression();
52273
- init = null;
52273
+ init2 = null;
52274
52274
  forIn = false;
52275
52275
  } else {
52276
52276
  this.consumeSemicolon();
52277
- init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
52277
+ init2 = this.finalize(init2, new Node.VariableDeclaration(declarations, kind));
52278
52278
  }
52279
52279
  }
52280
52280
  } else {
52281
52281
  var initStartToken = this.lookahead;
52282
52282
  var previousAllowIn = this.context.allowIn;
52283
52283
  this.context.allowIn = false;
52284
- init = this.inheritCoverGrammar(this.parseAssignmentExpression);
52284
+ init2 = this.inheritCoverGrammar(this.parseAssignmentExpression);
52285
52285
  this.context.allowIn = previousAllowIn;
52286
52286
  if (this.matchKeyword("in")) {
52287
- if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
52287
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
52288
52288
  this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
52289
52289
  }
52290
52290
  this.nextToken();
52291
- this.reinterpretExpressionAsPattern(init);
52292
- left = init;
52291
+ this.reinterpretExpressionAsPattern(init2);
52292
+ left = init2;
52293
52293
  right = this.parseExpression();
52294
- init = null;
52294
+ init2 = null;
52295
52295
  } else if (this.matchContextualKeyword("of")) {
52296
- if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
52296
+ if (!this.context.isAssignmentTarget || init2.type === syntax_1.Syntax.AssignmentExpression) {
52297
52297
  this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
52298
52298
  }
52299
52299
  this.nextToken();
52300
- this.reinterpretExpressionAsPattern(init);
52301
- left = init;
52300
+ this.reinterpretExpressionAsPattern(init2);
52301
+ left = init2;
52302
52302
  right = this.parseAssignmentExpression();
52303
- init = null;
52303
+ init2 = null;
52304
52304
  forIn = false;
52305
52305
  } else {
52306
52306
  if (this.match(",")) {
52307
- var initSeq = [init];
52307
+ var initSeq = [init2];
52308
52308
  while (this.match(",")) {
52309
52309
  this.nextToken();
52310
52310
  initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
52311
52311
  }
52312
- init = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
52312
+ init2 = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
52313
52313
  }
52314
52314
  this.expect(";");
52315
52315
  }
@@ -52335,7 +52335,7 @@ var require_esprima2 = __commonJS({
52335
52335
  body = this.isolateCoverGrammar(this.parseStatement);
52336
52336
  this.context.inIteration = previousInIteration;
52337
52337
  }
52338
- 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));
52338
+ 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));
52339
52339
  };
52340
52340
  Parser2.prototype.parseContinueStatement = function() {
52341
52341
  var node = this.createNode();
@@ -57726,10 +57726,10 @@ var require_printer = __commonJS({
57726
57726
  return (0, lines_1.concat)(parts);
57727
57727
  }
57728
57728
  case "ForStatement": {
57729
- var init = path4.call(print13, "init");
57730
- var sep3 = init.length > 1 ? ";\n" : "; ";
57729
+ var init2 = path4.call(print13, "init");
57730
+ var sep3 = init2.length > 1 ? ";\n" : "; ";
57731
57731
  var forParen = "for (";
57732
- var indented = (0, lines_1.fromString)(sep3).join([init, path4.call(print13, "test"), path4.call(print13, "update")]).indentTail(forParen.length);
57732
+ var indented = (0, lines_1.fromString)(sep3).join([init2, path4.call(print13, "test"), path4.call(print13, "update")]).indentTail(forParen.length);
57733
57733
  var head = (0, lines_1.concat)([forParen, indented, ")"]);
57734
57734
  var clause = adjustClause(path4.call(print13, "body"), options);
57735
57735
  parts.push(head);
@@ -69221,23 +69221,23 @@ var validateHeaderValue = typeof http.validateHeaderValue === "function" ? http.
69221
69221
  }
69222
69222
  };
69223
69223
  var Headers = class extends URLSearchParams {
69224
- constructor(init) {
69224
+ constructor(init2) {
69225
69225
  let result = [];
69226
- if (init instanceof Headers) {
69227
- const raw = init.raw();
69226
+ if (init2 instanceof Headers) {
69227
+ const raw = init2.raw();
69228
69228
  for (const [name, values] of Object.entries(raw)) {
69229
69229
  result.push(...values.map((value) => [name, value]));
69230
69230
  }
69231
- } else if (init == null) {
69232
- } else if (typeof init === "object" && !types3.isBoxedPrimitive(init)) {
69233
- const method = init[Symbol.iterator];
69231
+ } else if (init2 == null) {
69232
+ } else if (typeof init2 === "object" && !types3.isBoxedPrimitive(init2)) {
69233
+ const method = init2[Symbol.iterator];
69234
69234
  if (method == null) {
69235
- result.push(...Object.entries(init));
69235
+ result.push(...Object.entries(init2));
69236
69236
  } else {
69237
69237
  if (typeof method !== "function") {
69238
69238
  throw new TypeError("Header pairs must be iterable");
69239
69239
  }
69240
- result = [...init].map((pair) => {
69240
+ result = [...init2].map((pair) => {
69241
69241
  if (typeof pair !== "object" || types3.isBoxedPrimitive(pair)) {
69242
69242
  throw new TypeError("Each header pair must be an iterable object");
69243
69243
  }
@@ -69454,17 +69454,17 @@ var Response2 = class extends Body {
69454
69454
  response[INTERNALS2].type = "error";
69455
69455
  return response;
69456
69456
  }
69457
- static json(data = void 0, init = {}) {
69457
+ static json(data = void 0, init2 = {}) {
69458
69458
  const body = JSON.stringify(data);
69459
69459
  if (body === void 0) {
69460
69460
  throw new TypeError("data is not JSON serializable");
69461
69461
  }
69462
- const headers = new Headers(init && init.headers);
69462
+ const headers = new Headers(init2 && init2.headers);
69463
69463
  if (!headers.has("content-type")) {
69464
69464
  headers.set("content-type", "application/json");
69465
69465
  }
69466
69466
  return new Response2(body, {
69467
- ...init,
69467
+ ...init2,
69468
69468
  headers
69469
69469
  });
69470
69470
  }
@@ -69649,7 +69649,7 @@ var doBadDataWarn = deprecate2(
69649
69649
  "https://github.com/node-fetch/node-fetch/issues/1000 (request)"
69650
69650
  );
69651
69651
  var Request2 = class extends Body {
69652
- constructor(input, init = {}) {
69652
+ constructor(input, init2 = {}) {
69653
69653
  let parsedURL;
69654
69654
  if (isRequest(input)) {
69655
69655
  parsedURL = new URL(input.url);
@@ -69660,21 +69660,21 @@ var Request2 = class extends Body {
69660
69660
  if (parsedURL.username !== "" || parsedURL.password !== "") {
69661
69661
  throw new TypeError(`${parsedURL} is an url with embedded credentials.`);
69662
69662
  }
69663
- let method = init.method || input.method || "GET";
69663
+ let method = init2.method || input.method || "GET";
69664
69664
  if (/^(delete|get|head|options|post|put)$/i.test(method)) {
69665
69665
  method = method.toUpperCase();
69666
69666
  }
69667
- if (!isRequest(init) && "data" in init) {
69667
+ if (!isRequest(init2) && "data" in init2) {
69668
69668
  doBadDataWarn();
69669
69669
  }
69670
- if ((init.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
69670
+ if ((init2.body != null || isRequest(input) && input.body !== null) && (method === "GET" || method === "HEAD")) {
69671
69671
  throw new TypeError("Request with GET/HEAD method cannot have body");
69672
69672
  }
69673
- const inputBody = init.body ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
69673
+ const inputBody = init2.body ? init2.body : isRequest(input) && input.body !== null ? clone(input) : null;
69674
69674
  super(inputBody, {
69675
- size: init.size || input.size || 0
69675
+ size: init2.size || input.size || 0
69676
69676
  });
69677
- const headers = new Headers(init.headers || input.headers || {});
69677
+ const headers = new Headers(init2.headers || input.headers || {});
69678
69678
  if (inputBody !== null && !headers.has("Content-Type")) {
69679
69679
  const contentType = extractContentType(inputBody, this);
69680
69680
  if (contentType) {
@@ -69682,13 +69682,13 @@ var Request2 = class extends Body {
69682
69682
  }
69683
69683
  }
69684
69684
  let signal = isRequest(input) ? input.signal : null;
69685
- if ("signal" in init) {
69686
- signal = init.signal;
69685
+ if ("signal" in init2) {
69686
+ signal = init2.signal;
69687
69687
  }
69688
69688
  if (signal != null && !isAbortSignal(signal)) {
69689
69689
  throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
69690
69690
  }
69691
- let referrer = init.referrer == null ? input.referrer : init.referrer;
69691
+ let referrer = init2.referrer == null ? input.referrer : init2.referrer;
69692
69692
  if (referrer === "") {
69693
69693
  referrer = "no-referrer";
69694
69694
  } else if (referrer) {
@@ -69699,19 +69699,19 @@ var Request2 = class extends Body {
69699
69699
  }
69700
69700
  this[INTERNALS3] = {
69701
69701
  method,
69702
- redirect: init.redirect || input.redirect || "follow",
69702
+ redirect: init2.redirect || input.redirect || "follow",
69703
69703
  headers,
69704
69704
  parsedURL,
69705
69705
  signal,
69706
69706
  referrer
69707
69707
  };
69708
- this.follow = init.follow === void 0 ? input.follow === void 0 ? 20 : input.follow : init.follow;
69709
- this.compress = init.compress === void 0 ? input.compress === void 0 ? true : input.compress : init.compress;
69710
- this.counter = init.counter || input.counter || 0;
69711
- this.agent = init.agent || input.agent;
69712
- this.highWaterMark = init.highWaterMark || input.highWaterMark || 16384;
69713
- this.insecureHTTPParser = init.insecureHTTPParser || input.insecureHTTPParser || false;
69714
- this.referrerPolicy = init.referrerPolicy || input.referrerPolicy || "";
69708
+ this.follow = init2.follow === void 0 ? input.follow === void 0 ? 20 : input.follow : init2.follow;
69709
+ this.compress = init2.compress === void 0 ? input.compress === void 0 ? true : input.compress : init2.compress;
69710
+ this.counter = init2.counter || input.counter || 0;
69711
+ this.agent = init2.agent || input.agent;
69712
+ this.highWaterMark = init2.highWaterMark || input.highWaterMark || 16384;
69713
+ this.insecureHTTPParser = init2.insecureHTTPParser || input.insecureHTTPParser || false;
69714
+ this.referrerPolicy = init2.referrerPolicy || input.referrerPolicy || "";
69715
69715
  }
69716
69716
  get method() {
69717
69717
  return this[INTERNALS3].method;
@@ -75093,14 +75093,14 @@ var BIGINT = 8;
75093
75093
 
75094
75094
  // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
75095
75095
  var env = typeof self === "object" ? self : globalThis;
75096
- var deserializer = ($, _) => {
75096
+ var deserializer = ($2, _) => {
75097
75097
  const as = (out, index) => {
75098
- $.set(index, out);
75098
+ $2.set(index, out);
75099
75099
  return out;
75100
75100
  };
75101
75101
  const unpair = (index) => {
75102
- if ($.has(index))
75103
- return $.get(index);
75102
+ if ($2.has(index))
75103
+ return $2.get(index);
75104
75104
  const [type, value] = _[index];
75105
75105
  switch (type) {
75106
75106
  case PRIMITIVE:
@@ -75181,15 +75181,15 @@ var typeOf = (value) => {
75181
75181
  return [OBJECT, asString];
75182
75182
  };
75183
75183
  var shouldSkip = ([TYPE2, type]) => TYPE2 === PRIMITIVE && (type === "function" || type === "symbol");
75184
- var serializer = (strict, json, $, _) => {
75184
+ var serializer = (strict, json, $2, _) => {
75185
75185
  const as = (out, value) => {
75186
75186
  const index = _.push(out) - 1;
75187
- $.set(value, index);
75187
+ $2.set(value, index);
75188
75188
  return index;
75189
75189
  };
75190
75190
  const pair = (value) => {
75191
- if ($.has(value))
75192
- return $.get(value);
75191
+ if ($2.has(value))
75192
+ return $2.get(value);
75193
75193
  let [TYPE2, type] = typeOf(value);
75194
75194
  switch (TYPE2) {
75195
75195
  case PRIMITIVE: {
@@ -78089,6 +78089,11 @@ export * from "${module}"
78089
78089
  module: "./" + path_exports.relative(config2.rootDir, config2.pluginRuntimeDirectory(plugin2.name))
78090
78090
  });
78091
78091
  }
78092
+ if (plugin2.staticRuntime) {
78093
+ indexContent += exportStarFrom2({
78094
+ module: "./" + path_exports.relative(config2.rootDir, config2.pluginStaticRuntimeDirectory(plugin2.name))
78095
+ });
78096
+ }
78092
78097
  }
78093
78098
  await fs_exports.writeFile(config2.typeIndexPath, indexContent);
78094
78099
  const missingScalarNames = [...missingScalars].filter(
@@ -82979,6 +82984,57 @@ function logStyled(kind, stat3, logLevel, plugin2) {
82979
82984
 
82980
82985
  // src/vite/houdini.ts
82981
82986
  import * as graphql34 from "graphql";
82987
+
82988
+ // ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/colors.mjs
82989
+ var FORCE_COLOR;
82990
+ var NODE_DISABLE_COLORS;
82991
+ var NO_COLOR;
82992
+ var TERM;
82993
+ var isTTY = true;
82994
+ if (typeof process !== "undefined") {
82995
+ ({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
82996
+ isTTY = process.stdout && process.stdout.isTTY;
82997
+ }
82998
+ var $ = {
82999
+ enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY)
83000
+ };
83001
+ function init(x2, y) {
83002
+ let rgx = new RegExp(`\\x1b\\[${y}m`, "g");
83003
+ let open = `\x1B[${x2}m`, close = `\x1B[${y}m`;
83004
+ return function(txt) {
83005
+ if (!$.enabled || txt == null)
83006
+ return txt;
83007
+ return open + (!!~("" + txt).indexOf(close) ? txt.replace(rgx, close + open) : txt) + close;
83008
+ };
83009
+ }
83010
+ var reset6 = init(0, 0);
83011
+ var bold6 = init(1, 22);
83012
+ var dim6 = init(2, 22);
83013
+ var italic6 = init(3, 23);
83014
+ var underline6 = init(4, 24);
83015
+ var inverse6 = init(7, 27);
83016
+ var hidden6 = init(8, 28);
83017
+ var strikethrough6 = init(9, 29);
83018
+ var black6 = init(30, 39);
83019
+ var red6 = init(31, 39);
83020
+ var green6 = init(32, 39);
83021
+ var yellow6 = init(33, 39);
83022
+ var blue6 = init(34, 39);
83023
+ var magenta6 = init(35, 39);
83024
+ var cyan6 = init(36, 39);
83025
+ var white6 = init(37, 39);
83026
+ var gray6 = init(90, 39);
83027
+ var grey = init(90, 39);
83028
+ var bgBlack6 = init(40, 49);
83029
+ var bgRed6 = init(41, 49);
83030
+ var bgGreen6 = init(42, 49);
83031
+ var bgYellow6 = init(43, 49);
83032
+ var bgBlue6 = init(44, 49);
83033
+ var bgMagenta6 = init(45, 49);
83034
+ var bgCyan6 = init(46, 49);
83035
+ var bgWhite6 = init(47, 49);
83036
+
83037
+ // src/vite/houdini.ts
82982
83038
  var config;
82983
83039
  var viteConfig;
82984
83040
  var viteEnv;
@@ -83118,6 +83174,19 @@ function Plugin(opts = {}) {
83118
83174
  },
83119
83175
  async configureServer(server) {
83120
83176
  devServer = true;
83177
+ if (config.plugins.some((plugin2) => plugin2.name === "houdini-svelte")) {
83178
+ console.log(
83179
+ `${yellow6(
83180
+ "\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"
83181
+ )}`
83182
+ );
83183
+ } else {
83184
+ console.log(
83185
+ `${yellow6(
83186
+ "\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"
83187
+ )}`
83188
+ );
83189
+ }
83121
83190
  await writeTsConfig(config);
83122
83191
  if (config.localSchema) {
83123
83192
  try {
@@ -83307,21 +83376,21 @@ function find_exported_fn(body, name) {
83307
83376
  continue;
83308
83377
  }
83309
83378
  const declaration = value.declarations[0];
83310
- let { init } = declaration;
83311
- if (!init) {
83379
+ let { init: init2 } = declaration;
83380
+ if (!init2) {
83312
83381
  continue;
83313
83382
  }
83314
- if (init.type === "TSSatisfiesExpression") {
83315
- init = init.expression;
83383
+ if (init2.type === "TSSatisfiesExpression") {
83384
+ init2 = init2.expression;
83316
83385
  }
83317
- if (init.type === "CallExpression" && init.arguments[0] && (init.arguments[0].type === "FunctionExpression" || init.arguments[0].type === "ArrowFunctionExpression")) {
83318
- init = init.arguments[0];
83386
+ if (init2.type === "CallExpression" && init2.arguments[0] && (init2.arguments[0].type === "FunctionExpression" || init2.arguments[0].type === "ArrowFunctionExpression")) {
83387
+ init2 = init2.arguments[0];
83319
83388
  }
83320
- if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
83321
- return { declaration: init, export: exportDeclaration };
83389
+ if (init2.type === "FunctionExpression" || init2.type === "ArrowFunctionExpression") {
83390
+ return { declaration: init2, export: exportDeclaration };
83322
83391
  }
83323
- if (init.type === "Identifier" || init.type === "CallExpression") {
83324
- return { declaration: init, export: exportDeclaration };
83392
+ if (init2.type === "Identifier" || init2.type === "CallExpression") {
83393
+ return { declaration: init2, export: exportDeclaration };
83325
83394
  }
83326
83395
  } else {
83327
83396
  continue;