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++) {
@@ -15842,9 +15842,9 @@ var require_legacy_streams = __commonJS({
15842
15842
  this.mode = 438;
15843
15843
  this.bufferSize = 64 * 1024;
15844
15844
  options = options || {};
15845
- var keys = Object.keys(options);
15846
- for (var index = 0, length = keys.length; index < length; index++) {
15847
- var key = keys[index];
15845
+ var keys2 = Object.keys(options);
15846
+ for (var index = 0, length = keys2.length; index < length; index++) {
15847
+ var key = keys2[index];
15848
15848
  this[key] = options[key];
15849
15849
  }
15850
15850
  if (this.encoding)
@@ -15892,9 +15892,9 @@ var require_legacy_streams = __commonJS({
15892
15892
  this.mode = 438;
15893
15893
  this.bytesWritten = 0;
15894
15894
  options = options || {};
15895
- var keys = Object.keys(options);
15896
- for (var index = 0, length = keys.length; index < length; index++) {
15897
- var key = keys[index];
15895
+ var keys2 = Object.keys(options);
15896
+ for (var index = 0, length = keys2.length; index < length; index++) {
15897
+ var key = keys2[index];
15898
15898
  this[key] = options[key];
15899
15899
  }
15900
15900
  if (this.start !== void 0) {
@@ -19111,10 +19111,10 @@ var require_glob = __commonJS({
19111
19111
  if (add === null || typeof add !== "object") {
19112
19112
  return origin;
19113
19113
  }
19114
- var keys = Object.keys(add);
19115
- var i = keys.length;
19114
+ var keys2 = Object.keys(add);
19115
+ var i = keys2.length;
19116
19116
  while (i--) {
19117
- origin[keys[i]] = add[keys[i]];
19117
+ origin[keys2[i]] = add[keys2[i]];
19118
19118
  }
19119
19119
  return origin;
19120
19120
  }
@@ -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
  }
@@ -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) {
@@ -57465,6 +57488,205 @@ function murmurHash(str) {
57465
57488
  return s;
57466
57489
  }
57467
57490
 
57491
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/types.js
57492
+ var VOID = -1;
57493
+ var PRIMITIVE = 0;
57494
+ var ARRAY = 1;
57495
+ var OBJECT = 2;
57496
+ var DATE = 3;
57497
+ var REGEXP = 4;
57498
+ var MAP = 5;
57499
+ var SET = 6;
57500
+ var ERROR = 7;
57501
+ var BIGINT = 8;
57502
+
57503
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
57504
+ var env = typeof self === "object" ? self : globalThis;
57505
+ var deserializer = ($, _) => {
57506
+ const as = (out, index) => {
57507
+ $.set(index, out);
57508
+ return out;
57509
+ };
57510
+ const unpair = (index) => {
57511
+ if ($.has(index))
57512
+ return $.get(index);
57513
+ const [type, value] = _[index];
57514
+ switch (type) {
57515
+ case PRIMITIVE:
57516
+ case VOID:
57517
+ return as(value, index);
57518
+ case ARRAY: {
57519
+ const arr = as([], index);
57520
+ for (const index2 of value)
57521
+ arr.push(unpair(index2));
57522
+ return arr;
57523
+ }
57524
+ case OBJECT: {
57525
+ const object = as({}, index);
57526
+ for (const [key, index2] of value)
57527
+ object[unpair(key)] = unpair(index2);
57528
+ return object;
57529
+ }
57530
+ case DATE:
57531
+ return as(new Date(value), index);
57532
+ case REGEXP: {
57533
+ const { source, flags } = value;
57534
+ return as(new RegExp(source, flags), index);
57535
+ }
57536
+ case MAP: {
57537
+ const map = as(/* @__PURE__ */ new Map(), index);
57538
+ for (const [key, index2] of value)
57539
+ map.set(unpair(key), unpair(index2));
57540
+ return map;
57541
+ }
57542
+ case SET: {
57543
+ const set = as(/* @__PURE__ */ new Set(), index);
57544
+ for (const index2 of value)
57545
+ set.add(unpair(index2));
57546
+ return set;
57547
+ }
57548
+ case ERROR: {
57549
+ const { name, message } = value;
57550
+ return as(new env[name](message), index);
57551
+ }
57552
+ case BIGINT:
57553
+ return as(BigInt(value), index);
57554
+ case "BigInt":
57555
+ return as(Object(BigInt(value)), index);
57556
+ }
57557
+ return as(new env[type](value), index);
57558
+ };
57559
+ return unpair;
57560
+ };
57561
+ var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
57562
+
57563
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/serialize.js
57564
+ var EMPTY = "";
57565
+ var { toString } = {};
57566
+ var { keys } = Object;
57567
+ var typeOf = (value) => {
57568
+ const type = typeof value;
57569
+ if (type !== "object" || !value)
57570
+ return [PRIMITIVE, type];
57571
+ const asString = toString.call(value).slice(8, -1);
57572
+ switch (asString) {
57573
+ case "Array":
57574
+ return [ARRAY, EMPTY];
57575
+ case "Object":
57576
+ return [OBJECT, EMPTY];
57577
+ case "Date":
57578
+ return [DATE, EMPTY];
57579
+ case "RegExp":
57580
+ return [REGEXP, EMPTY];
57581
+ case "Map":
57582
+ return [MAP, EMPTY];
57583
+ case "Set":
57584
+ return [SET, EMPTY];
57585
+ }
57586
+ if (asString.includes("Array"))
57587
+ return [ARRAY, asString];
57588
+ if (asString.includes("Error"))
57589
+ return [ERROR, asString];
57590
+ return [OBJECT, asString];
57591
+ };
57592
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
57593
+ var serializer = (strict, json, $, _) => {
57594
+ const as = (out, value) => {
57595
+ const index = _.push(out) - 1;
57596
+ $.set(value, index);
57597
+ return index;
57598
+ };
57599
+ const pair = (value) => {
57600
+ if ($.has(value))
57601
+ return $.get(value);
57602
+ let [TYPE, type] = typeOf(value);
57603
+ switch (TYPE) {
57604
+ case PRIMITIVE: {
57605
+ let entry = value;
57606
+ switch (type) {
57607
+ case "bigint":
57608
+ TYPE = BIGINT;
57609
+ entry = value.toString();
57610
+ break;
57611
+ case "function":
57612
+ case "symbol":
57613
+ if (strict)
57614
+ throw new TypeError("unable to serialize " + type);
57615
+ entry = null;
57616
+ break;
57617
+ case "undefined":
57618
+ return as([VOID], value);
57619
+ }
57620
+ return as([TYPE, entry], value);
57621
+ }
57622
+ case ARRAY: {
57623
+ if (type)
57624
+ return as([type, [...value]], value);
57625
+ const arr = [];
57626
+ const index = as([TYPE, arr], value);
57627
+ for (const entry of value)
57628
+ arr.push(pair(entry));
57629
+ return index;
57630
+ }
57631
+ case OBJECT: {
57632
+ if (type) {
57633
+ switch (type) {
57634
+ case "BigInt":
57635
+ return as([type, value.toString()], value);
57636
+ case "Boolean":
57637
+ case "Number":
57638
+ case "String":
57639
+ return as([type, value.valueOf()], value);
57640
+ }
57641
+ }
57642
+ if (json && "toJSON" in value)
57643
+ return pair(value.toJSON());
57644
+ const entries = [];
57645
+ const index = as([TYPE, entries], value);
57646
+ for (const key of keys(value)) {
57647
+ if (strict || !shouldSkip(typeOf(value[key])))
57648
+ entries.push([pair(key), pair(value[key])]);
57649
+ }
57650
+ return index;
57651
+ }
57652
+ case DATE:
57653
+ return as([TYPE, value.toISOString()], value);
57654
+ case REGEXP: {
57655
+ const { source, flags } = value;
57656
+ return as([TYPE, { source, flags }], value);
57657
+ }
57658
+ case MAP: {
57659
+ const entries = [];
57660
+ const index = as([TYPE, entries], value);
57661
+ for (const [key, entry] of value) {
57662
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
57663
+ entries.push([pair(key), pair(entry)]);
57664
+ }
57665
+ return index;
57666
+ }
57667
+ case SET: {
57668
+ const entries = [];
57669
+ const index = as([TYPE, entries], value);
57670
+ for (const entry of value) {
57671
+ if (strict || !shouldSkip(typeOf(entry)))
57672
+ entries.push(pair(entry));
57673
+ }
57674
+ return index;
57675
+ }
57676
+ }
57677
+ const { message } = value;
57678
+ return as([TYPE, { name: type, message }], value);
57679
+ };
57680
+ return pair;
57681
+ };
57682
+ var serialize = (value, { json, lossy } = {}) => {
57683
+ const _ = [];
57684
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
57685
+ };
57686
+
57687
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/index.js
57688
+ 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));
57689
+
57468
57690
  // src/codegen/transforms/fragmentVariables.ts
57469
57691
  var graphql4 = __toESM(require_graphql2(), 1);
57470
57692
 
@@ -57612,100 +57834,106 @@ function inlineFragmentArgs({
57612
57834
  filepath,
57613
57835
  document
57614
57836
  ).reduce((acc, arg) => ({ ...acc, [arg.name]: arg }), {});
57615
- const result = graphql4.visit(document, {
57616
- FragmentSpread(node) {
57617
- if (!fragmentDefinitions[node.name.value]) {
57618
- throw new Error("Could not find definition for fragment" + node.name.value);
57619
- }
57620
- const { definition } = fragmentDefinitions[node.name.value];
57621
- let { args, hash } = collectWithArguments(config2, filepath, node, scope);
57622
- const newFragmentName = `${node.name.value}${hash}`;
57623
- config2.registerFragmentVariablesHash({
57624
- hash: newFragmentName,
57625
- fragment: node.name.value,
57626
- args
57627
- });
57628
- if (!visitedFragments.has(newFragmentName)) {
57629
- visitedFragments.add(newFragmentName);
57630
- const defaultArguments = collectDefaultArgumentValues(config2, filepath, definition);
57631
- if (args) {
57632
- for (const [field, value] of Object.entries(defaultArguments || {})) {
57633
- if (!args[field]) {
57634
- args[field] = value;
57635
- }
57636
- }
57637
- generatedFragments[newFragmentName] = inlineFragmentArgs({
57638
- config: config2,
57837
+ const result = esm_default(
57838
+ graphql4.visit(document, {
57839
+ FragmentSpread(node) {
57840
+ if (!fragmentDefinitions[node.name.value]) {
57841
+ throw new Error("Could not find definition for fragment" + node.name.value);
57842
+ }
57843
+ const { definition } = fragmentDefinitions[node.name.value];
57844
+ let { args, hash } = collectWithArguments(config2, filepath, node, scope);
57845
+ const newFragmentName = `${node.name.value}${hash}`;
57846
+ config2.registerFragmentVariablesHash({
57847
+ hash: newFragmentName,
57848
+ fragment: node.name.value,
57849
+ args
57850
+ });
57851
+ if (!visitedFragments.has(newFragmentName)) {
57852
+ visitedFragments.add(newFragmentName);
57853
+ const defaultArguments = collectDefaultArgumentValues(
57854
+ config2,
57639
57855
  filepath,
57640
- fragmentDefinitions,
57641
- document: fragmentDefinitions[node.name.value].definition,
57642
- generatedFragments,
57643
- visitedFragments,
57644
- scope: args,
57645
- newName: newFragmentName
57646
- });
57647
- } else {
57648
- const doc = fragmentDefinitions[node.name.value].document;
57649
- const definitionIndex = doc.document.definitions.findIndex(
57650
- (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
57856
+ definition
57651
57857
  );
57652
- const localDefinitions = [...doc.document.definitions];
57653
- localDefinitions.splice(definitionIndex, 1);
57654
- localDefinitions.push(
57655
- inlineFragmentArgs({
57858
+ if (args) {
57859
+ for (const [field, value] of Object.entries(defaultArguments || {})) {
57860
+ if (!args[field]) {
57861
+ args[field] = value;
57862
+ }
57863
+ }
57864
+ generatedFragments[newFragmentName] = inlineFragmentArgs({
57656
57865
  config: config2,
57657
57866
  filepath,
57658
57867
  fragmentDefinitions,
57659
57868
  document: fragmentDefinitions[node.name.value].definition,
57660
57869
  generatedFragments,
57661
57870
  visitedFragments,
57662
- scope: defaultArguments,
57663
- newName: ""
57664
- })
57665
- );
57666
- doc.document = {
57667
- ...doc.document,
57668
- definitions: localDefinitions
57669
- };
57871
+ scope: args,
57872
+ newName: newFragmentName
57873
+ });
57874
+ } else {
57875
+ const doc = fragmentDefinitions[node.name.value].document;
57876
+ const definitionIndex = doc.document.definitions.findIndex(
57877
+ (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
57878
+ );
57879
+ const localDefinitions = [...doc.document.definitions];
57880
+ localDefinitions.splice(definitionIndex, 1);
57881
+ localDefinitions.push(
57882
+ inlineFragmentArgs({
57883
+ config: config2,
57884
+ filepath,
57885
+ fragmentDefinitions,
57886
+ document: fragmentDefinitions[node.name.value].definition,
57887
+ generatedFragments,
57888
+ visitedFragments,
57889
+ scope: defaultArguments,
57890
+ newName: ""
57891
+ })
57892
+ );
57893
+ doc.document = {
57894
+ ...doc.document,
57895
+ definitions: localDefinitions
57896
+ };
57897
+ }
57898
+ if (node.name.value !== newFragmentName) {
57899
+ return {
57900
+ ...node,
57901
+ name: {
57902
+ kind: "Name",
57903
+ value: newFragmentName
57904
+ }
57905
+ };
57906
+ }
57907
+ }
57908
+ },
57909
+ Argument(node) {
57910
+ const value = node.value;
57911
+ if (value.kind !== "Variable") {
57912
+ return;
57913
+ }
57914
+ if (!scope) {
57915
+ throw new HoudiniError({
57916
+ filepath,
57917
+ message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
57918
+ });
57670
57919
  }
57671
- if (node.name.value !== newFragmentName) {
57920
+ const newValue = scope[value.name.value];
57921
+ if (newValue) {
57672
57922
  return {
57673
57923
  ...node,
57674
- name: {
57675
- kind: "Name",
57676
- value: newFragmentName
57677
- }
57924
+ value: newValue
57678
57925
  };
57679
57926
  }
57927
+ if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
57928
+ throw new HoudiniError({
57929
+ filepath,
57930
+ message: "Missing value for required arg: " + value.name.value
57931
+ });
57932
+ }
57933
+ return null;
57680
57934
  }
57681
- },
57682
- Argument(node) {
57683
- const value = node.value;
57684
- if (value.kind !== "Variable") {
57685
- return;
57686
- }
57687
- if (!scope) {
57688
- throw new HoudiniError({
57689
- filepath,
57690
- message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
57691
- });
57692
- }
57693
- const newValue = scope[value.name.value];
57694
- if (newValue) {
57695
- return {
57696
- ...node,
57697
- value: newValue
57698
- };
57699
- }
57700
- if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
57701
- throw new HoudiniError({
57702
- filepath,
57703
- message: "Missing value for required arg: " + value.name.value
57704
- });
57705
- }
57706
- return null;
57707
- }
57708
- });
57935
+ })
57936
+ );
57709
57937
  if (newName) {
57710
57938
  result.name = {
57711
57939
  kind: graphql4.Kind.NAME,
@@ -58421,7 +58649,7 @@ async function paginate(config2, documents) {
58421
58649
  ]
58422
58650
  }
58423
58651
  ];
58424
- const keys = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
58652
+ const keys2 = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
58425
58653
  if (fragment2 === config2.schema.getQueryType()?.name) {
58426
58654
  return [];
58427
58655
  }
@@ -58471,7 +58699,7 @@ async function paginate(config2, documents) {
58471
58699
  }
58472
58700
  })
58473
58701
  ).concat(
58474
- !nodeQuery ? [] : keys.map(
58702
+ !nodeQuery ? [] : keys2.map(
58475
58703
  (key) => ({
58476
58704
  kind: graphql9.Kind.VARIABLE_DEFINITION,
58477
58705
  type: key.type,
@@ -58494,7 +58722,7 @@ async function paginate(config2, documents) {
58494
58722
  kind: graphql9.Kind.NAME,
58495
58723
  value: typeConfig?.resolve?.queryField || "node"
58496
58724
  },
58497
- ["arguments"]: keys.map((key) => ({
58725
+ ["arguments"]: keys2.map((key) => ({
58498
58726
  kind: graphql9.Kind.ARGUMENT,
58499
58727
  name: {
58500
58728
  kind: graphql9.Kind.NAME,
@@ -59188,12 +59416,24 @@ function prepareSelection({
59188
59416
  }
59189
59417
  const typeName = fieldType.toString();
59190
59418
  const pathSoFar = path2.concat(attributeName);
59191
- const keys = config2.keyFieldsForType(rootType);
59419
+ const keys2 = config2.keyFieldsForType(rootType);
59192
59420
  let fieldObj = {
59193
59421
  type: typeName,
59194
59422
  keyRaw: fieldKey(config2, field)
59195
59423
  };
59196
- if (keys.includes(field.name.value)) {
59424
+ if (field.directives && field.directives.length > 0) {
59425
+ fieldObj.directives = field.directives?.map((directive) => ({
59426
+ name: directive.name.value,
59427
+ arguments: (directive.arguments ?? []).reduce(
59428
+ (acc, arg) => ({
59429
+ ...acc,
59430
+ [arg.name.value]: config2.serializeValueMap({ field: arg.value })["field"]
59431
+ }),
59432
+ {}
59433
+ )
59434
+ }));
59435
+ }
59436
+ if (keys2.includes(field.name.value)) {
59197
59437
  fieldObj.visible = true;
59198
59438
  }
59199
59439
  if (nullable) {
@@ -59418,12 +59658,7 @@ function artifactGenerator(stats) {
59418
59658
  writeIndexFile(config2, docs)
59419
59659
  ].concat(
59420
59660
  docs.map(async (doc) => {
59421
- const {
59422
- document,
59423
- name,
59424
- generateArtifact,
59425
- originalParsed
59426
- } = doc;
59661
+ const { document, name, generateArtifact, originalParsed, originalString } = doc;
59427
59662
  if (!generateArtifact) {
59428
59663
  return;
59429
59664
  }
@@ -60684,10 +60919,10 @@ function typeDefinitions(config2, body, docs, returnType) {
60684
60919
  typeName = "__ROOT__";
60685
60920
  }
60686
60921
  let idFields = AST12.tsNeverKeyword();
60687
- const keys = keyFieldsForType(config2.configFile, type.name);
60688
- if (graphql18.isObjectType(type) && keys.length > 0 && keys.every((key) => type.getFields()[key])) {
60922
+ const keys2 = keyFieldsForType(config2.configFile, type.name);
60923
+ if (graphql18.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
60689
60924
  idFields = AST12.tsTypeLiteral(
60690
- keys.map((key) => {
60925
+ keys2.map((key) => {
60691
60926
  const fieldType = type.getFields()[key];
60692
60927
  const unwrapped = unwrapType(config2, fieldType.type);
60693
60928
  return AST12.tsPropertySignature(