houdini-svelte 1.2.33 → 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.
|
@@ -78971,7 +78971,7 @@ function page_id(path3) {
|
|
|
78971
78971
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
78972
78972
|
path3 = path3.substring(0, path3.length - 1);
|
|
78973
78973
|
}
|
|
78974
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78974
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
78975
78975
|
const mask = "_";
|
|
78976
78976
|
let copy = "";
|
|
78977
78977
|
for (const char of path3) {
|
|
@@ -144045,7 +144045,7 @@ function page_id2(path3) {
|
|
|
144045
144045
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
144046
144046
|
path3 = path3.substring(0, path3.length - 1);
|
|
144047
144047
|
}
|
|
144048
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
144048
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
144049
144049
|
const mask = "_";
|
|
144050
144050
|
let copy = "";
|
|
144051
144051
|
for (const char of path3) {
|
|
@@ -78966,7 +78966,7 @@ function page_id(path3) {
|
|
|
78966
78966
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
78967
78967
|
path3 = path3.substring(0, path3.length - 1);
|
|
78968
78968
|
}
|
|
78969
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78969
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
78970
78970
|
const mask = "_";
|
|
78971
78971
|
let copy = "";
|
|
78972
78972
|
for (const char of path3) {
|
|
@@ -144039,7 +144039,7 @@ function page_id2(path3) {
|
|
|
144039
144039
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
144040
144040
|
path3 = path3.substring(0, path3.length - 1);
|
|
144041
144041
|
}
|
|
144042
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
144042
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
144043
144043
|
const mask = "_";
|
|
144044
144044
|
let copy = "";
|
|
144045
144045
|
for (const char of path3) {
|
|
@@ -83092,7 +83092,7 @@ function page_id(path3) {
|
|
|
83092
83092
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
83093
83093
|
path3 = path3.substring(0, path3.length - 1);
|
|
83094
83094
|
}
|
|
83095
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
83095
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
83096
83096
|
const mask = "_";
|
|
83097
83097
|
let copy = "";
|
|
83098
83098
|
for (const char of path3) {
|
|
@@ -175850,7 +175850,7 @@ function page_id2(path3) {
|
|
|
175850
175850
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
175851
175851
|
path3 = path3.substring(0, path3.length - 1);
|
|
175852
175852
|
}
|
|
175853
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
175853
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
175854
175854
|
const mask = "_";
|
|
175855
175855
|
let copy = "";
|
|
175856
175856
|
for (const char of path3) {
|
|
@@ -83089,7 +83089,7 @@ function page_id(path3) {
|
|
|
83089
83089
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
83090
83090
|
path3 = path3.substring(0, path3.length - 1);
|
|
83091
83091
|
}
|
|
83092
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
83092
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
83093
83093
|
const mask = "_";
|
|
83094
83094
|
let copy = "";
|
|
83095
83095
|
for (const char of path3) {
|
|
@@ -175846,7 +175846,7 @@ function page_id2(path3) {
|
|
|
175846
175846
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
175847
175847
|
path3 = path3.substring(0, path3.length - 1);
|
|
175848
175848
|
}
|
|
175849
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
175849
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
175850
175850
|
const mask = "_";
|
|
175851
175851
|
let copy = "";
|
|
175852
175852
|
for (const char of path3) {
|
package/build/test-cjs/index.js
CHANGED
|
@@ -78974,7 +78974,7 @@ function page_id(path32) {
|
|
|
78974
78974
|
if (path32.endsWith("/") && path32.length > 1) {
|
|
78975
78975
|
path32 = path32.substring(0, path32.length - 1);
|
|
78976
78976
|
}
|
|
78977
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78977
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
78978
78978
|
const mask = "_";
|
|
78979
78979
|
let copy = "";
|
|
78980
78980
|
for (const char of path32) {
|
|
@@ -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,
|
|
@@ -266946,7 +266951,7 @@ function page_id2(path32) {
|
|
|
266946
266951
|
if (path32.endsWith("/") && path32.length > 1) {
|
|
266947
266952
|
path32 = path32.substring(0, path32.length - 1);
|
|
266948
266953
|
}
|
|
266949
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
266954
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
266950
266955
|
const mask = "_";
|
|
266951
266956
|
let copy = "";
|
|
266952
266957
|
for (const char of path32) {
|
package/build/test-esm/index.js
CHANGED
|
@@ -78966,7 +78966,7 @@ function page_id(path32) {
|
|
|
78966
78966
|
if (path32.endsWith("/") && path32.length > 1) {
|
|
78967
78967
|
path32 = path32.substring(0, path32.length - 1);
|
|
78968
78968
|
}
|
|
78969
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78969
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
78970
78970
|
const mask = "_";
|
|
78971
78971
|
let copy = "";
|
|
78972
78972
|
for (const char of path32) {
|
|
@@ -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,
|
|
@@ -266935,7 +266940,7 @@ function page_id2(path32) {
|
|
|
266935
266940
|
if (path32.endsWith("/") && path32.length > 1) {
|
|
266936
266941
|
path32 = path32.substring(0, path32.length - 1);
|
|
266937
266942
|
}
|
|
266938
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
266943
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
266939
266944
|
const mask = "_";
|
|
266940
266945
|
let copy = "";
|
|
266941
266946
|
for (const char of path32) {
|
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"
|