houdini 1.1.3 → 1.1.4

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.
@@ -1984,16 +1984,16 @@ var require_GraphQLError = __commonJS({
1984
1984
  return obj && obj.__esModule ? obj : { default: obj };
1985
1985
  }
1986
1986
  function ownKeys(object, enumerableOnly) {
1987
- var keys = Object.keys(object);
1987
+ var keys2 = Object.keys(object);
1988
1988
  if (Object.getOwnPropertySymbols) {
1989
1989
  var symbols = Object.getOwnPropertySymbols(object);
1990
1990
  if (enumerableOnly)
1991
1991
  symbols = symbols.filter(function(sym) {
1992
1992
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1993
1993
  });
1994
- keys.push.apply(keys, symbols);
1994
+ keys2.push.apply(keys2, symbols);
1995
1995
  }
1996
- return keys;
1996
+ return keys2;
1997
1997
  }
1998
1998
  function _objectSpread(target) {
1999
1999
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -2230,7 +2230,7 @@ var require_GraphQLError = __commonJS({
2230
2230
  }
2231
2231
  _createClass(GraphQLError5, [{
2232
2232
  key: "toString",
2233
- value: function toString() {
2233
+ value: function toString2() {
2234
2234
  return printError(this);
2235
2235
  }
2236
2236
  }, {
@@ -2552,14 +2552,14 @@ var require_inspect = __commonJS({
2552
2552
  return formatObject2(value, seenValues);
2553
2553
  }
2554
2554
  function formatObject2(object, seenValues) {
2555
- var keys = Object.keys(object);
2556
- if (keys.length === 0) {
2555
+ var keys2 = Object.keys(object);
2556
+ if (keys2.length === 0) {
2557
2557
  return "{}";
2558
2558
  }
2559
2559
  if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
2560
2560
  return "[" + getObjectTag2(object) + "]";
2561
2561
  }
2562
- var properties = keys.map(function(key) {
2562
+ var properties = keys2.map(function(key) {
2563
2563
  var value = formatValue2(object[key], seenValues);
2564
2564
  return key + ": " + value;
2565
2565
  });
@@ -4224,7 +4224,7 @@ var require_visitor = __commonJS({
4224
4224
  var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
4225
4225
  var stack = void 0;
4226
4226
  var inArray = Array.isArray(root);
4227
- var keys = [root];
4227
+ var keys2 = [root];
4228
4228
  var index = -1;
4229
4229
  var edits = [];
4230
4230
  var node = void 0;
@@ -4235,7 +4235,7 @@ var require_visitor = __commonJS({
4235
4235
  var newRoot = root;
4236
4236
  do {
4237
4237
  index++;
4238
- var isLeaving = index === keys.length;
4238
+ var isLeaving = index === keys2.length;
4239
4239
  var isEdited = isLeaving && edits.length !== 0;
4240
4240
  if (isLeaving) {
4241
4241
  key = ancestors.length === 0 ? void 0 : path2[path2.length - 1];
@@ -4268,12 +4268,12 @@ var require_visitor = __commonJS({
4268
4268
  }
4269
4269
  }
4270
4270
  index = stack.index;
4271
- keys = stack.keys;
4271
+ keys2 = stack.keys;
4272
4272
  edits = stack.edits;
4273
4273
  inArray = stack.inArray;
4274
4274
  stack = stack.prev;
4275
4275
  } else {
4276
- key = parent ? inArray ? index : keys[index] : void 0;
4276
+ key = parent ? inArray ? index : keys2[index] : void 0;
4277
4277
  node = parent ? parent[key] : newRoot;
4278
4278
  if (node === null || node === void 0) {
4279
4279
  continue;
@@ -4321,12 +4321,12 @@ var require_visitor = __commonJS({
4321
4321
  stack = {
4322
4322
  inArray,
4323
4323
  index,
4324
- keys,
4324
+ keys: keys2,
4325
4325
  edits,
4326
4326
  prev: stack
4327
4327
  };
4328
4328
  inArray = Array.isArray(node);
4329
- keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
4329
+ keys2 = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
4330
4330
  index = -1;
4331
4331
  edits = [];
4332
4332
  if (parent) {
@@ -5309,7 +5309,7 @@ var require_definition = __commonJS({
5309
5309
  return new GraphQLList6(ofType);
5310
5310
  }
5311
5311
  }
5312
- GraphQLList6.prototype.toString = function toString() {
5312
+ GraphQLList6.prototype.toString = function toString2() {
5313
5313
  return "[" + String(this.ofType) + "]";
5314
5314
  };
5315
5315
  GraphQLList6.prototype.toJSON = function toJSON() {
@@ -5328,7 +5328,7 @@ var require_definition = __commonJS({
5328
5328
  return new GraphQLNonNull6(ofType);
5329
5329
  }
5330
5330
  }
5331
- GraphQLNonNull6.prototype.toString = function toString() {
5331
+ GraphQLNonNull6.prototype.toString = function toString2() {
5332
5332
  return String(this.ofType) + "!";
5333
5333
  };
5334
5334
  GraphQLNonNull6.prototype.toJSON = function toJSON() {
@@ -5424,7 +5424,7 @@ var require_definition = __commonJS({
5424
5424
  extensionASTNodes: (_this$extensionASTNod = this.extensionASTNodes) !== null && _this$extensionASTNod !== void 0 ? _this$extensionASTNod : []
5425
5425
  };
5426
5426
  };
5427
- _proto.toString = function toString() {
5427
+ _proto.toString = function toString2() {
5428
5428
  return this.name;
5429
5429
  };
5430
5430
  _proto.toJSON = function toJSON() {
@@ -5478,7 +5478,7 @@ var require_definition = __commonJS({
5478
5478
  extensionASTNodes: this.extensionASTNodes || []
5479
5479
  };
5480
5480
  };
5481
- _proto2.toString = function toString() {
5481
+ _proto2.toString = function toString2() {
5482
5482
  return this.name;
5483
5483
  };
5484
5484
  _proto2.toJSON = function toJSON() {
@@ -5609,7 +5609,7 @@ var require_definition = __commonJS({
5609
5609
  extensionASTNodes: (_this$extensionASTNod2 = this.extensionASTNodes) !== null && _this$extensionASTNod2 !== void 0 ? _this$extensionASTNod2 : []
5610
5610
  };
5611
5611
  };
5612
- _proto3.toString = function toString() {
5612
+ _proto3.toString = function toString2() {
5613
5613
  return this.name;
5614
5614
  };
5615
5615
  _proto3.toJSON = function toJSON() {
@@ -5656,7 +5656,7 @@ var require_definition = __commonJS({
5656
5656
  extensionASTNodes: (_this$extensionASTNod3 = this.extensionASTNodes) !== null && _this$extensionASTNod3 !== void 0 ? _this$extensionASTNod3 : []
5657
5657
  };
5658
5658
  };
5659
- _proto4.toString = function toString() {
5659
+ _proto4.toString = function toString2() {
5660
5660
  return this.name;
5661
5661
  };
5662
5662
  _proto4.toJSON = function toJSON() {
@@ -5700,7 +5700,7 @@ var require_definition = __commonJS({
5700
5700
  _proto5.getValue = function getValue(name) {
5701
5701
  return this._nameLookup[name];
5702
5702
  };
5703
- _proto5.serialize = function serialize(outputValue) {
5703
+ _proto5.serialize = function serialize2(outputValue) {
5704
5704
  var enumValue = this._valueLookup.get(outputValue);
5705
5705
  if (enumValue === void 0) {
5706
5706
  throw new _GraphQLError.GraphQLError('Enum "'.concat(this.name, '" cannot represent value: ').concat((0, _inspect.default)(outputValue)));
@@ -5752,7 +5752,7 @@ var require_definition = __commonJS({
5752
5752
  extensionASTNodes: (_this$extensionASTNod4 = this.extensionASTNodes) !== null && _this$extensionASTNod4 !== void 0 ? _this$extensionASTNod4 : []
5753
5753
  };
5754
5754
  };
5755
- _proto5.toString = function toString() {
5755
+ _proto5.toString = function toString2() {
5756
5756
  return this.name;
5757
5757
  };
5758
5758
  _proto5.toJSON = function toJSON() {
@@ -5830,7 +5830,7 @@ var require_definition = __commonJS({
5830
5830
  extensionASTNodes: (_this$extensionASTNod5 = this.extensionASTNodes) !== null && _this$extensionASTNod5 !== void 0 ? _this$extensionASTNod5 : []
5831
5831
  };
5832
5832
  };
5833
- _proto6.toString = function toString() {
5833
+ _proto6.toString = function toString2() {
5834
5834
  return this.name;
5835
5835
  };
5836
5836
  _proto6.toJSON = function toJSON() {
@@ -7084,7 +7084,7 @@ var require_directives = __commonJS({
7084
7084
  astNode: this.astNode
7085
7085
  };
7086
7086
  };
7087
- _proto.toString = function toString() {
7087
+ _proto.toString = function toString2() {
7088
7088
  return "@" + this.name;
7089
7089
  };
7090
7090
  _proto.toJSON = function toJSON() {
@@ -9021,16 +9021,16 @@ var require_KnownArgumentNamesRule = __commonJS({
9021
9021
  return obj && obj.__esModule ? obj : { default: obj };
9022
9022
  }
9023
9023
  function ownKeys(object, enumerableOnly) {
9024
- var keys = Object.keys(object);
9024
+ var keys2 = Object.keys(object);
9025
9025
  if (Object.getOwnPropertySymbols) {
9026
9026
  var symbols = Object.getOwnPropertySymbols(object);
9027
9027
  if (enumerableOnly)
9028
9028
  symbols = symbols.filter(function(sym) {
9029
9029
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9030
9030
  });
9031
- keys.push.apply(keys, symbols);
9031
+ keys2.push.apply(keys2, symbols);
9032
9032
  }
9033
- return keys;
9033
+ return keys2;
9034
9034
  }
9035
9035
  function _objectSpread(target) {
9036
9036
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -9277,16 +9277,16 @@ var require_ProvidedRequiredArgumentsRule = __commonJS({
9277
9277
  return obj && obj.__esModule ? obj : { default: obj };
9278
9278
  }
9279
9279
  function ownKeys(object, enumerableOnly) {
9280
- var keys = Object.keys(object);
9280
+ var keys2 = Object.keys(object);
9281
9281
  if (Object.getOwnPropertySymbols) {
9282
9282
  var symbols = Object.getOwnPropertySymbols(object);
9283
9283
  if (enumerableOnly)
9284
9284
  symbols = symbols.filter(function(sym) {
9285
9285
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9286
9286
  });
9287
- keys.push.apply(keys, symbols);
9287
+ keys2.push.apply(keys2, symbols);
9288
9288
  }
9289
- return keys;
9289
+ return keys2;
9290
9290
  }
9291
9291
  function _objectSpread(target) {
9292
9292
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -10544,13 +10544,13 @@ var require_promiseForObject = __commonJS({
10544
10544
  });
10545
10545
  exports.default = promiseForObject;
10546
10546
  function promiseForObject(object) {
10547
- var keys = Object.keys(object);
10548
- var valuesAndPromises = keys.map(function(name) {
10547
+ var keys2 = Object.keys(object);
10548
+ var valuesAndPromises = keys2.map(function(name) {
10549
10549
  return object[name];
10550
10550
  });
10551
10551
  return Promise.all(valuesAndPromises).then(function(values) {
10552
10552
  return values.reduce(function(resolvedObject, value, i2) {
10553
- resolvedObject[keys[i2]] = value;
10553
+ resolvedObject[keys2[i2]] = value;
10554
10554
  return resolvedObject;
10555
10555
  }, /* @__PURE__ */ Object.create(null));
10556
10556
  });
@@ -13002,16 +13002,16 @@ var require_getIntrospectionQuery = __commonJS({
13002
13002
  });
13003
13003
  exports.getIntrospectionQuery = getIntrospectionQuery3;
13004
13004
  function ownKeys(object, enumerableOnly) {
13005
- var keys = Object.keys(object);
13005
+ var keys2 = Object.keys(object);
13006
13006
  if (Object.getOwnPropertySymbols) {
13007
13007
  var symbols = Object.getOwnPropertySymbols(object);
13008
13008
  if (enumerableOnly)
13009
13009
  symbols = symbols.filter(function(sym) {
13010
13010
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13011
13011
  });
13012
- keys.push.apply(keys, symbols);
13012
+ keys2.push.apply(keys2, symbols);
13013
13013
  }
13014
- return keys;
13014
+ return keys2;
13015
13015
  }
13016
13016
  function _objectSpread(target) {
13017
13017
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -13104,16 +13104,16 @@ var require_introspectionFromSchema = __commonJS({
13104
13104
  return obj && obj.__esModule ? obj : { default: obj };
13105
13105
  }
13106
13106
  function ownKeys(object, enumerableOnly) {
13107
- var keys = Object.keys(object);
13107
+ var keys2 = Object.keys(object);
13108
13108
  if (Object.getOwnPropertySymbols) {
13109
13109
  var symbols = Object.getOwnPropertySymbols(object);
13110
13110
  if (enumerableOnly)
13111
13111
  symbols = symbols.filter(function(sym) {
13112
13112
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13113
13113
  });
13114
- keys.push.apply(keys, symbols);
13114
+ keys2.push.apply(keys2, symbols);
13115
13115
  }
13116
- return keys;
13116
+ return keys2;
13117
13117
  }
13118
13118
  function _objectSpread(target) {
13119
13119
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -13445,16 +13445,16 @@ var require_extendSchema = __commonJS({
13445
13445
  return obj && obj.__esModule ? obj : { default: obj };
13446
13446
  }
13447
13447
  function ownKeys(object, enumerableOnly) {
13448
- var keys = Object.keys(object);
13448
+ var keys2 = Object.keys(object);
13449
13449
  if (Object.getOwnPropertySymbols) {
13450
13450
  var symbols = Object.getOwnPropertySymbols(object);
13451
13451
  if (enumerableOnly)
13452
13452
  symbols = symbols.filter(function(sym) {
13453
13453
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13454
13454
  });
13455
- keys.push.apply(keys, symbols);
13455
+ keys2.push.apply(keys2, symbols);
13456
13456
  }
13457
- return keys;
13457
+ return keys2;
13458
13458
  }
13459
13459
  function _objectSpread(target) {
13460
13460
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -14045,16 +14045,16 @@ var require_lexicographicSortSchema = __commonJS({
14045
14045
  return obj && obj.__esModule ? obj : { default: obj };
14046
14046
  }
14047
14047
  function ownKeys(object, enumerableOnly) {
14048
- var keys = Object.keys(object);
14048
+ var keys2 = Object.keys(object);
14049
14049
  if (Object.getOwnPropertySymbols) {
14050
14050
  var symbols = Object.getOwnPropertySymbols(object);
14051
14051
  if (enumerableOnly)
14052
14052
  symbols = symbols.filter(function(sym) {
14053
14053
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14054
14054
  });
14055
- keys.push.apply(keys, symbols);
14055
+ keys2.push.apply(keys2, symbols);
14056
14056
  }
14057
- return keys;
14057
+ return keys2;
14058
14058
  }
14059
14059
  function _objectSpread(target) {
14060
14060
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -14595,16 +14595,16 @@ var require_findBreakingChanges = __commonJS({
14595
14595
  return obj && obj.__esModule ? obj : { default: obj };
14596
14596
  }
14597
14597
  function ownKeys(object, enumerableOnly) {
14598
- var keys = Object.keys(object);
14598
+ var keys2 = Object.keys(object);
14599
14599
  if (Object.getOwnPropertySymbols) {
14600
14600
  var symbols = Object.getOwnPropertySymbols(object);
14601
14601
  if (enumerableOnly)
14602
14602
  symbols = symbols.filter(function(sym) {
14603
14603
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14604
14604
  });
14605
- keys.push.apply(keys, symbols);
14605
+ keys2.push.apply(keys2, symbols);
14606
14606
  }
14607
- return keys;
14607
+ return keys2;
14608
14608
  }
14609
14609
  function _objectSpread(target) {
14610
14610
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -17601,9 +17601,9 @@ var require_legacy_streams = __commonJS({
17601
17601
  this.mode = 438;
17602
17602
  this.bufferSize = 64 * 1024;
17603
17603
  options = options || {};
17604
- var keys = Object.keys(options);
17605
- for (var index = 0, length = keys.length; index < length; index++) {
17606
- var key = keys[index];
17604
+ var keys2 = Object.keys(options);
17605
+ for (var index = 0, length = keys2.length; index < length; index++) {
17606
+ var key = keys2[index];
17607
17607
  this[key] = options[key];
17608
17608
  }
17609
17609
  if (this.encoding)
@@ -17651,9 +17651,9 @@ var require_legacy_streams = __commonJS({
17651
17651
  this.mode = 438;
17652
17652
  this.bytesWritten = 0;
17653
17653
  options = options || {};
17654
- var keys = Object.keys(options);
17655
- for (var index = 0, length = keys.length; index < length; index++) {
17656
- var key = keys[index];
17654
+ var keys2 = Object.keys(options);
17655
+ for (var index = 0, length = keys2.length; index < length; index++) {
17656
+ var key = keys2[index];
17657
17657
  this[key] = options[key];
17658
17658
  }
17659
17659
  if (this.start !== void 0) {
@@ -20870,10 +20870,10 @@ var require_glob = __commonJS({
20870
20870
  if (add === null || typeof add !== "object") {
20871
20871
  return origin;
20872
20872
  }
20873
- var keys = Object.keys(add);
20874
- var i2 = keys.length;
20873
+ var keys2 = Object.keys(add);
20874
+ var i2 = keys2.length;
20875
20875
  while (i2--) {
20876
- origin[keys[i2]] = add[keys[i2]];
20876
+ origin[keys2[i2]] = add[keys2[i2]];
20877
20877
  }
20878
20878
  return origin;
20879
20879
  }
@@ -29288,12 +29288,12 @@ var require_lib3 = __commonJS({
29288
29288
  SyntaxError: "BABEL_PARSER_SYNTAX_ERROR",
29289
29289
  SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
29290
29290
  };
29291
- var reflect = (keys, last = keys.length - 1) => ({
29291
+ var reflect = (keys2, last = keys2.length - 1) => ({
29292
29292
  get() {
29293
- return keys.reduce((object, key) => object[key], this);
29293
+ return keys2.reduce((object, key) => object[key], this);
29294
29294
  },
29295
29295
  set(value) {
29296
- keys.reduce(
29296
+ keys2.reduce(
29297
29297
  (item, key, i2) => i2 === last ? item[key] = value : item[key],
29298
29298
  this
29299
29299
  );
@@ -31226,9 +31226,9 @@ var require_lib3 = __commonJS({
31226
31226
  }
31227
31227
  clone(skipArrays) {
31228
31228
  const state = new State();
31229
- const keys = Object.keys(this);
31230
- for (let i2 = 0, length = keys.length; i2 < length; i2++) {
31231
- const key = keys[i2];
31229
+ const keys2 = Object.keys(this);
31230
+ for (let i2 = 0, length = keys2.length; i2 < length; i2++) {
31231
+ const key = keys2[i2];
31232
31232
  let val = this[key];
31233
31233
  if (!skipArrays && Array.isArray(val)) {
31234
31234
  val = val.slice();
@@ -33133,9 +33133,9 @@ var require_lib3 = __commonJS({
33133
33133
  {
33134
33134
  NodePrototype.__clone = function() {
33135
33135
  const newNode = new Node(void 0, this.start, this.loc.start);
33136
- const keys = Object.keys(this);
33137
- for (let i2 = 0, length = keys.length; i2 < length; i2++) {
33138
- const key = keys[i2];
33136
+ const keys2 = Object.keys(this);
33137
+ for (let i2 = 0, length = keys2.length; i2 < length; i2++) {
33138
+ const key = keys2[i2];
33139
33139
  if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
33140
33140
  newNode[key] = this[key];
33141
33141
  }
@@ -49433,10 +49433,10 @@ var require_util2 = __commonJS({
49433
49433
  var result = {};
49434
49434
  var argc = args.length;
49435
49435
  for (var i2 = 0; i2 < argc; ++i2) {
49436
- var keys = Object.keys(args[i2]);
49437
- var keyCount = keys.length;
49436
+ var keys2 = Object.keys(args[i2]);
49437
+ var keyCount = keys2.length;
49438
49438
  for (var j = 0; j < keyCount; ++j) {
49439
- result[keys[j]] = true;
49439
+ result[keys2[j]] = true;
49440
49440
  }
49441
49441
  }
49442
49442
  return result;
@@ -57096,10 +57096,10 @@ var require_parser2 = __commonJS({
57096
57096
  loc.indent = newIndent;
57097
57097
  this.findTokenRange(loc);
57098
57098
  }
57099
- var keys = Object.keys(node);
57100
- var keyCount = keys.length;
57099
+ var keys2 = Object.keys(node);
57100
+ var keyCount = keys2.length;
57101
57101
  for (var i2 = 0; i2 < keyCount; ++i2) {
57102
- var key = keys[i2];
57102
+ var key = keys2[i2];
57103
57103
  if (key === "loc") {
57104
57104
  copy[key] = node[key];
57105
57105
  } else if (key === "tokens" && node.type === "File") {
@@ -57858,13 +57858,13 @@ var require_patcher = __commonJS({
57858
57858
  if (newPath.needsParens() && !oldPath.hasParens()) {
57859
57859
  return false;
57860
57860
  }
57861
- var keys = (0, util_1.getUnionOfKeys)(oldNode, newNode);
57861
+ var keys2 = (0, util_1.getUnionOfKeys)(oldNode, newNode);
57862
57862
  if (oldNode.type === "File" || newNode.type === "File") {
57863
- delete keys.tokens;
57863
+ delete keys2.tokens;
57864
57864
  }
57865
- delete keys.loc;
57865
+ delete keys2.loc;
57866
57866
  var originalReprintCount = reprints.length;
57867
- for (var k in keys) {
57867
+ for (var k in keys2) {
57868
57868
  if (k.charAt(0) === "_") {
57869
57869
  continue;
57870
57870
  }
@@ -60256,8 +60256,8 @@ var require_kleur = __commonJS({
60256
60256
  }
60257
60257
  return beg + str + end;
60258
60258
  }
60259
- function chain(has, keys) {
60260
- let ctx = { has, keys };
60259
+ function chain(has, keys2) {
60260
+ let ctx = { has, keys: keys2 };
60261
60261
  ctx.reset = $.reset.bind(ctx);
60262
60262
  ctx.bold = $.bold.bind(ctx);
60263
60263
  ctx.dim = $.dim.bind(ctx);
@@ -62781,7 +62781,7 @@ var require_dist = __commonJS({
62781
62781
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js"(exports, module) {
62782
62782
  "use strict";
62783
62783
  function ownKeys(object, enumerableOnly) {
62784
- var keys = Object.keys(object);
62784
+ var keys2 = Object.keys(object);
62785
62785
  if (Object.getOwnPropertySymbols) {
62786
62786
  var symbols = Object.getOwnPropertySymbols(object);
62787
62787
  if (enumerableOnly) {
@@ -62789,9 +62789,9 @@ var require_dist = __commonJS({
62789
62789
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
62790
62790
  });
62791
62791
  }
62792
- keys.push.apply(keys, symbols);
62792
+ keys2.push.apply(keys2, symbols);
62793
62793
  }
62794
- return keys;
62794
+ return keys2;
62795
62795
  }
62796
62796
  function _objectSpread(target) {
62797
62797
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -66001,14 +66001,14 @@ function pushComment(node, entity, field, argument) {
66001
66001
  if (typeof comment !== "string" || comment.length === 0) {
66002
66002
  return;
66003
66003
  }
66004
- const keys = [entity];
66004
+ const keys2 = [entity];
66005
66005
  if (field) {
66006
- keys.push(field);
66006
+ keys2.push(field);
66007
66007
  if (argument) {
66008
- keys.push(argument);
66008
+ keys2.push(argument);
66009
66009
  }
66010
66010
  }
66011
- const path2 = keys.join(".");
66011
+ const path2 = keys2.join(".");
66012
66012
  if (!commentsRegistry[path2]) {
66013
66013
  commentsRegistry[path2] = [];
66014
66014
  }
@@ -66027,14 +66027,14 @@ function hasMultilineItems(maybeArray) {
66027
66027
  function addDescription(cb) {
66028
66028
  return (node, _key, _parent, path2, ancestors) => {
66029
66029
  var _a;
66030
- const keys = [];
66030
+ const keys2 = [];
66031
66031
  const parent = path2.reduce((prev, key2) => {
66032
66032
  if (["fields", "arguments", "values"].includes(key2) && prev.name) {
66033
- keys.push(prev.name.value);
66033
+ keys2.push(prev.name.value);
66034
66034
  }
66035
66035
  return prev[key2];
66036
66036
  }, ancestors[0]);
66037
- const key = [...keys, (_a = parent === null || parent === void 0 ? void 0 : parent.name) === null || _a === void 0 ? void 0 : _a.value].filter(Boolean).join(".");
66037
+ const key = [...keys2, (_a = parent === null || parent === void 0 ? void 0 : parent.name) === null || _a === void 0 ? void 0 : _a.value].filter(Boolean).join(".");
66038
66038
  const items = [];
66039
66039
  if (node.kind.includes("Definition") && commentsRegistry[key]) {
66040
66040
  items.push(...commentsRegistry[key]);
@@ -68570,9 +68570,9 @@ var fragmentKey = " $fragments";
68570
68570
 
68571
68571
  // src/runtime/lib/key.ts
68572
68572
  var computeKey = ({ field, args }) => {
68573
- const keys = Object.keys(args ?? {});
68574
- keys.sort();
68575
- return args && keys.length > 0 ? `${field}(${keys.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
68573
+ const keys2 = Object.keys(args ?? {});
68574
+ keys2.sort();
68575
+ return args && keys2.length > 0 ? `${field}(${keys2.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
68576
68576
  };
68577
68577
  var stringifyObjectWithNoQuotesOnKeys = (obj_from_json) => {
68578
68578
  if (Array.isArray(obj_from_json)) {
@@ -71780,7 +71780,8 @@ var CacheInternal = class {
71780
71780
  parent = rootID,
71781
71781
  variables,
71782
71782
  stepsFromConnection = null,
71783
- ignoreMasking
71783
+ ignoreMasking,
71784
+ fullCheck = false
71784
71785
  }) {
71785
71786
  if (parent === null) {
71786
71787
  return { data: null, partial: false, stale: false, hasData: true };
@@ -71805,11 +71806,28 @@ var CacheInternal = class {
71805
71806
  let targetSelection = getFieldsForType(selection, typename);
71806
71807
  for (const [
71807
71808
  attributeName,
71808
- { type, keyRaw, selection: fieldSelection, nullable, list, visible }
71809
+ { type, keyRaw, selection: fieldSelection, nullable, list, visible, directives }
71809
71810
  ] of Object.entries(targetSelection)) {
71810
- if (!visible && !ignoreMasking) {
71811
+ if (!visible && !ignoreMasking && !fullCheck) {
71811
71812
  continue;
71812
71813
  }
71814
+ const includeDirective = directives?.find((d) => {
71815
+ return d.name === "include";
71816
+ });
71817
+ if (includeDirective) {
71818
+ if (!evaluateFragmentVariables(includeDirective.arguments, variables ?? {})["if"]) {
71819
+ continue;
71820
+ }
71821
+ }
71822
+ const skipDirective = directives?.find((d) => {
71823
+ return d.name === "skip";
71824
+ });
71825
+ if (skipDirective) {
71826
+ if (evaluateFragmentVariables(skipDirective.arguments, variables ?? {})["if"]) {
71827
+ continue;
71828
+ }
71829
+ }
71830
+ const fieldTarget = visible || ignoreMasking ? target : {};
71813
71831
  const key = evaluateKey(keyRaw, variables);
71814
71832
  const { value } = this.storage.get(parent, key);
71815
71833
  const dt_field = this.staleManager.getFieldTime(parent, key);
@@ -71832,16 +71850,16 @@ var CacheInternal = class {
71832
71850
  partial = true;
71833
71851
  }
71834
71852
  if (typeof value === "undefined" || value === null) {
71835
- target[attributeName] = null;
71853
+ fieldTarget[attributeName] = null;
71836
71854
  if (typeof value !== "undefined") {
71837
71855
  hasData = true;
71838
71856
  }
71839
71857
  } else if (!fieldSelection) {
71840
71858
  const fnUnmarshal = this.config?.scalars?.[type]?.unmarshal;
71841
71859
  if (fnUnmarshal) {
71842
- target[attributeName] = fnUnmarshal(value);
71860
+ fieldTarget[attributeName] = fnUnmarshal(value);
71843
71861
  } else {
71844
- target[attributeName] = value;
71862
+ fieldTarget[attributeName] = value;
71845
71863
  }
71846
71864
  hasData = true;
71847
71865
  } else if (Array.isArray(value)) {
@@ -71850,9 +71868,10 @@ var CacheInternal = class {
71850
71868
  variables,
71851
71869
  linkedList: value,
71852
71870
  stepsFromConnection: nextStep,
71853
- ignoreMasking: !!ignoreMasking
71871
+ ignoreMasking: !!ignoreMasking,
71872
+ fullCheck
71854
71873
  });
71855
- target[attributeName] = listValue.data;
71874
+ fieldTarget[attributeName] = listValue.data;
71856
71875
  if (listValue.partial) {
71857
71876
  partial = true;
71858
71877
  }
@@ -71868,9 +71887,10 @@ var CacheInternal = class {
71868
71887
  selection: fieldSelection,
71869
71888
  variables,
71870
71889
  stepsFromConnection: nextStep,
71871
- ignoreMasking
71890
+ ignoreMasking,
71891
+ fullCheck
71872
71892
  });
71873
- target[attributeName] = objectFields.data;
71893
+ fieldTarget[attributeName] = objectFields.data;
71874
71894
  if (objectFields.partial) {
71875
71895
  partial = true;
71876
71896
  }
@@ -71881,7 +71901,7 @@ var CacheInternal = class {
71881
71901
  hasData = true;
71882
71902
  }
71883
71903
  }
71884
- if (target[attributeName] === null && !nullable && !embeddedCursor) {
71904
+ if (fieldTarget[attributeName] === null && !nullable && !embeddedCursor) {
71885
71905
  cascadeNull = true;
71886
71906
  }
71887
71907
  }
@@ -71913,7 +71933,8 @@ var CacheInternal = class {
71913
71933
  variables,
71914
71934
  linkedList,
71915
71935
  stepsFromConnection,
71916
- ignoreMasking
71936
+ ignoreMasking,
71937
+ fullCheck
71917
71938
  }) {
71918
71939
  const result = [];
71919
71940
  let partialData = false;
@@ -71926,7 +71947,8 @@ var CacheInternal = class {
71926
71947
  variables,
71927
71948
  linkedList: entry,
71928
71949
  stepsFromConnection,
71929
- ignoreMasking
71950
+ ignoreMasking,
71951
+ fullCheck
71930
71952
  });
71931
71953
  result.push(nestedValue.data);
71932
71954
  if (nestedValue.partial) {
@@ -71948,7 +71970,8 @@ var CacheInternal = class {
71948
71970
  selection: fields,
71949
71971
  variables,
71950
71972
  stepsFromConnection,
71951
- ignoreMasking
71973
+ ignoreMasking,
71974
+ fullCheck
71952
71975
  });
71953
71976
  result.push(data);
71954
71977
  if (partial) {
@@ -72389,8 +72412,8 @@ var Config = class {
72389
72412
  if (!apiURL) {
72390
72413
  return "";
72391
72414
  }
72392
- const env = await this.getEnv();
72393
- return this.processEnvValues(env, apiURL);
72415
+ const env2 = await this.getEnv();
72416
+ return this.processEnvValues(env2, apiURL);
72394
72417
  }
72395
72418
  get include() {
72396
72419
  if (this.configFile.include) {
@@ -72405,35 +72428,35 @@ var Config = class {
72405
72428
  return this.configFile.plugins?.[name] ?? {};
72406
72429
  }
72407
72430
  async getEnv() {
72408
- let env = process.env;
72431
+ let env2 = process.env;
72409
72432
  for (const plugin2 of this.plugins) {
72410
72433
  if (plugin2.env) {
72411
- env = {
72412
- ...await plugin2.env({ config: this, env })
72434
+ env2 = {
72435
+ ...await plugin2.env({ config: this, env: env2 })
72413
72436
  };
72414
72437
  }
72415
72438
  }
72416
- return env;
72439
+ return env2;
72417
72440
  }
72418
- processEnvValues(env, value) {
72441
+ processEnvValues(env2, value) {
72419
72442
  let headerValue;
72420
72443
  if (typeof value === "function") {
72421
- headerValue = value(env);
72444
+ headerValue = value(env2);
72422
72445
  } else if (value.startsWith("env:")) {
72423
- headerValue = env[value.slice("env:".length)];
72446
+ headerValue = env2[value.slice("env:".length)];
72424
72447
  } else {
72425
72448
  headerValue = value;
72426
72449
  }
72427
72450
  return headerValue;
72428
72451
  }
72429
72452
  async pullHeaders() {
72430
- const env = await this.getEnv();
72453
+ const env2 = await this.getEnv();
72431
72454
  if (typeof this.schemaPollHeaders === "function") {
72432
- return this.schemaPollHeaders(env);
72455
+ return this.schemaPollHeaders(env2);
72433
72456
  }
72434
72457
  const headers = Object.fromEntries(
72435
72458
  Object.entries(this.schemaPollHeaders || {}).map(([key, value]) => {
72436
- const headerValue = this.processEnvValues(env, value);
72459
+ const headerValue = this.processEnvValues(env2, value);
72437
72460
  if (!headerValue) {
72438
72461
  return [];
72439
72462
  }
@@ -72721,7 +72744,7 @@ var Config = class {
72721
72744
  fragment: fragment2
72722
72745
  }) {
72723
72746
  this.#fragmentVariableMaps[hash] = {
72724
- args: this.#serializeValueMap(args),
72747
+ args: this.serializeValueMap(args),
72725
72748
  fragment: fragment2
72726
72749
  };
72727
72750
  }
@@ -72732,7 +72755,7 @@ var Config = class {
72732
72755
  hash
72733
72756
  };
72734
72757
  }
72735
- #serializeValueMap(map) {
72758
+ serializeValueMap(map) {
72736
72759
  if (!map) {
72737
72760
  return null;
72738
72761
  }
@@ -72747,7 +72770,7 @@ var Config = class {
72747
72770
  }
72748
72771
  if ("values" in input) {
72749
72772
  result.values = input.values.map(
72750
- (value) => this.#serializeValueMap({ foo: value }).foo
72773
+ (value) => this.serializeValueMap({ foo: value }).foo
72751
72774
  );
72752
72775
  }
72753
72776
  if ("name" in input) {
@@ -72756,7 +72779,7 @@ var Config = class {
72756
72779
  if ("fields" in input) {
72757
72780
  result.fields = input.fields.map((field) => ({
72758
72781
  name: field.name,
72759
- value: this.#serializeValueMap({ foo: field.value }).foo
72782
+ value: this.serializeValueMap({ foo: field.value }).foo
72760
72783
  }));
72761
72784
  }
72762
72785
  }
@@ -73822,6 +73845,205 @@ function murmurHash(str) {
73822
73845
  return s2;
73823
73846
  }
73824
73847
 
73848
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/types.js
73849
+ var VOID = -1;
73850
+ var PRIMITIVE = 0;
73851
+ var ARRAY = 1;
73852
+ var OBJECT = 2;
73853
+ var DATE = 3;
73854
+ var REGEXP = 4;
73855
+ var MAP = 5;
73856
+ var SET = 6;
73857
+ var ERROR = 7;
73858
+ var BIGINT = 8;
73859
+
73860
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
73861
+ var env = typeof self === "object" ? self : globalThis;
73862
+ var deserializer = ($, _) => {
73863
+ const as = (out, index) => {
73864
+ $.set(index, out);
73865
+ return out;
73866
+ };
73867
+ const unpair = (index) => {
73868
+ if ($.has(index))
73869
+ return $.get(index);
73870
+ const [type, value] = _[index];
73871
+ switch (type) {
73872
+ case PRIMITIVE:
73873
+ case VOID:
73874
+ return as(value, index);
73875
+ case ARRAY: {
73876
+ const arr = as([], index);
73877
+ for (const index2 of value)
73878
+ arr.push(unpair(index2));
73879
+ return arr;
73880
+ }
73881
+ case OBJECT: {
73882
+ const object = as({}, index);
73883
+ for (const [key, index2] of value)
73884
+ object[unpair(key)] = unpair(index2);
73885
+ return object;
73886
+ }
73887
+ case DATE:
73888
+ return as(new Date(value), index);
73889
+ case REGEXP: {
73890
+ const { source, flags } = value;
73891
+ return as(new RegExp(source, flags), index);
73892
+ }
73893
+ case MAP: {
73894
+ const map = as(/* @__PURE__ */ new Map(), index);
73895
+ for (const [key, index2] of value)
73896
+ map.set(unpair(key), unpair(index2));
73897
+ return map;
73898
+ }
73899
+ case SET: {
73900
+ const set = as(/* @__PURE__ */ new Set(), index);
73901
+ for (const index2 of value)
73902
+ set.add(unpair(index2));
73903
+ return set;
73904
+ }
73905
+ case ERROR: {
73906
+ const { name, message } = value;
73907
+ return as(new env[name](message), index);
73908
+ }
73909
+ case BIGINT:
73910
+ return as(BigInt(value), index);
73911
+ case "BigInt":
73912
+ return as(Object(BigInt(value)), index);
73913
+ }
73914
+ return as(new env[type](value), index);
73915
+ };
73916
+ return unpair;
73917
+ };
73918
+ var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
73919
+
73920
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/serialize.js
73921
+ var EMPTY = "";
73922
+ var { toString } = {};
73923
+ var { keys } = Object;
73924
+ var typeOf = (value) => {
73925
+ const type = typeof value;
73926
+ if (type !== "object" || !value)
73927
+ return [PRIMITIVE, type];
73928
+ const asString = toString.call(value).slice(8, -1);
73929
+ switch (asString) {
73930
+ case "Array":
73931
+ return [ARRAY, EMPTY];
73932
+ case "Object":
73933
+ return [OBJECT, EMPTY];
73934
+ case "Date":
73935
+ return [DATE, EMPTY];
73936
+ case "RegExp":
73937
+ return [REGEXP, EMPTY];
73938
+ case "Map":
73939
+ return [MAP, EMPTY];
73940
+ case "Set":
73941
+ return [SET, EMPTY];
73942
+ }
73943
+ if (asString.includes("Array"))
73944
+ return [ARRAY, asString];
73945
+ if (asString.includes("Error"))
73946
+ return [ERROR, asString];
73947
+ return [OBJECT, asString];
73948
+ };
73949
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
73950
+ var serializer = (strict, json, $, _) => {
73951
+ const as = (out, value) => {
73952
+ const index = _.push(out) - 1;
73953
+ $.set(value, index);
73954
+ return index;
73955
+ };
73956
+ const pair = (value) => {
73957
+ if ($.has(value))
73958
+ return $.get(value);
73959
+ let [TYPE, type] = typeOf(value);
73960
+ switch (TYPE) {
73961
+ case PRIMITIVE: {
73962
+ let entry = value;
73963
+ switch (type) {
73964
+ case "bigint":
73965
+ TYPE = BIGINT;
73966
+ entry = value.toString();
73967
+ break;
73968
+ case "function":
73969
+ case "symbol":
73970
+ if (strict)
73971
+ throw new TypeError("unable to serialize " + type);
73972
+ entry = null;
73973
+ break;
73974
+ case "undefined":
73975
+ return as([VOID], value);
73976
+ }
73977
+ return as([TYPE, entry], value);
73978
+ }
73979
+ case ARRAY: {
73980
+ if (type)
73981
+ return as([type, [...value]], value);
73982
+ const arr = [];
73983
+ const index = as([TYPE, arr], value);
73984
+ for (const entry of value)
73985
+ arr.push(pair(entry));
73986
+ return index;
73987
+ }
73988
+ case OBJECT: {
73989
+ if (type) {
73990
+ switch (type) {
73991
+ case "BigInt":
73992
+ return as([type, value.toString()], value);
73993
+ case "Boolean":
73994
+ case "Number":
73995
+ case "String":
73996
+ return as([type, value.valueOf()], value);
73997
+ }
73998
+ }
73999
+ if (json && "toJSON" in value)
74000
+ return pair(value.toJSON());
74001
+ const entries = [];
74002
+ const index = as([TYPE, entries], value);
74003
+ for (const key of keys(value)) {
74004
+ if (strict || !shouldSkip(typeOf(value[key])))
74005
+ entries.push([pair(key), pair(value[key])]);
74006
+ }
74007
+ return index;
74008
+ }
74009
+ case DATE:
74010
+ return as([TYPE, value.toISOString()], value);
74011
+ case REGEXP: {
74012
+ const { source, flags } = value;
74013
+ return as([TYPE, { source, flags }], value);
74014
+ }
74015
+ case MAP: {
74016
+ const entries = [];
74017
+ const index = as([TYPE, entries], value);
74018
+ for (const [key, entry] of value) {
74019
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
74020
+ entries.push([pair(key), pair(entry)]);
74021
+ }
74022
+ return index;
74023
+ }
74024
+ case SET: {
74025
+ const entries = [];
74026
+ const index = as([TYPE, entries], value);
74027
+ for (const entry of value) {
74028
+ if (strict || !shouldSkip(typeOf(entry)))
74029
+ entries.push(pair(entry));
74030
+ }
74031
+ return index;
74032
+ }
74033
+ }
74034
+ const { message } = value;
74035
+ return as([TYPE, { name: type, message }], value);
74036
+ };
74037
+ return pair;
74038
+ };
74039
+ var serialize = (value, { json, lossy } = {}) => {
74040
+ const _ = [];
74041
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
74042
+ };
74043
+
74044
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/index.js
74045
+ var esm_default = typeof structuredClone === "function" ? (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any) : (any, options) => deserialize(serialize(any, options));
74046
+
73825
74047
  // src/codegen/transforms/fragmentVariables.ts
73826
74048
  var graphql5 = __toESM(require_graphql2(), 1);
73827
74049
 
@@ -73969,100 +74191,106 @@ function inlineFragmentArgs({
73969
74191
  filepath,
73970
74192
  document
73971
74193
  ).reduce((acc, arg) => ({ ...acc, [arg.name]: arg }), {});
73972
- const result = graphql5.visit(document, {
73973
- FragmentSpread(node) {
73974
- if (!fragmentDefinitions[node.name.value]) {
73975
- throw new Error("Could not find definition for fragment" + node.name.value);
73976
- }
73977
- const { definition } = fragmentDefinitions[node.name.value];
73978
- let { args, hash } = collectWithArguments(config2, filepath, node, scope);
73979
- const newFragmentName = `${node.name.value}${hash}`;
73980
- config2.registerFragmentVariablesHash({
73981
- hash: newFragmentName,
73982
- fragment: node.name.value,
73983
- args
73984
- });
73985
- if (!visitedFragments.has(newFragmentName)) {
73986
- visitedFragments.add(newFragmentName);
73987
- const defaultArguments = collectDefaultArgumentValues(config2, filepath, definition);
73988
- if (args) {
73989
- for (const [field, value] of Object.entries(defaultArguments || {})) {
73990
- if (!args[field]) {
73991
- args[field] = value;
73992
- }
73993
- }
73994
- generatedFragments[newFragmentName] = inlineFragmentArgs({
73995
- config: config2,
74194
+ const result = esm_default(
74195
+ graphql5.visit(document, {
74196
+ FragmentSpread(node) {
74197
+ if (!fragmentDefinitions[node.name.value]) {
74198
+ throw new Error("Could not find definition for fragment" + node.name.value);
74199
+ }
74200
+ const { definition } = fragmentDefinitions[node.name.value];
74201
+ let { args, hash } = collectWithArguments(config2, filepath, node, scope);
74202
+ const newFragmentName = `${node.name.value}${hash}`;
74203
+ config2.registerFragmentVariablesHash({
74204
+ hash: newFragmentName,
74205
+ fragment: node.name.value,
74206
+ args
74207
+ });
74208
+ if (!visitedFragments.has(newFragmentName)) {
74209
+ visitedFragments.add(newFragmentName);
74210
+ const defaultArguments = collectDefaultArgumentValues(
74211
+ config2,
73996
74212
  filepath,
73997
- fragmentDefinitions,
73998
- document: fragmentDefinitions[node.name.value].definition,
73999
- generatedFragments,
74000
- visitedFragments,
74001
- scope: args,
74002
- newName: newFragmentName
74003
- });
74004
- } else {
74005
- const doc = fragmentDefinitions[node.name.value].document;
74006
- const definitionIndex = doc.document.definitions.findIndex(
74007
- (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
74213
+ definition
74008
74214
  );
74009
- const localDefinitions = [...doc.document.definitions];
74010
- localDefinitions.splice(definitionIndex, 1);
74011
- localDefinitions.push(
74012
- inlineFragmentArgs({
74215
+ if (args) {
74216
+ for (const [field, value] of Object.entries(defaultArguments || {})) {
74217
+ if (!args[field]) {
74218
+ args[field] = value;
74219
+ }
74220
+ }
74221
+ generatedFragments[newFragmentName] = inlineFragmentArgs({
74013
74222
  config: config2,
74014
74223
  filepath,
74015
74224
  fragmentDefinitions,
74016
74225
  document: fragmentDefinitions[node.name.value].definition,
74017
74226
  generatedFragments,
74018
74227
  visitedFragments,
74019
- scope: defaultArguments,
74020
- newName: ""
74021
- })
74022
- );
74023
- doc.document = {
74024
- ...doc.document,
74025
- definitions: localDefinitions
74026
- };
74228
+ scope: args,
74229
+ newName: newFragmentName
74230
+ });
74231
+ } else {
74232
+ const doc = fragmentDefinitions[node.name.value].document;
74233
+ const definitionIndex = doc.document.definitions.findIndex(
74234
+ (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
74235
+ );
74236
+ const localDefinitions = [...doc.document.definitions];
74237
+ localDefinitions.splice(definitionIndex, 1);
74238
+ localDefinitions.push(
74239
+ inlineFragmentArgs({
74240
+ config: config2,
74241
+ filepath,
74242
+ fragmentDefinitions,
74243
+ document: fragmentDefinitions[node.name.value].definition,
74244
+ generatedFragments,
74245
+ visitedFragments,
74246
+ scope: defaultArguments,
74247
+ newName: ""
74248
+ })
74249
+ );
74250
+ doc.document = {
74251
+ ...doc.document,
74252
+ definitions: localDefinitions
74253
+ };
74254
+ }
74255
+ if (node.name.value !== newFragmentName) {
74256
+ return {
74257
+ ...node,
74258
+ name: {
74259
+ kind: "Name",
74260
+ value: newFragmentName
74261
+ }
74262
+ };
74263
+ }
74264
+ }
74265
+ },
74266
+ Argument(node) {
74267
+ const value = node.value;
74268
+ if (value.kind !== "Variable") {
74269
+ return;
74027
74270
  }
74028
- if (node.name.value !== newFragmentName) {
74271
+ if (!scope) {
74272
+ throw new HoudiniError({
74273
+ filepath,
74274
+ message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
74275
+ });
74276
+ }
74277
+ const newValue = scope[value.name.value];
74278
+ if (newValue) {
74029
74279
  return {
74030
74280
  ...node,
74031
- name: {
74032
- kind: "Name",
74033
- value: newFragmentName
74034
- }
74281
+ value: newValue
74035
74282
  };
74036
74283
  }
74284
+ if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
74285
+ throw new HoudiniError({
74286
+ filepath,
74287
+ message: "Missing value for required arg: " + value.name.value
74288
+ });
74289
+ }
74290
+ return null;
74037
74291
  }
74038
- },
74039
- Argument(node) {
74040
- const value = node.value;
74041
- if (value.kind !== "Variable") {
74042
- return;
74043
- }
74044
- if (!scope) {
74045
- throw new HoudiniError({
74046
- filepath,
74047
- message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
74048
- });
74049
- }
74050
- const newValue = scope[value.name.value];
74051
- if (newValue) {
74052
- return {
74053
- ...node,
74054
- value: newValue
74055
- };
74056
- }
74057
- if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
74058
- throw new HoudiniError({
74059
- filepath,
74060
- message: "Missing value for required arg: " + value.name.value
74061
- });
74062
- }
74063
- return null;
74064
- }
74065
- });
74292
+ })
74293
+ );
74066
74294
  if (newName) {
74067
74295
  result.name = {
74068
74296
  kind: graphql5.Kind.NAME,
@@ -74778,7 +75006,7 @@ async function paginate(config2, documents) {
74778
75006
  ]
74779
75007
  }
74780
75008
  ];
74781
- const keys = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
75009
+ const keys2 = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
74782
75010
  if (fragment2 === config2.schema.getQueryType()?.name) {
74783
75011
  return [];
74784
75012
  }
@@ -74828,7 +75056,7 @@ async function paginate(config2, documents) {
74828
75056
  }
74829
75057
  })
74830
75058
  ).concat(
74831
- !nodeQuery ? [] : keys.map(
75059
+ !nodeQuery ? [] : keys2.map(
74832
75060
  (key) => ({
74833
75061
  kind: graphql10.Kind.VARIABLE_DEFINITION,
74834
75062
  type: key.type,
@@ -74851,7 +75079,7 @@ async function paginate(config2, documents) {
74851
75079
  kind: graphql10.Kind.NAME,
74852
75080
  value: typeConfig?.resolve?.queryField || "node"
74853
75081
  },
74854
- ["arguments"]: keys.map((key) => ({
75082
+ ["arguments"]: keys2.map((key) => ({
74855
75083
  kind: graphql10.Kind.ARGUMENT,
74856
75084
  name: {
74857
75085
  kind: graphql10.Kind.NAME,
@@ -75545,12 +75773,24 @@ function prepareSelection({
75545
75773
  }
75546
75774
  const typeName = fieldType.toString();
75547
75775
  const pathSoFar = path2.concat(attributeName);
75548
- const keys = config2.keyFieldsForType(rootType);
75776
+ const keys2 = config2.keyFieldsForType(rootType);
75549
75777
  let fieldObj = {
75550
75778
  type: typeName,
75551
75779
  keyRaw: fieldKey(config2, field)
75552
75780
  };
75553
- if (keys.includes(field.name.value)) {
75781
+ if (field.directives && field.directives.length > 0) {
75782
+ fieldObj.directives = field.directives?.map((directive) => ({
75783
+ name: directive.name.value,
75784
+ arguments: (directive.arguments ?? []).reduce(
75785
+ (acc, arg) => ({
75786
+ ...acc,
75787
+ [arg.name.value]: config2.serializeValueMap({ field: arg.value })["field"]
75788
+ }),
75789
+ {}
75790
+ )
75791
+ }));
75792
+ }
75793
+ if (keys2.includes(field.name.value)) {
75554
75794
  fieldObj.visible = true;
75555
75795
  }
75556
75796
  if (nullable) {
@@ -75775,12 +76015,7 @@ function artifactGenerator(stats) {
75775
76015
  writeIndexFile(config2, docs)
75776
76016
  ].concat(
75777
76017
  docs.map(async (doc) => {
75778
- const {
75779
- document,
75780
- name,
75781
- generateArtifact,
75782
- originalParsed
75783
- } = doc;
76018
+ const { document, name, generateArtifact, originalParsed, originalString } = doc;
75784
76019
  if (!generateArtifact) {
75785
76020
  return;
75786
76021
  }
@@ -77041,10 +77276,10 @@ function typeDefinitions(config2, body, docs, returnType) {
77041
77276
  typeName = "__ROOT__";
77042
77277
  }
77043
77278
  let idFields = AST12.tsNeverKeyword();
77044
- const keys = keyFieldsForType(config2.configFile, type.name);
77045
- if (graphql19.isObjectType(type) && keys.length > 0 && keys.every((key) => type.getFields()[key])) {
77279
+ const keys2 = keyFieldsForType(config2.configFile, type.name);
77280
+ if (graphql19.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
77046
77281
  idFields = AST12.tsTypeLiteral(
77047
- keys.map((key) => {
77282
+ keys2.map((key) => {
77048
77283
  const fieldType = type.getFields()[key];
77049
77284
  const unwrapped = unwrapType(config2, fieldType.type);
77050
77285
  return AST12.tsPropertySignature(
@@ -79292,8 +79527,8 @@ async function updatePackageJSON(targetPath) {
79292
79527
  }
79293
79528
  packageJSON.devDependencies = {
79294
79529
  ...packageJSON.devDependencies,
79295
- houdini: "^1.1.3",
79296
- "houdini-svelte": "^1.1.3"
79530
+ houdini: "^1.1.4",
79531
+ "houdini-svelte": "^1.1.4"
79297
79532
  };
79298
79533
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
79299
79534
  }