houdini-svelte 1.2.8 → 1.2.9

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.
@@ -34630,25 +34630,25 @@ var require_definition = __commonJS2({
34630
34630
  return arr && arr.length > 0 ? arr : void 0;
34631
34631
  }
34632
34632
  var GraphQLScalarType4 = /* @__PURE__ */ function() {
34633
- function GraphQLScalarType5(config5) {
34633
+ function GraphQLScalarType5(config22) {
34634
34634
  var _config$parseValue, _config$serialize, _config$parseLiteral;
34635
- var parseValue = (_config$parseValue = config5.parseValue) !== null && _config$parseValue !== void 0 ? _config$parseValue : _identityFunc.default;
34636
- this.name = config5.name;
34637
- this.description = config5.description;
34638
- this.specifiedByUrl = config5.specifiedByUrl;
34639
- this.serialize = (_config$serialize = config5.serialize) !== null && _config$serialize !== void 0 ? _config$serialize : _identityFunc.default;
34635
+ var parseValue = (_config$parseValue = config22.parseValue) !== null && _config$parseValue !== void 0 ? _config$parseValue : _identityFunc.default;
34636
+ this.name = config22.name;
34637
+ this.description = config22.description;
34638
+ this.specifiedByUrl = config22.specifiedByUrl;
34639
+ this.serialize = (_config$serialize = config22.serialize) !== null && _config$serialize !== void 0 ? _config$serialize : _identityFunc.default;
34640
34640
  this.parseValue = parseValue;
34641
- this.parseLiteral = (_config$parseLiteral = config5.parseLiteral) !== null && _config$parseLiteral !== void 0 ? _config$parseLiteral : function(node2, variables) {
34641
+ this.parseLiteral = (_config$parseLiteral = config22.parseLiteral) !== null && _config$parseLiteral !== void 0 ? _config$parseLiteral : function(node2, variables) {
34642
34642
  return parseValue((0, _valueFromASTUntyped.valueFromASTUntyped)(node2, variables));
34643
34643
  };
34644
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
34645
- this.astNode = config5.astNode;
34646
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
34647
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34648
- config5.specifiedByUrl == null || typeof config5.specifiedByUrl === "string" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "specifiedByUrl" as a string, ') + "but got: ".concat((0, _inspect.default)(config5.specifiedByUrl), "."));
34649
- config5.serialize == null || typeof config5.serialize === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'));
34650
- if (config5.parseLiteral) {
34651
- typeof config5.parseValue === "function" && typeof config5.parseLiteral === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide both "parseValue" and "parseLiteral" functions.'));
34644
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
34645
+ this.astNode = config22.astNode;
34646
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
34647
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34648
+ config22.specifiedByUrl == null || typeof config22.specifiedByUrl === "string" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "specifiedByUrl" as a string, ') + "but got: ".concat((0, _inspect.default)(config22.specifiedByUrl), "."));
34649
+ config22.serialize == null || typeof config22.serialize === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'));
34650
+ if (config22.parseLiteral) {
34651
+ typeof config22.parseValue === "function" && typeof config22.parseLiteral === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide both "parseValue" and "parseLiteral" functions.'));
34652
34652
  }
34653
34653
  }
34654
34654
  var _proto = GraphQLScalarType5.prototype;
@@ -34683,17 +34683,17 @@ var require_definition = __commonJS2({
34683
34683
  exports.GraphQLScalarType = GraphQLScalarType4;
34684
34684
  (0, _defineInspect.default)(GraphQLScalarType4);
34685
34685
  var GraphQLObjectType5 = /* @__PURE__ */ function() {
34686
- function GraphQLObjectType6(config5) {
34687
- this.name = config5.name;
34688
- this.description = config5.description;
34689
- this.isTypeOf = config5.isTypeOf;
34690
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
34691
- this.astNode = config5.astNode;
34692
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
34693
- this._fields = defineFieldMap.bind(void 0, config5);
34694
- this._interfaces = defineInterfaces.bind(void 0, config5);
34695
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34696
- config5.isTypeOf == null || typeof config5.isTypeOf === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "isTypeOf" as a function, ') + "but got: ".concat((0, _inspect.default)(config5.isTypeOf), "."));
34686
+ function GraphQLObjectType6(config22) {
34687
+ this.name = config22.name;
34688
+ this.description = config22.description;
34689
+ this.isTypeOf = config22.isTypeOf;
34690
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
34691
+ this.astNode = config22.astNode;
34692
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
34693
+ this._fields = defineFieldMap.bind(void 0, config22);
34694
+ this._interfaces = defineInterfaces.bind(void 0, config22);
34695
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34696
+ config22.isTypeOf == null || typeof config22.isTypeOf === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "isTypeOf" as a function, ') + "but got: ".concat((0, _inspect.default)(config22.isTypeOf), "."));
34697
34697
  }
34698
34698
  var _proto2 = GraphQLObjectType6.prototype;
34699
34699
  _proto2.getFields = function getFields() {
@@ -34736,22 +34736,22 @@ var require_definition = __commonJS2({
34736
34736
  }();
34737
34737
  exports.GraphQLObjectType = GraphQLObjectType5;
34738
34738
  (0, _defineInspect.default)(GraphQLObjectType5);
34739
- function defineInterfaces(config5) {
34739
+ function defineInterfaces(config22) {
34740
34740
  var _resolveThunk;
34741
- var interfaces = (_resolveThunk = resolveThunk(config5.interfaces)) !== null && _resolveThunk !== void 0 ? _resolveThunk : [];
34742
- Array.isArray(interfaces) || (0, _devAssert.default)(0, "".concat(config5.name, " interfaces must be an Array or a function which returns an Array."));
34741
+ var interfaces = (_resolveThunk = resolveThunk(config22.interfaces)) !== null && _resolveThunk !== void 0 ? _resolveThunk : [];
34742
+ Array.isArray(interfaces) || (0, _devAssert.default)(0, "".concat(config22.name, " interfaces must be an Array or a function which returns an Array."));
34743
34743
  return interfaces;
34744
34744
  }
34745
- function defineFieldMap(config5) {
34746
- var fieldMap = resolveThunk(config5.fields);
34747
- isPlainObj(fieldMap) || (0, _devAssert.default)(0, "".concat(config5.name, " fields must be an object with field names as keys or a function which returns such an object."));
34745
+ function defineFieldMap(config22) {
34746
+ var fieldMap = resolveThunk(config22.fields);
34747
+ isPlainObj(fieldMap) || (0, _devAssert.default)(0, "".concat(config22.name, " fields must be an object with field names as keys or a function which returns such an object."));
34748
34748
  return (0, _mapValue.default)(fieldMap, function(fieldConfig, fieldName) {
34749
34749
  var _fieldConfig$args;
34750
- isPlainObj(fieldConfig) || (0, _devAssert.default)(0, "".concat(config5.name, ".").concat(fieldName, " field config must be an object."));
34751
- !("isDeprecated" in fieldConfig) || (0, _devAssert.default)(0, "".concat(config5.name, ".").concat(fieldName, ' should provide "deprecationReason" instead of "isDeprecated".'));
34752
- fieldConfig.resolve == null || typeof fieldConfig.resolve === "function" || (0, _devAssert.default)(0, "".concat(config5.name, ".").concat(fieldName, " field resolver must be a function if ") + "provided, but got: ".concat((0, _inspect.default)(fieldConfig.resolve), "."));
34750
+ isPlainObj(fieldConfig) || (0, _devAssert.default)(0, "".concat(config22.name, ".").concat(fieldName, " field config must be an object."));
34751
+ !("isDeprecated" in fieldConfig) || (0, _devAssert.default)(0, "".concat(config22.name, ".").concat(fieldName, ' should provide "deprecationReason" instead of "isDeprecated".'));
34752
+ fieldConfig.resolve == null || typeof fieldConfig.resolve === "function" || (0, _devAssert.default)(0, "".concat(config22.name, ".").concat(fieldName, " field resolver must be a function if ") + "provided, but got: ".concat((0, _inspect.default)(fieldConfig.resolve), "."));
34753
34753
  var argsConfig = (_fieldConfig$args = fieldConfig.args) !== null && _fieldConfig$args !== void 0 ? _fieldConfig$args : {};
34754
- isPlainObj(argsConfig) || (0, _devAssert.default)(0, "".concat(config5.name, ".").concat(fieldName, " args must be an object with argument names as keys."));
34754
+ isPlainObj(argsConfig) || (0, _devAssert.default)(0, "".concat(config22.name, ".").concat(fieldName, " args must be an object with argument names as keys."));
34755
34755
  var args = (0, _objectEntries.default)(argsConfig).map(function(_ref) {
34756
34756
  var argName = _ref[0], argConfig = _ref[1];
34757
34757
  return {
@@ -34813,17 +34813,17 @@ var require_definition = __commonJS2({
34813
34813
  return isNonNullType6(arg.type) && arg.defaultValue === void 0;
34814
34814
  }
34815
34815
  var GraphQLInterfaceType5 = /* @__PURE__ */ function() {
34816
- function GraphQLInterfaceType6(config5) {
34817
- this.name = config5.name;
34818
- this.description = config5.description;
34819
- this.resolveType = config5.resolveType;
34820
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
34821
- this.astNode = config5.astNode;
34822
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
34823
- this._fields = defineFieldMap.bind(void 0, config5);
34824
- this._interfaces = defineInterfaces.bind(void 0, config5);
34825
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34826
- config5.resolveType == null || typeof config5.resolveType === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat((0, _inspect.default)(config5.resolveType), "."));
34816
+ function GraphQLInterfaceType6(config22) {
34817
+ this.name = config22.name;
34818
+ this.description = config22.description;
34819
+ this.resolveType = config22.resolveType;
34820
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
34821
+ this.astNode = config22.astNode;
34822
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
34823
+ this._fields = defineFieldMap.bind(void 0, config22);
34824
+ this._interfaces = defineInterfaces.bind(void 0, config22);
34825
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34826
+ config22.resolveType == null || typeof config22.resolveType === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat((0, _inspect.default)(config22.resolveType), "."));
34827
34827
  }
34828
34828
  var _proto3 = GraphQLInterfaceType6.prototype;
34829
34829
  _proto3.getFields = function getFields() {
@@ -34868,16 +34868,16 @@ var require_definition = __commonJS2({
34868
34868
  exports.GraphQLInterfaceType = GraphQLInterfaceType5;
34869
34869
  (0, _defineInspect.default)(GraphQLInterfaceType5);
34870
34870
  var GraphQLUnionType3 = /* @__PURE__ */ function() {
34871
- function GraphQLUnionType4(config5) {
34872
- this.name = config5.name;
34873
- this.description = config5.description;
34874
- this.resolveType = config5.resolveType;
34875
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
34876
- this.astNode = config5.astNode;
34877
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
34878
- this._types = defineTypes.bind(void 0, config5);
34879
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34880
- config5.resolveType == null || typeof config5.resolveType === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat((0, _inspect.default)(config5.resolveType), "."));
34871
+ function GraphQLUnionType4(config22) {
34872
+ this.name = config22.name;
34873
+ this.description = config22.description;
34874
+ this.resolveType = config22.resolveType;
34875
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
34876
+ this.astNode = config22.astNode;
34877
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
34878
+ this._types = defineTypes.bind(void 0, config22);
34879
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34880
+ config22.resolveType == null || typeof config22.resolveType === "function" || (0, _devAssert.default)(0, "".concat(this.name, ' must provide "resolveType" as a function, ') + "but got: ".concat((0, _inspect.default)(config22.resolveType), "."));
34881
34881
  }
34882
34882
  var _proto4 = GraphQLUnionType4.prototype;
34883
34883
  _proto4.getTypes = function getTypes() {
@@ -34914,26 +34914,26 @@ var require_definition = __commonJS2({
34914
34914
  }();
34915
34915
  exports.GraphQLUnionType = GraphQLUnionType3;
34916
34916
  (0, _defineInspect.default)(GraphQLUnionType3);
34917
- function defineTypes(config5) {
34918
- var types42 = resolveThunk(config5.types);
34919
- Array.isArray(types42) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config5.name, "."));
34917
+ function defineTypes(config22) {
34918
+ var types42 = resolveThunk(config22.types);
34919
+ Array.isArray(types42) || (0, _devAssert.default)(0, "Must provide Array of types or a function which returns such an array for Union ".concat(config22.name, "."));
34920
34920
  return types42;
34921
34921
  }
34922
34922
  var GraphQLEnumType4 = /* @__PURE__ */ function() {
34923
- function GraphQLEnumType5(config5) {
34924
- this.name = config5.name;
34925
- this.description = config5.description;
34926
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
34927
- this.astNode = config5.astNode;
34928
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
34929
- this._values = defineEnumValues(this.name, config5.values);
34923
+ function GraphQLEnumType5(config22) {
34924
+ this.name = config22.name;
34925
+ this.description = config22.description;
34926
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
34927
+ this.astNode = config22.astNode;
34928
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
34929
+ this._values = defineEnumValues(this.name, config22.values);
34930
34930
  this._valueLookup = new Map(this._values.map(function(enumValue) {
34931
34931
  return [enumValue.value, enumValue];
34932
34932
  }));
34933
34933
  this._nameLookup = (0, _keyMap.default)(this._values, function(value2) {
34934
34934
  return value2.name;
34935
34935
  });
34936
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34936
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
34937
34937
  }
34938
34938
  var _proto5 = GraphQLEnumType5.prototype;
34939
34939
  _proto5.getValues = function getValues() {
@@ -35035,14 +35035,14 @@ var require_definition = __commonJS2({
35035
35035
  });
35036
35036
  }
35037
35037
  var GraphQLInputObjectType4 = /* @__PURE__ */ function() {
35038
- function GraphQLInputObjectType5(config5) {
35039
- this.name = config5.name;
35040
- this.description = config5.description;
35041
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
35042
- this.astNode = config5.astNode;
35043
- this.extensionASTNodes = undefineIfEmpty(config5.extensionASTNodes);
35044
- this._fields = defineInputFieldMap.bind(void 0, config5);
35045
- typeof config5.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
35038
+ function GraphQLInputObjectType5(config22) {
35039
+ this.name = config22.name;
35040
+ this.description = config22.description;
35041
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
35042
+ this.astNode = config22.astNode;
35043
+ this.extensionASTNodes = undefineIfEmpty(config22.extensionASTNodes);
35044
+ this._fields = defineInputFieldMap.bind(void 0, config22);
35045
+ typeof config22.name === "string" || (0, _devAssert.default)(0, "Must provide name.");
35046
35046
  }
35047
35047
  var _proto6 = GraphQLInputObjectType5.prototype;
35048
35048
  _proto6.getFields = function getFields() {
@@ -35088,11 +35088,11 @@ var require_definition = __commonJS2({
35088
35088
  }();
35089
35089
  exports.GraphQLInputObjectType = GraphQLInputObjectType4;
35090
35090
  (0, _defineInspect.default)(GraphQLInputObjectType4);
35091
- function defineInputFieldMap(config5) {
35092
- var fieldMap = resolveThunk(config5.fields);
35093
- isPlainObj(fieldMap) || (0, _devAssert.default)(0, "".concat(config5.name, " fields must be an object with field names as keys or a function which returns such an object."));
35091
+ function defineInputFieldMap(config22) {
35092
+ var fieldMap = resolveThunk(config22.fields);
35093
+ isPlainObj(fieldMap) || (0, _devAssert.default)(0, "".concat(config22.name, " fields must be an object with field names as keys or a function which returns such an object."));
35094
35094
  return (0, _mapValue.default)(fieldMap, function(fieldConfig, fieldName) {
35095
- !("resolve" in fieldConfig) || (0, _devAssert.default)(0, "".concat(config5.name, ".").concat(fieldName, " field has a resolve property, but Input Types cannot define resolvers."));
35095
+ !("resolve" in fieldConfig) || (0, _devAssert.default)(0, "".concat(config22.name, ".").concat(fieldName, " field has a resolve property, but Input Types cannot define resolvers."));
35096
35096
  return {
35097
35097
  name: fieldName,
35098
35098
  description: fieldConfig.description,
@@ -36271,18 +36271,18 @@ var require_directives = __commonJS2({
36271
36271
  return directive;
36272
36272
  }
36273
36273
  var GraphQLDirective2 = /* @__PURE__ */ function() {
36274
- function GraphQLDirective3(config5) {
36274
+ function GraphQLDirective3(config22) {
36275
36275
  var _config$isRepeatable, _config$args;
36276
- this.name = config5.name;
36277
- this.description = config5.description;
36278
- this.locations = config5.locations;
36279
- this.isRepeatable = (_config$isRepeatable = config5.isRepeatable) !== null && _config$isRepeatable !== void 0 ? _config$isRepeatable : false;
36280
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
36281
- this.astNode = config5.astNode;
36282
- config5.name || (0, _devAssert.default)(0, "Directive must be named.");
36283
- Array.isArray(config5.locations) || (0, _devAssert.default)(0, "@".concat(config5.name, " locations must be an Array."));
36284
- var args = (_config$args = config5.args) !== null && _config$args !== void 0 ? _config$args : {};
36285
- (0, _isObjectLike.default)(args) && !Array.isArray(args) || (0, _devAssert.default)(0, "@".concat(config5.name, " args must be an object with argument names as keys."));
36276
+ this.name = config22.name;
36277
+ this.description = config22.description;
36278
+ this.locations = config22.locations;
36279
+ this.isRepeatable = (_config$isRepeatable = config22.isRepeatable) !== null && _config$isRepeatable !== void 0 ? _config$isRepeatable : false;
36280
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
36281
+ this.astNode = config22.astNode;
36282
+ config22.name || (0, _devAssert.default)(0, "Directive must be named.");
36283
+ Array.isArray(config22.locations) || (0, _devAssert.default)(0, "@".concat(config22.name, " locations must be an Array."));
36284
+ var args = (_config$args = config22.args) !== null && _config$args !== void 0 ? _config$args : {};
36285
+ (0, _isObjectLike.default)(args) && !Array.isArray(args) || (0, _devAssert.default)(0, "@".concat(config22.name, " args must be an object with argument names as keys."));
36286
36286
  this.args = (0, _objectEntries.default)(args).map(function(_ref) {
36287
36287
  var argName = _ref[0], argConfig = _ref[1];
36288
36288
  return {
@@ -36436,23 +36436,23 @@ var require_schema = __commonJS2({
36436
36436
  return schema2;
36437
36437
  }
36438
36438
  var GraphQLSchema2 = /* @__PURE__ */ function() {
36439
- function GraphQLSchema3(config5) {
36439
+ function GraphQLSchema3(config22) {
36440
36440
  var _config$directives;
36441
- this.__validationErrors = config5.assumeValid === true ? [] : void 0;
36442
- (0, _isObjectLike.default)(config5) || (0, _devAssert.default)(0, "Must provide configuration object.");
36443
- !config5.types || Array.isArray(config5.types) || (0, _devAssert.default)(0, '"types" must be Array if provided but got: '.concat((0, _inspect.default)(config5.types), "."));
36444
- !config5.directives || Array.isArray(config5.directives) || (0, _devAssert.default)(0, '"directives" must be Array if provided but got: ' + "".concat((0, _inspect.default)(config5.directives), "."));
36445
- this.description = config5.description;
36446
- this.extensions = config5.extensions && (0, _toObjMap.default)(config5.extensions);
36447
- this.astNode = config5.astNode;
36448
- this.extensionASTNodes = config5.extensionASTNodes;
36449
- this._queryType = config5.query;
36450
- this._mutationType = config5.mutation;
36451
- this._subscriptionType = config5.subscription;
36452
- this._directives = (_config$directives = config5.directives) !== null && _config$directives !== void 0 ? _config$directives : _directives.specifiedDirectives;
36453
- var allReferencedTypes = new Set(config5.types);
36454
- if (config5.types != null) {
36455
- for (var _i2 = 0, _config$types2 = config5.types; _i2 < _config$types2.length; _i2++) {
36441
+ this.__validationErrors = config22.assumeValid === true ? [] : void 0;
36442
+ (0, _isObjectLike.default)(config22) || (0, _devAssert.default)(0, "Must provide configuration object.");
36443
+ !config22.types || Array.isArray(config22.types) || (0, _devAssert.default)(0, '"types" must be Array if provided but got: '.concat((0, _inspect.default)(config22.types), "."));
36444
+ !config22.directives || Array.isArray(config22.directives) || (0, _devAssert.default)(0, '"directives" must be Array if provided but got: ' + "".concat((0, _inspect.default)(config22.directives), "."));
36445
+ this.description = config22.description;
36446
+ this.extensions = config22.extensions && (0, _toObjMap.default)(config22.extensions);
36447
+ this.astNode = config22.astNode;
36448
+ this.extensionASTNodes = config22.extensionASTNodes;
36449
+ this._queryType = config22.query;
36450
+ this._mutationType = config22.mutation;
36451
+ this._subscriptionType = config22.subscription;
36452
+ this._directives = (_config$directives = config22.directives) !== null && _config$directives !== void 0 ? _config$directives : _directives.specifiedDirectives;
36453
+ var allReferencedTypes = new Set(config22.types);
36454
+ if (config22.types != null) {
36455
+ for (var _i2 = 0, _config$types2 = config22.types; _i2 < _config$types2.length; _i2++) {
36456
36456
  var type = _config$types2[_i2];
36457
36457
  allReferencedTypes.delete(type);
36458
36458
  collectReferencedTypes(type, allReferencedTypes);
@@ -42642,9 +42642,9 @@ var require_extendSchema = __commonJS2({
42642
42642
  return typeMap[type.name];
42643
42643
  }
42644
42644
  function replaceDirective(directive) {
42645
- var config5 = directive.toConfig();
42646
- return new _directives.GraphQLDirective(_objectSpread(_objectSpread({}, config5), {}, {
42647
- args: (0, _mapValue.default)(config5.args, extendArg)
42645
+ var config22 = directive.toConfig();
42646
+ return new _directives.GraphQLDirective(_objectSpread(_objectSpread({}, config22), {}, {
42647
+ args: (0, _mapValue.default)(config22.args, extendArg)
42648
42648
  }));
42649
42649
  }
42650
42650
  function extendNamedType(type) {
@@ -42673,80 +42673,80 @@ var require_extendSchema = __commonJS2({
42673
42673
  }
42674
42674
  function extendInputObjectType(type) {
42675
42675
  var _typeExtensionsMap$co;
42676
- var config5 = type.toConfig();
42677
- var extensions = (_typeExtensionsMap$co = typeExtensionsMap[config5.name]) !== null && _typeExtensionsMap$co !== void 0 ? _typeExtensionsMap$co : [];
42678
- return new _definition.GraphQLInputObjectType(_objectSpread(_objectSpread({}, config5), {}, {
42676
+ var config22 = type.toConfig();
42677
+ var extensions = (_typeExtensionsMap$co = typeExtensionsMap[config22.name]) !== null && _typeExtensionsMap$co !== void 0 ? _typeExtensionsMap$co : [];
42678
+ return new _definition.GraphQLInputObjectType(_objectSpread(_objectSpread({}, config22), {}, {
42679
42679
  fields: function fields() {
42680
- return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config5.fields, function(field) {
42680
+ return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config22.fields, function(field) {
42681
42681
  return _objectSpread(_objectSpread({}, field), {}, {
42682
42682
  type: replaceType(field.type)
42683
42683
  });
42684
42684
  })), buildInputFieldMap(extensions));
42685
42685
  },
42686
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42686
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42687
42687
  }));
42688
42688
  }
42689
42689
  function extendEnumType(type) {
42690
42690
  var _typeExtensionsMap$ty;
42691
- var config5 = type.toConfig();
42691
+ var config22 = type.toConfig();
42692
42692
  var extensions = (_typeExtensionsMap$ty = typeExtensionsMap[type.name]) !== null && _typeExtensionsMap$ty !== void 0 ? _typeExtensionsMap$ty : [];
42693
- return new _definition.GraphQLEnumType(_objectSpread(_objectSpread({}, config5), {}, {
42694
- values: _objectSpread(_objectSpread({}, config5.values), buildEnumValueMap(extensions)),
42695
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42693
+ return new _definition.GraphQLEnumType(_objectSpread(_objectSpread({}, config22), {}, {
42694
+ values: _objectSpread(_objectSpread({}, config22.values), buildEnumValueMap(extensions)),
42695
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42696
42696
  }));
42697
42697
  }
42698
42698
  function extendScalarType(type) {
42699
42699
  var _typeExtensionsMap$co2;
42700
- var config5 = type.toConfig();
42701
- var extensions = (_typeExtensionsMap$co2 = typeExtensionsMap[config5.name]) !== null && _typeExtensionsMap$co2 !== void 0 ? _typeExtensionsMap$co2 : [];
42702
- var specifiedByUrl = config5.specifiedByUrl;
42700
+ var config22 = type.toConfig();
42701
+ var extensions = (_typeExtensionsMap$co2 = typeExtensionsMap[config22.name]) !== null && _typeExtensionsMap$co2 !== void 0 ? _typeExtensionsMap$co2 : [];
42702
+ var specifiedByUrl = config22.specifiedByUrl;
42703
42703
  for (var _i8 = 0; _i8 < extensions.length; _i8++) {
42704
42704
  var _getSpecifiedByUrl;
42705
42705
  var extensionNode = extensions[_i8];
42706
42706
  specifiedByUrl = (_getSpecifiedByUrl = getSpecifiedByUrl(extensionNode)) !== null && _getSpecifiedByUrl !== void 0 ? _getSpecifiedByUrl : specifiedByUrl;
42707
42707
  }
42708
- return new _definition.GraphQLScalarType(_objectSpread(_objectSpread({}, config5), {}, {
42708
+ return new _definition.GraphQLScalarType(_objectSpread(_objectSpread({}, config22), {}, {
42709
42709
  specifiedByUrl,
42710
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42710
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42711
42711
  }));
42712
42712
  }
42713
42713
  function extendObjectType(type) {
42714
42714
  var _typeExtensionsMap$co3;
42715
- var config5 = type.toConfig();
42716
- var extensions = (_typeExtensionsMap$co3 = typeExtensionsMap[config5.name]) !== null && _typeExtensionsMap$co3 !== void 0 ? _typeExtensionsMap$co3 : [];
42717
- return new _definition.GraphQLObjectType(_objectSpread(_objectSpread({}, config5), {}, {
42715
+ var config22 = type.toConfig();
42716
+ var extensions = (_typeExtensionsMap$co3 = typeExtensionsMap[config22.name]) !== null && _typeExtensionsMap$co3 !== void 0 ? _typeExtensionsMap$co3 : [];
42717
+ return new _definition.GraphQLObjectType(_objectSpread(_objectSpread({}, config22), {}, {
42718
42718
  interfaces: function interfaces() {
42719
42719
  return [].concat(type.getInterfaces().map(replaceNamedType), buildInterfaces(extensions));
42720
42720
  },
42721
42721
  fields: function fields() {
42722
- return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config5.fields, extendField)), buildFieldMap(extensions));
42722
+ return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config22.fields, extendField)), buildFieldMap(extensions));
42723
42723
  },
42724
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42724
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42725
42725
  }));
42726
42726
  }
42727
42727
  function extendInterfaceType(type) {
42728
42728
  var _typeExtensionsMap$co4;
42729
- var config5 = type.toConfig();
42730
- var extensions = (_typeExtensionsMap$co4 = typeExtensionsMap[config5.name]) !== null && _typeExtensionsMap$co4 !== void 0 ? _typeExtensionsMap$co4 : [];
42731
- return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, config5), {}, {
42729
+ var config22 = type.toConfig();
42730
+ var extensions = (_typeExtensionsMap$co4 = typeExtensionsMap[config22.name]) !== null && _typeExtensionsMap$co4 !== void 0 ? _typeExtensionsMap$co4 : [];
42731
+ return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, config22), {}, {
42732
42732
  interfaces: function interfaces() {
42733
42733
  return [].concat(type.getInterfaces().map(replaceNamedType), buildInterfaces(extensions));
42734
42734
  },
42735
42735
  fields: function fields() {
42736
- return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config5.fields, extendField)), buildFieldMap(extensions));
42736
+ return _objectSpread(_objectSpread({}, (0, _mapValue.default)(config22.fields, extendField)), buildFieldMap(extensions));
42737
42737
  },
42738
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42738
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42739
42739
  }));
42740
42740
  }
42741
42741
  function extendUnionType(type) {
42742
42742
  var _typeExtensionsMap$co5;
42743
- var config5 = type.toConfig();
42744
- var extensions = (_typeExtensionsMap$co5 = typeExtensionsMap[config5.name]) !== null && _typeExtensionsMap$co5 !== void 0 ? _typeExtensionsMap$co5 : [];
42745
- return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, config5), {}, {
42743
+ var config22 = type.toConfig();
42744
+ var extensions = (_typeExtensionsMap$co5 = typeExtensionsMap[config22.name]) !== null && _typeExtensionsMap$co5 !== void 0 ? _typeExtensionsMap$co5 : [];
42745
+ return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, config22), {}, {
42746
42746
  types: function types42() {
42747
42747
  return [].concat(type.getTypes().map(replaceNamedType), buildUnionTypes(extensions));
42748
42748
  },
42749
- extensionASTNodes: config5.extensionASTNodes.concat(extensions)
42749
+ extensionASTNodes: config22.extensionASTNodes.concat(extensions)
42750
42750
  }));
42751
42751
  }
42752
42752
  function extendField(field) {
@@ -43061,24 +43061,24 @@ var require_buildASTSchema = __commonJS2({
43061
43061
  extensionASTNodes: [],
43062
43062
  assumeValid: false
43063
43063
  };
43064
- var config5 = (0, _extendSchema.extendSchemaImpl)(emptySchemaConfig, documentAST, options);
43065
- if (config5.astNode == null) {
43066
- for (var _i2 = 0, _config$types2 = config5.types; _i2 < _config$types2.length; _i2++) {
43064
+ var config22 = (0, _extendSchema.extendSchemaImpl)(emptySchemaConfig, documentAST, options);
43065
+ if (config22.astNode == null) {
43066
+ for (var _i2 = 0, _config$types2 = config22.types; _i2 < _config$types2.length; _i2++) {
43067
43067
  var type = _config$types2[_i2];
43068
43068
  switch (type.name) {
43069
43069
  case "Query":
43070
- config5.query = type;
43070
+ config22.query = type;
43071
43071
  break;
43072
43072
  case "Mutation":
43073
- config5.mutation = type;
43073
+ config22.mutation = type;
43074
43074
  break;
43075
43075
  case "Subscription":
43076
- config5.subscription = type;
43076
+ config22.subscription = type;
43077
43077
  break;
43078
43078
  }
43079
43079
  }
43080
43080
  }
43081
- var directives = config5.directives;
43081
+ var directives = config22.directives;
43082
43082
  var _loop = function _loop2(_i42) {
43083
43083
  var stdDirective = _directives.specifiedDirectives[_i42];
43084
43084
  if (directives.every(function(directive) {
@@ -43090,7 +43090,7 @@ var require_buildASTSchema = __commonJS2({
43090
43090
  for (var _i4 = 0; _i4 < _directives.specifiedDirectives.length; _i4++) {
43091
43091
  _loop(_i4);
43092
43092
  }
43093
- return new _schema.GraphQLSchema(config5);
43093
+ return new _schema.GraphQLSchema(config22);
43094
43094
  }
43095
43095
  function buildSchema3(source, options) {
43096
43096
  var document2 = (0, _parser.parse)(source, {
@@ -43190,12 +43190,12 @@ var require_lexicographicSortSchema = __commonJS2({
43190
43190
  return maybeType && replaceNamedType(maybeType);
43191
43191
  }
43192
43192
  function sortDirective(directive) {
43193
- var config5 = directive.toConfig();
43194
- return new _directives.GraphQLDirective(_objectSpread(_objectSpread({}, config5), {}, {
43195
- locations: sortBy(config5.locations, function(x22) {
43193
+ var config22 = directive.toConfig();
43194
+ return new _directives.GraphQLDirective(_objectSpread(_objectSpread({}, config22), {}, {
43195
+ locations: sortBy(config22.locations, function(x22) {
43196
43196
  return x22;
43197
43197
  }),
43198
- args: sortArgs(config5.args)
43198
+ args: sortArgs(config22.args)
43199
43199
  }));
43200
43200
  }
43201
43201
  function sortArgs(args) {
@@ -43228,13 +43228,13 @@ var require_lexicographicSortSchema = __commonJS2({
43228
43228
  return type;
43229
43229
  }
43230
43230
  if ((0, _definition.isObjectType)(type)) {
43231
- var config5 = type.toConfig();
43232
- return new _definition.GraphQLObjectType(_objectSpread(_objectSpread({}, config5), {}, {
43231
+ var config22 = type.toConfig();
43232
+ return new _definition.GraphQLObjectType(_objectSpread(_objectSpread({}, config22), {}, {
43233
43233
  interfaces: function interfaces() {
43234
- return sortTypes(config5.interfaces);
43234
+ return sortTypes(config22.interfaces);
43235
43235
  },
43236
43236
  fields: function fields() {
43237
- return sortFields(config5.fields);
43237
+ return sortFields(config22.fields);
43238
43238
  }
43239
43239
  }));
43240
43240
  }
@@ -84603,13 +84603,13 @@ var require_esprima2 = __commonJS2({
84603
84603
  return Reader2;
84604
84604
  }();
84605
84605
  var Tokenizer = function() {
84606
- function Tokenizer2(code, config5) {
84606
+ function Tokenizer2(code, config22) {
84607
84607
  this.errorHandler = new error_handler_1.ErrorHandler();
84608
- this.errorHandler.tolerant = config5 ? typeof config5.tolerant === "boolean" && config5.tolerant : false;
84608
+ this.errorHandler.tolerant = config22 ? typeof config22.tolerant === "boolean" && config22.tolerant : false;
84609
84609
  this.scanner = new scanner_1.Scanner(code, this.errorHandler);
84610
- this.scanner.trackComment = config5 ? typeof config5.comment === "boolean" && config5.comment : false;
84611
- this.trackRange = config5 ? typeof config5.range === "boolean" && config5.range : false;
84612
- this.trackLoc = config5 ? typeof config5.loc === "boolean" && config5.loc : false;
84610
+ this.scanner.trackComment = config22 ? typeof config22.comment === "boolean" && config22.comment : false;
84611
+ this.trackRange = config22 ? typeof config22.range === "boolean" && config22.range : false;
84612
+ this.trackLoc = config22 ? typeof config22.loc === "boolean" && config22.loc : false;
84613
84613
  this.buffer = [];
84614
84614
  this.reader = new Reader();
84615
84615
  }
@@ -86760,11 +86760,11 @@ var require_printer2 = __commonJS2({
86760
86760
  return this.code;
86761
86761
  };
86762
86762
  var emptyPrintResult = new PrintResult("");
86763
- var Printer = function Printer2(config5) {
86763
+ var Printer = function Printer2(config22) {
86764
86764
  assert_1.default.ok(this instanceof Printer2);
86765
- var explicitTabWidth = config5 && config5.tabWidth;
86766
- config5 = (0, options_1.normalize)(config5);
86767
- config5.sourceFileName = null;
86765
+ var explicitTabWidth = config22 && config22.tabWidth;
86766
+ config22 = (0, options_1.normalize)(config22);
86767
+ config22.sourceFileName = null;
86768
86768
  function makePrintFunctionWith(options, overrides) {
86769
86769
  options = Object.assign({}, options, overrides);
86770
86770
  return function(path22) {
@@ -86779,19 +86779,19 @@ var require_printer2 = __commonJS2({
86779
86779
  includeComments: false
86780
86780
  }));
86781
86781
  }
86782
- var oldTabWidth = config5.tabWidth;
86782
+ var oldTabWidth = config22.tabWidth;
86783
86783
  if (!explicitTabWidth) {
86784
86784
  var loc = path22.getNode().loc;
86785
86785
  if (loc && loc.lines && loc.lines.guessTabWidth) {
86786
- config5.tabWidth = loc.lines.guessTabWidth();
86786
+ config22.tabWidth = loc.lines.guessTabWidth();
86787
86787
  }
86788
86788
  }
86789
86789
  var reprinter = (0, patcher_1.getReprinter)(path22);
86790
- var lines = reprinter ? reprinter(print5) : genericPrint(path22, config5, options, makePrintFunctionWith(options, {
86790
+ var lines = reprinter ? reprinter(print5) : genericPrint(path22, config22, options, makePrintFunctionWith(options, {
86791
86791
  includeComments: true,
86792
86792
  avoidRootParens: false
86793
86793
  }));
86794
- config5.tabWidth = oldTabWidth;
86794
+ config22.tabWidth = oldTabWidth;
86795
86795
  return lines;
86796
86796
  }
86797
86797
  this.print = function(ast) {
@@ -86802,7 +86802,7 @@ var require_printer2 = __commonJS2({
86802
86802
  includeComments: true,
86803
86803
  avoidRootParens: false
86804
86804
  });
86805
- return new PrintResult(lines.toString(config5), util2.composeSourceMaps(config5.inputSourceMap, lines.getSourceMap(config5.sourceMapName, config5.sourceRoot)));
86805
+ return new PrintResult(lines.toString(config22), util2.composeSourceMaps(config22.inputSourceMap, lines.getSourceMap(config22.sourceMapName, config22.sourceRoot)));
86806
86806
  };
86807
86807
  this.printGenerically = function(ast) {
86808
86808
  if (!ast) {
@@ -86810,26 +86810,26 @@ var require_printer2 = __commonJS2({
86810
86810
  }
86811
86811
  function printGenerically(path32) {
86812
86812
  return (0, comments_1.printComments)(path32, function(path42) {
86813
- return genericPrint(path42, config5, {
86813
+ return genericPrint(path42, config22, {
86814
86814
  includeComments: true,
86815
86815
  avoidRootParens: false
86816
86816
  }, printGenerically);
86817
86817
  });
86818
86818
  }
86819
86819
  var path22 = fast_path_1.default.from(ast);
86820
- var oldReuseWhitespace = config5.reuseWhitespace;
86821
- config5.reuseWhitespace = false;
86822
- var pr = new PrintResult(printGenerically(path22).toString(config5));
86823
- config5.reuseWhitespace = oldReuseWhitespace;
86820
+ var oldReuseWhitespace = config22.reuseWhitespace;
86821
+ config22.reuseWhitespace = false;
86822
+ var pr = new PrintResult(printGenerically(path22).toString(config22));
86823
+ config22.reuseWhitespace = oldReuseWhitespace;
86824
86824
  return pr;
86825
86825
  };
86826
86826
  };
86827
86827
  exports.Printer = Printer;
86828
- function genericPrint(path22, config5, options, printPath) {
86828
+ function genericPrint(path22, config22, options, printPath) {
86829
86829
  assert_1.default.ok(path22 instanceof fast_path_1.default);
86830
86830
  var node2 = path22.getValue();
86831
86831
  var parts = [];
86832
- var linesWithoutParens = genericPrintNoParens(path22, config5, printPath);
86832
+ var linesWithoutParens = genericPrintNoParens(path22, config22, printPath);
86833
86833
  if (!node2 || linesWithoutParens.isEmpty()) {
86834
86834
  return linesWithoutParens;
86835
86835
  }
@@ -89043,9 +89043,9 @@ var require_cjs = __commonJS2({
89043
89043
  module2.exports = deepmerge_1;
89044
89044
  }
89045
89045
  });
89046
- async function runPipeline(config5, pipeline22, target) {
89046
+ async function runPipeline(config22, pipeline22, target) {
89047
89047
  for (const transform of pipeline22) {
89048
- await transform?.(config5, target);
89048
+ await transform?.(config22, target);
89049
89049
  }
89050
89050
  }
89051
89051
  var import_graphql16 = __toESM2(require_graphql2(), 1);
@@ -89456,7 +89456,7 @@ async function marshalSelection({
89456
89456
  selection,
89457
89457
  data: data2
89458
89458
  }) {
89459
- const config5 = getCurrentConfig();
89459
+ const config22 = getCurrentConfig();
89460
89460
  if (data2 === null || typeof data2 === "undefined") {
89461
89461
  return data2;
89462
89462
  }
@@ -89474,8 +89474,8 @@ async function marshalSelection({
89474
89474
  if (selection2) {
89475
89475
  return [fieldName, await marshalSelection({ selection: selection2, data: value2 })];
89476
89476
  }
89477
- if (config5.scalars?.[type]) {
89478
- const marshalFn = config5.scalars[type].marshal;
89477
+ if (config22.scalars?.[type]) {
89478
+ const marshalFn = config22.scalars[type].marshal;
89479
89479
  if (!marshalFn) {
89480
89480
  throw new Error(
89481
89481
  `scalar type ${type} is missing a \`marshal\` function. see https://github.com/AlecAivazis/houdini#%EF%B8%8Fcustom-scalars`
@@ -90451,10 +90451,10 @@ function plugin(name, hooks) {
90451
90451
  name,
90452
90452
  plugin: hooks,
90453
90453
  __plugin_init__: true,
90454
- with(config5) {
90454
+ with(config22) {
90455
90455
  return {
90456
90456
  ...data2,
90457
- config: config5
90457
+ config: config22
90458
90458
  };
90459
90459
  }
90460
90460
  };
@@ -91665,7 +91665,7 @@ var InMemorySubscriptions = class {
91665
91665
  };
91666
91666
  var Cache = class {
91667
91667
  _internal_unstable;
91668
- constructor({ disabled, ...config5 } = {}) {
91668
+ constructor({ disabled, ...config22 } = {}) {
91669
91669
  this._internal_unstable = new CacheInternal({
91670
91670
  cache: this,
91671
91671
  storage: new InMemoryStorage(),
@@ -91675,8 +91675,8 @@ var Cache = class {
91675
91675
  staleManager: new StaleManager(this),
91676
91676
  disabled: disabled ?? typeof globalThis.window === "undefined"
91677
91677
  });
91678
- if (Object.keys(config5).length > 0) {
91679
- this.setConfig(defaultConfigValues(config5));
91678
+ if (Object.keys(config22).length > 0) {
91679
+ this.setConfig(defaultConfigValues(config22));
91680
91680
  }
91681
91681
  }
91682
91682
  write({
@@ -91730,8 +91730,8 @@ var Cache = class {
91730
91730
  this._internal_unstable.lists.removeIDFromAllLists(id2, layer);
91731
91731
  this._internal_unstable.storage.delete(id2, layer);
91732
91732
  }
91733
- setConfig(config5) {
91734
- this._internal_unstable.setConfig(config5);
91733
+ setConfig(config22) {
91734
+ this._internal_unstable.setConfig(config22);
91735
91735
  }
91736
91736
  markTypeStale(options) {
91737
91737
  if (!options) {
@@ -91856,7 +91856,7 @@ var CacheInternal = class {
91856
91856
  lifetimes,
91857
91857
  staleManager,
91858
91858
  disabled,
91859
- config: config5
91859
+ config: config22
91860
91860
  }) {
91861
91861
  this.storage = storage;
91862
91862
  this.subscriptions = subscriptions;
@@ -91864,7 +91864,7 @@ var CacheInternal = class {
91864
91864
  this.cache = cache;
91865
91865
  this.lifetimes = lifetimes;
91866
91866
  this.staleManager = staleManager;
91867
- this._config = config5;
91867
+ this._config = config22;
91868
91868
  this._disabled = disabled;
91869
91869
  try {
91870
91870
  if (process.env.HOUDINI_TEST === "true") {
@@ -91876,8 +91876,8 @@ var CacheInternal = class {
91876
91876
  get config() {
91877
91877
  return this._config ?? getCurrentConfig();
91878
91878
  }
91879
- setConfig(config5) {
91880
- this._config = config5;
91879
+ setConfig(config22) {
91880
+ this._config = config22;
91881
91881
  }
91882
91882
  writeSelection({
91883
91883
  data: data2,
@@ -92753,23 +92753,23 @@ function operation_requires_variables(operation) {
92753
92753
  )
92754
92754
  );
92755
92755
  }
92756
- function unwrapType(config5, type, wrappers = []) {
92756
+ function unwrapType(config22, type, wrappers = []) {
92757
92757
  if (type.kind === "NonNullType") {
92758
- return unwrapType(config5, type.type, [TypeWrapper.NonNull, ...wrappers]);
92758
+ return unwrapType(config22, type.type, [TypeWrapper.NonNull, ...wrappers]);
92759
92759
  }
92760
92760
  if (type instanceof graphql3.GraphQLNonNull) {
92761
- return unwrapType(config5, type.ofType, [TypeWrapper.NonNull, ...wrappers]);
92761
+ return unwrapType(config22, type.ofType, [TypeWrapper.NonNull, ...wrappers]);
92762
92762
  }
92763
92763
  if (wrappers[0] !== TypeWrapper.NonNull) {
92764
92764
  wrappers.unshift(TypeWrapper.Nullable);
92765
92765
  }
92766
92766
  if (type.kind === "ListType") {
92767
- return unwrapType(config5, type.type, [TypeWrapper.List, ...wrappers]);
92767
+ return unwrapType(config22, type.type, [TypeWrapper.List, ...wrappers]);
92768
92768
  }
92769
92769
  if (type instanceof graphql3.GraphQLList) {
92770
- return unwrapType(config5, type.ofType, [TypeWrapper.List, ...wrappers]);
92770
+ return unwrapType(config22, type.ofType, [TypeWrapper.List, ...wrappers]);
92771
92771
  }
92772
- const namedType = config5.schema.getType(type.name.value || type.name);
92772
+ const namedType = config22.schema.getType(type.name.value || type.name);
92773
92773
  if (!namedType) {
92774
92774
  throw new Error("Could not unwrap type: " + JSON.stringify(type));
92775
92775
  }
@@ -92802,12 +92802,12 @@ function deepMerge2(filepath, ...targets) {
92802
92802
  });
92803
92803
  }
92804
92804
  }
92805
- function parseJS(str, config5) {
92805
+ function parseJS(str, config22) {
92806
92806
  const defaultConfig = {
92807
- plugins: ["typescript", "importAssertions", "decorators"],
92807
+ plugins: ["typescript", "importAssertions", "decorators-legacy"],
92808
92808
  sourceType: "module"
92809
92809
  };
92810
- return (0, import_parser.parse)(str || "", config5 ? deepMerge2("", defaultConfig, config5) : defaultConfig).program;
92810
+ return (0, import_parser.parse)(str || "", config22 ? deepMerge2("", defaultConfig, config22) : defaultConfig).program;
92811
92811
  }
92812
92812
  async function printJS(script, options) {
92813
92813
  if (options?.pretty) {
@@ -92819,7 +92819,7 @@ async function printJS(script, options) {
92819
92819
  var recast = __toESM2(require_main2(), 1);
92820
92820
  var AST = recast.types.builders;
92821
92821
  function ensureImports({
92822
- config: config5,
92822
+ config: config22,
92823
92823
  body,
92824
92824
  import: importID,
92825
92825
  sourceModule,
@@ -92872,12 +92872,12 @@ async function detectFromPackageJSON(cwd) {
92872
92872
  }
92873
92873
  const { devDependencies, dependencies } = packageJSON;
92874
92874
  const hasDependency = (dep) => Boolean(devDependencies?.[dep] || dependencies?.[dep]);
92875
- let framework2 = "svelte";
92875
+ let frameworkInfo = { framework: "svelte" };
92876
92876
  if (hasDependency("@sveltejs/kit")) {
92877
- framework2 = "kit";
92877
+ frameworkInfo = { framework: "kit" };
92878
92878
  }
92879
92879
  return {
92880
- framework: framework2,
92880
+ frameworkInfo,
92881
92881
  module: packageJSON["type"] === "module" ? "esm" : "commonjs"
92882
92882
  };
92883
92883
  }
@@ -92988,7 +92988,7 @@ async function asyncWalk(ast, { enter, leave }) {
92988
92988
  return await instance.visit(ast, null);
92989
92989
  }
92990
92990
  var graphql4 = __toESM2(require_graphql2(), 1);
92991
- async function find_graphql(config5, parsedScript, walker) {
92991
+ async function find_graphql(config22, parsedScript, walker) {
92992
92992
  await asyncWalk(parsedScript, {
92993
92993
  async enter(node2, parent2) {
92994
92994
  if (node2.type !== "TaggedTemplateExpression" && node2.type !== "CallExpression") {
@@ -93021,7 +93021,7 @@ async function find_graphql(config5, parsedScript, walker) {
93021
93021
  if (walker.where && !walker.where(parsedTag, { node: node2, parent: parent2 })) {
93022
93022
  return;
93023
93023
  }
93024
- const definition = config5.extractDefinition(parsedTag);
93024
+ const definition = config22.extractDefinition(parsedTag);
93025
93025
  const name = definition.name?.value;
93026
93026
  if (!name) {
93027
93027
  throw new Error("Could not find definition name");
@@ -93038,7 +93038,7 @@ async function find_graphql(config5, parsedScript, walker) {
93038
93038
  kind = CompiledSubscriptionKind;
93039
93039
  }
93040
93040
  }
93041
- walker.dependency?.(config5.artifactPath(parsedTag));
93041
+ walker.dependency?.(config22.artifactPath(parsedTag));
93042
93042
  await walker.tag({
93043
93043
  parsedDocument: parsedTag,
93044
93044
  node: {
@@ -147184,6 +147184,41 @@ async function glob2(pattern) {
147184
147184
  return await (0, import_node_util5.promisify)(import_glob2.glob)(posixify2(pattern));
147185
147185
  }
147186
147186
  glob2.hasMagic = import_glob2.glob.hasMagic;
147187
+ var config = {
147188
+ reset: {
147189
+ node: `\x1B[37m\x1B[0m`,
147190
+ browser: ""
147191
+ },
147192
+ green: {
147193
+ node: `\x1B[32m`,
147194
+ browser: "color: green"
147195
+ },
147196
+ magneta: {
147197
+ node: `\x1B[35m`,
147198
+ browser: "color: #ff00ff"
147199
+ },
147200
+ red: {
147201
+ node: `\x1B[31m`,
147202
+ browser: "color: red"
147203
+ },
147204
+ cyan: {
147205
+ node: `\x1B[36m`,
147206
+ browser: "color: cyan"
147207
+ },
147208
+ yellow: {
147209
+ node: `\x1B[33m`,
147210
+ browser: "color: yellow"
147211
+ }
147212
+ };
147213
+ function logGreen(str) {
147214
+ return `${config.green.node}${str}${config.reset.node}`;
147215
+ }
147216
+ function logCyan(str) {
147217
+ return `${config.cyan.node}${str}${config.reset.node}`;
147218
+ }
147219
+ function logYellow(str) {
147220
+ return `${config.yellow.node}${str}${config.reset.node}`;
147221
+ }
147187
147222
  function flatten2(source) {
147188
147223
  if (!source) {
147189
147224
  return [];
@@ -149626,7 +149661,7 @@ function deepMerge22(filepath, ...targets) {
149626
149661
  }
149627
149662
  function parseJS2(str, config22) {
149628
149663
  const defaultConfig = {
149629
- plugins: ["typescript", "importAssertions", "decorators"],
149664
+ plugins: ["typescript", "importAssertions", "decorators-legacy"],
149630
149665
  sourceType: "module"
149631
149666
  };
149632
149667
  return (0, import_parser2.parse)(str || "", config22 ? deepMerge22("", defaultConfig, config22) : defaultConfig).program;
@@ -150855,41 +150890,6 @@ function ancestorKey(ancestors) {
150855
150890
  ).map((field) => field.name.value).join(",");
150856
150891
  }
150857
150892
  var graphql12 = __toESM3(require_graphql22(), 1);
150858
- var config = {
150859
- reset: {
150860
- node: `\x1B[37m\x1B[0m`,
150861
- browser: ""
150862
- },
150863
- green: {
150864
- node: `\x1B[32m`,
150865
- browser: "color: green"
150866
- },
150867
- magneta: {
150868
- node: `\x1B[35m`,
150869
- browser: "color: #ff00ff"
150870
- },
150871
- red: {
150872
- node: `\x1B[31m`,
150873
- browser: "color: red"
150874
- },
150875
- cyan: {
150876
- node: `\x1B[36m`,
150877
- browser: "color: cyan"
150878
- },
150879
- yellow: {
150880
- node: `\x1B[33m`,
150881
- browser: "color: yellow"
150882
- }
150883
- };
150884
- function logGreen(str) {
150885
- return `${config.green.node}${str}${config.reset.node}`;
150886
- }
150887
- function logCyan(str) {
150888
- return `${config.cyan.node}${str}${config.reset.node}`;
150889
- }
150890
- function logYellow(str) {
150891
- return `${config.yellow.node}${str}${config.reset.node}`;
150892
- }
150893
150893
  var graphql10 = __toESM3(require_graphql22(), 1);
150894
150894
  var graphql8 = __toESM3(require_graphql22(), 1);
150895
150895
  var objectIdentificationSelection = (config22, type) => {
@@ -308587,7 +308587,7 @@ directive @${config5.blockingDisableDirective} on QUERY
308587
308587
  framework = cfgPlugin.framework;
308588
308588
  } else {
308589
308589
  const detected = await detectFromPackageJSON(cfg.projectRoot);
308590
- framework = detected.framework === "kit" ? "kit" : "svelte";
308590
+ framework = detected.frameworkInfo.framework === "kit" ? "kit" : "svelte";
308591
308591
  }
308592
308592
  },
308593
308593
  async env({ config: config5 }) {