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.
@@ -1978,16 +1978,16 @@ var require_GraphQLError = __commonJS({
1978
1978
  return obj && obj.__esModule ? obj : { default: obj };
1979
1979
  }
1980
1980
  function ownKeys(object, enumerableOnly) {
1981
- var keys = Object.keys(object);
1981
+ var keys2 = Object.keys(object);
1982
1982
  if (Object.getOwnPropertySymbols) {
1983
1983
  var symbols = Object.getOwnPropertySymbols(object);
1984
1984
  if (enumerableOnly)
1985
1985
  symbols = symbols.filter(function(sym) {
1986
1986
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1987
1987
  });
1988
- keys.push.apply(keys, symbols);
1988
+ keys2.push.apply(keys2, symbols);
1989
1989
  }
1990
- return keys;
1990
+ return keys2;
1991
1991
  }
1992
1992
  function _objectSpread(target) {
1993
1993
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -2224,7 +2224,7 @@ var require_GraphQLError = __commonJS({
2224
2224
  }
2225
2225
  _createClass(GraphQLError5, [{
2226
2226
  key: "toString",
2227
- value: function toString() {
2227
+ value: function toString2() {
2228
2228
  return printError(this);
2229
2229
  }
2230
2230
  }, {
@@ -2546,14 +2546,14 @@ var require_inspect = __commonJS({
2546
2546
  return formatObject2(value, seenValues);
2547
2547
  }
2548
2548
  function formatObject2(object, seenValues) {
2549
- var keys = Object.keys(object);
2550
- if (keys.length === 0) {
2549
+ var keys2 = Object.keys(object);
2550
+ if (keys2.length === 0) {
2551
2551
  return "{}";
2552
2552
  }
2553
2553
  if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
2554
2554
  return "[" + getObjectTag2(object) + "]";
2555
2555
  }
2556
- var properties = keys.map(function(key) {
2556
+ var properties = keys2.map(function(key) {
2557
2557
  var value = formatValue2(object[key], seenValues);
2558
2558
  return key + ": " + value;
2559
2559
  });
@@ -4218,7 +4218,7 @@ var require_visitor = __commonJS({
4218
4218
  var visitorKeys = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : QueryDocumentKeys;
4219
4219
  var stack = void 0;
4220
4220
  var inArray = Array.isArray(root);
4221
- var keys = [root];
4221
+ var keys2 = [root];
4222
4222
  var index = -1;
4223
4223
  var edits = [];
4224
4224
  var node = void 0;
@@ -4229,7 +4229,7 @@ var require_visitor = __commonJS({
4229
4229
  var newRoot = root;
4230
4230
  do {
4231
4231
  index++;
4232
- var isLeaving = index === keys.length;
4232
+ var isLeaving = index === keys2.length;
4233
4233
  var isEdited = isLeaving && edits.length !== 0;
4234
4234
  if (isLeaving) {
4235
4235
  key = ancestors.length === 0 ? void 0 : path2[path2.length - 1];
@@ -4262,12 +4262,12 @@ var require_visitor = __commonJS({
4262
4262
  }
4263
4263
  }
4264
4264
  index = stack.index;
4265
- keys = stack.keys;
4265
+ keys2 = stack.keys;
4266
4266
  edits = stack.edits;
4267
4267
  inArray = stack.inArray;
4268
4268
  stack = stack.prev;
4269
4269
  } else {
4270
- key = parent ? inArray ? index : keys[index] : void 0;
4270
+ key = parent ? inArray ? index : keys2[index] : void 0;
4271
4271
  node = parent ? parent[key] : newRoot;
4272
4272
  if (node === null || node === void 0) {
4273
4273
  continue;
@@ -4315,12 +4315,12 @@ var require_visitor = __commonJS({
4315
4315
  stack = {
4316
4316
  inArray,
4317
4317
  index,
4318
- keys,
4318
+ keys: keys2,
4319
4319
  edits,
4320
4320
  prev: stack
4321
4321
  };
4322
4322
  inArray = Array.isArray(node);
4323
- keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
4323
+ keys2 = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];
4324
4324
  index = -1;
4325
4325
  edits = [];
4326
4326
  if (parent) {
@@ -5303,7 +5303,7 @@ var require_definition = __commonJS({
5303
5303
  return new GraphQLList6(ofType);
5304
5304
  }
5305
5305
  }
5306
- GraphQLList6.prototype.toString = function toString() {
5306
+ GraphQLList6.prototype.toString = function toString2() {
5307
5307
  return "[" + String(this.ofType) + "]";
5308
5308
  };
5309
5309
  GraphQLList6.prototype.toJSON = function toJSON() {
@@ -5322,7 +5322,7 @@ var require_definition = __commonJS({
5322
5322
  return new GraphQLNonNull6(ofType);
5323
5323
  }
5324
5324
  }
5325
- GraphQLNonNull6.prototype.toString = function toString() {
5325
+ GraphQLNonNull6.prototype.toString = function toString2() {
5326
5326
  return String(this.ofType) + "!";
5327
5327
  };
5328
5328
  GraphQLNonNull6.prototype.toJSON = function toJSON() {
@@ -5418,7 +5418,7 @@ var require_definition = __commonJS({
5418
5418
  extensionASTNodes: (_this$extensionASTNod = this.extensionASTNodes) !== null && _this$extensionASTNod !== void 0 ? _this$extensionASTNod : []
5419
5419
  };
5420
5420
  };
5421
- _proto.toString = function toString() {
5421
+ _proto.toString = function toString2() {
5422
5422
  return this.name;
5423
5423
  };
5424
5424
  _proto.toJSON = function toJSON() {
@@ -5472,7 +5472,7 @@ var require_definition = __commonJS({
5472
5472
  extensionASTNodes: this.extensionASTNodes || []
5473
5473
  };
5474
5474
  };
5475
- _proto2.toString = function toString() {
5475
+ _proto2.toString = function toString2() {
5476
5476
  return this.name;
5477
5477
  };
5478
5478
  _proto2.toJSON = function toJSON() {
@@ -5603,7 +5603,7 @@ var require_definition = __commonJS({
5603
5603
  extensionASTNodes: (_this$extensionASTNod2 = this.extensionASTNodes) !== null && _this$extensionASTNod2 !== void 0 ? _this$extensionASTNod2 : []
5604
5604
  };
5605
5605
  };
5606
- _proto3.toString = function toString() {
5606
+ _proto3.toString = function toString2() {
5607
5607
  return this.name;
5608
5608
  };
5609
5609
  _proto3.toJSON = function toJSON() {
@@ -5650,7 +5650,7 @@ var require_definition = __commonJS({
5650
5650
  extensionASTNodes: (_this$extensionASTNod3 = this.extensionASTNodes) !== null && _this$extensionASTNod3 !== void 0 ? _this$extensionASTNod3 : []
5651
5651
  };
5652
5652
  };
5653
- _proto4.toString = function toString() {
5653
+ _proto4.toString = function toString2() {
5654
5654
  return this.name;
5655
5655
  };
5656
5656
  _proto4.toJSON = function toJSON() {
@@ -5694,7 +5694,7 @@ var require_definition = __commonJS({
5694
5694
  _proto5.getValue = function getValue(name) {
5695
5695
  return this._nameLookup[name];
5696
5696
  };
5697
- _proto5.serialize = function serialize(outputValue) {
5697
+ _proto5.serialize = function serialize2(outputValue) {
5698
5698
  var enumValue = this._valueLookup.get(outputValue);
5699
5699
  if (enumValue === void 0) {
5700
5700
  throw new _GraphQLError.GraphQLError('Enum "'.concat(this.name, '" cannot represent value: ').concat((0, _inspect.default)(outputValue)));
@@ -5746,7 +5746,7 @@ var require_definition = __commonJS({
5746
5746
  extensionASTNodes: (_this$extensionASTNod4 = this.extensionASTNodes) !== null && _this$extensionASTNod4 !== void 0 ? _this$extensionASTNod4 : []
5747
5747
  };
5748
5748
  };
5749
- _proto5.toString = function toString() {
5749
+ _proto5.toString = function toString2() {
5750
5750
  return this.name;
5751
5751
  };
5752
5752
  _proto5.toJSON = function toJSON() {
@@ -5824,7 +5824,7 @@ var require_definition = __commonJS({
5824
5824
  extensionASTNodes: (_this$extensionASTNod5 = this.extensionASTNodes) !== null && _this$extensionASTNod5 !== void 0 ? _this$extensionASTNod5 : []
5825
5825
  };
5826
5826
  };
5827
- _proto6.toString = function toString() {
5827
+ _proto6.toString = function toString2() {
5828
5828
  return this.name;
5829
5829
  };
5830
5830
  _proto6.toJSON = function toJSON() {
@@ -7078,7 +7078,7 @@ var require_directives = __commonJS({
7078
7078
  astNode: this.astNode
7079
7079
  };
7080
7080
  };
7081
- _proto.toString = function toString() {
7081
+ _proto.toString = function toString2() {
7082
7082
  return "@" + this.name;
7083
7083
  };
7084
7084
  _proto.toJSON = function toJSON() {
@@ -9015,16 +9015,16 @@ var require_KnownArgumentNamesRule = __commonJS({
9015
9015
  return obj && obj.__esModule ? obj : { default: obj };
9016
9016
  }
9017
9017
  function ownKeys(object, enumerableOnly) {
9018
- var keys = Object.keys(object);
9018
+ var keys2 = Object.keys(object);
9019
9019
  if (Object.getOwnPropertySymbols) {
9020
9020
  var symbols = Object.getOwnPropertySymbols(object);
9021
9021
  if (enumerableOnly)
9022
9022
  symbols = symbols.filter(function(sym) {
9023
9023
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9024
9024
  });
9025
- keys.push.apply(keys, symbols);
9025
+ keys2.push.apply(keys2, symbols);
9026
9026
  }
9027
- return keys;
9027
+ return keys2;
9028
9028
  }
9029
9029
  function _objectSpread(target) {
9030
9030
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -9271,16 +9271,16 @@ var require_ProvidedRequiredArgumentsRule = __commonJS({
9271
9271
  return obj && obj.__esModule ? obj : { default: obj };
9272
9272
  }
9273
9273
  function ownKeys(object, enumerableOnly) {
9274
- var keys = Object.keys(object);
9274
+ var keys2 = Object.keys(object);
9275
9275
  if (Object.getOwnPropertySymbols) {
9276
9276
  var symbols = Object.getOwnPropertySymbols(object);
9277
9277
  if (enumerableOnly)
9278
9278
  symbols = symbols.filter(function(sym) {
9279
9279
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
9280
9280
  });
9281
- keys.push.apply(keys, symbols);
9281
+ keys2.push.apply(keys2, symbols);
9282
9282
  }
9283
- return keys;
9283
+ return keys2;
9284
9284
  }
9285
9285
  function _objectSpread(target) {
9286
9286
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -10538,13 +10538,13 @@ var require_promiseForObject = __commonJS({
10538
10538
  });
10539
10539
  exports.default = promiseForObject;
10540
10540
  function promiseForObject(object) {
10541
- var keys = Object.keys(object);
10542
- var valuesAndPromises = keys.map(function(name) {
10541
+ var keys2 = Object.keys(object);
10542
+ var valuesAndPromises = keys2.map(function(name) {
10543
10543
  return object[name];
10544
10544
  });
10545
10545
  return Promise.all(valuesAndPromises).then(function(values) {
10546
10546
  return values.reduce(function(resolvedObject, value, i2) {
10547
- resolvedObject[keys[i2]] = value;
10547
+ resolvedObject[keys2[i2]] = value;
10548
10548
  return resolvedObject;
10549
10549
  }, /* @__PURE__ */ Object.create(null));
10550
10550
  });
@@ -12996,16 +12996,16 @@ var require_getIntrospectionQuery = __commonJS({
12996
12996
  });
12997
12997
  exports.getIntrospectionQuery = getIntrospectionQuery3;
12998
12998
  function ownKeys(object, enumerableOnly) {
12999
- var keys = Object.keys(object);
12999
+ var keys2 = Object.keys(object);
13000
13000
  if (Object.getOwnPropertySymbols) {
13001
13001
  var symbols = Object.getOwnPropertySymbols(object);
13002
13002
  if (enumerableOnly)
13003
13003
  symbols = symbols.filter(function(sym) {
13004
13004
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13005
13005
  });
13006
- keys.push.apply(keys, symbols);
13006
+ keys2.push.apply(keys2, symbols);
13007
13007
  }
13008
- return keys;
13008
+ return keys2;
13009
13009
  }
13010
13010
  function _objectSpread(target) {
13011
13011
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -13098,16 +13098,16 @@ var require_introspectionFromSchema = __commonJS({
13098
13098
  return obj && obj.__esModule ? obj : { default: obj };
13099
13099
  }
13100
13100
  function ownKeys(object, enumerableOnly) {
13101
- var keys = Object.keys(object);
13101
+ var keys2 = Object.keys(object);
13102
13102
  if (Object.getOwnPropertySymbols) {
13103
13103
  var symbols = Object.getOwnPropertySymbols(object);
13104
13104
  if (enumerableOnly)
13105
13105
  symbols = symbols.filter(function(sym) {
13106
13106
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13107
13107
  });
13108
- keys.push.apply(keys, symbols);
13108
+ keys2.push.apply(keys2, symbols);
13109
13109
  }
13110
- return keys;
13110
+ return keys2;
13111
13111
  }
13112
13112
  function _objectSpread(target) {
13113
13113
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -13439,16 +13439,16 @@ var require_extendSchema = __commonJS({
13439
13439
  return obj && obj.__esModule ? obj : { default: obj };
13440
13440
  }
13441
13441
  function ownKeys(object, enumerableOnly) {
13442
- var keys = Object.keys(object);
13442
+ var keys2 = Object.keys(object);
13443
13443
  if (Object.getOwnPropertySymbols) {
13444
13444
  var symbols = Object.getOwnPropertySymbols(object);
13445
13445
  if (enumerableOnly)
13446
13446
  symbols = symbols.filter(function(sym) {
13447
13447
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
13448
13448
  });
13449
- keys.push.apply(keys, symbols);
13449
+ keys2.push.apply(keys2, symbols);
13450
13450
  }
13451
- return keys;
13451
+ return keys2;
13452
13452
  }
13453
13453
  function _objectSpread(target) {
13454
13454
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -14039,16 +14039,16 @@ var require_lexicographicSortSchema = __commonJS({
14039
14039
  return obj && obj.__esModule ? obj : { default: obj };
14040
14040
  }
14041
14041
  function ownKeys(object, enumerableOnly) {
14042
- var keys = Object.keys(object);
14042
+ var keys2 = Object.keys(object);
14043
14043
  if (Object.getOwnPropertySymbols) {
14044
14044
  var symbols = Object.getOwnPropertySymbols(object);
14045
14045
  if (enumerableOnly)
14046
14046
  symbols = symbols.filter(function(sym) {
14047
14047
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14048
14048
  });
14049
- keys.push.apply(keys, symbols);
14049
+ keys2.push.apply(keys2, symbols);
14050
14050
  }
14051
- return keys;
14051
+ return keys2;
14052
14052
  }
14053
14053
  function _objectSpread(target) {
14054
14054
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -14589,16 +14589,16 @@ var require_findBreakingChanges = __commonJS({
14589
14589
  return obj && obj.__esModule ? obj : { default: obj };
14590
14590
  }
14591
14591
  function ownKeys(object, enumerableOnly) {
14592
- var keys = Object.keys(object);
14592
+ var keys2 = Object.keys(object);
14593
14593
  if (Object.getOwnPropertySymbols) {
14594
14594
  var symbols = Object.getOwnPropertySymbols(object);
14595
14595
  if (enumerableOnly)
14596
14596
  symbols = symbols.filter(function(sym) {
14597
14597
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14598
14598
  });
14599
- keys.push.apply(keys, symbols);
14599
+ keys2.push.apply(keys2, symbols);
14600
14600
  }
14601
- return keys;
14601
+ return keys2;
14602
14602
  }
14603
14603
  function _objectSpread(target) {
14604
14604
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -17595,9 +17595,9 @@ var require_legacy_streams = __commonJS({
17595
17595
  this.mode = 438;
17596
17596
  this.bufferSize = 64 * 1024;
17597
17597
  options = options || {};
17598
- var keys = Object.keys(options);
17599
- for (var index = 0, length = keys.length; index < length; index++) {
17600
- var key = keys[index];
17598
+ var keys2 = Object.keys(options);
17599
+ for (var index = 0, length = keys2.length; index < length; index++) {
17600
+ var key = keys2[index];
17601
17601
  this[key] = options[key];
17602
17602
  }
17603
17603
  if (this.encoding)
@@ -17645,9 +17645,9 @@ var require_legacy_streams = __commonJS({
17645
17645
  this.mode = 438;
17646
17646
  this.bytesWritten = 0;
17647
17647
  options = options || {};
17648
- var keys = Object.keys(options);
17649
- for (var index = 0, length = keys.length; index < length; index++) {
17650
- var key = keys[index];
17648
+ var keys2 = Object.keys(options);
17649
+ for (var index = 0, length = keys2.length; index < length; index++) {
17650
+ var key = keys2[index];
17651
17651
  this[key] = options[key];
17652
17652
  }
17653
17653
  if (this.start !== void 0) {
@@ -20864,10 +20864,10 @@ var require_glob = __commonJS({
20864
20864
  if (add === null || typeof add !== "object") {
20865
20865
  return origin;
20866
20866
  }
20867
- var keys = Object.keys(add);
20868
- var i2 = keys.length;
20867
+ var keys2 = Object.keys(add);
20868
+ var i2 = keys2.length;
20869
20869
  while (i2--) {
20870
- origin[keys[i2]] = add[keys[i2]];
20870
+ origin[keys2[i2]] = add[keys2[i2]];
20871
20871
  }
20872
20872
  return origin;
20873
20873
  }
@@ -29282,12 +29282,12 @@ var require_lib3 = __commonJS({
29282
29282
  SyntaxError: "BABEL_PARSER_SYNTAX_ERROR",
29283
29283
  SourceTypeModuleError: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
29284
29284
  };
29285
- var reflect = (keys, last = keys.length - 1) => ({
29285
+ var reflect = (keys2, last = keys2.length - 1) => ({
29286
29286
  get() {
29287
- return keys.reduce((object, key) => object[key], this);
29287
+ return keys2.reduce((object, key) => object[key], this);
29288
29288
  },
29289
29289
  set(value) {
29290
- keys.reduce(
29290
+ keys2.reduce(
29291
29291
  (item, key, i2) => i2 === last ? item[key] = value : item[key],
29292
29292
  this
29293
29293
  );
@@ -31220,9 +31220,9 @@ var require_lib3 = __commonJS({
31220
31220
  }
31221
31221
  clone(skipArrays) {
31222
31222
  const state = new State();
31223
- const keys = Object.keys(this);
31224
- for (let i2 = 0, length = keys.length; i2 < length; i2++) {
31225
- const key = keys[i2];
31223
+ const keys2 = Object.keys(this);
31224
+ for (let i2 = 0, length = keys2.length; i2 < length; i2++) {
31225
+ const key = keys2[i2];
31226
31226
  let val = this[key];
31227
31227
  if (!skipArrays && Array.isArray(val)) {
31228
31228
  val = val.slice();
@@ -33127,9 +33127,9 @@ var require_lib3 = __commonJS({
33127
33127
  {
33128
33128
  NodePrototype.__clone = function() {
33129
33129
  const newNode = new Node(void 0, this.start, this.loc.start);
33130
- const keys = Object.keys(this);
33131
- for (let i2 = 0, length = keys.length; i2 < length; i2++) {
33132
- const key = keys[i2];
33130
+ const keys2 = Object.keys(this);
33131
+ for (let i2 = 0, length = keys2.length; i2 < length; i2++) {
33132
+ const key = keys2[i2];
33133
33133
  if (key !== "leadingComments" && key !== "trailingComments" && key !== "innerComments") {
33134
33134
  newNode[key] = this[key];
33135
33135
  }
@@ -49427,10 +49427,10 @@ var require_util2 = __commonJS({
49427
49427
  var result = {};
49428
49428
  var argc = args.length;
49429
49429
  for (var i2 = 0; i2 < argc; ++i2) {
49430
- var keys = Object.keys(args[i2]);
49431
- var keyCount = keys.length;
49430
+ var keys2 = Object.keys(args[i2]);
49431
+ var keyCount = keys2.length;
49432
49432
  for (var j = 0; j < keyCount; ++j) {
49433
- result[keys[j]] = true;
49433
+ result[keys2[j]] = true;
49434
49434
  }
49435
49435
  }
49436
49436
  return result;
@@ -57090,10 +57090,10 @@ var require_parser2 = __commonJS({
57090
57090
  loc.indent = newIndent;
57091
57091
  this.findTokenRange(loc);
57092
57092
  }
57093
- var keys = Object.keys(node);
57094
- var keyCount = keys.length;
57093
+ var keys2 = Object.keys(node);
57094
+ var keyCount = keys2.length;
57095
57095
  for (var i2 = 0; i2 < keyCount; ++i2) {
57096
- var key = keys[i2];
57096
+ var key = keys2[i2];
57097
57097
  if (key === "loc") {
57098
57098
  copy[key] = node[key];
57099
57099
  } else if (key === "tokens" && node.type === "File") {
@@ -57852,13 +57852,13 @@ var require_patcher = __commonJS({
57852
57852
  if (newPath.needsParens() && !oldPath.hasParens()) {
57853
57853
  return false;
57854
57854
  }
57855
- var keys = (0, util_1.getUnionOfKeys)(oldNode, newNode);
57855
+ var keys2 = (0, util_1.getUnionOfKeys)(oldNode, newNode);
57856
57856
  if (oldNode.type === "File" || newNode.type === "File") {
57857
- delete keys.tokens;
57857
+ delete keys2.tokens;
57858
57858
  }
57859
- delete keys.loc;
57859
+ delete keys2.loc;
57860
57860
  var originalReprintCount = reprints.length;
57861
- for (var k in keys) {
57861
+ for (var k in keys2) {
57862
57862
  if (k.charAt(0) === "_") {
57863
57863
  continue;
57864
57864
  }
@@ -60250,8 +60250,8 @@ var require_kleur = __commonJS({
60250
60250
  }
60251
60251
  return beg + str + end;
60252
60252
  }
60253
- function chain(has, keys) {
60254
- let ctx = { has, keys };
60253
+ function chain(has, keys2) {
60254
+ let ctx = { has, keys: keys2 };
60255
60255
  ctx.reset = $.reset.bind(ctx);
60256
60256
  ctx.bold = $.bold.bind(ctx);
60257
60257
  ctx.dim = $.dim.bind(ctx);
@@ -62775,7 +62775,7 @@ var require_dist = __commonJS({
62775
62775
  "../../node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.js"(exports, module2) {
62776
62776
  "use strict";
62777
62777
  function ownKeys(object, enumerableOnly) {
62778
- var keys = Object.keys(object);
62778
+ var keys2 = Object.keys(object);
62779
62779
  if (Object.getOwnPropertySymbols) {
62780
62780
  var symbols = Object.getOwnPropertySymbols(object);
62781
62781
  if (enumerableOnly) {
@@ -62783,9 +62783,9 @@ var require_dist = __commonJS({
62783
62783
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
62784
62784
  });
62785
62785
  }
62786
- keys.push.apply(keys, symbols);
62786
+ keys2.push.apply(keys2, symbols);
62787
62787
  }
62788
- return keys;
62788
+ return keys2;
62789
62789
  }
62790
62790
  function _objectSpread(target) {
62791
62791
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -65995,14 +65995,14 @@ function pushComment(node, entity, field, argument) {
65995
65995
  if (typeof comment !== "string" || comment.length === 0) {
65996
65996
  return;
65997
65997
  }
65998
- const keys = [entity];
65998
+ const keys2 = [entity];
65999
65999
  if (field) {
66000
- keys.push(field);
66000
+ keys2.push(field);
66001
66001
  if (argument) {
66002
- keys.push(argument);
66002
+ keys2.push(argument);
66003
66003
  }
66004
66004
  }
66005
- const path2 = keys.join(".");
66005
+ const path2 = keys2.join(".");
66006
66006
  if (!commentsRegistry[path2]) {
66007
66007
  commentsRegistry[path2] = [];
66008
66008
  }
@@ -66021,14 +66021,14 @@ function hasMultilineItems(maybeArray) {
66021
66021
  function addDescription(cb) {
66022
66022
  return (node, _key, _parent, path2, ancestors) => {
66023
66023
  var _a;
66024
- const keys = [];
66024
+ const keys2 = [];
66025
66025
  const parent = path2.reduce((prev, key2) => {
66026
66026
  if (["fields", "arguments", "values"].includes(key2) && prev.name) {
66027
- keys.push(prev.name.value);
66027
+ keys2.push(prev.name.value);
66028
66028
  }
66029
66029
  return prev[key2];
66030
66030
  }, ancestors[0]);
66031
- const key = [...keys, (_a = parent === null || parent === void 0 ? void 0 : parent.name) === null || _a === void 0 ? void 0 : _a.value].filter(Boolean).join(".");
66031
+ const key = [...keys2, (_a = parent === null || parent === void 0 ? void 0 : parent.name) === null || _a === void 0 ? void 0 : _a.value].filter(Boolean).join(".");
66032
66032
  const items = [];
66033
66033
  if (node.kind.includes("Definition") && commentsRegistry[key]) {
66034
66034
  items.push(...commentsRegistry[key]);
@@ -68564,9 +68564,9 @@ var fragmentKey = " $fragments";
68564
68564
 
68565
68565
  // src/runtime/lib/key.ts
68566
68566
  var computeKey = ({ field, args }) => {
68567
- const keys = Object.keys(args ?? {});
68568
- keys.sort();
68569
- return args && keys.length > 0 ? `${field}(${keys.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
68567
+ const keys2 = Object.keys(args ?? {});
68568
+ keys2.sort();
68569
+ return args && keys2.length > 0 ? `${field}(${keys2.map((key) => `${key}: ${stringifyObjectWithNoQuotesOnKeys(args[key])}`).join(", ")})` : field;
68570
68570
  };
68571
68571
  var stringifyObjectWithNoQuotesOnKeys = (obj_from_json) => {
68572
68572
  if (Array.isArray(obj_from_json)) {
@@ -71774,7 +71774,8 @@ var CacheInternal = class {
71774
71774
  parent = rootID,
71775
71775
  variables,
71776
71776
  stepsFromConnection = null,
71777
- ignoreMasking
71777
+ ignoreMasking,
71778
+ fullCheck = false
71778
71779
  }) {
71779
71780
  if (parent === null) {
71780
71781
  return { data: null, partial: false, stale: false, hasData: true };
@@ -71799,11 +71800,28 @@ var CacheInternal = class {
71799
71800
  let targetSelection = getFieldsForType(selection, typename);
71800
71801
  for (const [
71801
71802
  attributeName,
71802
- { type, keyRaw, selection: fieldSelection, nullable, list, visible }
71803
+ { type, keyRaw, selection: fieldSelection, nullable, list, visible, directives }
71803
71804
  ] of Object.entries(targetSelection)) {
71804
- if (!visible && !ignoreMasking) {
71805
+ if (!visible && !ignoreMasking && !fullCheck) {
71805
71806
  continue;
71806
71807
  }
71808
+ const includeDirective = directives?.find((d) => {
71809
+ return d.name === "include";
71810
+ });
71811
+ if (includeDirective) {
71812
+ if (!evaluateFragmentVariables(includeDirective.arguments, variables ?? {})["if"]) {
71813
+ continue;
71814
+ }
71815
+ }
71816
+ const skipDirective = directives?.find((d) => {
71817
+ return d.name === "skip";
71818
+ });
71819
+ if (skipDirective) {
71820
+ if (evaluateFragmentVariables(skipDirective.arguments, variables ?? {})["if"]) {
71821
+ continue;
71822
+ }
71823
+ }
71824
+ const fieldTarget = visible || ignoreMasking ? target : {};
71807
71825
  const key = evaluateKey(keyRaw, variables);
71808
71826
  const { value } = this.storage.get(parent, key);
71809
71827
  const dt_field = this.staleManager.getFieldTime(parent, key);
@@ -71826,16 +71844,16 @@ var CacheInternal = class {
71826
71844
  partial = true;
71827
71845
  }
71828
71846
  if (typeof value === "undefined" || value === null) {
71829
- target[attributeName] = null;
71847
+ fieldTarget[attributeName] = null;
71830
71848
  if (typeof value !== "undefined") {
71831
71849
  hasData = true;
71832
71850
  }
71833
71851
  } else if (!fieldSelection) {
71834
71852
  const fnUnmarshal = this.config?.scalars?.[type]?.unmarshal;
71835
71853
  if (fnUnmarshal) {
71836
- target[attributeName] = fnUnmarshal(value);
71854
+ fieldTarget[attributeName] = fnUnmarshal(value);
71837
71855
  } else {
71838
- target[attributeName] = value;
71856
+ fieldTarget[attributeName] = value;
71839
71857
  }
71840
71858
  hasData = true;
71841
71859
  } else if (Array.isArray(value)) {
@@ -71844,9 +71862,10 @@ var CacheInternal = class {
71844
71862
  variables,
71845
71863
  linkedList: value,
71846
71864
  stepsFromConnection: nextStep,
71847
- ignoreMasking: !!ignoreMasking
71865
+ ignoreMasking: !!ignoreMasking,
71866
+ fullCheck
71848
71867
  });
71849
- target[attributeName] = listValue.data;
71868
+ fieldTarget[attributeName] = listValue.data;
71850
71869
  if (listValue.partial) {
71851
71870
  partial = true;
71852
71871
  }
@@ -71862,9 +71881,10 @@ var CacheInternal = class {
71862
71881
  selection: fieldSelection,
71863
71882
  variables,
71864
71883
  stepsFromConnection: nextStep,
71865
- ignoreMasking
71884
+ ignoreMasking,
71885
+ fullCheck
71866
71886
  });
71867
- target[attributeName] = objectFields.data;
71887
+ fieldTarget[attributeName] = objectFields.data;
71868
71888
  if (objectFields.partial) {
71869
71889
  partial = true;
71870
71890
  }
@@ -71875,7 +71895,7 @@ var CacheInternal = class {
71875
71895
  hasData = true;
71876
71896
  }
71877
71897
  }
71878
- if (target[attributeName] === null && !nullable && !embeddedCursor) {
71898
+ if (fieldTarget[attributeName] === null && !nullable && !embeddedCursor) {
71879
71899
  cascadeNull = true;
71880
71900
  }
71881
71901
  }
@@ -71907,7 +71927,8 @@ var CacheInternal = class {
71907
71927
  variables,
71908
71928
  linkedList,
71909
71929
  stepsFromConnection,
71910
- ignoreMasking
71930
+ ignoreMasking,
71931
+ fullCheck
71911
71932
  }) {
71912
71933
  const result = [];
71913
71934
  let partialData = false;
@@ -71920,7 +71941,8 @@ var CacheInternal = class {
71920
71941
  variables,
71921
71942
  linkedList: entry,
71922
71943
  stepsFromConnection,
71923
- ignoreMasking
71944
+ ignoreMasking,
71945
+ fullCheck
71924
71946
  });
71925
71947
  result.push(nestedValue.data);
71926
71948
  if (nestedValue.partial) {
@@ -71942,7 +71964,8 @@ var CacheInternal = class {
71942
71964
  selection: fields,
71943
71965
  variables,
71944
71966
  stepsFromConnection,
71945
- ignoreMasking
71967
+ ignoreMasking,
71968
+ fullCheck
71946
71969
  });
71947
71970
  result.push(data);
71948
71971
  if (partial) {
@@ -72384,8 +72407,8 @@ var Config = class {
72384
72407
  if (!apiURL) {
72385
72408
  return "";
72386
72409
  }
72387
- const env = await this.getEnv();
72388
- return this.processEnvValues(env, apiURL);
72410
+ const env2 = await this.getEnv();
72411
+ return this.processEnvValues(env2, apiURL);
72389
72412
  }
72390
72413
  get include() {
72391
72414
  if (this.configFile.include) {
@@ -72400,35 +72423,35 @@ var Config = class {
72400
72423
  return this.configFile.plugins?.[name] ?? {};
72401
72424
  }
72402
72425
  async getEnv() {
72403
- let env = process.env;
72426
+ let env2 = process.env;
72404
72427
  for (const plugin2 of this.plugins) {
72405
72428
  if (plugin2.env) {
72406
- env = {
72407
- ...await plugin2.env({ config: this, env })
72429
+ env2 = {
72430
+ ...await plugin2.env({ config: this, env: env2 })
72408
72431
  };
72409
72432
  }
72410
72433
  }
72411
- return env;
72434
+ return env2;
72412
72435
  }
72413
- processEnvValues(env, value) {
72436
+ processEnvValues(env2, value) {
72414
72437
  let headerValue;
72415
72438
  if (typeof value === "function") {
72416
- headerValue = value(env);
72439
+ headerValue = value(env2);
72417
72440
  } else if (value.startsWith("env:")) {
72418
- headerValue = env[value.slice("env:".length)];
72441
+ headerValue = env2[value.slice("env:".length)];
72419
72442
  } else {
72420
72443
  headerValue = value;
72421
72444
  }
72422
72445
  return headerValue;
72423
72446
  }
72424
72447
  async pullHeaders() {
72425
- const env = await this.getEnv();
72448
+ const env2 = await this.getEnv();
72426
72449
  if (typeof this.schemaPollHeaders === "function") {
72427
- return this.schemaPollHeaders(env);
72450
+ return this.schemaPollHeaders(env2);
72428
72451
  }
72429
72452
  const headers = Object.fromEntries(
72430
72453
  Object.entries(this.schemaPollHeaders || {}).map(([key, value]) => {
72431
- const headerValue = this.processEnvValues(env, value);
72454
+ const headerValue = this.processEnvValues(env2, value);
72432
72455
  if (!headerValue) {
72433
72456
  return [];
72434
72457
  }
@@ -72716,7 +72739,7 @@ var Config = class {
72716
72739
  fragment: fragment2
72717
72740
  }) {
72718
72741
  this.#fragmentVariableMaps[hash] = {
72719
- args: this.#serializeValueMap(args),
72742
+ args: this.serializeValueMap(args),
72720
72743
  fragment: fragment2
72721
72744
  };
72722
72745
  }
@@ -72727,7 +72750,7 @@ var Config = class {
72727
72750
  hash
72728
72751
  };
72729
72752
  }
72730
- #serializeValueMap(map) {
72753
+ serializeValueMap(map) {
72731
72754
  if (!map) {
72732
72755
  return null;
72733
72756
  }
@@ -72742,7 +72765,7 @@ var Config = class {
72742
72765
  }
72743
72766
  if ("values" in input) {
72744
72767
  result.values = input.values.map(
72745
- (value) => this.#serializeValueMap({ foo: value }).foo
72768
+ (value) => this.serializeValueMap({ foo: value }).foo
72746
72769
  );
72747
72770
  }
72748
72771
  if ("name" in input) {
@@ -72751,7 +72774,7 @@ var Config = class {
72751
72774
  if ("fields" in input) {
72752
72775
  result.fields = input.fields.map((field) => ({
72753
72776
  name: field.name,
72754
- value: this.#serializeValueMap({ foo: field.value }).foo
72777
+ value: this.serializeValueMap({ foo: field.value }).foo
72755
72778
  }));
72756
72779
  }
72757
72780
  }
@@ -73817,6 +73840,205 @@ function murmurHash(str) {
73817
73840
  return s2;
73818
73841
  }
73819
73842
 
73843
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/types.js
73844
+ var VOID = -1;
73845
+ var PRIMITIVE = 0;
73846
+ var ARRAY = 1;
73847
+ var OBJECT = 2;
73848
+ var DATE = 3;
73849
+ var REGEXP = 4;
73850
+ var MAP = 5;
73851
+ var SET = 6;
73852
+ var ERROR = 7;
73853
+ var BIGINT = 8;
73854
+
73855
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/deserialize.js
73856
+ var env = typeof self === "object" ? self : globalThis;
73857
+ var deserializer = ($, _) => {
73858
+ const as = (out, index) => {
73859
+ $.set(index, out);
73860
+ return out;
73861
+ };
73862
+ const unpair = (index) => {
73863
+ if ($.has(index))
73864
+ return $.get(index);
73865
+ const [type, value] = _[index];
73866
+ switch (type) {
73867
+ case PRIMITIVE:
73868
+ case VOID:
73869
+ return as(value, index);
73870
+ case ARRAY: {
73871
+ const arr = as([], index);
73872
+ for (const index2 of value)
73873
+ arr.push(unpair(index2));
73874
+ return arr;
73875
+ }
73876
+ case OBJECT: {
73877
+ const object = as({}, index);
73878
+ for (const [key, index2] of value)
73879
+ object[unpair(key)] = unpair(index2);
73880
+ return object;
73881
+ }
73882
+ case DATE:
73883
+ return as(new Date(value), index);
73884
+ case REGEXP: {
73885
+ const { source, flags } = value;
73886
+ return as(new RegExp(source, flags), index);
73887
+ }
73888
+ case MAP: {
73889
+ const map = as(/* @__PURE__ */ new Map(), index);
73890
+ for (const [key, index2] of value)
73891
+ map.set(unpair(key), unpair(index2));
73892
+ return map;
73893
+ }
73894
+ case SET: {
73895
+ const set = as(/* @__PURE__ */ new Set(), index);
73896
+ for (const index2 of value)
73897
+ set.add(unpair(index2));
73898
+ return set;
73899
+ }
73900
+ case ERROR: {
73901
+ const { name, message } = value;
73902
+ return as(new env[name](message), index);
73903
+ }
73904
+ case BIGINT:
73905
+ return as(BigInt(value), index);
73906
+ case "BigInt":
73907
+ return as(Object(BigInt(value)), index);
73908
+ }
73909
+ return as(new env[type](value), index);
73910
+ };
73911
+ return unpair;
73912
+ };
73913
+ var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
73914
+
73915
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/serialize.js
73916
+ var EMPTY = "";
73917
+ var { toString } = {};
73918
+ var { keys } = Object;
73919
+ var typeOf = (value) => {
73920
+ const type = typeof value;
73921
+ if (type !== "object" || !value)
73922
+ return [PRIMITIVE, type];
73923
+ const asString = toString.call(value).slice(8, -1);
73924
+ switch (asString) {
73925
+ case "Array":
73926
+ return [ARRAY, EMPTY];
73927
+ case "Object":
73928
+ return [OBJECT, EMPTY];
73929
+ case "Date":
73930
+ return [DATE, EMPTY];
73931
+ case "RegExp":
73932
+ return [REGEXP, EMPTY];
73933
+ case "Map":
73934
+ return [MAP, EMPTY];
73935
+ case "Set":
73936
+ return [SET, EMPTY];
73937
+ }
73938
+ if (asString.includes("Array"))
73939
+ return [ARRAY, asString];
73940
+ if (asString.includes("Error"))
73941
+ return [ERROR, asString];
73942
+ return [OBJECT, asString];
73943
+ };
73944
+ var shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
73945
+ var serializer = (strict, json, $, _) => {
73946
+ const as = (out, value) => {
73947
+ const index = _.push(out) - 1;
73948
+ $.set(value, index);
73949
+ return index;
73950
+ };
73951
+ const pair = (value) => {
73952
+ if ($.has(value))
73953
+ return $.get(value);
73954
+ let [TYPE, type] = typeOf(value);
73955
+ switch (TYPE) {
73956
+ case PRIMITIVE: {
73957
+ let entry = value;
73958
+ switch (type) {
73959
+ case "bigint":
73960
+ TYPE = BIGINT;
73961
+ entry = value.toString();
73962
+ break;
73963
+ case "function":
73964
+ case "symbol":
73965
+ if (strict)
73966
+ throw new TypeError("unable to serialize " + type);
73967
+ entry = null;
73968
+ break;
73969
+ case "undefined":
73970
+ return as([VOID], value);
73971
+ }
73972
+ return as([TYPE, entry], value);
73973
+ }
73974
+ case ARRAY: {
73975
+ if (type)
73976
+ return as([type, [...value]], value);
73977
+ const arr = [];
73978
+ const index = as([TYPE, arr], value);
73979
+ for (const entry of value)
73980
+ arr.push(pair(entry));
73981
+ return index;
73982
+ }
73983
+ case OBJECT: {
73984
+ if (type) {
73985
+ switch (type) {
73986
+ case "BigInt":
73987
+ return as([type, value.toString()], value);
73988
+ case "Boolean":
73989
+ case "Number":
73990
+ case "String":
73991
+ return as([type, value.valueOf()], value);
73992
+ }
73993
+ }
73994
+ if (json && "toJSON" in value)
73995
+ return pair(value.toJSON());
73996
+ const entries = [];
73997
+ const index = as([TYPE, entries], value);
73998
+ for (const key of keys(value)) {
73999
+ if (strict || !shouldSkip(typeOf(value[key])))
74000
+ entries.push([pair(key), pair(value[key])]);
74001
+ }
74002
+ return index;
74003
+ }
74004
+ case DATE:
74005
+ return as([TYPE, value.toISOString()], value);
74006
+ case REGEXP: {
74007
+ const { source, flags } = value;
74008
+ return as([TYPE, { source, flags }], value);
74009
+ }
74010
+ case MAP: {
74011
+ const entries = [];
74012
+ const index = as([TYPE, entries], value);
74013
+ for (const [key, entry] of value) {
74014
+ if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))
74015
+ entries.push([pair(key), pair(entry)]);
74016
+ }
74017
+ return index;
74018
+ }
74019
+ case SET: {
74020
+ const entries = [];
74021
+ const index = as([TYPE, entries], value);
74022
+ for (const entry of value) {
74023
+ if (strict || !shouldSkip(typeOf(entry)))
74024
+ entries.push(pair(entry));
74025
+ }
74026
+ return index;
74027
+ }
74028
+ }
74029
+ const { message } = value;
74030
+ return as([TYPE, { name: type, message }], value);
74031
+ };
74032
+ return pair;
74033
+ };
74034
+ var serialize = (value, { json, lossy } = {}) => {
74035
+ const _ = [];
74036
+ return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
74037
+ };
74038
+
74039
+ // ../../node_modules/.pnpm/@ungap+structured-clone@1.0.2/node_modules/@ungap/structured-clone/esm/index.js
74040
+ 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));
74041
+
73820
74042
  // src/codegen/transforms/fragmentVariables.ts
73821
74043
  var graphql5 = __toESM(require_graphql2(), 1);
73822
74044
 
@@ -73964,100 +74186,106 @@ function inlineFragmentArgs({
73964
74186
  filepath,
73965
74187
  document
73966
74188
  ).reduce((acc, arg) => ({ ...acc, [arg.name]: arg }), {});
73967
- const result = graphql5.visit(document, {
73968
- FragmentSpread(node) {
73969
- if (!fragmentDefinitions[node.name.value]) {
73970
- throw new Error("Could not find definition for fragment" + node.name.value);
73971
- }
73972
- const { definition } = fragmentDefinitions[node.name.value];
73973
- let { args, hash } = collectWithArguments(config2, filepath, node, scope);
73974
- const newFragmentName = `${node.name.value}${hash}`;
73975
- config2.registerFragmentVariablesHash({
73976
- hash: newFragmentName,
73977
- fragment: node.name.value,
73978
- args
73979
- });
73980
- if (!visitedFragments.has(newFragmentName)) {
73981
- visitedFragments.add(newFragmentName);
73982
- const defaultArguments = collectDefaultArgumentValues(config2, filepath, definition);
73983
- if (args) {
73984
- for (const [field, value] of Object.entries(defaultArguments || {})) {
73985
- if (!args[field]) {
73986
- args[field] = value;
73987
- }
73988
- }
73989
- generatedFragments[newFragmentName] = inlineFragmentArgs({
73990
- config: config2,
74189
+ const result = esm_default(
74190
+ graphql5.visit(document, {
74191
+ FragmentSpread(node) {
74192
+ if (!fragmentDefinitions[node.name.value]) {
74193
+ throw new Error("Could not find definition for fragment" + node.name.value);
74194
+ }
74195
+ const { definition } = fragmentDefinitions[node.name.value];
74196
+ let { args, hash } = collectWithArguments(config2, filepath, node, scope);
74197
+ const newFragmentName = `${node.name.value}${hash}`;
74198
+ config2.registerFragmentVariablesHash({
74199
+ hash: newFragmentName,
74200
+ fragment: node.name.value,
74201
+ args
74202
+ });
74203
+ if (!visitedFragments.has(newFragmentName)) {
74204
+ visitedFragments.add(newFragmentName);
74205
+ const defaultArguments = collectDefaultArgumentValues(
74206
+ config2,
73991
74207
  filepath,
73992
- fragmentDefinitions,
73993
- document: fragmentDefinitions[node.name.value].definition,
73994
- generatedFragments,
73995
- visitedFragments,
73996
- scope: args,
73997
- newName: newFragmentName
73998
- });
73999
- } else {
74000
- const doc = fragmentDefinitions[node.name.value].document;
74001
- const definitionIndex = doc.document.definitions.findIndex(
74002
- (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
74208
+ definition
74003
74209
  );
74004
- const localDefinitions = [...doc.document.definitions];
74005
- localDefinitions.splice(definitionIndex, 1);
74006
- localDefinitions.push(
74007
- inlineFragmentArgs({
74210
+ if (args) {
74211
+ for (const [field, value] of Object.entries(defaultArguments || {})) {
74212
+ if (!args[field]) {
74213
+ args[field] = value;
74214
+ }
74215
+ }
74216
+ generatedFragments[newFragmentName] = inlineFragmentArgs({
74008
74217
  config: config2,
74009
74218
  filepath,
74010
74219
  fragmentDefinitions,
74011
74220
  document: fragmentDefinitions[node.name.value].definition,
74012
74221
  generatedFragments,
74013
74222
  visitedFragments,
74014
- scope: defaultArguments,
74015
- newName: ""
74016
- })
74017
- );
74018
- doc.document = {
74019
- ...doc.document,
74020
- definitions: localDefinitions
74021
- };
74223
+ scope: args,
74224
+ newName: newFragmentName
74225
+ });
74226
+ } else {
74227
+ const doc = fragmentDefinitions[node.name.value].document;
74228
+ const definitionIndex = doc.document.definitions.findIndex(
74229
+ (definition2) => definition2.kind === "FragmentDefinition" && definition2.name.value === node.name.value
74230
+ );
74231
+ const localDefinitions = [...doc.document.definitions];
74232
+ localDefinitions.splice(definitionIndex, 1);
74233
+ localDefinitions.push(
74234
+ inlineFragmentArgs({
74235
+ config: config2,
74236
+ filepath,
74237
+ fragmentDefinitions,
74238
+ document: fragmentDefinitions[node.name.value].definition,
74239
+ generatedFragments,
74240
+ visitedFragments,
74241
+ scope: defaultArguments,
74242
+ newName: ""
74243
+ })
74244
+ );
74245
+ doc.document = {
74246
+ ...doc.document,
74247
+ definitions: localDefinitions
74248
+ };
74249
+ }
74250
+ if (node.name.value !== newFragmentName) {
74251
+ return {
74252
+ ...node,
74253
+ name: {
74254
+ kind: "Name",
74255
+ value: newFragmentName
74256
+ }
74257
+ };
74258
+ }
74259
+ }
74260
+ },
74261
+ Argument(node) {
74262
+ const value = node.value;
74263
+ if (value.kind !== "Variable") {
74264
+ return;
74022
74265
  }
74023
- if (node.name.value !== newFragmentName) {
74266
+ if (!scope) {
74267
+ throw new HoudiniError({
74268
+ filepath,
74269
+ message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
74270
+ });
74271
+ }
74272
+ const newValue = scope[value.name.value];
74273
+ if (newValue) {
74024
74274
  return {
74025
74275
  ...node,
74026
- name: {
74027
- kind: "Name",
74028
- value: newFragmentName
74029
- }
74276
+ value: newValue
74030
74277
  };
74031
74278
  }
74279
+ if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
74280
+ throw new HoudiniError({
74281
+ filepath,
74282
+ message: "Missing value for required arg: " + value.name.value
74283
+ });
74284
+ }
74285
+ return null;
74032
74286
  }
74033
- },
74034
- Argument(node) {
74035
- const value = node.value;
74036
- if (value.kind !== "Variable") {
74037
- return;
74038
- }
74039
- if (!scope) {
74040
- throw new HoudiniError({
74041
- filepath,
74042
- message: node.name.value + " is not defined in the current scope: " + JSON.stringify(scope)
74043
- });
74044
- }
74045
- const newValue = scope[value.name.value];
74046
- if (newValue) {
74047
- return {
74048
- ...node,
74049
- value: newValue
74050
- };
74051
- }
74052
- if (definitionArgs[value.name.value] && definitionArgs[value.name.value].required) {
74053
- throw new HoudiniError({
74054
- filepath,
74055
- message: "Missing value for required arg: " + value.name.value
74056
- });
74057
- }
74058
- return null;
74059
- }
74060
- });
74287
+ })
74288
+ );
74061
74289
  if (newName) {
74062
74290
  result.name = {
74063
74291
  kind: graphql5.Kind.NAME,
@@ -74773,7 +75001,7 @@ async function paginate(config2, documents) {
74773
75001
  ]
74774
75002
  }
74775
75003
  ];
74776
- const keys = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
75004
+ const keys2 = config2.keyFieldsForType(!nodeQuery ? config2.schema.getQueryType()?.name || "" : fragment2).flatMap((key) => {
74777
75005
  if (fragment2 === config2.schema.getQueryType()?.name) {
74778
75006
  return [];
74779
75007
  }
@@ -74823,7 +75051,7 @@ async function paginate(config2, documents) {
74823
75051
  }
74824
75052
  })
74825
75053
  ).concat(
74826
- !nodeQuery ? [] : keys.map(
75054
+ !nodeQuery ? [] : keys2.map(
74827
75055
  (key) => ({
74828
75056
  kind: graphql10.Kind.VARIABLE_DEFINITION,
74829
75057
  type: key.type,
@@ -74846,7 +75074,7 @@ async function paginate(config2, documents) {
74846
75074
  kind: graphql10.Kind.NAME,
74847
75075
  value: typeConfig?.resolve?.queryField || "node"
74848
75076
  },
74849
- ["arguments"]: keys.map((key) => ({
75077
+ ["arguments"]: keys2.map((key) => ({
74850
75078
  kind: graphql10.Kind.ARGUMENT,
74851
75079
  name: {
74852
75080
  kind: graphql10.Kind.NAME,
@@ -75540,12 +75768,24 @@ function prepareSelection({
75540
75768
  }
75541
75769
  const typeName = fieldType.toString();
75542
75770
  const pathSoFar = path2.concat(attributeName);
75543
- const keys = config2.keyFieldsForType(rootType);
75771
+ const keys2 = config2.keyFieldsForType(rootType);
75544
75772
  let fieldObj = {
75545
75773
  type: typeName,
75546
75774
  keyRaw: fieldKey(config2, field)
75547
75775
  };
75548
- if (keys.includes(field.name.value)) {
75776
+ if (field.directives && field.directives.length > 0) {
75777
+ fieldObj.directives = field.directives?.map((directive) => ({
75778
+ name: directive.name.value,
75779
+ arguments: (directive.arguments ?? []).reduce(
75780
+ (acc, arg) => ({
75781
+ ...acc,
75782
+ [arg.name.value]: config2.serializeValueMap({ field: arg.value })["field"]
75783
+ }),
75784
+ {}
75785
+ )
75786
+ }));
75787
+ }
75788
+ if (keys2.includes(field.name.value)) {
75549
75789
  fieldObj.visible = true;
75550
75790
  }
75551
75791
  if (nullable) {
@@ -75770,12 +76010,7 @@ function artifactGenerator(stats) {
75770
76010
  writeIndexFile(config2, docs)
75771
76011
  ].concat(
75772
76012
  docs.map(async (doc) => {
75773
- const {
75774
- document,
75775
- name,
75776
- generateArtifact,
75777
- originalParsed
75778
- } = doc;
76013
+ const { document, name, generateArtifact, originalParsed, originalString } = doc;
75779
76014
  if (!generateArtifact) {
75780
76015
  return;
75781
76016
  }
@@ -77036,10 +77271,10 @@ function typeDefinitions(config2, body, docs, returnType) {
77036
77271
  typeName = "__ROOT__";
77037
77272
  }
77038
77273
  let idFields = AST12.tsNeverKeyword();
77039
- const keys = keyFieldsForType(config2.configFile, type.name);
77040
- if (graphql19.isObjectType(type) && keys.length > 0 && keys.every((key) => type.getFields()[key])) {
77274
+ const keys2 = keyFieldsForType(config2.configFile, type.name);
77275
+ if (graphql19.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
77041
77276
  idFields = AST12.tsTypeLiteral(
77042
- keys.map((key) => {
77277
+ keys2.map((key) => {
77043
77278
  const fieldType = type.getFields()[key];
77044
77279
  const unwrapped = unwrapType(config2, fieldType.type);
77045
77280
  return AST12.tsPropertySignature(
@@ -79287,8 +79522,8 @@ async function updatePackageJSON(targetPath) {
79287
79522
  }
79288
79523
  packageJSON.devDependencies = {
79289
79524
  ...packageJSON.devDependencies,
79290
- houdini: "^1.1.3",
79291
- "houdini-svelte": "^1.1.3"
79525
+ houdini: "^1.1.4",
79526
+ "houdini-svelte": "^1.1.4"
79292
79527
  };
79293
79528
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
79294
79529
  }