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.
@@ -230,16 +230,16 @@ var require_GraphQLError = __commonJS({
230
230
  return obj && obj.__esModule ? obj : { default: obj };
231
231
  }
232
232
  function ownKeys(object, enumerableOnly) {
233
- var keys = Object.keys(object);
233
+ var keys2 = Object.keys(object);
234
234
  if (Object.getOwnPropertySymbols) {
235
235
  var symbols = Object.getOwnPropertySymbols(object);
236
236
  if (enumerableOnly)
237
237
  symbols = symbols.filter(function(sym) {
238
238
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
239
239
  });
240
- keys.push.apply(keys, symbols);
240
+ keys2.push.apply(keys2, symbols);
241
241
  }
242
- return keys;
242
+ return keys2;
243
243
  }
244
244
  function _objectSpread(target) {
245
245
  for (var i = 1; i < arguments.length; i++) {
@@ -476,7 +476,7 @@ var require_GraphQLError = __commonJS({
476
476
  }
477
477
  _createClass(GraphQLError4, [{
478
478
  key: "toString",
479
- value: function toString() {
479
+ value: function toString2() {
480
480
  return printError(this);
481
481
  }
482
482
  }, {
@@ -798,14 +798,14 @@ var require_inspect = __commonJS({
798
798
  return formatObject(value, seenValues);
799
799
  }
800
800
  function formatObject(object, seenValues) {
801
- var keys = Object.keys(object);
802
- if (keys.length === 0) {
801
+ var keys2 = Object.keys(object);
802
+ if (keys2.length === 0) {
803
803
  return "{}";
804
804
  }
805
805
  if (seenValues.length > MAX_RECURSIVE_DEPTH) {
806
806
  return "[" + getObjectTag(object) + "]";
807
807
  }
808
- var properties = keys.map(function(key) {
808
+ var properties = keys2.map(function(key) {
809
809
  var value = formatValue(object[key], seenValues);
810
810
  return key + ": " + value;
811
811
  });
@@ -2470,7 +2470,7 @@ var require_visitor = __commonJS({
2470
2470
  var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
2471
2471
  var stack = void 0;
2472
2472
  var inArray = Array.isArray(root);
2473
- var keys = [root];
2473
+ var keys2 = [root];
2474
2474
  var index = -1;
2475
2475
  var edits = [];
2476
2476
  var node = void 0;
@@ -2481,7 +2481,7 @@ var require_visitor = __commonJS({
2481
2481
  var newRoot = root;
2482
2482
  do {
2483
2483
  index++;
2484
- var isLeaving = index === keys.length;
2484
+ var isLeaving = index === keys2.length;
2485
2485
  var isEdited = isLeaving && edits.length !== 0;
2486
2486
  if (isLeaving) {
2487
2487
  key = ancestors.length === 0 ? void 0 : path2[path2.length - 1];
@@ -2514,12 +2514,12 @@ var require_visitor = __commonJS({
2514
2514
  }
2515
2515
  }
2516
2516
  index = stack.index;
2517
- keys = stack.keys;
2517
+ keys2 = stack.keys;
2518
2518
  edits = stack.edits;
2519
2519
  inArray = stack.inArray;
2520
2520
  stack = stack.prev;
2521
2521
  } else {
2522
- key = parent ? inArray ? index : keys[index] : void 0;
2522
+ key = parent ? inArray ? index : keys2[index] : void 0;
2523
2523
  node = parent ? parent[key] : newRoot;
2524
2524
  if (node === null || node === void 0) {
2525
2525
  continue;
@@ -2567,12 +2567,12 @@ var require_visitor = __commonJS({
2567
2567
  stack = {
2568
2568
  inArray,
2569
2569
  index,
2570
- keys,
2570
+ keys: keys2,
2571
2571
  edits,
2572
2572
  prev: stack
2573
2573
  };
2574
2574
  inArray = Array.isArray(node);
2575
- keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
2575
+ keys2 = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
2576
2576
  index = -1;
2577
2577
  edits = [];
2578
2578
  if (parent) {
@@ -3555,7 +3555,7 @@ var require_definition = __commonJS({
3555
3555
  return new GraphQLList2(ofType);
3556
3556
  }
3557
3557
  }
3558
- GraphQLList2.prototype.toString = function toString() {
3558
+ GraphQLList2.prototype.toString = function toString2() {
3559
3559
  return "[" + String(this.ofType) + "]";
3560
3560
  };
3561
3561
  GraphQLList2.prototype.toJSON = function toJSON() {
@@ -3574,7 +3574,7 @@ var require_definition = __commonJS({
3574
3574
  return new GraphQLNonNull2(ofType);
3575
3575
  }
3576
3576
  }
3577
- GraphQLNonNull2.prototype.toString = function toString() {
3577
+ GraphQLNonNull2.prototype.toString = function toString2() {
3578
3578
  return String(this.ofType) + "!";
3579
3579
  };
3580
3580
  GraphQLNonNull2.prototype.toJSON = function toJSON() {
@@ -3670,7 +3670,7 @@ var require_definition = __commonJS({
3670
3670
  extensionASTNodes: (_this$extensionASTNod = this.extensionASTNodes) !== null && _this$extensionASTNod !== void 0 ? _this$extensionASTNod : []
3671
3671
  };
3672
3672
  };
3673
- _proto.toString = function toString() {
3673
+ _proto.toString = function toString2() {
3674
3674
  return this.name;
3675
3675
  };
3676
3676
  _proto.toJSON = function toJSON() {
@@ -3724,7 +3724,7 @@ var require_definition = __commonJS({
3724
3724
  extensionASTNodes: this.extensionASTNodes || []
3725
3725
  };
3726
3726
  };
3727
- _proto2.toString = function toString() {
3727
+ _proto2.toString = function toString2() {
3728
3728
  return this.name;
3729
3729
  };
3730
3730
  _proto2.toJSON = function toJSON() {
@@ -3855,7 +3855,7 @@ var require_definition = __commonJS({
3855
3855
  extensionASTNodes: (_this$extensionASTNod2 = this.extensionASTNodes) !== null && _this$extensionASTNod2 !== void 0 ? _this$extensionASTNod2 : []
3856
3856
  };
3857
3857
  };
3858
- _proto3.toString = function toString() {
3858
+ _proto3.toString = function toString2() {
3859
3859
  return this.name;
3860
3860
  };
3861
3861
  _proto3.toJSON = function toJSON() {
@@ -3902,7 +3902,7 @@ var require_definition = __commonJS({
3902
3902
  extensionASTNodes: (_this$extensionASTNod3 = this.extensionASTNodes) !== null && _this$extensionASTNod3 !== void 0 ? _this$extensionASTNod3 : []
3903
3903
  };
3904
3904
  };
3905
- _proto4.toString = function toString() {
3905
+ _proto4.toString = function toString2() {
3906
3906
  return this.name;
3907
3907
  };
3908
3908
  _proto4.toJSON = function toJSON() {
@@ -3946,7 +3946,7 @@ var require_definition = __commonJS({
3946
3946
  _proto5.getValue = function getValue(name) {
3947
3947
  return this._nameLookup[name];
3948
3948
  };
3949
- _proto5.serialize = function serialize(outputValue) {
3949
+ _proto5.serialize = function serialize2(outputValue) {
3950
3950
  var enumValue = this._valueLookup.get(outputValue);
3951
3951
  if (enumValue === void 0) {
3952
3952
  throw new _GraphQLError.GraphQLError('Enum "'.concat(this.name, '" cannot represent value: ').concat((0, _inspect.default)(outputValue)));
@@ -3998,7 +3998,7 @@ var require_definition = __commonJS({
3998
3998
  extensionASTNodes: (_this$extensionASTNod4 = this.extensionASTNodes) !== null && _this$extensionASTNod4 !== void 0 ? _this$extensionASTNod4 : []
3999
3999
  };
4000
4000
  };
4001
- _proto5.toString = function toString() {
4001
+ _proto5.toString = function toString2() {
4002
4002
  return this.name;
4003
4003
  };
4004
4004
  _proto5.toJSON = function toJSON() {
@@ -4076,7 +4076,7 @@ var require_definition = __commonJS({
4076
4076
  extensionASTNodes: (_this$extensionASTNod5 = this.extensionASTNodes) !== null && _this$extensionASTNod5 !== void 0 ? _this$extensionASTNod5 : []
4077
4077
  };
4078
4078
  };
4079
- _proto6.toString = function toString() {
4079
+ _proto6.toString = function toString2() {
4080
4080
  return this.name;
4081
4081
  };
4082
4082
  _proto6.toJSON = function toJSON() {
@@ -5330,7 +5330,7 @@ var require_directives = __commonJS({
5330
5330
  astNode: this.astNode
5331
5331
  };
5332
5332
  };
5333
- _proto.toString = function toString() {
5333
+ _proto.toString = function toString2() {
5334
5334
  return "@" + this.name;
5335
5335
  };
5336
5336
  _proto.toJSON = function toJSON() {
@@ -7267,16 +7267,16 @@ var require_KnownArgumentNamesRule = __commonJS({
7267
7267
  return obj && obj.__esModule ? obj : { default: obj };
7268
7268
  }
7269
7269
  function ownKeys(object, enumerableOnly) {
7270
- var keys = Object.keys(object);
7270
+ var keys2 = Object.keys(object);
7271
7271
  if (Object.getOwnPropertySymbols) {
7272
7272
  var symbols = Object.getOwnPropertySymbols(object);
7273
7273
  if (enumerableOnly)
7274
7274
  symbols = symbols.filter(function(sym) {
7275
7275
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7276
7276
  });
7277
- keys.push.apply(keys, symbols);
7277
+ keys2.push.apply(keys2, symbols);
7278
7278
  }
7279
- return keys;
7279
+ return keys2;
7280
7280
  }
7281
7281
  function _objectSpread(target) {
7282
7282
  for (var i = 1; i < arguments.length; i++) {
@@ -7523,16 +7523,16 @@ var require_ProvidedRequiredArgumentsRule = __commonJS({
7523
7523
  return obj && obj.__esModule ? obj : { default: obj };
7524
7524
  }
7525
7525
  function ownKeys(object, enumerableOnly) {
7526
- var keys = Object.keys(object);
7526
+ var keys2 = Object.keys(object);
7527
7527
  if (Object.getOwnPropertySymbols) {
7528
7528
  var symbols = Object.getOwnPropertySymbols(object);
7529
7529
  if (enumerableOnly)
7530
7530
  symbols = symbols.filter(function(sym) {
7531
7531
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
7532
7532
  });
7533
- keys.push.apply(keys, symbols);
7533
+ keys2.push.apply(keys2, symbols);
7534
7534
  }
7535
- return keys;
7535
+ return keys2;
7536
7536
  }
7537
7537
  function _objectSpread(target) {
7538
7538
  for (var i = 1; i < arguments.length; i++) {
@@ -8790,13 +8790,13 @@ var require_promiseForObject = __commonJS({
8790
8790
  });
8791
8791
  exports.default = promiseForObject;
8792
8792
  function promiseForObject(object) {
8793
- var keys = Object.keys(object);
8794
- var valuesAndPromises = keys.map(function(name) {
8793
+ var keys2 = Object.keys(object);
8794
+ var valuesAndPromises = keys2.map(function(name) {
8795
8795
  return object[name];
8796
8796
  });
8797
8797
  return Promise.all(valuesAndPromises).then(function(values) {
8798
8798
  return values.reduce(function(resolvedObject, value, i) {
8799
- resolvedObject[keys[i]] = value;
8799
+ resolvedObject[keys2[i]] = value;
8800
8800
  return resolvedObject;
8801
8801
  }, /* @__PURE__ */ Object.create(null));
8802
8802
  });
@@ -11248,16 +11248,16 @@ var require_getIntrospectionQuery = __commonJS({
11248
11248
  });
11249
11249
  exports.getIntrospectionQuery = getIntrospectionQuery;
11250
11250
  function ownKeys(object, enumerableOnly) {
11251
- var keys = Object.keys(object);
11251
+ var keys2 = Object.keys(object);
11252
11252
  if (Object.getOwnPropertySymbols) {
11253
11253
  var symbols = Object.getOwnPropertySymbols(object);
11254
11254
  if (enumerableOnly)
11255
11255
  symbols = symbols.filter(function(sym) {
11256
11256
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11257
11257
  });
11258
- keys.push.apply(keys, symbols);
11258
+ keys2.push.apply(keys2, symbols);
11259
11259
  }
11260
- return keys;
11260
+ return keys2;
11261
11261
  }
11262
11262
  function _objectSpread(target) {
11263
11263
  for (var i = 1; i < arguments.length; i++) {
@@ -11350,16 +11350,16 @@ var require_introspectionFromSchema = __commonJS({
11350
11350
  return obj && obj.__esModule ? obj : { default: obj };
11351
11351
  }
11352
11352
  function ownKeys(object, enumerableOnly) {
11353
- var keys = Object.keys(object);
11353
+ var keys2 = Object.keys(object);
11354
11354
  if (Object.getOwnPropertySymbols) {
11355
11355
  var symbols = Object.getOwnPropertySymbols(object);
11356
11356
  if (enumerableOnly)
11357
11357
  symbols = symbols.filter(function(sym) {
11358
11358
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11359
11359
  });
11360
- keys.push.apply(keys, symbols);
11360
+ keys2.push.apply(keys2, symbols);
11361
11361
  }
11362
- return keys;
11362
+ return keys2;
11363
11363
  }
11364
11364
  function _objectSpread(target) {
11365
11365
  for (var i = 1; i < arguments.length; i++) {
@@ -11691,16 +11691,16 @@ var require_extendSchema = __commonJS({
11691
11691
  return obj && obj.__esModule ? obj : { default: obj };
11692
11692
  }
11693
11693
  function ownKeys(object, enumerableOnly) {
11694
- var keys = Object.keys(object);
11694
+ var keys2 = Object.keys(object);
11695
11695
  if (Object.getOwnPropertySymbols) {
11696
11696
  var symbols = Object.getOwnPropertySymbols(object);
11697
11697
  if (enumerableOnly)
11698
11698
  symbols = symbols.filter(function(sym) {
11699
11699
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11700
11700
  });
11701
- keys.push.apply(keys, symbols);
11701
+ keys2.push.apply(keys2, symbols);
11702
11702
  }
11703
- return keys;
11703
+ return keys2;
11704
11704
  }
11705
11705
  function _objectSpread(target) {
11706
11706
  for (var i = 1; i < arguments.length; i++) {
@@ -12291,16 +12291,16 @@ var require_lexicographicSortSchema = __commonJS({
12291
12291
  return obj && obj.__esModule ? obj : { default: obj };
12292
12292
  }
12293
12293
  function ownKeys(object, enumerableOnly) {
12294
- var keys = Object.keys(object);
12294
+ var keys2 = Object.keys(object);
12295
12295
  if (Object.getOwnPropertySymbols) {
12296
12296
  var symbols = Object.getOwnPropertySymbols(object);
12297
12297
  if (enumerableOnly)
12298
12298
  symbols = symbols.filter(function(sym) {
12299
12299
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
12300
12300
  });
12301
- keys.push.apply(keys, symbols);
12301
+ keys2.push.apply(keys2, symbols);
12302
12302
  }
12303
- return keys;
12303
+ return keys2;
12304
12304
  }
12305
12305
  function _objectSpread(target) {
12306
12306
  for (var i = 1; i < arguments.length; i++) {
@@ -12841,16 +12841,16 @@ var require_findBreakingChanges = __commonJS({
12841
12841
  return obj && obj.__esModule ? obj : { default: obj };
12842
12842
  }
12843
12843
  function ownKeys(object, enumerableOnly) {
12844
- var keys = Object.keys(object);
12844
+ var keys2 = Object.keys(object);
12845
12845
  if (Object.getOwnPropertySymbols) {
12846
12846
  var symbols = Object.getOwnPropertySymbols(object);
12847
12847
  if (enumerableOnly)
12848
12848
  symbols = symbols.filter(function(sym) {
12849
12849
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
12850
12850
  });
12851
- keys.push.apply(keys, symbols);
12851
+ keys2.push.apply(keys2, symbols);
12852
12852
  }
12853
- return keys;
12853
+ return keys2;
12854
12854
  }
12855
12855
  function _objectSpread(target) {
12856
12856
  for (var i = 1; i < arguments.length; i++) {
@@ -19350,9 +19350,9 @@ var require_legacy_streams = __commonJS({
19350
19350
  this.mode = 438;
19351
19351
  this.bufferSize = 64 * 1024;
19352
19352
  options = options || {};
19353
- var keys = Object.keys(options);
19354
- for (var index = 0, length = keys.length; index < length; index++) {
19355
- var key = keys[index];
19353
+ var keys2 = Object.keys(options);
19354
+ for (var index = 0, length = keys2.length; index < length; index++) {
19355
+ var key = keys2[index];
19356
19356
  this[key] = options[key];
19357
19357
  }
19358
19358
  if (this.encoding)
@@ -19400,9 +19400,9 @@ var require_legacy_streams = __commonJS({
19400
19400
  this.mode = 438;
19401
19401
  this.bytesWritten = 0;
19402
19402
  options = options || {};
19403
- var keys = Object.keys(options);
19404
- for (var index = 0, length = keys.length; index < length; index++) {
19405
- var key = keys[index];
19403
+ var keys2 = Object.keys(options);
19404
+ for (var index = 0, length = keys2.length; index < length; index++) {
19405
+ var key = keys2[index];
19406
19406
  this[key] = options[key];
19407
19407
  }
19408
19408
  if (this.start !== void 0) {
@@ -22619,10 +22619,10 @@ var require_glob = __commonJS({
22619
22619
  if (add === null || typeof add !== "object") {
22620
22620
  return origin;
22621
22621
  }
22622
- var keys = Object.keys(add);
22623
- var i = keys.length;
22622
+ var keys2 = Object.keys(add);
22623
+ var i = keys2.length;
22624
22624
  while (i--) {
22625
- origin[keys[i]] = add[keys[i]];
22625
+ origin[keys2[i]] = add[keys2[i]];
22626
22626
  }
22627
22627
  return origin;
22628
22628
  }
@@ -23185,12 +23185,12 @@ var require_lib3 = __commonJS({
23185
23185
  SyntaxError: "BABEL_PARSER_SYNTAX_ERROR",
23186
23186
  SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
23187
23187
  };
23188
- var reflect = (keys, last = keys.length - 1) => ({
23188
+ var reflect = (keys2, last = keys2.length - 1) => ({
23189
23189
  get() {
23190
- return keys.reduce((object, key) => object[key], this);
23190
+ return keys2.reduce((object, key) => object[key], this);
23191
23191
  },
23192
23192
  set(value) {
23193
- keys.reduce(
23193
+ keys2.reduce(
23194
23194
  (item, key, i) => i === last ? item[key] = value : item[key],
23195
23195
  this
23196
23196
  );
@@ -25123,9 +25123,9 @@ var require_lib3 = __commonJS({
25123
25123
  }
25124
25124
  clone(skipArrays) {
25125
25125
  const state = new State();
25126
- const keys = Object.keys(this);
25127
- for (let i = 0, length = keys.length; i < length; i++) {
25128
- const key = keys[i];
25126
+ const keys2 = Object.keys(this);
25127
+ for (let i = 0, length = keys2.length; i < length; i++) {
25128
+ const key = keys2[i];
25129
25129
  let val = this[key];
25130
25130
  if (!skipArrays && Array.isArray(val)) {
25131
25131
  val = val.slice();
@@ -27030,9 +27030,9 @@ var require_lib3 = __commonJS({
27030
27030
  {
27031
27031
  NodePrototype.__clone = function() {
27032
27032
  const newNode = new Node(void 0, this.start, this.loc.start);
27033
- const keys = Object.keys(this);
27034
- for (let i = 0, length = keys.length; i < length; i++) {
27035
- const key = keys[i];
27033
+ const keys2 = Object.keys(this);
27034
+ for (let i = 0, length = keys2.length; i < length; i++) {
27035
+ const key = keys2[i];
27036
27036
  if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
27037
27037
  newNode[key] = this[key];
27038
27038
  }
@@ -43330,10 +43330,10 @@ var require_util2 = __commonJS({
43330
43330
  var result = {};
43331
43331
  var argc = args.length;
43332
43332
  for (var i = 0; i < argc; ++i) {
43333
- var keys = Object.keys(args[i]);
43334
- var keyCount = keys.length;
43333
+ var keys2 = Object.keys(args[i]);
43334
+ var keyCount = keys2.length;
43335
43335
  for (var j = 0; j < keyCount; ++j) {
43336
- result[keys[j]] = true;
43336
+ result[keys2[j]] = true;
43337
43337
  }
43338
43338
  }
43339
43339
  return result;
@@ -50993,10 +50993,10 @@ var require_parser2 = __commonJS({
50993
50993
  loc.indent = newIndent;
50994
50994
  this.findTokenRange(loc);
50995
50995
  }
50996
- var keys = Object.keys(node);
50997
- var keyCount = keys.length;
50996
+ var keys2 = Object.keys(node);
50997
+ var keyCount = keys2.length;
50998
50998
  for (var i = 0; i < keyCount; ++i) {
50999
- var key = keys[i];
50999
+ var key = keys2[i];
51000
51000
  if (key === "loc") {
51001
51001
  copy[key] = node[key];
51002
51002
  } else if (key === "tokens" && node.type === "File") {
@@ -51755,13 +51755,13 @@ var require_patcher = __commonJS({
51755
51755
  if (newPath.needsParens() && !oldPath.hasParens()) {
51756
51756
  return false;
51757
51757
  }
51758
- var keys = (0, util_1.getUnionOfKeys)(oldNode, newNode);
51758
+ var keys2 = (0, util_1.getUnionOfKeys)(oldNode, newNode);
51759
51759
  if (oldNode.type === "File" || newNode.type === "File") {
51760
- delete keys.tokens;
51760
+ delete keys2.tokens;
51761
51761
  }
51762
- delete keys.loc;
51762
+ delete keys2.loc;
51763
51763
  var originalReprintCount = reprints.length;
51764
- for (var k in keys) {
51764
+ for (var k in keys2) {
51765
51765
  if (k.charAt(0) === "_") {
51766
51766
  continue;
51767
51767
  }
@@ -54298,9 +54298,9 @@ var fragmentKey = " $fragments";
54298
54298
 
54299
54299
  // src/runtime/lib/key.ts
54300
54300
  var computeKey = ({ field, args }) => {
54301
- const keys = Object.keys(args ?? {});
54302
- keys.sort();
54303
- return args && keys.length > 0 ? `${field}(${keys.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
54301
+ const keys2 = Object.keys(args ?? {});
54302
+ keys2.sort();
54303
+ return args && keys2.length > 0 ? `${field}(${keys2.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
54304
54304
  };
54305
54305
  var stringifyObjectWithNoQuotesOnKeys = (obj_from_json) => {
54306
54306
  if (Array.isArray(obj_from_json)) {
@@ -56252,7 +56252,8 @@ var CacheInternal = class {
56252
56252
  parent = rootID,
56253
56253
  variables,
56254
56254
  stepsFromConnection = null,
56255
- ignoreMasking
56255
+ ignoreMasking,
56256
+ fullCheck = false
56256
56257
  }) {
56257
56258
  if (parent === null) {
56258
56259
  return { data: null, partial: false, stale: false, hasData: true };
@@ -56277,11 +56278,28 @@ var CacheInternal = class {
56277
56278
  let targetSelection = getFieldsForType(selection, typename);
56278
56279
  for (const [
56279
56280
  attributeName,
56280
- { type, keyRaw, selection: fieldSelection, nullable, list, visible }
56281
+ { type, keyRaw, selection: fieldSelection, nullable, list, visible, directives }
56281
56282
  ] of Object.entries(targetSelection)) {
56282
- if (!visible && !ignoreMasking) {
56283
+ if (!visible && !ignoreMasking && !fullCheck) {
56283
56284
  continue;
56284
56285
  }
56286
+ const includeDirective = directives?.find((d) => {
56287
+ return d.name === "include";
56288
+ });
56289
+ if (includeDirective) {
56290
+ if (!evaluateFragmentVariables(includeDirective.arguments, variables ?? {})["if"]) {
56291
+ continue;
56292
+ }
56293
+ }
56294
+ const skipDirective = directives?.find((d) => {
56295
+ return d.name === "skip";
56296
+ });
56297
+ if (skipDirective) {
56298
+ if (evaluateFragmentVariables(skipDirective.arguments, variables ?? {})["if"]) {
56299
+ continue;
56300
+ }
56301
+ }
56302
+ const fieldTarget = visible || ignoreMasking ? target : {};
56285
56303
  const key = evaluateKey(keyRaw, variables);
56286
56304
  const { value } = this.storage.get(parent, key);
56287
56305
  const dt_field = this.staleManager.getFieldTime(parent, key);
@@ -56304,16 +56322,16 @@ var CacheInternal = class {
56304
56322
  partial = true;
56305
56323
  }
56306
56324
  if (typeof value === "undefined" || value === null) {
56307
- target[attributeName] = null;
56325
+ fieldTarget[attributeName] = null;
56308
56326
  if (typeof value !== "undefined") {
56309
56327
  hasData = true;
56310
56328
  }
56311
56329
  } else if (!fieldSelection) {
56312
56330
  const fnUnmarshal = this.config?.scalars?.[type]?.unmarshal;
56313
56331
  if (fnUnmarshal) {
56314
- target[attributeName] = fnUnmarshal(value);
56332
+ fieldTarget[attributeName] = fnUnmarshal(value);
56315
56333
  } else {
56316
- target[attributeName] = value;
56334
+ fieldTarget[attributeName] = value;
56317
56335
  }
56318
56336
  hasData = true;
56319
56337
  } else if (Array.isArray(value)) {
@@ -56322,9 +56340,10 @@ var CacheInternal = class {
56322
56340
  variables,
56323
56341
  linkedList: value,
56324
56342
  stepsFromConnection: nextStep,
56325
- ignoreMasking: !!ignoreMasking
56343
+ ignoreMasking: !!ignoreMasking,
56344
+ fullCheck
56326
56345
  });
56327
- target[attributeName] = listValue.data;
56346
+ fieldTarget[attributeName] = listValue.data;
56328
56347
  if (listValue.partial) {
56329
56348
  partial = true;
56330
56349
  }
@@ -56340,9 +56359,10 @@ var CacheInternal = class {
56340
56359
  selection: fieldSelection,
56341
56360
  variables,
56342
56361
  stepsFromConnection: nextStep,
56343
- ignoreMasking
56362
+ ignoreMasking,
56363
+ fullCheck
56344
56364
  });
56345
- target[attributeName] = objectFields.data;
56365
+ fieldTarget[attributeName] = objectFields.data;
56346
56366
  if (objectFields.partial) {
56347
56367
  partial = true;
56348
56368
  }
@@ -56353,7 +56373,7 @@ var CacheInternal = class {
56353
56373
  hasData = true;
56354
56374
  }
56355
56375
  }
56356
- if (target[attributeName] === null && !nullable && !embeddedCursor) {
56376
+ if (fieldTarget[attributeName] === null && !nullable && !embeddedCursor) {
56357
56377
  cascadeNull = true;
56358
56378
  }
56359
56379
  }
@@ -56385,7 +56405,8 @@ var CacheInternal = class {
56385
56405
  variables,
56386
56406
  linkedList,
56387
56407
  stepsFromConnection,
56388
- ignoreMasking
56408
+ ignoreMasking,
56409
+ fullCheck
56389
56410
  }) {
56390
56411
  const result = [];
56391
56412
  let partialData = false;
@@ -56398,7 +56419,8 @@ var CacheInternal = class {
56398
56419
  variables,
56399
56420
  linkedList: entry,
56400
56421
  stepsFromConnection,
56401
- ignoreMasking
56422
+ ignoreMasking,
56423
+ fullCheck
56402
56424
  });
56403
56425
  result.push(nestedValue.data);
56404
56426
  if (nestedValue.partial) {
@@ -56420,7 +56442,8 @@ var CacheInternal = class {
56420
56442
  selection: fields,
56421
56443
  variables,
56422
56444
  stepsFromConnection,
56423
- ignoreMasking
56445
+ ignoreMasking,
56446
+ fullCheck
56424
56447
  });
56425
56448
  result.push(data);
56426
56449
  if (partial) {
@@ -56861,8 +56884,8 @@ var Config = class {
56861
56884
  if (!apiURL) {
56862
56885
  return "";
56863
56886
  }
56864
- const env = await this.getEnv();
56865
- return this.processEnvValues(env, apiURL);
56887
+ const env2 = await this.getEnv();
56888
+ return this.processEnvValues(env2, apiURL);
56866
56889
  }
56867
56890
  get include() {
56868
56891
  if (this.configFile.include) {
@@ -56877,35 +56900,35 @@ var Config = class {
56877
56900
  return this.configFile.plugins?.[name] ?? {};
56878
56901
  }
56879
56902
  async getEnv() {
56880
- let env = process.env;
56903
+ let env2 = process.env;
56881
56904
  for (const plugin2 of this.plugins) {
56882
56905
  if (plugin2.env) {
56883
- env = {
56884
- ...await plugin2.env({ config: this, env })
56906
+ env2 = {
56907
+ ...await plugin2.env({ config: this, env: env2 })
56885
56908
  };
56886
56909
  }
56887
56910
  }
56888
- return env;
56911
+ return env2;
56889
56912
  }
56890
- processEnvValues(env, value) {
56913
+ processEnvValues(env2, value) {
56891
56914
  let headerValue;
56892
56915
  if (typeof value === "function") {
56893
- headerValue = value(env);
56916
+ headerValue = value(env2);
56894
56917
  } else if (value.startsWith("env:")) {
56895
- headerValue = env[value.slice("env:".length)];
56918
+ headerValue = env2[value.slice("env:".length)];
56896
56919
  } else {
56897
56920
  headerValue = value;
56898
56921
  }
56899
56922
  return headerValue;
56900
56923
  }
56901
56924
  async pullHeaders() {
56902
- const env = await this.getEnv();
56925
+ const env2 = await this.getEnv();
56903
56926
  if (typeof this.schemaPollHeaders === "function") {
56904
- return this.schemaPollHeaders(env);
56927
+ return this.schemaPollHeaders(env2);
56905
56928
  }
56906
56929
  const headers = Object.fromEntries(
56907
56930
  Object.entries(this.schemaPollHeaders || {}).map(([key, value]) => {
56908
- const headerValue = this.processEnvValues(env, value);
56931
+ const headerValue = this.processEnvValues(env2, value);
56909
56932
  if (!headerValue) {
56910
56933
  return [];
56911
56934
  }
@@ -57193,7 +57216,7 @@ var Config = class {
57193
57216
  fragment: fragment2
57194
57217
  }) {
57195
57218
  this.#fragmentVariableMaps[hash] = {
57196
- args: this.#serializeValueMap(args),
57219
+ args: this.serializeValueMap(args),
57197
57220
  fragment: fragment2
57198
57221
  };
57199
57222
  }
@@ -57204,7 +57227,7 @@ var Config = class {
57204
57227
  hash
57205
57228
  };
57206
57229
  }
57207
- #serializeValueMap(map) {
57230
+ serializeValueMap(map) {
57208
57231
  if (!map) {
57209
57232
  return null;
57210
57233
  }
@@ -57219,7 +57242,7 @@ var Config = class {
57219
57242
  }
57220
57243
  if ("values" in input) {
57221
57244
  result.values = input.values.map(
57222
- (value) => this.#serializeValueMap({ foo: value }).foo
57245
+ (value) => this.serializeValueMap({ foo: value }).foo
57223
57246
  );
57224
57247
  }
57225
57248
  if ("name" in input) {
@@ -57228,7 +57251,7 @@ var Config = class {
57228
57251
  if ("fields" in input) {
57229
57252
  result.fields = input.fields.map((field) => ({
57230
57253
  name: field.name,
57231
- value: this.#serializeValueMap({ foo: field.value }).foo
57254
+ value: this.serializeValueMap({ foo: field.value }).foo
57232
57255
  }));
57233
57256
  }
57234
57257
  }
@@ -57835,6 +57858,205 @@ function murmurHash(str) {
57835
57858
  return s;
57836
57859
  }
57837
57860
 
57861
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/types.js
57862
+ var VOID = -1;
57863
+ var PRIMITIVE = 0;
57864
+ var ARRAY = 1;
57865
+ var OBJECT = 2;
57866
+ var DATE = 3;
57867
+ var REGEXP = 4;
57868
+ var MAP = 5;
57869
+ var SET = 6;
57870
+ var ERROR = 7;
57871
+ var BIGINT = 8;
57872
+
57873
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
57874
+ var env = typeof self === "object" ? self : globalThis;
57875
+ var deserializer = ($, _) => {
57876
+ const as = (out, index) => {
57877
+ $.set(index, out);
57878
+ return out;
57879
+ };
57880
+ const unpair = (index) => {
57881
+ if ($.has(index))
57882
+ return $.get(index);
57883
+ const [type, value] = _[index];
57884
+ switch (type) {
57885
+ case PRIMITIVE:
57886
+ case VOID:
57887
+ return as(value, index);
57888
+ case ARRAY: {
57889
+ const arr = as([], index);
57890
+ for (const index2 of value)
57891
+ arr.push(unpair(index2));
57892
+ return arr;
57893
+ }
57894
+ case OBJECT: {
57895
+ const object = as({}, index);
57896
+ for (const [key, index2] of value)
57897
+ object[unpair(key)] = unpair(index2);
57898
+ return object;
57899
+ }
57900
+ case DATE:
57901
+ return as(new Date(value), index);
57902
+ case REGEXP: {
57903
+ const { source, flags } = value;
57904
+ return as(new RegExp(source, flags), index);
57905
+ }
57906
+ case MAP: {
57907
+ const map = as(/* @__PURE__ */ new Map(), index);
57908
+ for (const [key, index2] of value)
57909
+ map.set(unpair(key), unpair(index2));
57910
+ return map;
57911
+ }
57912
+ case SET: {
57913
+ const set = as(/* @__PURE__ */ new Set(), index);
57914
+ for (const index2 of value)
57915
+ set.add(unpair(index2));
57916
+ return set;
57917
+ }
57918
+ case ERROR: {
57919
+ const { name, message } = value;
57920
+ return as(new env[name](message), index);
57921
+ }
57922
+ case BIGINT:
57923
+ return as(BigInt(value), index);
57924
+ case "BigInt":
57925
+ return as(Object(BigInt(value)), index);
57926
+ }
57927
+ return as(new env[type](value), index);
57928
+ };
57929
+ return unpair;
57930
+ };
57931
+ var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
57932
+
57933
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/serialize.js
57934
+ var EMPTY = "";
57935
+ var { toString } = {};
57936
+ var { keys } = Object;
57937
+ var typeOf = (value) => {
57938
+ const type = typeof value;
57939
+ if (type !== "object" || !value)
57940
+ return [PRIMITIVE, type];
57941
+ const asString = toString.call(value).slice(8, -1);
57942
+ switch (asString) {
57943
+ case "Array":
57944
+ return [ARRAY, EMPTY];
57945
+ case "Object":
57946
+ return [OBJECT, EMPTY];
57947
+ case "Date":
57948
+ return [DATE, EMPTY];
57949
+ case "RegExp":
57950
+ return [REGEXP, EMPTY];
57951
+ case "Map":
57952
+ return [MAP, EMPTY];
57953
+ case "Set":
57954
+ return [SET, EMPTY];
57955
+ }
57956
+ if (asString.includes("Array"))
57957
+ return [ARRAY, asString];
57958
+ if (asString.includes("Error"))
57959
+ return [ERROR, asString];
57960
+ return [OBJECT, asString];
57961
+ };
57962
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
57963
+ var serializer = (strict, json, $, _) => {
57964
+ const as = (out, value) => {
57965
+ const index = _.push(out) - 1;
57966
+ $.set(value, index);
57967
+ return index;
57968
+ };
57969
+ const pair = (value) => {
57970
+ if ($.has(value))
57971
+ return $.get(value);
57972
+ let [TYPE, type] = typeOf(value);
57973
+ switch (TYPE) {
57974
+ case PRIMITIVE: {
57975
+ let entry = value;
57976
+ switch (type) {
57977
+ case "bigint":
57978
+ TYPE = BIGINT;
57979
+ entry = value.toString();
57980
+ break;
57981
+ case "function":
57982
+ case "symbol":
57983
+ if (strict)
57984
+ throw new TypeError("unable to serialize " + type);
57985
+ entry = null;
57986
+ break;
57987
+ case "undefined":
57988
+ return as([VOID], value);
57989
+ }
57990
+ return as([TYPE, entry], value);
57991
+ }
57992
+ case ARRAY: {
57993
+ if (type)
57994
+ return as([type, [...value]], value);
57995
+ const arr = [];
57996
+ const index = as([TYPE, arr], value);
57997
+ for (const entry of value)
57998
+ arr.push(pair(entry));
57999
+ return index;
58000
+ }
58001
+ case OBJECT: {
58002
+ if (type) {
58003
+ switch (type) {
58004
+ case "BigInt":
58005
+ return as([type, value.toString()], value);
58006
+ case "Boolean":
58007
+ case "Number":
58008
+ case "String":
58009
+ return as([type, value.valueOf()], value);
58010
+ }
58011
+ }
58012
+ if (json && "toJSON" in value)
58013
+ return pair(value.toJSON());
58014
+ const entries = [];
58015
+ const index = as([TYPE, entries], value);
58016
+ for (const key of keys(value)) {
58017
+ if (strict || !shouldSkip(typeOf(value[key])))
58018
+ entries.push([pair(key), pair(value[key])]);
58019
+ }
58020
+ return index;
58021
+ }
58022
+ case DATE:
58023
+ return as([TYPE, value.toISOString()], value);
58024
+ case REGEXP: {
58025
+ const { source, flags } = value;
58026
+ return as([TYPE, { source, flags }], value);
58027
+ }
58028
+ case MAP: {
58029
+ const entries = [];
58030
+ const index = as([TYPE, entries], value);
58031
+ for (const [key, entry] of value) {
58032
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
58033
+ entries.push([pair(key), pair(entry)]);
58034
+ }
58035
+ return index;
58036
+ }
58037
+ case SET: {
58038
+ const entries = [];
58039
+ const index = as([TYPE, entries], value);
58040
+ for (const entry of value) {
58041
+ if (strict || !shouldSkip(typeOf(entry)))
58042
+ entries.push(pair(entry));
58043
+ }
58044
+ return index;
58045
+ }
58046
+ }
58047
+ const { message } = value;
58048
+ return as([TYPE, { name: type, message }], value);
58049
+ };
58050
+ return pair;
58051
+ };
58052
+ var serialize = (value, { json, lossy } = {}) => {
58053
+ const _ = [];
58054
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
58055
+ };
58056
+
58057
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/index.js
58058
+ 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));
58059
+
57838
58060
  // src/codegen/transforms/fragmentVariables.ts
57839
58061
  var graphql3 = __toESM(require_graphql2(), 1);
57840
58062
 
@@ -57982,100 +58204,106 @@ function inlineFragmentArgs({
57982
58204
  filepath,
57983
58205
  document
57984
58206
  ).reduce((acc, arg) => ({ ...acc, [arg.name]: arg }), {});
57985
- const result = graphql3.visit(document, {
57986
- FragmentSpread(node) {
57987
- if (!fragmentDefinitions[node.name.value]) {
57988
- throw new Error("Could not find definition for fragment" + node.name.value);
57989
- }
57990
- const { definition } = fragmentDefinitions[node.name.value];
57991
- let { args, hash } = collectWithArguments(config2, filepath, node, scope);
57992
- const newFragmentName = `${node.name.value}${hash}`;
57993
- config2.registerFragmentVariablesHash({
57994
- hash: newFragmentName,
57995
- fragment: node.name.value,
57996
- args
57997
- });
57998
- if (!visitedFragments.has(newFragmentName)) {
57999
- visitedFragments.add(newFragmentName);
58000
- const defaultArguments = collectDefaultArgumentValues(config2, filepath, definition);
58001
- if (args) {
58002
- for (const [field, value] of Object.entries(defaultArguments || {})) {
58003
- if (!args[field]) {
58004
- args[field] = value;
58005
- }
58006
- }
58007
- generatedFragments[newFragmentName] = inlineFragmentArgs({
58008
- config: config2,
58207
+ const result = esm_default(
58208
+ graphql3.visit(document, {
58209
+ FragmentSpread(node) {
58210
+ if (!fragmentDefinitions[node.name.value]) {
58211
+ throw new Error("Could not find definition for fragment" + node.name.value);
58212
+ }
58213
+ const { definition } = fragmentDefinitions[node.name.value];
58214
+ let { args, hash } = collectWithArguments(config2, filepath, node, scope);
58215
+ const newFragmentName = `${node.name.value}${hash}`;
58216
+ config2.registerFragmentVariablesHash({
58217
+ hash: newFragmentName,
58218
+ fragment: node.name.value,
58219
+ args
58220
+ });
58221
+ if (!visitedFragments.has(newFragmentName)) {
58222
+ visitedFragments.add(newFragmentName);
58223
+ const defaultArguments = collectDefaultArgumentValues(
58224
+ config2,
58009
58225
  filepath,
58010
- fragmentDefinitions,
58011
- document: fragmentDefinitions[node.name.value].definition,
58012
- generatedFragments,
58013
- visitedFragments,
58014
- scope: args,
58015
- newName: newFragmentName
58016
- });
58017
- } else {
58018
- const doc = fragmentDefinitions[node.name.value].document;
58019
- const definitionIndex = doc.document.definitions.findIndex(
58020
- (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
58226
+ definition
58021
58227
  );
58022
- const localDefinitions = [...doc.document.definitions];
58023
- localDefinitions.splice(definitionIndex, 1);
58024
- localDefinitions.push(
58025
- inlineFragmentArgs({
58228
+ if (args) {
58229
+ for (const [field, value] of Object.entries(defaultArguments || {})) {
58230
+ if (!args[field]) {
58231
+ args[field] = value;
58232
+ }
58233
+ }
58234
+ generatedFragments[newFragmentName] = inlineFragmentArgs({
58026
58235
  config: config2,
58027
58236
  filepath,
58028
58237
  fragmentDefinitions,
58029
58238
  document: fragmentDefinitions[node.name.value].definition,
58030
58239
  generatedFragments,
58031
58240
  visitedFragments,
58032
- scope: defaultArguments,
58033
- newName: ""
58034
- })
58035
- );
58036
- doc.document = {
58037
- ...doc.document,
58038
- definitions: localDefinitions
58039
- };
58241
+ scope: args,
58242
+ newName: newFragmentName
58243
+ });
58244
+ } else {
58245
+ const doc = fragmentDefinitions[node.name.value].document;
58246
+ const definitionIndex = doc.document.definitions.findIndex(
58247
+ (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
58248
+ );
58249
+ const localDefinitions = [...doc.document.definitions];
58250
+ localDefinitions.splice(definitionIndex, 1);
58251
+ localDefinitions.push(
58252
+ inlineFragmentArgs({
58253
+ config: config2,
58254
+ filepath,
58255
+ fragmentDefinitions,
58256
+ document: fragmentDefinitions[node.name.value].definition,
58257
+ generatedFragments,
58258
+ visitedFragments,
58259
+ scope: defaultArguments,
58260
+ newName: ""
58261
+ })
58262
+ );
58263
+ doc.document = {
58264
+ ...doc.document,
58265
+ definitions: localDefinitions
58266
+ };
58267
+ }
58268
+ if (node.name.value !== newFragmentName) {
58269
+ return {
58270
+ ...node,
58271
+ name: {
58272
+ kind: "Name",
58273
+ value: newFragmentName
58274
+ }
58275
+ };
58276
+ }
58040
58277
  }
58041
- if (node.name.value !== newFragmentName) {
58278
+ },
58279
+ Argument(node) {
58280
+ const value = node.value;
58281
+ if (value.kind !== "Variable") {
58282
+ return;
58283
+ }
58284
+ if (!scope) {
58285
+ throw new HoudiniError({
58286
+ filepath,
58287
+ message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
58288
+ });
58289
+ }
58290
+ const newValue = scope[value.name.value];
58291
+ if (newValue) {
58042
58292
  return {
58043
58293
  ...node,
58044
- name: {
58045
- kind: "Name",
58046
- value: newFragmentName
58047
- }
58294
+ value: newValue
58048
58295
  };
58049
58296
  }
58297
+ if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
58298
+ throw new HoudiniError({
58299
+ filepath,
58300
+ message: "Missing value for required arg: " + value.name.value
58301
+ });
58302
+ }
58303
+ return null;
58050
58304
  }
58051
- },
58052
- Argument(node) {
58053
- const value = node.value;
58054
- if (value.kind !== "Variable") {
58055
- return;
58056
- }
58057
- if (!scope) {
58058
- throw new HoudiniError({
58059
- filepath,
58060
- message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
58061
- });
58062
- }
58063
- const newValue = scope[value.name.value];
58064
- if (newValue) {
58065
- return {
58066
- ...node,
58067
- value: newValue
58068
- };
58069
- }
58070
- if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
58071
- throw new HoudiniError({
58072
- filepath,
58073
- message: "Missing value for required arg: " + value.name.value
58074
- });
58075
- }
58076
- return null;
58077
- }
58078
- });
58305
+ })
58306
+ );
58079
58307
  if (newName) {
58080
58308
  result.name = {
58081
58309
  kind: graphql3.Kind.NAME,
@@ -58791,7 +59019,7 @@ async function paginate(config2, documents) {
58791
59019
  ]
58792
59020
  }
58793
59021
  ];
58794
- const keys = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
59022
+ const keys2 = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
58795
59023
  if (fragment2 === config2.schema.getQueryType()?.name) {
58796
59024
  return [];
58797
59025
  }
@@ -58841,7 +59069,7 @@ async function paginate(config2, documents) {
58841
59069
  }
58842
59070
  })
58843
59071
  ).concat(
58844
- !nodeQuery ? [] : keys.map(
59072
+ !nodeQuery ? [] : keys2.map(
58845
59073
  (key) => ({
58846
59074
  kind: graphql8.Kind.VARIABLE_DEFINITION,
58847
59075
  type: key.type,
@@ -58864,7 +59092,7 @@ async function paginate(config2, documents) {
58864
59092
  kind: graphql8.Kind.NAME,
58865
59093
  value: typeConfig?.resolve?.queryField || "node"
58866
59094
  },
58867
- ["arguments"]: keys.map((key) => ({
59095
+ ["arguments"]: keys2.map((key) => ({
58868
59096
  kind: graphql8.Kind.ARGUMENT,
58869
59097
  name: {
58870
59098
  kind: graphql8.Kind.NAME,
@@ -59558,12 +59786,24 @@ function prepareSelection({
59558
59786
  }
59559
59787
  const typeName = fieldType.toString();
59560
59788
  const pathSoFar = path2.concat(attributeName);
59561
- const keys = config2.keyFieldsForType(rootType);
59789
+ const keys2 = config2.keyFieldsForType(rootType);
59562
59790
  let fieldObj = {
59563
59791
  type: typeName,
59564
59792
  keyRaw: fieldKey(config2, field)
59565
59793
  };
59566
- if (keys.includes(field.name.value)) {
59794
+ if (field.directives && field.directives.length > 0) {
59795
+ fieldObj.directives = field.directives?.map((directive) => ({
59796
+ name: directive.name.value,
59797
+ arguments: (directive.arguments ?? []).reduce(
59798
+ (acc, arg) => ({
59799
+ ...acc,
59800
+ [arg.name.value]: config2.serializeValueMap({ field: arg.value })["field"]
59801
+ }),
59802
+ {}
59803
+ )
59804
+ }));
59805
+ }
59806
+ if (keys2.includes(field.name.value)) {
59567
59807
  fieldObj.visible = true;
59568
59808
  }
59569
59809
  if (nullable) {
@@ -59788,12 +60028,7 @@ function artifactGenerator(stats) {
59788
60028
  writeIndexFile(config2, docs)
59789
60029
  ].concat(
59790
60030
  docs.map(async (doc) => {
59791
- const {
59792
- document,
59793
- name,
59794
- generateArtifact,
59795
- originalParsed
59796
- } = doc;
60031
+ const { document, name, generateArtifact, originalParsed, originalString } = doc;
59797
60032
  if (!generateArtifact) {
59798
60033
  return;
59799
60034
  }
@@ -61054,10 +61289,10 @@ function typeDefinitions(config2, body, docs, returnType) {
61054
61289
  typeName = "__ROOT__";
61055
61290
  }
61056
61291
  let idFields = AST12.tsNeverKeyword();
61057
- const keys = keyFieldsForType(config2.configFile, type.name);
61058
- if (graphql17.isObjectType(type) && keys.length > 0 && keys.every((key) => type.getFields()[key])) {
61292
+ const keys2 = keyFieldsForType(config2.configFile, type.name);
61293
+ if (graphql17.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
61059
61294
  idFields = AST12.tsTypeLiteral(
61060
- keys.map((key) => {
61295
+ keys2.map((key) => {
61061
61296
  const fieldType = type.getFields()[key];
61062
61297
  const unwrapped = unwrapType(config2, fieldType.type);
61063
61298
  return AST12.tsPropertySignature(
@@ -62803,7 +63038,7 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62803
63038
  usersByCursor(first: Int, after: String, last: Int, before: String): UserConnection!
62804
63039
  usersByBackwardsCursor(last: Int, before: String): UserConnection!
62805
63040
  usersByForwardsCursor(first: Int, after: String): UserConnection!
62806
- usersByOffset(offset: Int, limit: Int): [User!]!
63041
+ usersByOffset(offset: Int, limit: Int, stringFilter: String, filter: UserFilter): [User!]!
62807
63042
  friendsByCursor(first: Int, after: String, last: Int, before: String): FriendConnection!
62808
63043
  ghostsByCursor(first: Int, after: String, last: Int, before: String): IsGhostConnection!
62809
63044
  entitiesByCursor(first: Int, after: String, last: Int, before: String): EntityConnection!
@@ -62813,6 +63048,10 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62813
63048
  monkeys: MonkeyConnection!
62814
63049
  }
62815
63050
 
63051
+ input UserFilter {
63052
+ name: String
63053
+ }
63054
+
62816
63055
  type PageInfo {
62817
63056
  hasPreviousPage: Boolean!
62818
63057
  hasNextPage: Boolean!
@@ -62891,7 +63130,7 @@ function testConfigFile({ plugins, ...config2 } = {}) {
62891
63130
  interface IsGhost {
62892
63131
  aka: String!
62893
63132
  }
62894
-
63133
+
62895
63134
  interface Animal implements Node {
62896
63135
  id: ID!
62897
63136
  name: String!