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.
@@ -225,16 +225,16 @@ var require_GraphQLError = __commonJS({
225
225
  return obj && obj.__esModule ? obj : { default: obj };
226
226
  }
227
227
  function ownKeys(object, enumerableOnly) {
228
- var keys = Object.keys(object);
228
+ var keys2 = Object.keys(object);
229
229
  if (Object.getOwnPropertySymbols) {
230
230
  var symbols = Object.getOwnPropertySymbols(object);
231
231
  if (enumerableOnly)
232
232
  symbols = symbols.filter(function(sym) {
233
233
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
234
234
  });
235
- keys.push.apply(keys, symbols);
235
+ keys2.push.apply(keys2, symbols);
236
236
  }
237
- return keys;
237
+ return keys2;
238
238
  }
239
239
  function _objectSpread(target) {
240
240
  for (var i = 1; i < arguments.length; i++) {
@@ -471,7 +471,7 @@ var require_GraphQLError = __commonJS({
471
471
  }
472
472
  _createClass(GraphQLError4, [{
473
473
  key: "toString",
474
- value: function toString() {
474
+ value: function toString2() {
475
475
  return printError(this);
476
476
  }
477
477
  }, {
@@ -793,14 +793,14 @@ var require_inspect = __commonJS({
793
793
  return formatObject(value, seenValues);
794
794
  }
795
795
  function formatObject(object, seenValues) {
796
- var keys = Object.keys(object);
797
- if (keys.length === 0) {
796
+ var keys2 = Object.keys(object);
797
+ if (keys2.length === 0) {
798
798
  return "{}";
799
799
  }
800
800
  if (seenValues.length > MAX_RECURSIVE_DEPTH) {
801
801
  return "[" + getObjectTag(object) + "]";
802
802
  }
803
- var properties = keys.map(function(key) {
803
+ var properties = keys2.map(function(key) {
804
804
  var value = formatValue(object[key], seenValues);
805
805
  return key + ": " + value;
806
806
  });
@@ -2465,7 +2465,7 @@ var require_visitor = __commonJS({
2465
2465
  var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
2466
2466
  var stack = void 0;
2467
2467
  var inArray = Array.isArray(root);
2468
- var keys = [root];
2468
+ var keys2 = [root];
2469
2469
  var index = -1;
2470
2470
  var edits = [];
2471
2471
  var node = void 0;
@@ -2476,7 +2476,7 @@ var require_visitor = __commonJS({
2476
2476
  var newRoot = root;
2477
2477
  do {
2478
2478
  index++;
2479
- var isLeaving = index === keys.length;
2479
+ var isLeaving = index === keys2.length;
2480
2480
  var isEdited = isLeaving && edits.length !== 0;
2481
2481
  if (isLeaving) {
2482
2482
  key = ancestors.length === 0 ? void 0 : path2[path2.length - 1];
@@ -2509,12 +2509,12 @@ var require_visitor = __commonJS({
2509
2509
  }
2510
2510
  }
2511
2511
  index = stack.index;
2512
- keys = stack.keys;
2512
+ keys2 = stack.keys;
2513
2513
  edits = stack.edits;
2514
2514
  inArray = stack.inArray;
2515
2515
  stack = stack.prev;
2516
2516
  } else {
2517
- key = parent ? inArray ? index : keys[index] : void 0;
2517
+ key = parent ? inArray ? index : keys2[index] : void 0;
2518
2518
  node = parent ? parent[key] : newRoot;
2519
2519
  if (node === null || node === void 0) {
2520
2520
  continue;
@@ -2562,12 +2562,12 @@ var require_visitor = __commonJS({
2562
2562
  stack = {
2563
2563
  inArray,
2564
2564
  index,
2565
- keys,
2565
+ keys: keys2,
2566
2566
  edits,
2567
2567
  prev: stack
2568
2568
  };
2569
2569
  inArray = Array.isArray(node);
2570
- keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
2570
+ keys2 = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
2571
2571
  index = -1;
2572
2572
  edits = [];
2573
2573
  if (parent) {
@@ -3550,7 +3550,7 @@ var require_definition = __commonJS({
3550
3550
  return new GraphQLList2(ofType);
3551
3551
  }
3552
3552
  }
3553
- GraphQLList2.prototype.toString = function toString() {
3553
+ GraphQLList2.prototype.toString = function toString2() {
3554
3554
  return "[" + String(this.ofType) + "]";
3555
3555
  };
3556
3556
  GraphQLList2.prototype.toJSON = function toJSON() {
@@ -3569,7 +3569,7 @@ var require_definition = __commonJS({
3569
3569
  return new GraphQLNonNull2(ofType);
3570
3570
  }
3571
3571
  }
3572
- GraphQLNonNull2.prototype.toString = function toString() {
3572
+ GraphQLNonNull2.prototype.toString = function toString2() {
3573
3573
  return String(this.ofType) + "!";
3574
3574
  };
3575
3575
  GraphQLNonNull2.prototype.toJSON = function toJSON() {
@@ -3665,7 +3665,7 @@ var require_definition = __commonJS({
3665
3665
  extensionASTNodes: (_this$extensionASTNod = this.extensionASTNodes) !== null && _this$extensionASTNod !== void 0 ? _this$extensionASTNod : []
3666
3666
  };
3667
3667
  };
3668
- _proto.toString = function toString() {
3668
+ _proto.toString = function toString2() {
3669
3669
  return this.name;
3670
3670
  };
3671
3671
  _proto.toJSON = function toJSON() {
@@ -3719,7 +3719,7 @@ var require_definition = __commonJS({
3719
3719
  extensionASTNodes: this.extensionASTNodes || []
3720
3720
  };
3721
3721
  };
3722
- _proto2.toString = function toString() {
3722
+ _proto2.toString = function toString2() {
3723
3723
  return this.name;
3724
3724
  };
3725
3725
  _proto2.toJSON = function toJSON() {
@@ -3850,7 +3850,7 @@ var require_definition = __commonJS({
3850
3850
  extensionASTNodes: (_this$extensionASTNod2 = this.extensionASTNodes) !== null && _this$extensionASTNod2 !== void 0 ? _this$extensionASTNod2 : []
3851
3851
  };
3852
3852
  };
3853
- _proto3.toString = function toString() {
3853
+ _proto3.toString = function toString2() {
3854
3854
  return this.name;
3855
3855
  };
3856
3856
  _proto3.toJSON = function toJSON() {
@@ -3897,7 +3897,7 @@ var require_definition = __commonJS({
3897
3897
  extensionASTNodes: (_this$extensionASTNod3 = this.extensionASTNodes) !== null && _this$extensionASTNod3 !== void 0 ? _this$extensionASTNod3 : []
3898
3898
  };
3899
3899
  };
3900
- _proto4.toString = function toString() {
3900
+ _proto4.toString = function toString2() {
3901
3901
  return this.name;
3902
3902
  };
3903
3903
  _proto4.toJSON = function toJSON() {
@@ -3941,7 +3941,7 @@ var require_definition = __commonJS({
3941
3941
  _proto5.getValue = function getValue(name) {
3942
3942
  return this._nameLookup[name];
3943
3943
  };
3944
- _proto5.serialize = function serialize(outputValue) {
3944
+ _proto5.serialize = function serialize2(outputValue) {
3945
3945
  var enumValue = this._valueLookup.get(outputValue);
3946
3946
  if (enumValue === void 0) {
3947
3947
  throw new _GraphQLError.GraphQLError('Enum "'.concat(this.name, '" cannot represent value: ').concat((0, _inspect.default)(outputValue)));
@@ -3993,7 +3993,7 @@ var require_definition = __commonJS({
3993
3993
  extensionASTNodes: (_this$extensionASTNod4 = this.extensionASTNodes) !== null && _this$extensionASTNod4 !== void 0 ? _this$extensionASTNod4 : []
3994
3994
  };
3995
3995
  };
3996
- _proto5.toString = function toString() {
3996
+ _proto5.toString = function toString2() {
3997
3997
  return this.name;
3998
3998
  };
3999
3999
  _proto5.toJSON = function toJSON() {
@@ -4071,7 +4071,7 @@ var require_definition = __commonJS({
4071
4071
  extensionASTNodes: (_this$extensionASTNod5 = this.extensionASTNodes) !== null && _this$extensionASTNod5 !== void 0 ? _this$extensionASTNod5 : []
4072
4072
  };
4073
4073
  };
4074
- _proto6.toString = function toString() {
4074
+ _proto6.toString = function toString2() {
4075
4075
  return this.name;
4076
4076
  };
4077
4077
  _proto6.toJSON = function toJSON() {
@@ -5325,7 +5325,7 @@ var require_directives = __commonJS({
5325
5325
  astNode: this.astNode
5326
5326
  };
5327
5327
  };
5328
- _proto.toString = function toString() {
5328
+ _proto.toString = function toString2() {
5329
5329
  return "@" + this.name;
5330
5330
  };
5331
5331
  _proto.toJSON = function toJSON() {
@@ -7262,16 +7262,16 @@ var require_KnownArgumentNamesRule = __commonJS({
7262
7262
  return obj && obj.__esModule ? obj : { default: obj };
7263
7263
  }
7264
7264
  function ownKeys(object, enumerableOnly) {
7265
- var keys = Object.keys(object);
7265
+ var keys2 = Object.keys(object);
7266
7266
  if (Object.getOwnPropertySymbols) {
7267
7267
  var symbols = Object.getOwnPropertySymbols(object);
7268
7268
  if (enumerableOnly)
7269
7269
  symbols = symbols.filter(function(sym) {
7270
7270
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7271
7271
  });
7272
- keys.push.apply(keys, symbols);
7272
+ keys2.push.apply(keys2, symbols);
7273
7273
  }
7274
- return keys;
7274
+ return keys2;
7275
7275
  }
7276
7276
  function _objectSpread(target) {
7277
7277
  for (var i = 1; i < arguments.length; i++) {
@@ -7518,16 +7518,16 @@ var require_ProvidedRequiredArgumentsRule = __commonJS({
7518
7518
  return obj && obj.__esModule ? obj : { default: obj };
7519
7519
  }
7520
7520
  function ownKeys(object, enumerableOnly) {
7521
- var keys = Object.keys(object);
7521
+ var keys2 = Object.keys(object);
7522
7522
  if (Object.getOwnPropertySymbols) {
7523
7523
  var symbols = Object.getOwnPropertySymbols(object);
7524
7524
  if (enumerableOnly)
7525
7525
  symbols = symbols.filter(function(sym) {
7526
7526
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7527
7527
  });
7528
- keys.push.apply(keys, symbols);
7528
+ keys2.push.apply(keys2, symbols);
7529
7529
  }
7530
- return keys;
7530
+ return keys2;
7531
7531
  }
7532
7532
  function _objectSpread(target) {
7533
7533
  for (var i = 1; i < arguments.length; i++) {
@@ -8785,13 +8785,13 @@ var require_promiseForObject = __commonJS({
8785
8785
  });
8786
8786
  exports.default = promiseForObject;
8787
8787
  function promiseForObject(object) {
8788
- var keys = Object.keys(object);
8789
- var valuesAndPromises = keys.map(function(name) {
8788
+ var keys2 = Object.keys(object);
8789
+ var valuesAndPromises = keys2.map(function(name) {
8790
8790
  return object[name];
8791
8791
  });
8792
8792
  return Promise.all(valuesAndPromises).then(function(values) {
8793
8793
  return values.reduce(function(resolvedObject, value, i) {
8794
- resolvedObject[keys[i]] = value;
8794
+ resolvedObject[keys2[i]] = value;
8795
8795
  return resolvedObject;
8796
8796
  }, /* @__PURE__ */ Object.create(null));
8797
8797
  });
@@ -11243,16 +11243,16 @@ var require_getIntrospectionQuery = __commonJS({
11243
11243
  });
11244
11244
  exports.getIntrospectionQuery = getIntrospectionQuery;
11245
11245
  function ownKeys(object, enumerableOnly) {
11246
- var keys = Object.keys(object);
11246
+ var keys2 = Object.keys(object);
11247
11247
  if (Object.getOwnPropertySymbols) {
11248
11248
  var symbols = Object.getOwnPropertySymbols(object);
11249
11249
  if (enumerableOnly)
11250
11250
  symbols = symbols.filter(function(sym) {
11251
11251
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11252
11252
  });
11253
- keys.push.apply(keys, symbols);
11253
+ keys2.push.apply(keys2, symbols);
11254
11254
  }
11255
- return keys;
11255
+ return keys2;
11256
11256
  }
11257
11257
  function _objectSpread(target) {
11258
11258
  for (var i = 1; i < arguments.length; i++) {
@@ -11345,16 +11345,16 @@ var require_introspectionFromSchema = __commonJS({
11345
11345
  return obj && obj.__esModule ? obj : { default: obj };
11346
11346
  }
11347
11347
  function ownKeys(object, enumerableOnly) {
11348
- var keys = Object.keys(object);
11348
+ var keys2 = Object.keys(object);
11349
11349
  if (Object.getOwnPropertySymbols) {
11350
11350
  var symbols = Object.getOwnPropertySymbols(object);
11351
11351
  if (enumerableOnly)
11352
11352
  symbols = symbols.filter(function(sym) {
11353
11353
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11354
11354
  });
11355
- keys.push.apply(keys, symbols);
11355
+ keys2.push.apply(keys2, symbols);
11356
11356
  }
11357
- return keys;
11357
+ return keys2;
11358
11358
  }
11359
11359
  function _objectSpread(target) {
11360
11360
  for (var i = 1; i < arguments.length; i++) {
@@ -11686,16 +11686,16 @@ var require_extendSchema = __commonJS({
11686
11686
  return obj && obj.__esModule ? obj : { default: obj };
11687
11687
  }
11688
11688
  function ownKeys(object, enumerableOnly) {
11689
- var keys = Object.keys(object);
11689
+ var keys2 = Object.keys(object);
11690
11690
  if (Object.getOwnPropertySymbols) {
11691
11691
  var symbols = Object.getOwnPropertySymbols(object);
11692
11692
  if (enumerableOnly)
11693
11693
  symbols = symbols.filter(function(sym) {
11694
11694
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11695
11695
  });
11696
- keys.push.apply(keys, symbols);
11696
+ keys2.push.apply(keys2, symbols);
11697
11697
  }
11698
- return keys;
11698
+ return keys2;
11699
11699
  }
11700
11700
  function _objectSpread(target) {
11701
11701
  for (var i = 1; i < arguments.length; i++) {
@@ -12286,16 +12286,16 @@ var require_lexicographicSortSchema = __commonJS({
12286
12286
  return obj && obj.__esModule ? obj : { default: obj };
12287
12287
  }
12288
12288
  function ownKeys(object, enumerableOnly) {
12289
- var keys = Object.keys(object);
12289
+ var keys2 = Object.keys(object);
12290
12290
  if (Object.getOwnPropertySymbols) {
12291
12291
  var symbols = Object.getOwnPropertySymbols(object);
12292
12292
  if (enumerableOnly)
12293
12293
  symbols = symbols.filter(function(sym) {
12294
12294
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
12295
12295
  });
12296
- keys.push.apply(keys, symbols);
12296
+ keys2.push.apply(keys2, symbols);
12297
12297
  }
12298
- return keys;
12298
+ return keys2;
12299
12299
  }
12300
12300
  function _objectSpread(target) {
12301
12301
  for (var i = 1; i < arguments.length; i++) {
@@ -12836,16 +12836,16 @@ var require_findBreakingChanges = __commonJS({
12836
12836
  return obj && obj.__esModule ? obj : { default: obj };
12837
12837
  }
12838
12838
  function ownKeys(object, enumerableOnly) {
12839
- var keys = Object.keys(object);
12839
+ var keys2 = Object.keys(object);
12840
12840
  if (Object.getOwnPropertySymbols) {
12841
12841
  var symbols = Object.getOwnPropertySymbols(object);
12842
12842
  if (enumerableOnly)
12843
12843
  symbols = symbols.filter(function(sym) {
12844
12844
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
12845
12845
  });
12846
- keys.push.apply(keys, symbols);
12846
+ keys2.push.apply(keys2, symbols);
12847
12847
  }
12848
- return keys;
12848
+ return keys2;
12849
12849
  }
12850
12850
  function _objectSpread(target) {
12851
12851
  for (var i = 1; i < arguments.length; i++) {
@@ -19345,9 +19345,9 @@ var require_legacy_streams = __commonJS({
19345
19345
  this.mode = 438;
19346
19346
  this.bufferSize = 64 * 1024;
19347
19347
  options = options || {};
19348
- var keys = Object.keys(options);
19349
- for (var index = 0, length = keys.length; index < length; index++) {
19350
- var key = keys[index];
19348
+ var keys2 = Object.keys(options);
19349
+ for (var index = 0, length = keys2.length; index < length; index++) {
19350
+ var key = keys2[index];
19351
19351
  this[key] = options[key];
19352
19352
  }
19353
19353
  if (this.encoding)
@@ -19395,9 +19395,9 @@ var require_legacy_streams = __commonJS({
19395
19395
  this.mode = 438;
19396
19396
  this.bytesWritten = 0;
19397
19397
  options = options || {};
19398
- var keys = Object.keys(options);
19399
- for (var index = 0, length = keys.length; index < length; index++) {
19400
- var key = keys[index];
19398
+ var keys2 = Object.keys(options);
19399
+ for (var index = 0, length = keys2.length; index < length; index++) {
19400
+ var key = keys2[index];
19401
19401
  this[key] = options[key];
19402
19402
  }
19403
19403
  if (this.start !== void 0) {
@@ -22614,10 +22614,10 @@ var require_glob = __commonJS({
22614
22614
  if (add === null || typeof add !== "object") {
22615
22615
  return origin;
22616
22616
  }
22617
- var keys = Object.keys(add);
22618
- var i = keys.length;
22617
+ var keys2 = Object.keys(add);
22618
+ var i = keys2.length;
22619
22619
  while (i--) {
22620
- origin[keys[i]] = add[keys[i]];
22620
+ origin[keys2[i]] = add[keys2[i]];
22621
22621
  }
22622
22622
  return origin;
22623
22623
  }
@@ -23180,12 +23180,12 @@ var require_lib3 = __commonJS({
23180
23180
  SyntaxError: "BABEL_PARSER_SYNTAX_ERROR",
23181
23181
  SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
23182
23182
  };
23183
- var reflect = (keys, last = keys.length - 1) => ({
23183
+ var reflect = (keys2, last = keys2.length - 1) => ({
23184
23184
  get() {
23185
- return keys.reduce((object, key) => object[key], this);
23185
+ return keys2.reduce((object, key) => object[key], this);
23186
23186
  },
23187
23187
  set(value) {
23188
- keys.reduce(
23188
+ keys2.reduce(
23189
23189
  (item, key, i) => i === last ? item[key] = value : item[key],
23190
23190
  this
23191
23191
  );
@@ -25118,9 +25118,9 @@ var require_lib3 = __commonJS({
25118
25118
  }
25119
25119
  clone(skipArrays) {
25120
25120
  const state = new State();
25121
- const keys = Object.keys(this);
25122
- for (let i = 0, length = keys.length; i < length; i++) {
25123
- const key = keys[i];
25121
+ const keys2 = Object.keys(this);
25122
+ for (let i = 0, length = keys2.length; i < length; i++) {
25123
+ const key = keys2[i];
25124
25124
  let val = this[key];
25125
25125
  if (!skipArrays && Array.isArray(val)) {
25126
25126
  val = val.slice();
@@ -27025,9 +27025,9 @@ var require_lib3 = __commonJS({
27025
27025
  {
27026
27026
  NodePrototype.__clone = function() {
27027
27027
  const newNode = new Node(void 0, this.start, this.loc.start);
27028
- const keys = Object.keys(this);
27029
- for (let i = 0, length = keys.length; i < length; i++) {
27030
- const key = keys[i];
27028
+ const keys2 = Object.keys(this);
27029
+ for (let i = 0, length = keys2.length; i < length; i++) {
27030
+ const key = keys2[i];
27031
27031
  if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
27032
27032
  newNode[key] = this[key];
27033
27033
  }
@@ -43325,10 +43325,10 @@ var require_util2 = __commonJS({
43325
43325
  var result = {};
43326
43326
  var argc = args.length;
43327
43327
  for (var i = 0; i < argc; ++i) {
43328
- var keys = Object.keys(args[i]);
43329
- var keyCount = keys.length;
43328
+ var keys2 = Object.keys(args[i]);
43329
+ var keyCount = keys2.length;
43330
43330
  for (var j = 0; j < keyCount; ++j) {
43331
- result[keys[j]] = true;
43331
+ result[keys2[j]] = true;
43332
43332
  }
43333
43333
  }
43334
43334
  return result;
@@ -50988,10 +50988,10 @@ var require_parser2 = __commonJS({
50988
50988
  loc.indent = newIndent;
50989
50989
  this.findTokenRange(loc);
50990
50990
  }
50991
- var keys = Object.keys(node);
50992
- var keyCount = keys.length;
50991
+ var keys2 = Object.keys(node);
50992
+ var keyCount = keys2.length;
50993
50993
  for (var i = 0; i < keyCount; ++i) {
50994
- var key = keys[i];
50994
+ var key = keys2[i];
50995
50995
  if (key === "loc") {
50996
50996
  copy[key] = node[key];
50997
50997
  } else if (key === "tokens" && node.type === "File") {
@@ -51750,13 +51750,13 @@ var require_patcher = __commonJS({
51750
51750
  if (newPath.needsParens() && !oldPath.hasParens()) {
51751
51751
  return false;
51752
51752
  }
51753
- var keys = (0, util_1.getUnionOfKeys)(oldNode, newNode);
51753
+ var keys2 = (0, util_1.getUnionOfKeys)(oldNode, newNode);
51754
51754
  if (oldNode.type === "File" || newNode.type === "File") {
51755
- delete keys.tokens;
51755
+ delete keys2.tokens;
51756
51756
  }
51757
- delete keys.loc;
51757
+ delete keys2.loc;
51758
51758
  var originalReprintCount = reprints.length;
51759
- for (var k in keys) {
51759
+ for (var k in keys2) {
51760
51760
  if (k.charAt(0) === "_") {
51761
51761
  continue;
51762
51762
  }
@@ -54302,9 +54302,9 @@ var fragmentKey = " $fragments";
54302
54302
 
54303
54303
  // src/runtime/lib/key.ts
54304
54304
  var computeKey = ({ field, args }) => {
54305
- const keys = Object.keys(args ?? {});
54306
- keys.sort();
54307
- return args && keys.length > 0 ? `${field}(${keys.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
54305
+ const keys2 = Object.keys(args ?? {});
54306
+ keys2.sort();
54307
+ return args && keys2.length > 0 ? `${field}(${keys2.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
54308
54308
  };
54309
54309
  var stringifyObjectWithNoQuotesOnKeys = (obj_from_json) => {
54310
54310
  if (Array.isArray(obj_from_json)) {
@@ -56256,7 +56256,8 @@ var CacheInternal = class {
56256
56256
  parent = rootID,
56257
56257
  variables,
56258
56258
  stepsFromConnection = null,
56259
- ignoreMasking
56259
+ ignoreMasking,
56260
+ fullCheck = false
56260
56261
  }) {
56261
56262
  if (parent === null) {
56262
56263
  return { data: null, partial: false, stale: false, hasData: true };
@@ -56281,11 +56282,28 @@ var CacheInternal = class {
56281
56282
  let targetSelection = getFieldsForType(selection, typename);
56282
56283
  for (const [
56283
56284
  attributeName,
56284
- { type, keyRaw, selection: fieldSelection, nullable, list, visible }
56285
+ { type, keyRaw, selection: fieldSelection, nullable, list, visible, directives }
56285
56286
  ] of Object.entries(targetSelection)) {
56286
- if (!visible && !ignoreMasking) {
56287
+ if (!visible && !ignoreMasking && !fullCheck) {
56287
56288
  continue;
56288
56289
  }
56290
+ const includeDirective = directives?.find((d) => {
56291
+ return d.name === "include";
56292
+ });
56293
+ if (includeDirective) {
56294
+ if (!evaluateFragmentVariables(includeDirective.arguments, variables ?? {})["if"]) {
56295
+ continue;
56296
+ }
56297
+ }
56298
+ const skipDirective = directives?.find((d) => {
56299
+ return d.name === "skip";
56300
+ });
56301
+ if (skipDirective) {
56302
+ if (evaluateFragmentVariables(skipDirective.arguments, variables ?? {})["if"]) {
56303
+ continue;
56304
+ }
56305
+ }
56306
+ const fieldTarget = visible || ignoreMasking ? target : {};
56289
56307
  const key = evaluateKey(keyRaw, variables);
56290
56308
  const { value } = this.storage.get(parent, key);
56291
56309
  const dt_field = this.staleManager.getFieldTime(parent, key);
@@ -56308,16 +56326,16 @@ var CacheInternal = class {
56308
56326
  partial = true;
56309
56327
  }
56310
56328
  if (typeof value === "undefined" || value === null) {
56311
- target[attributeName] = null;
56329
+ fieldTarget[attributeName] = null;
56312
56330
  if (typeof value !== "undefined") {
56313
56331
  hasData = true;
56314
56332
  }
56315
56333
  } else if (!fieldSelection) {
56316
56334
  const fnUnmarshal = this.config?.scalars?.[type]?.unmarshal;
56317
56335
  if (fnUnmarshal) {
56318
- target[attributeName] = fnUnmarshal(value);
56336
+ fieldTarget[attributeName] = fnUnmarshal(value);
56319
56337
  } else {
56320
- target[attributeName] = value;
56338
+ fieldTarget[attributeName] = value;
56321
56339
  }
56322
56340
  hasData = true;
56323
56341
  } else if (Array.isArray(value)) {
@@ -56326,9 +56344,10 @@ var CacheInternal = class {
56326
56344
  variables,
56327
56345
  linkedList: value,
56328
56346
  stepsFromConnection: nextStep,
56329
- ignoreMasking: !!ignoreMasking
56347
+ ignoreMasking: !!ignoreMasking,
56348
+ fullCheck
56330
56349
  });
56331
- target[attributeName] = listValue.data;
56350
+ fieldTarget[attributeName] = listValue.data;
56332
56351
  if (listValue.partial) {
56333
56352
  partial = true;
56334
56353
  }
@@ -56344,9 +56363,10 @@ var CacheInternal = class {
56344
56363
  selection: fieldSelection,
56345
56364
  variables,
56346
56365
  stepsFromConnection: nextStep,
56347
- ignoreMasking
56366
+ ignoreMasking,
56367
+ fullCheck
56348
56368
  });
56349
- target[attributeName] = objectFields.data;
56369
+ fieldTarget[attributeName] = objectFields.data;
56350
56370
  if (objectFields.partial) {
56351
56371
  partial = true;
56352
56372
  }
@@ -56357,7 +56377,7 @@ var CacheInternal = class {
56357
56377
  hasData = true;
56358
56378
  }
56359
56379
  }
56360
- if (target[attributeName] === null && !nullable && !embeddedCursor) {
56380
+ if (fieldTarget[attributeName] === null && !nullable && !embeddedCursor) {
56361
56381
  cascadeNull = true;
56362
56382
  }
56363
56383
  }
@@ -56389,7 +56409,8 @@ var CacheInternal = class {
56389
56409
  variables,
56390
56410
  linkedList,
56391
56411
  stepsFromConnection,
56392
- ignoreMasking
56412
+ ignoreMasking,
56413
+ fullCheck
56393
56414
  }) {
56394
56415
  const result = [];
56395
56416
  let partialData = false;
@@ -56402,7 +56423,8 @@ var CacheInternal = class {
56402
56423
  variables,
56403
56424
  linkedList: entry,
56404
56425
  stepsFromConnection,
56405
- ignoreMasking
56426
+ ignoreMasking,
56427
+ fullCheck
56406
56428
  });
56407
56429
  result.push(nestedValue.data);
56408
56430
  if (nestedValue.partial) {
@@ -56424,7 +56446,8 @@ var CacheInternal = class {
56424
56446
  selection: fields,
56425
56447
  variables,
56426
56448
  stepsFromConnection,
56427
- ignoreMasking
56449
+ ignoreMasking,
56450
+ fullCheck
56428
56451
  });
56429
56452
  result.push(data);
56430
56453
  if (partial) {
@@ -56866,8 +56889,8 @@ var Config = class {
56866
56889
  if (!apiURL) {
56867
56890
  return "";
56868
56891
  }
56869
- const env = await this.getEnv();
56870
- return this.processEnvValues(env, apiURL);
56892
+ const env2 = await this.getEnv();
56893
+ return this.processEnvValues(env2, apiURL);
56871
56894
  }
56872
56895
  get include() {
56873
56896
  if (this.configFile.include) {
@@ -56882,35 +56905,35 @@ var Config = class {
56882
56905
  return this.configFile.plugins?.[name] ?? {};
56883
56906
  }
56884
56907
  async getEnv() {
56885
- let env = process.env;
56908
+ let env2 = process.env;
56886
56909
  for (const plugin2 of this.plugins) {
56887
56910
  if (plugin2.env) {
56888
- env = {
56889
- ...await plugin2.env({ config: this, env })
56911
+ env2 = {
56912
+ ...await plugin2.env({ config: this, env: env2 })
56890
56913
  };
56891
56914
  }
56892
56915
  }
56893
- return env;
56916
+ return env2;
56894
56917
  }
56895
- processEnvValues(env, value) {
56918
+ processEnvValues(env2, value) {
56896
56919
  let headerValue;
56897
56920
  if (typeof value === "function") {
56898
- headerValue = value(env);
56921
+ headerValue = value(env2);
56899
56922
  } else if (value.startsWith("env:")) {
56900
- headerValue = env[value.slice("env:".length)];
56923
+ headerValue = env2[value.slice("env:".length)];
56901
56924
  } else {
56902
56925
  headerValue = value;
56903
56926
  }
56904
56927
  return headerValue;
56905
56928
  }
56906
56929
  async pullHeaders() {
56907
- const env = await this.getEnv();
56930
+ const env2 = await this.getEnv();
56908
56931
  if (typeof this.schemaPollHeaders === "function") {
56909
- return this.schemaPollHeaders(env);
56932
+ return this.schemaPollHeaders(env2);
56910
56933
  }
56911
56934
  const headers = Object.fromEntries(
56912
56935
  Object.entries(this.schemaPollHeaders || {}).map(([key, value]) => {
56913
- const headerValue = this.processEnvValues(env, value);
56936
+ const headerValue = this.processEnvValues(env2, value);
56914
56937
  if (!headerValue) {
56915
56938
  return [];
56916
56939
  }
@@ -57198,7 +57221,7 @@ var Config = class {
57198
57221
  fragment: fragment2
57199
57222
  }) {
57200
57223
  this.#fragmentVariableMaps[hash] = {
57201
- args: this.#serializeValueMap(args),
57224
+ args: this.serializeValueMap(args),
57202
57225
  fragment: fragment2
57203
57226
  };
57204
57227
  }
@@ -57209,7 +57232,7 @@ var Config = class {
57209
57232
  hash
57210
57233
  };
57211
57234
  }
57212
- #serializeValueMap(map) {
57235
+ serializeValueMap(map) {
57213
57236
  if (!map) {
57214
57237
  return null;
57215
57238
  }
@@ -57224,7 +57247,7 @@ var Config = class {
57224
57247
  }
57225
57248
  if ("values" in input) {
57226
57249
  result.values = input.values.map(
57227
- (value) => this.#serializeValueMap({ foo: value }).foo
57250
+ (value) => this.serializeValueMap({ foo: value }).foo
57228
57251
  );
57229
57252
  }
57230
57253
  if ("name" in input) {
@@ -57233,7 +57256,7 @@ var Config = class {
57233
57256
  if ("fields" in input) {
57234
57257
  result.fields = input.fields.map((field) => ({
57235
57258
  name: field.name,
57236
- value: this.#serializeValueMap({ foo: field.value }).foo
57259
+ value: this.serializeValueMap({ foo: field.value }).foo
57237
57260
  }));
57238
57261
  }
57239
57262
  }
@@ -57840,6 +57863,205 @@ function murmurHash(str) {
57840
57863
  return s;
57841
57864
  }
57842
57865
 
57866
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/types.js
57867
+ var VOID = -1;
57868
+ var PRIMITIVE = 0;
57869
+ var ARRAY = 1;
57870
+ var OBJECT = 2;
57871
+ var DATE = 3;
57872
+ var REGEXP = 4;
57873
+ var MAP = 5;
57874
+ var SET = 6;
57875
+ var ERROR = 7;
57876
+ var BIGINT = 8;
57877
+
57878
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
57879
+ var env = typeof self === "object" ? self : globalThis;
57880
+ var deserializer = ($, _) => {
57881
+ const as = (out, index) => {
57882
+ $.set(index, out);
57883
+ return out;
57884
+ };
57885
+ const unpair = (index) => {
57886
+ if ($.has(index))
57887
+ return $.get(index);
57888
+ const [type, value] = _[index];
57889
+ switch (type) {
57890
+ case PRIMITIVE:
57891
+ case VOID:
57892
+ return as(value, index);
57893
+ case ARRAY: {
57894
+ const arr = as([], index);
57895
+ for (const index2 of value)
57896
+ arr.push(unpair(index2));
57897
+ return arr;
57898
+ }
57899
+ case OBJECT: {
57900
+ const object = as({}, index);
57901
+ for (const [key, index2] of value)
57902
+ object[unpair(key)] = unpair(index2);
57903
+ return object;
57904
+ }
57905
+ case DATE:
57906
+ return as(new Date(value), index);
57907
+ case REGEXP: {
57908
+ const { source, flags } = value;
57909
+ return as(new RegExp(source, flags), index);
57910
+ }
57911
+ case MAP: {
57912
+ const map = as(/* @__PURE__ */ new Map(), index);
57913
+ for (const [key, index2] of value)
57914
+ map.set(unpair(key), unpair(index2));
57915
+ return map;
57916
+ }
57917
+ case SET: {
57918
+ const set = as(/* @__PURE__ */ new Set(), index);
57919
+ for (const index2 of value)
57920
+ set.add(unpair(index2));
57921
+ return set;
57922
+ }
57923
+ case ERROR: {
57924
+ const { name, message } = value;
57925
+ return as(new env[name](message), index);
57926
+ }
57927
+ case BIGINT:
57928
+ return as(BigInt(value), index);
57929
+ case "BigInt":
57930
+ return as(Object(BigInt(value)), index);
57931
+ }
57932
+ return as(new env[type](value), index);
57933
+ };
57934
+ return unpair;
57935
+ };
57936
+ var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
57937
+
57938
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/serialize.js
57939
+ var EMPTY = "";
57940
+ var { toString } = {};
57941
+ var { keys } = Object;
57942
+ var typeOf = (value) => {
57943
+ const type = typeof value;
57944
+ if (type !== "object" || !value)
57945
+ return [PRIMITIVE, type];
57946
+ const asString = toString.call(value).slice(8, -1);
57947
+ switch (asString) {
57948
+ case "Array":
57949
+ return [ARRAY, EMPTY];
57950
+ case "Object":
57951
+ return [OBJECT, EMPTY];
57952
+ case "Date":
57953
+ return [DATE, EMPTY];
57954
+ case "RegExp":
57955
+ return [REGEXP, EMPTY];
57956
+ case "Map":
57957
+ return [MAP, EMPTY];
57958
+ case "Set":
57959
+ return [SET, EMPTY];
57960
+ }
57961
+ if (asString.includes("Array"))
57962
+ return [ARRAY, asString];
57963
+ if (asString.includes("Error"))
57964
+ return [ERROR, asString];
57965
+ return [OBJECT, asString];
57966
+ };
57967
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
57968
+ var serializer = (strict, json, $, _) => {
57969
+ const as = (out, value) => {
57970
+ const index = _.push(out) - 1;
57971
+ $.set(value, index);
57972
+ return index;
57973
+ };
57974
+ const pair = (value) => {
57975
+ if ($.has(value))
57976
+ return $.get(value);
57977
+ let [TYPE, type] = typeOf(value);
57978
+ switch (TYPE) {
57979
+ case PRIMITIVE: {
57980
+ let entry = value;
57981
+ switch (type) {
57982
+ case "bigint":
57983
+ TYPE = BIGINT;
57984
+ entry = value.toString();
57985
+ break;
57986
+ case "function":
57987
+ case "symbol":
57988
+ if (strict)
57989
+ throw new TypeError("unable to serialize " + type);
57990
+ entry = null;
57991
+ break;
57992
+ case "undefined":
57993
+ return as([VOID], value);
57994
+ }
57995
+ return as([TYPE, entry], value);
57996
+ }
57997
+ case ARRAY: {
57998
+ if (type)
57999
+ return as([type, [...value]], value);
58000
+ const arr = [];
58001
+ const index = as([TYPE, arr], value);
58002
+ for (const entry of value)
58003
+ arr.push(pair(entry));
58004
+ return index;
58005
+ }
58006
+ case OBJECT: {
58007
+ if (type) {
58008
+ switch (type) {
58009
+ case "BigInt":
58010
+ return as([type, value.toString()], value);
58011
+ case "Boolean":
58012
+ case "Number":
58013
+ case "String":
58014
+ return as([type, value.valueOf()], value);
58015
+ }
58016
+ }
58017
+ if (json && "toJSON" in value)
58018
+ return pair(value.toJSON());
58019
+ const entries = [];
58020
+ const index = as([TYPE, entries], value);
58021
+ for (const key of keys(value)) {
58022
+ if (strict || !shouldSkip(typeOf(value[key])))
58023
+ entries.push([pair(key), pair(value[key])]);
58024
+ }
58025
+ return index;
58026
+ }
58027
+ case DATE:
58028
+ return as([TYPE, value.toISOString()], value);
58029
+ case REGEXP: {
58030
+ const { source, flags } = value;
58031
+ return as([TYPE, { source, flags }], value);
58032
+ }
58033
+ case MAP: {
58034
+ const entries = [];
58035
+ const index = as([TYPE, entries], value);
58036
+ for (const [key, entry] of value) {
58037
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
58038
+ entries.push([pair(key), pair(entry)]);
58039
+ }
58040
+ return index;
58041
+ }
58042
+ case SET: {
58043
+ const entries = [];
58044
+ const index = as([TYPE, entries], value);
58045
+ for (const entry of value) {
58046
+ if (strict || !shouldSkip(typeOf(entry)))
58047
+ entries.push(pair(entry));
58048
+ }
58049
+ return index;
58050
+ }
58051
+ }
58052
+ const { message } = value;
58053
+ return as([TYPE, { name: type, message }], value);
58054
+ };
58055
+ return pair;
58056
+ };
58057
+ var serialize = (value, { json, lossy } = {}) => {
58058
+ const _ = [];
58059
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
58060
+ };
58061
+
58062
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/index.js
58063
+ 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));
58064
+
57843
58065
  // src/codegen/transforms/fragmentVariables.ts
57844
58066
  var graphql3 = __toESM(require_graphql2(), 1);
57845
58067
 
@@ -57987,100 +58209,106 @@ function inlineFragmentArgs({
57987
58209
  filepath,
57988
58210
  document
57989
58211
  ).reduce((acc, arg) => ({ ...acc, [arg.name]: arg }), {});
57990
- const result = graphql3.visit(document, {
57991
- FragmentSpread(node) {
57992
- if (!fragmentDefinitions[node.name.value]) {
57993
- throw new Error("Could not find definition for fragment" + node.name.value);
57994
- }
57995
- const { definition } = fragmentDefinitions[node.name.value];
57996
- let { args, hash } = collectWithArguments(config2, filepath, node, scope);
57997
- const newFragmentName = `${node.name.value}${hash}`;
57998
- config2.registerFragmentVariablesHash({
57999
- hash: newFragmentName,
58000
- fragment: node.name.value,
58001
- args
58002
- });
58003
- if (!visitedFragments.has(newFragmentName)) {
58004
- visitedFragments.add(newFragmentName);
58005
- const defaultArguments = collectDefaultArgumentValues(config2, filepath, definition);
58006
- if (args) {
58007
- for (const [field, value] of Object.entries(defaultArguments || {})) {
58008
- if (!args[field]) {
58009
- args[field] = value;
58010
- }
58011
- }
58012
- generatedFragments[newFragmentName] = inlineFragmentArgs({
58013
- config: config2,
58212
+ const result = esm_default(
58213
+ graphql3.visit(document, {
58214
+ FragmentSpread(node) {
58215
+ if (!fragmentDefinitions[node.name.value]) {
58216
+ throw new Error("Could not find definition for fragment" + node.name.value);
58217
+ }
58218
+ const { definition } = fragmentDefinitions[node.name.value];
58219
+ let { args, hash } = collectWithArguments(config2, filepath, node, scope);
58220
+ const newFragmentName = `${node.name.value}${hash}`;
58221
+ config2.registerFragmentVariablesHash({
58222
+ hash: newFragmentName,
58223
+ fragment: node.name.value,
58224
+ args
58225
+ });
58226
+ if (!visitedFragments.has(newFragmentName)) {
58227
+ visitedFragments.add(newFragmentName);
58228
+ const defaultArguments = collectDefaultArgumentValues(
58229
+ config2,
58014
58230
  filepath,
58015
- fragmentDefinitions,
58016
- document: fragmentDefinitions[node.name.value].definition,
58017
- generatedFragments,
58018
- visitedFragments,
58019
- scope: args,
58020
- newName: newFragmentName
58021
- });
58022
- } else {
58023
- const doc = fragmentDefinitions[node.name.value].document;
58024
- const definitionIndex = doc.document.definitions.findIndex(
58025
- (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
58231
+ definition
58026
58232
  );
58027
- const localDefinitions = [...doc.document.definitions];
58028
- localDefinitions.splice(definitionIndex, 1);
58029
- localDefinitions.push(
58030
- inlineFragmentArgs({
58233
+ if (args) {
58234
+ for (const [field, value] of Object.entries(defaultArguments || {})) {
58235
+ if (!args[field]) {
58236
+ args[field] = value;
58237
+ }
58238
+ }
58239
+ generatedFragments[newFragmentName] = inlineFragmentArgs({
58031
58240
  config: config2,
58032
58241
  filepath,
58033
58242
  fragmentDefinitions,
58034
58243
  document: fragmentDefinitions[node.name.value].definition,
58035
58244
  generatedFragments,
58036
58245
  visitedFragments,
58037
- scope: defaultArguments,
58038
- newName: ""
58039
- })
58040
- );
58041
- doc.document = {
58042
- ...doc.document,
58043
- definitions: localDefinitions
58044
- };
58246
+ scope: args,
58247
+ newName: newFragmentName
58248
+ });
58249
+ } else {
58250
+ const doc = fragmentDefinitions[node.name.value].document;
58251
+ const definitionIndex = doc.document.definitions.findIndex(
58252
+ (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
58253
+ );
58254
+ const localDefinitions = [...doc.document.definitions];
58255
+ localDefinitions.splice(definitionIndex, 1);
58256
+ localDefinitions.push(
58257
+ inlineFragmentArgs({
58258
+ config: config2,
58259
+ filepath,
58260
+ fragmentDefinitions,
58261
+ document: fragmentDefinitions[node.name.value].definition,
58262
+ generatedFragments,
58263
+ visitedFragments,
58264
+ scope: defaultArguments,
58265
+ newName: ""
58266
+ })
58267
+ );
58268
+ doc.document = {
58269
+ ...doc.document,
58270
+ definitions: localDefinitions
58271
+ };
58272
+ }
58273
+ if (node.name.value !== newFragmentName) {
58274
+ return {
58275
+ ...node,
58276
+ name: {
58277
+ kind: "Name",
58278
+ value: newFragmentName
58279
+ }
58280
+ };
58281
+ }
58045
58282
  }
58046
- if (node.name.value !== newFragmentName) {
58283
+ },
58284
+ Argument(node) {
58285
+ const value = node.value;
58286
+ if (value.kind !== "Variable") {
58287
+ return;
58288
+ }
58289
+ if (!scope) {
58290
+ throw new HoudiniError({
58291
+ filepath,
58292
+ message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
58293
+ });
58294
+ }
58295
+ const newValue = scope[value.name.value];
58296
+ if (newValue) {
58047
58297
  return {
58048
58298
  ...node,
58049
- name: {
58050
- kind: "Name",
58051
- value: newFragmentName
58052
- }
58299
+ value: newValue
58053
58300
  };
58054
58301
  }
58302
+ if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
58303
+ throw new HoudiniError({
58304
+ filepath,
58305
+ message: "Missing value for required arg: " + value.name.value
58306
+ });
58307
+ }
58308
+ return null;
58055
58309
  }
58056
- },
58057
- Argument(node) {
58058
- const value = node.value;
58059
- if (value.kind !== "Variable") {
58060
- return;
58061
- }
58062
- if (!scope) {
58063
- throw new HoudiniError({
58064
- filepath,
58065
- message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
58066
- });
58067
- }
58068
- const newValue = scope[value.name.value];
58069
- if (newValue) {
58070
- return {
58071
- ...node,
58072
- value: newValue
58073
- };
58074
- }
58075
- if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
58076
- throw new HoudiniError({
58077
- filepath,
58078
- message: "Missing value for required arg: " + value.name.value
58079
- });
58080
- }
58081
- return null;
58082
- }
58083
- });
58310
+ })
58311
+ );
58084
58312
  if (newName) {
58085
58313
  result.name = {
58086
58314
  kind: graphql3.Kind.NAME,
@@ -58796,7 +59024,7 @@ async function paginate(config2, documents) {
58796
59024
  ]
58797
59025
  }
58798
59026
  ];
58799
- const keys = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
59027
+ const keys2 = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
58800
59028
  if (fragment2 === config2.schema.getQueryType()?.name) {
58801
59029
  return [];
58802
59030
  }
@@ -58846,7 +59074,7 @@ async function paginate(config2, documents) {
58846
59074
  }
58847
59075
  })
58848
59076
  ).concat(
58849
- !nodeQuery ? [] : keys.map(
59077
+ !nodeQuery ? [] : keys2.map(
58850
59078
  (key) => ({
58851
59079
  kind: graphql8.Kind.VARIABLE_DEFINITION,
58852
59080
  type: key.type,
@@ -58869,7 +59097,7 @@ async function paginate(config2, documents) {
58869
59097
  kind: graphql8.Kind.NAME,
58870
59098
  value: typeConfig?.resolve?.queryField || "node"
58871
59099
  },
58872
- ["arguments"]: keys.map((key) => ({
59100
+ ["arguments"]: keys2.map((key) => ({
58873
59101
  kind: graphql8.Kind.ARGUMENT,
58874
59102
  name: {
58875
59103
  kind: graphql8.Kind.NAME,
@@ -59563,12 +59791,24 @@ function prepareSelection({
59563
59791
  }
59564
59792
  const typeName = fieldType.toString();
59565
59793
  const pathSoFar = path2.concat(attributeName);
59566
- const keys = config2.keyFieldsForType(rootType);
59794
+ const keys2 = config2.keyFieldsForType(rootType);
59567
59795
  let fieldObj = {
59568
59796
  type: typeName,
59569
59797
  keyRaw: fieldKey(config2, field)
59570
59798
  };
59571
- if (keys.includes(field.name.value)) {
59799
+ if (field.directives && field.directives.length > 0) {
59800
+ fieldObj.directives = field.directives?.map((directive) => ({
59801
+ name: directive.name.value,
59802
+ arguments: (directive.arguments ?? []).reduce(
59803
+ (acc, arg) => ({
59804
+ ...acc,
59805
+ [arg.name.value]: config2.serializeValueMap({ field: arg.value })["field"]
59806
+ }),
59807
+ {}
59808
+ )
59809
+ }));
59810
+ }
59811
+ if (keys2.includes(field.name.value)) {
59572
59812
  fieldObj.visible = true;
59573
59813
  }
59574
59814
  if (nullable) {
@@ -59793,12 +60033,7 @@ function artifactGenerator(stats) {
59793
60033
  writeIndexFile(config2, docs)
59794
60034
  ].concat(
59795
60035
  docs.map(async (doc) => {
59796
- const {
59797
- document,
59798
- name,
59799
- generateArtifact,
59800
- originalParsed
59801
- } = doc;
60036
+ const { document, name, generateArtifact, originalParsed, originalString } = doc;
59802
60037
  if (!generateArtifact) {
59803
60038
  return;
59804
60039
  }
@@ -61059,10 +61294,10 @@ function typeDefinitions(config2, body, docs, returnType) {
61059
61294
  typeName = "__ROOT__";
61060
61295
  }
61061
61296
  let idFields = AST12.tsNeverKeyword();
61062
- const keys = keyFieldsForType(config2.configFile, type.name);
61063
- if (graphql17.isObjectType(type) && keys.length > 0 && keys.every((key) => type.getFields()[key])) {
61297
+ const keys2 = keyFieldsForType(config2.configFile, type.name);
61298
+ if (graphql17.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
61064
61299
  idFields = AST12.tsTypeLiteral(
61065
- keys.map((key) => {
61300
+ keys2.map((key) => {
61066
61301
  const fieldType = type.getFields()[key];
61067
61302
  const unwrapped = unwrapType(config2, fieldType.type);
61068
61303
  return AST12.tsPropertySignature(
@@ -62808,7 +63043,7 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62808
63043
  usersByCursor(first: Int, after: String, last: Int, before: String): UserConnection!
62809
63044
  usersByBackwardsCursor(last: Int, before: String): UserConnection!
62810
63045
  usersByForwardsCursor(first: Int, after: String): UserConnection!
62811
- usersByOffset(offset: Int, limit: Int): [User!]!
63046
+ usersByOffset(offset: Int, limit: Int, stringFilter: String, filter: UserFilter): [User!]!
62812
63047
  friendsByCursor(first: Int, after: String, last: Int, before: String): FriendConnection!
62813
63048
  ghostsByCursor(first: Int, after: String, last: Int, before: String): IsGhostConnection!
62814
63049
  entitiesByCursor(first: Int, after: String, last: Int, before: String): EntityConnection!
@@ -62818,6 +63053,10 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62818
63053
  monkeys: MonkeyConnection!
62819
63054
  }
62820
63055
 
63056
+ input UserFilter {
63057
+ name: String
63058
+ }
63059
+
62821
63060
  type PageInfo {
62822
63061
  hasPreviousPage: Boolean!
62823
63062
  hasNextPage: Boolean!
@@ -62896,7 +63135,7 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62896
63135
  interface IsGhost {
62897
63136
  aka: String!
62898
63137
  }
62899
-
63138
+
62900
63139
  interface Animal implements Node {
62901
63140
  id: ID!
62902
63141
  name: String!