houdini 0.20.2 → 0.20.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.
- package/build/cmd-cjs/index.js +10 -4
- package/build/cmd-esm/index.js +10 -4
- package/build/codegen-cjs/index.js +8 -2
- package/build/codegen-esm/index.js +8 -2
- package/build/test-cjs/index.js +8 -2
- package/build/test-esm/index.js +8 -2
- package/build/vite-cjs/index.js +8 -2
- package/build/vite-esm/index.js +8 -2
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -72636,6 +72636,9 @@ var FieldCollection = class {
|
|
|
72636
72636
|
this.add(selection2);
|
|
72637
72637
|
}
|
|
72638
72638
|
}
|
|
72639
|
+
get size() {
|
|
72640
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
72641
|
+
}
|
|
72639
72642
|
add(selection2) {
|
|
72640
72643
|
if (selection2.kind === "Field") {
|
|
72641
72644
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -72704,9 +72707,12 @@ var FieldCollection = class {
|
|
|
72704
72707
|
}
|
|
72705
72708
|
}
|
|
72706
72709
|
toSelectionSet() {
|
|
72707
|
-
return Object.values(this.inlineFragments).
|
|
72710
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
72711
|
+
if (fragment.selection.size === 0) {
|
|
72712
|
+
return [];
|
|
72713
|
+
}
|
|
72708
72714
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
72709
|
-
return fragment.astNode;
|
|
72715
|
+
return [fragment.astNode];
|
|
72710
72716
|
}).concat(
|
|
72711
72717
|
Object.values(this.fields).map((field) => {
|
|
72712
72718
|
if (field.astNode.selectionSet) {
|
|
@@ -77715,8 +77721,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
77715
77721
|
}
|
|
77716
77722
|
packageJSON.devDependencies = {
|
|
77717
77723
|
...packageJSON.devDependencies,
|
|
77718
|
-
houdini: "^0.20.
|
|
77719
|
-
"houdini-svelte": "^0.20.
|
|
77724
|
+
houdini: "^0.20.4",
|
|
77725
|
+
"houdini-svelte": "^0.20.4",
|
|
77720
77726
|
graphql: "^15.8.0"
|
|
77721
77727
|
};
|
|
77722
77728
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -72641,6 +72641,9 @@ var FieldCollection = class {
|
|
|
72641
72641
|
this.add(selection2);
|
|
72642
72642
|
}
|
|
72643
72643
|
}
|
|
72644
|
+
get size() {
|
|
72645
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
72646
|
+
}
|
|
72644
72647
|
add(selection2) {
|
|
72645
72648
|
if (selection2.kind === "Field") {
|
|
72646
72649
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -72709,9 +72712,12 @@ var FieldCollection = class {
|
|
|
72709
72712
|
}
|
|
72710
72713
|
}
|
|
72711
72714
|
toSelectionSet() {
|
|
72712
|
-
return Object.values(this.inlineFragments).
|
|
72715
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
72716
|
+
if (fragment.selection.size === 0) {
|
|
72717
|
+
return [];
|
|
72718
|
+
}
|
|
72713
72719
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
72714
|
-
return fragment.astNode;
|
|
72720
|
+
return [fragment.astNode];
|
|
72715
72721
|
}).concat(
|
|
72716
72722
|
Object.values(this.fields).map((field) => {
|
|
72717
72723
|
if (field.astNode.selectionSet) {
|
|
@@ -77720,8 +77726,8 @@ async function updatePackageJSON(targetPath) {
|
|
|
77720
77726
|
}
|
|
77721
77727
|
packageJSON.devDependencies = {
|
|
77722
77728
|
...packageJSON.devDependencies,
|
|
77723
|
-
houdini: "^0.20.
|
|
77724
|
-
"houdini-svelte": "^0.20.
|
|
77729
|
+
houdini: "^0.20.4",
|
|
77730
|
+
"houdini-svelte": "^0.20.4",
|
|
77725
77731
|
graphql: "^15.8.0"
|
|
77726
77732
|
};
|
|
77727
77733
|
await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
|
|
@@ -56463,6 +56463,9 @@ var FieldCollection = class {
|
|
|
56463
56463
|
this.add(selection2);
|
|
56464
56464
|
}
|
|
56465
56465
|
}
|
|
56466
|
+
get size() {
|
|
56467
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
56468
|
+
}
|
|
56466
56469
|
add(selection2) {
|
|
56467
56470
|
if (selection2.kind === "Field") {
|
|
56468
56471
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -56531,9 +56534,12 @@ var FieldCollection = class {
|
|
|
56531
56534
|
}
|
|
56532
56535
|
}
|
|
56533
56536
|
toSelectionSet() {
|
|
56534
|
-
return Object.values(this.inlineFragments).
|
|
56537
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
56538
|
+
if (fragment.selection.size === 0) {
|
|
56539
|
+
return [];
|
|
56540
|
+
}
|
|
56535
56541
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
56536
|
-
return fragment.astNode;
|
|
56542
|
+
return [fragment.astNode];
|
|
56537
56543
|
}).concat(
|
|
56538
56544
|
Object.values(this.fields).map((field) => {
|
|
56539
56545
|
if (field.astNode.selectionSet) {
|
|
@@ -56461,6 +56461,9 @@ var FieldCollection = class {
|
|
|
56461
56461
|
this.add(selection2);
|
|
56462
56462
|
}
|
|
56463
56463
|
}
|
|
56464
|
+
get size() {
|
|
56465
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
56466
|
+
}
|
|
56464
56467
|
add(selection2) {
|
|
56465
56468
|
if (selection2.kind === "Field") {
|
|
56466
56469
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -56529,9 +56532,12 @@ var FieldCollection = class {
|
|
|
56529
56532
|
}
|
|
56530
56533
|
}
|
|
56531
56534
|
toSelectionSet() {
|
|
56532
|
-
return Object.values(this.inlineFragments).
|
|
56535
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
56536
|
+
if (fragment.selection.size === 0) {
|
|
56537
|
+
return [];
|
|
56538
|
+
}
|
|
56533
56539
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
56534
|
-
return fragment.astNode;
|
|
56540
|
+
return [fragment.astNode];
|
|
56535
56541
|
}).concat(
|
|
56536
56542
|
Object.values(this.fields).map((field) => {
|
|
56537
56543
|
if (field.astNode.selectionSet) {
|
package/build/test-cjs/index.js
CHANGED
|
@@ -56769,6 +56769,9 @@ var FieldCollection = class {
|
|
|
56769
56769
|
this.add(selection2);
|
|
56770
56770
|
}
|
|
56771
56771
|
}
|
|
56772
|
+
get size() {
|
|
56773
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
56774
|
+
}
|
|
56772
56775
|
add(selection2) {
|
|
56773
56776
|
if (selection2.kind === "Field") {
|
|
56774
56777
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -56837,9 +56840,12 @@ var FieldCollection = class {
|
|
|
56837
56840
|
}
|
|
56838
56841
|
}
|
|
56839
56842
|
toSelectionSet() {
|
|
56840
|
-
return Object.values(this.inlineFragments).
|
|
56843
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
56844
|
+
if (fragment.selection.size === 0) {
|
|
56845
|
+
return [];
|
|
56846
|
+
}
|
|
56841
56847
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
56842
|
-
return fragment.astNode;
|
|
56848
|
+
return [fragment.astNode];
|
|
56843
56849
|
}).concat(
|
|
56844
56850
|
Object.values(this.fields).map((field) => {
|
|
56845
56851
|
if (field.astNode.selectionSet) {
|
package/build/test-esm/index.js
CHANGED
|
@@ -56764,6 +56764,9 @@ var FieldCollection = class {
|
|
|
56764
56764
|
this.add(selection2);
|
|
56765
56765
|
}
|
|
56766
56766
|
}
|
|
56767
|
+
get size() {
|
|
56768
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
56769
|
+
}
|
|
56767
56770
|
add(selection2) {
|
|
56768
56771
|
if (selection2.kind === "Field") {
|
|
56769
56772
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -56832,9 +56835,12 @@ var FieldCollection = class {
|
|
|
56832
56835
|
}
|
|
56833
56836
|
}
|
|
56834
56837
|
toSelectionSet() {
|
|
56835
|
-
return Object.values(this.inlineFragments).
|
|
56838
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
56839
|
+
if (fragment.selection.size === 0) {
|
|
56840
|
+
return [];
|
|
56841
|
+
}
|
|
56836
56842
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
56837
|
-
return fragment.astNode;
|
|
56843
|
+
return [fragment.astNode];
|
|
56838
56844
|
}).concat(
|
|
56839
56845
|
Object.values(this.fields).map((field) => {
|
|
56840
56846
|
if (field.astNode.selectionSet) {
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -69494,6 +69494,9 @@ var FieldCollection = class {
|
|
|
69494
69494
|
this.add(selection2);
|
|
69495
69495
|
}
|
|
69496
69496
|
}
|
|
69497
|
+
get size() {
|
|
69498
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
69499
|
+
}
|
|
69497
69500
|
add(selection2) {
|
|
69498
69501
|
if (selection2.kind === "Field") {
|
|
69499
69502
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -69562,9 +69565,12 @@ var FieldCollection = class {
|
|
|
69562
69565
|
}
|
|
69563
69566
|
}
|
|
69564
69567
|
toSelectionSet() {
|
|
69565
|
-
return Object.values(this.inlineFragments).
|
|
69568
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
69569
|
+
if (fragment.selection.size === 0) {
|
|
69570
|
+
return [];
|
|
69571
|
+
}
|
|
69566
69572
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
69567
|
-
return fragment.astNode;
|
|
69573
|
+
return [fragment.astNode];
|
|
69568
69574
|
}).concat(
|
|
69569
69575
|
Object.values(this.fields).map((field) => {
|
|
69570
69576
|
if (field.astNode.selectionSet) {
|
package/build/vite-esm/index.js
CHANGED
|
@@ -69488,6 +69488,9 @@ var FieldCollection = class {
|
|
|
69488
69488
|
this.add(selection2);
|
|
69489
69489
|
}
|
|
69490
69490
|
}
|
|
69491
|
+
get size() {
|
|
69492
|
+
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
69493
|
+
}
|
|
69491
69494
|
add(selection2) {
|
|
69492
69495
|
if (selection2.kind === "Field") {
|
|
69493
69496
|
const key = selection2.alias?.value || selection2.name.value;
|
|
@@ -69556,9 +69559,12 @@ var FieldCollection = class {
|
|
|
69556
69559
|
}
|
|
69557
69560
|
}
|
|
69558
69561
|
toSelectionSet() {
|
|
69559
|
-
return Object.values(this.inlineFragments).
|
|
69562
|
+
return Object.values(this.inlineFragments).flatMap((fragment) => {
|
|
69563
|
+
if (fragment.selection.size === 0) {
|
|
69564
|
+
return [];
|
|
69565
|
+
}
|
|
69560
69566
|
fragment.astNode.selectionSet.selections = fragment.selection.toSelectionSet();
|
|
69561
|
-
return fragment.astNode;
|
|
69567
|
+
return [fragment.astNode];
|
|
69562
69568
|
}).concat(
|
|
69563
69569
|
Object.values(this.fields).map((field) => {
|
|
69564
69570
|
if (field.astNode.selectionSet) {
|