houdini 1.2.34 → 1.2.35

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.
@@ -69525,7 +69525,7 @@ var FieldCollection = class {
69525
69525
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
69526
69526
  }
69527
69527
  add({ selection, external }) {
69528
- let include = this.config.defaultFragmentMasking === "disable";
69528
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
69529
69529
  const maskEnableDirective = selection.directives?.find(
69530
69530
  ({ name }) => name.value === this.config.maskEnableDirective
69531
69531
  );
@@ -71859,7 +71859,12 @@ function prepareSelection({
71859
71859
  object.fragments = {
71860
71860
  ...object.fragments,
71861
71861
  [fragment2]: {
71862
- arguments: args ?? {}
71862
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
71863
+ withArguments(config, field).map((arg) => [
71864
+ arg.name.value,
71865
+ arg.value
71866
+ ])
71867
+ )
71863
71868
  }
71864
71869
  };
71865
71870
  if (globalLoading || field.directives?.find((d3) => d3.name.value === config.loadingDirective)) {
@@ -72186,7 +72191,7 @@ function artifactGenerator(stats) {
72186
72191
  document: doc,
72187
72192
  rootType,
72188
72193
  globalLoading,
72189
- includeFragments: doc.kind !== ArtifactKind.Fragment,
72194
+ includeFragments: true,
72190
72195
  hasComponents: () => {
72191
72196
  hasComponents = true;
72192
72197
  },
@@ -72195,7 +72200,7 @@ function artifactGenerator(stats) {
72195
72200
  filepath: doc.filename,
72196
72201
  selections: selectionSet.selections,
72197
72202
  fragmentDefinitions,
72198
- applyFragments: doc.kind !== ArtifactKind.Fragment
72203
+ applyFragments: true
72199
72204
  }),
72200
72205
  operations: operationsByPath(
72201
72206
  config,
@@ -78518,12 +78523,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78518
78523
  }
78519
78524
  packageJSON2.devDependencies = {
78520
78525
  ...packageJSON2.devDependencies,
78521
- houdini: "^1.2.34"
78526
+ houdini: "^1.2.35"
78522
78527
  };
78523
78528
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78524
78529
  packageJSON2.devDependencies = {
78525
78530
  ...packageJSON2.devDependencies,
78526
- "houdini-svelte": "^1.2.34"
78531
+ "houdini-svelte": "^1.2.35"
78527
78532
  };
78528
78533
  } else {
78529
78534
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -69530,7 +69530,7 @@ var FieldCollection = class {
69530
69530
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
69531
69531
  }
69532
69532
  add({ selection, external }) {
69533
- let include = this.config.defaultFragmentMasking === "disable";
69533
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
69534
69534
  const maskEnableDirective = selection.directives?.find(
69535
69535
  ({ name }) => name.value === this.config.maskEnableDirective
69536
69536
  );
@@ -71864,7 +71864,12 @@ function prepareSelection({
71864
71864
  object.fragments = {
71865
71865
  ...object.fragments,
71866
71866
  [fragment2]: {
71867
- arguments: args ?? {}
71867
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
71868
+ withArguments(config, field).map((arg) => [
71869
+ arg.name.value,
71870
+ arg.value
71871
+ ])
71872
+ )
71868
71873
  }
71869
71874
  };
71870
71875
  if (globalLoading || field.directives?.find((d3) => d3.name.value === config.loadingDirective)) {
@@ -72191,7 +72196,7 @@ function artifactGenerator(stats) {
72191
72196
  document: doc,
72192
72197
  rootType,
72193
72198
  globalLoading,
72194
- includeFragments: doc.kind !== ArtifactKind.Fragment,
72199
+ includeFragments: true,
72195
72200
  hasComponents: () => {
72196
72201
  hasComponents = true;
72197
72202
  },
@@ -72200,7 +72205,7 @@ function artifactGenerator(stats) {
72200
72205
  filepath: doc.filename,
72201
72206
  selections: selectionSet.selections,
72202
72207
  fragmentDefinitions,
72203
- applyFragments: doc.kind !== ArtifactKind.Fragment
72208
+ applyFragments: true
72204
72209
  }),
72205
72210
  operations: operationsByPath(
72206
72211
  config,
@@ -78523,12 +78528,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78523
78528
  }
78524
78529
  packageJSON2.devDependencies = {
78525
78530
  ...packageJSON2.devDependencies,
78526
- houdini: "^1.2.34"
78531
+ houdini: "^1.2.35"
78527
78532
  };
78528
78533
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78529
78534
  packageJSON2.devDependencies = {
78530
78535
  ...packageJSON2.devDependencies,
78531
- "houdini-svelte": "^1.2.34"
78536
+ "houdini-svelte": "^1.2.35"
78532
78537
  };
78533
78538
  } else {
78534
78539
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
@@ -57914,7 +57914,7 @@ var FieldCollection = class {
57914
57914
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
57915
57915
  }
57916
57916
  add({ selection, external }) {
57917
- let include = this.config.defaultFragmentMasking === "disable";
57917
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
57918
57918
  const maskEnableDirective = selection.directives?.find(
57919
57919
  ({ name }) => name.value === this.config.maskEnableDirective
57920
57920
  );
@@ -60248,7 +60248,12 @@ function prepareSelection({
60248
60248
  object.fragments = {
60249
60249
  ...object.fragments,
60250
60250
  [fragment2]: {
60251
- arguments: args ?? {}
60251
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
60252
+ withArguments(config, field).map((arg) => [
60253
+ arg.name.value,
60254
+ arg.value
60255
+ ])
60256
+ )
60252
60257
  }
60253
60258
  };
60254
60259
  if (globalLoading || field.directives?.find((d) => d.name.value === config.loadingDirective)) {
@@ -60575,7 +60580,7 @@ function artifactGenerator(stats) {
60575
60580
  document: doc,
60576
60581
  rootType,
60577
60582
  globalLoading,
60578
- includeFragments: doc.kind !== ArtifactKind.Fragment,
60583
+ includeFragments: true,
60579
60584
  hasComponents: () => {
60580
60585
  hasComponents = true;
60581
60586
  },
@@ -60584,7 +60589,7 @@ function artifactGenerator(stats) {
60584
60589
  filepath: doc.filename,
60585
60590
  selections: selectionSet.selections,
60586
60591
  fragmentDefinitions,
60587
- applyFragments: doc.kind !== ArtifactKind.Fragment
60592
+ applyFragments: true
60588
60593
  }),
60589
60594
  operations: operationsByPath(
60590
60595
  config,
@@ -57913,7 +57913,7 @@ var FieldCollection = class {
57913
57913
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
57914
57914
  }
57915
57915
  add({ selection, external }) {
57916
- let include = this.config.defaultFragmentMasking === "disable";
57916
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
57917
57917
  const maskEnableDirective = selection.directives?.find(
57918
57918
  ({ name }) => name.value === this.config.maskEnableDirective
57919
57919
  );
@@ -60247,7 +60247,12 @@ function prepareSelection({
60247
60247
  object.fragments = {
60248
60248
  ...object.fragments,
60249
60249
  [fragment2]: {
60250
- arguments: args ?? {}
60250
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
60251
+ withArguments(config, field).map((arg) => [
60252
+ arg.name.value,
60253
+ arg.value
60254
+ ])
60255
+ )
60251
60256
  }
60252
60257
  };
60253
60258
  if (globalLoading || field.directives?.find((d) => d.name.value === config.loadingDirective)) {
@@ -60574,7 +60579,7 @@ function artifactGenerator(stats) {
60574
60579
  document: doc,
60575
60580
  rootType,
60576
60581
  globalLoading,
60577
- includeFragments: doc.kind !== ArtifactKind.Fragment,
60582
+ includeFragments: true,
60578
60583
  hasComponents: () => {
60579
60584
  hasComponents = true;
60580
60585
  },
@@ -60583,7 +60588,7 @@ function artifactGenerator(stats) {
60583
60588
  filepath: doc.filename,
60584
60589
  selections: selectionSet.selections,
60585
60590
  fragmentDefinitions,
60586
- applyFragments: doc.kind !== ArtifactKind.Fragment
60591
+ applyFragments: true
60587
60592
  }),
60588
60593
  operations: operationsByPath(
60589
60594
  config,
@@ -58268,7 +58268,7 @@ var FieldCollection = class {
58268
58268
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
58269
58269
  }
58270
58270
  add({ selection, external }) {
58271
- let include = this.config.defaultFragmentMasking === "disable";
58271
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
58272
58272
  const maskEnableDirective = selection.directives?.find(
58273
58273
  ({ name }) => name.value === this.config.maskEnableDirective
58274
58274
  );
@@ -60602,7 +60602,12 @@ function prepareSelection({
60602
60602
  object.fragments = {
60603
60603
  ...object.fragments,
60604
60604
  [fragment2]: {
60605
- arguments: args ?? {}
60605
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
60606
+ withArguments(config, field).map((arg) => [
60607
+ arg.name.value,
60608
+ arg.value
60609
+ ])
60610
+ )
60606
60611
  }
60607
60612
  };
60608
60613
  if (globalLoading || field.directives?.find((d) => d.name.value === config.loadingDirective)) {
@@ -60929,7 +60934,7 @@ function artifactGenerator(stats) {
60929
60934
  document: doc,
60930
60935
  rootType,
60931
60936
  globalLoading,
60932
- includeFragments: doc.kind !== ArtifactKind.Fragment,
60937
+ includeFragments: true,
60933
60938
  hasComponents: () => {
60934
60939
  hasComponents = true;
60935
60940
  },
@@ -60938,7 +60943,7 @@ function artifactGenerator(stats) {
60938
60943
  filepath: doc.filename,
60939
60944
  selections: selectionSet.selections,
60940
60945
  fragmentDefinitions,
60941
- applyFragments: doc.kind !== ArtifactKind.Fragment
60946
+ applyFragments: true
60942
60947
  }),
60943
60948
  operations: operationsByPath(
60944
60949
  config,
@@ -58264,7 +58264,7 @@ var FieldCollection = class {
58264
58264
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
58265
58265
  }
58266
58266
  add({ selection, external }) {
58267
- let include = this.config.defaultFragmentMasking === "disable";
58267
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
58268
58268
  const maskEnableDirective = selection.directives?.find(
58269
58269
  ({ name }) => name.value === this.config.maskEnableDirective
58270
58270
  );
@@ -60598,7 +60598,12 @@ function prepareSelection({
60598
60598
  object.fragments = {
60599
60599
  ...object.fragments,
60600
60600
  [fragment2]: {
60601
- arguments: args ?? {}
60601
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
60602
+ withArguments(config, field).map((arg) => [
60603
+ arg.name.value,
60604
+ arg.value
60605
+ ])
60606
+ )
60602
60607
  }
60603
60608
  };
60604
60609
  if (globalLoading || field.directives?.find((d) => d.name.value === config.loadingDirective)) {
@@ -60925,7 +60930,7 @@ function artifactGenerator(stats) {
60925
60930
  document: doc,
60926
60931
  rootType,
60927
60932
  globalLoading,
60928
- includeFragments: doc.kind !== ArtifactKind.Fragment,
60933
+ includeFragments: true,
60929
60934
  hasComponents: () => {
60930
60935
  hasComponents = true;
60931
60936
  },
@@ -60934,7 +60939,7 @@ function artifactGenerator(stats) {
60934
60939
  filepath: doc.filename,
60935
60940
  selections: selectionSet.selections,
60936
60941
  fragmentDefinitions,
60937
- applyFragments: doc.kind !== ArtifactKind.Fragment
60942
+ applyFragments: true
60938
60943
  }),
60939
60944
  operations: operationsByPath(
60940
60945
  config,
@@ -70959,7 +70959,7 @@ var FieldCollection = class {
70959
70959
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
70960
70960
  }
70961
70961
  add({ selection, external }) {
70962
- let include = this.config.defaultFragmentMasking === "disable";
70962
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
70963
70963
  const maskEnableDirective = selection.directives?.find(
70964
70964
  ({ name }) => name.value === this.config.maskEnableDirective
70965
70965
  );
@@ -73293,7 +73293,12 @@ function prepareSelection({
73293
73293
  object.fragments = {
73294
73294
  ...object.fragments,
73295
73295
  [fragment2]: {
73296
- arguments: args ?? {}
73296
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
73297
+ withArguments(config2, field).map((arg) => [
73298
+ arg.name.value,
73299
+ arg.value
73300
+ ])
73301
+ )
73297
73302
  }
73298
73303
  };
73299
73304
  if (globalLoading || field.directives?.find((d) => d.name.value === config2.loadingDirective)) {
@@ -73620,7 +73625,7 @@ function artifactGenerator(stats) {
73620
73625
  document: doc,
73621
73626
  rootType,
73622
73627
  globalLoading,
73623
- includeFragments: doc.kind !== ArtifactKind.Fragment,
73628
+ includeFragments: true,
73624
73629
  hasComponents: () => {
73625
73630
  hasComponents = true;
73626
73631
  },
@@ -73629,7 +73634,7 @@ function artifactGenerator(stats) {
73629
73634
  filepath: doc.filename,
73630
73635
  selections: selectionSet.selections,
73631
73636
  fragmentDefinitions,
73632
- applyFragments: doc.kind !== ArtifactKind.Fragment
73637
+ applyFragments: true
73633
73638
  }),
73634
73639
  operations: operationsByPath(
73635
73640
  config2,
@@ -70952,7 +70952,7 @@ var FieldCollection = class {
70952
70952
  return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
70953
70953
  }
70954
70954
  add({ selection, external }) {
70955
- let include = this.config.defaultFragmentMasking === "disable";
70955
+ let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
70956
70956
  const maskEnableDirective = selection.directives?.find(
70957
70957
  ({ name }) => name.value === this.config.maskEnableDirective
70958
70958
  );
@@ -73286,7 +73286,12 @@ function prepareSelection({
73286
73286
  object.fragments = {
73287
73287
  ...object.fragments,
73288
73288
  [fragment2]: {
73289
- arguments: args ?? {}
73289
+ arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
73290
+ withArguments(config2, field).map((arg) => [
73291
+ arg.name.value,
73292
+ arg.value
73293
+ ])
73294
+ )
73290
73295
  }
73291
73296
  };
73292
73297
  if (globalLoading || field.directives?.find((d) => d.name.value === config2.loadingDirective)) {
@@ -73613,7 +73618,7 @@ function artifactGenerator(stats) {
73613
73618
  document: doc,
73614
73619
  rootType,
73615
73620
  globalLoading,
73616
- includeFragments: doc.kind !== ArtifactKind.Fragment,
73621
+ includeFragments: true,
73617
73622
  hasComponents: () => {
73618
73623
  hasComponents = true;
73619
73624
  },
@@ -73622,7 +73627,7 @@ function artifactGenerator(stats) {
73622
73627
  filepath: doc.filename,
73623
73628
  selections: selectionSet.selections,
73624
73629
  fragmentDefinitions,
73625
- applyFragments: doc.kind !== ArtifactKind.Fragment
73630
+ applyFragments: true
73626
73631
  }),
73627
73632
  operations: operationsByPath(
73628
73633
  config2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",