houdini-svelte 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.
package/build/test-cjs/index.js
CHANGED
|
@@ -136153,7 +136153,7 @@ var FieldCollection = class {
|
|
|
136153
136153
|
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
136154
136154
|
}
|
|
136155
136155
|
add({ selection, external }) {
|
|
136156
|
-
let include = this.config.defaultFragmentMasking === "disable";
|
|
136156
|
+
let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
|
|
136157
136157
|
const maskEnableDirective = selection.directives?.find(
|
|
136158
136158
|
({ name }) => name.value === this.config.maskEnableDirective
|
|
136159
136159
|
);
|
|
@@ -138434,7 +138434,12 @@ function prepareSelection({
|
|
|
138434
138434
|
object.fragments = {
|
|
138435
138435
|
...object.fragments,
|
|
138436
138436
|
[fragment22]: {
|
|
138437
|
-
arguments: args ?? {}
|
|
138437
|
+
arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
|
|
138438
|
+
withArguments(config2, field).map((arg) => [
|
|
138439
|
+
arg.name.value,
|
|
138440
|
+
arg.value
|
|
138441
|
+
])
|
|
138442
|
+
)
|
|
138438
138443
|
}
|
|
138439
138444
|
};
|
|
138440
138445
|
if (globalLoading || field.directives?.find((d) => d.name.value === config2.loadingDirective)) {
|
|
@@ -138759,7 +138764,7 @@ function artifactGenerator(stats) {
|
|
|
138759
138764
|
document: doc,
|
|
138760
138765
|
rootType,
|
|
138761
138766
|
globalLoading,
|
|
138762
|
-
includeFragments:
|
|
138767
|
+
includeFragments: true,
|
|
138763
138768
|
hasComponents: () => {
|
|
138764
138769
|
hasComponents = true;
|
|
138765
138770
|
},
|
|
@@ -138768,7 +138773,7 @@ function artifactGenerator(stats) {
|
|
|
138768
138773
|
filepath: doc.filename,
|
|
138769
138774
|
selections: selectionSet.selections,
|
|
138770
138775
|
fragmentDefinitions,
|
|
138771
|
-
applyFragments:
|
|
138776
|
+
applyFragments: true
|
|
138772
138777
|
}),
|
|
138773
138778
|
operations: operationsByPath(
|
|
138774
138779
|
config2,
|
package/build/test-esm/index.js
CHANGED
|
@@ -136144,7 +136144,7 @@ var FieldCollection = class {
|
|
|
136144
136144
|
return Object.keys(this.fields).length + Object.keys(this.inlineFragments).length + Object.keys(this.fragmentSpreads).length;
|
|
136145
136145
|
}
|
|
136146
136146
|
add({ selection, external }) {
|
|
136147
|
-
let include = this.config.defaultFragmentMasking === "disable";
|
|
136147
|
+
let include = this.applyFragments || this.config.defaultFragmentMasking === "disable";
|
|
136148
136148
|
const maskEnableDirective = selection.directives?.find(
|
|
136149
136149
|
({ name }) => name.value === this.config.maskEnableDirective
|
|
136150
136150
|
);
|
|
@@ -138425,7 +138425,12 @@ function prepareSelection({
|
|
|
138425
138425
|
object.fragments = {
|
|
138426
138426
|
...object.fragments,
|
|
138427
138427
|
[fragment22]: {
|
|
138428
|
-
arguments: args ?? {}
|
|
138428
|
+
arguments: args && Object.keys(args ?? {}).length > 0 ? args : Object.fromEntries(
|
|
138429
|
+
withArguments(config2, field).map((arg) => [
|
|
138430
|
+
arg.name.value,
|
|
138431
|
+
arg.value
|
|
138432
|
+
])
|
|
138433
|
+
)
|
|
138429
138434
|
}
|
|
138430
138435
|
};
|
|
138431
138436
|
if (globalLoading || field.directives?.find((d) => d.name.value === config2.loadingDirective)) {
|
|
@@ -138750,7 +138755,7 @@ function artifactGenerator(stats) {
|
|
|
138750
138755
|
document: doc,
|
|
138751
138756
|
rootType,
|
|
138752
138757
|
globalLoading,
|
|
138753
|
-
includeFragments:
|
|
138758
|
+
includeFragments: true,
|
|
138754
138759
|
hasComponents: () => {
|
|
138755
138760
|
hasComponents = true;
|
|
138756
138761
|
},
|
|
@@ -138759,7 +138764,7 @@ function artifactGenerator(stats) {
|
|
|
138759
138764
|
filepath: doc.filename,
|
|
138760
138765
|
selections: selectionSet.selections,
|
|
138761
138766
|
fragmentDefinitions,
|
|
138762
|
-
applyFragments:
|
|
138767
|
+
applyFragments: true
|
|
138763
138768
|
}),
|
|
138764
138769
|
operations: operationsByPath(
|
|
138765
138770
|
config2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.35",
|
|
4
4
|
"description": "The svelte plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"rollup": "^3.7.4",
|
|
33
33
|
"svelte": "^3.57.0",
|
|
34
34
|
"vite": "^4.1.1",
|
|
35
|
-
"houdini": "^1.2.
|
|
35
|
+
"houdini": "^1.2.35"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"build"
|