houdini-svelte 0.17.10 → 0.17.11
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/plugin-cjs/index.js +25 -5
- package/build/plugin-esm/index.js +25 -5
- package/build/test-cjs/index.js +25 -5
- package/build/test-esm/index.js +25 -5
- package/package.json +2 -2
|
@@ -179836,14 +179836,34 @@ async function svelteKitGenerator(framework2, { config: config2 }) {
|
|
|
179836
179836
|
const afterLayoutLoad = layoutExports.includes("afterLoad");
|
|
179837
179837
|
const beforeLayoutLoad = layoutExports.includes("beforeLoad");
|
|
179838
179838
|
const onLayoutError = layoutExports.includes("onError");
|
|
179839
|
-
const
|
|
179840
|
-
|
|
179839
|
+
const layout_append_VariablesFunction = append_VariablesFunction(
|
|
179840
|
+
"Layout",
|
|
179841
|
+
config2,
|
|
179842
|
+
uniqueLayoutQueries
|
|
179843
|
+
);
|
|
179844
|
+
const page_append_VariablesFunction = append_VariablesFunction(
|
|
179845
|
+
"Page",
|
|
179846
|
+
config2,
|
|
179847
|
+
uniquePageQueries
|
|
179848
|
+
);
|
|
179841
179849
|
const splitString = skTypeString.split("\n\n");
|
|
179842
179850
|
let typeImports = splitString[0];
|
|
179843
179851
|
let utilityTypes = splitString[1];
|
|
179844
179852
|
let typeExports = splitString[2];
|
|
179845
|
-
const
|
|
179846
|
-
|
|
179853
|
+
const functionImportsToBring = [];
|
|
179854
|
+
if (layout_append_VariablesFunction !== "" || page_append_VariablesFunction !== "") {
|
|
179855
|
+
functionImportsToBring.push("VariableFunction");
|
|
179856
|
+
}
|
|
179857
|
+
if (afterLayoutLoad || afterPageLoad) {
|
|
179858
|
+
functionImportsToBring.push("AfterLoadFunction");
|
|
179859
|
+
}
|
|
179860
|
+
if (beforeLayoutLoad || beforePageLoad) {
|
|
179861
|
+
functionImportsToBring.push("BeforeLoadFunction");
|
|
179862
|
+
}
|
|
179863
|
+
const functionImports = functionImportsToBring.length > 0 ? `
|
|
179864
|
+
import type { ${functionImportsToBring.join(
|
|
179865
|
+
", "
|
|
179866
|
+
)} } from '${houdiniRelative}/plugins/houdini-svelte/runtime/types';` : "";
|
|
179847
179867
|
typeImports = typeImports.concat(functionImports).concat(layoutTypeImports).concat(pageTypeImports);
|
|
179848
179868
|
const layoutParams = `${layoutQueries.length > 0 && !utilityTypes.includes("LayoutParams") ? "\ntype LayoutParams = LayoutLoadEvent['params'];" : ""}`;
|
|
179849
179869
|
const pageParams = `${pageQueries.length > 0 && !utilityTypes.includes("PageParams") ? "\ntype PageParams = PageLoadEvent['params'];" : ""}`;
|
|
@@ -179858,7 +179878,7 @@ import type { ${layoutVariableLoad || pageVariableLoad ? "VariableFunction, " :
|
|
|
179858
179878
|
onLayoutError,
|
|
179859
179879
|
pageQueries.filter((x4) => x4.variableDefinitions?.length).length > 0
|
|
179860
179880
|
)
|
|
179861
|
-
).concat(
|
|
179881
|
+
).concat(layout_append_VariablesFunction).concat(page_append_VariablesFunction).replace(
|
|
179862
179882
|
/(?<=LayoutData = )([\s\S]*?)(?=;)/,
|
|
179863
179883
|
`Expand<$1 & { ${layoutQueries.map((query) => {
|
|
179864
179884
|
const name2 = query.name.value;
|
|
@@ -179832,14 +179832,34 @@ async function svelteKitGenerator(framework2, { config: config2 }) {
|
|
|
179832
179832
|
const afterLayoutLoad = layoutExports.includes("afterLoad");
|
|
179833
179833
|
const beforeLayoutLoad = layoutExports.includes("beforeLoad");
|
|
179834
179834
|
const onLayoutError = layoutExports.includes("onError");
|
|
179835
|
-
const
|
|
179836
|
-
|
|
179835
|
+
const layout_append_VariablesFunction = append_VariablesFunction(
|
|
179836
|
+
"Layout",
|
|
179837
|
+
config2,
|
|
179838
|
+
uniqueLayoutQueries
|
|
179839
|
+
);
|
|
179840
|
+
const page_append_VariablesFunction = append_VariablesFunction(
|
|
179841
|
+
"Page",
|
|
179842
|
+
config2,
|
|
179843
|
+
uniquePageQueries
|
|
179844
|
+
);
|
|
179837
179845
|
const splitString = skTypeString.split("\n\n");
|
|
179838
179846
|
let typeImports = splitString[0];
|
|
179839
179847
|
let utilityTypes = splitString[1];
|
|
179840
179848
|
let typeExports = splitString[2];
|
|
179841
|
-
const
|
|
179842
|
-
|
|
179849
|
+
const functionImportsToBring = [];
|
|
179850
|
+
if (layout_append_VariablesFunction !== "" || page_append_VariablesFunction !== "") {
|
|
179851
|
+
functionImportsToBring.push("VariableFunction");
|
|
179852
|
+
}
|
|
179853
|
+
if (afterLayoutLoad || afterPageLoad) {
|
|
179854
|
+
functionImportsToBring.push("AfterLoadFunction");
|
|
179855
|
+
}
|
|
179856
|
+
if (beforeLayoutLoad || beforePageLoad) {
|
|
179857
|
+
functionImportsToBring.push("BeforeLoadFunction");
|
|
179858
|
+
}
|
|
179859
|
+
const functionImports = functionImportsToBring.length > 0 ? `
|
|
179860
|
+
import type { ${functionImportsToBring.join(
|
|
179861
|
+
", "
|
|
179862
|
+
)} } from '${houdiniRelative}/plugins/houdini-svelte/runtime/types';` : "";
|
|
179843
179863
|
typeImports = typeImports.concat(functionImports).concat(layoutTypeImports).concat(pageTypeImports);
|
|
179844
179864
|
const layoutParams = `${layoutQueries.length > 0 && !utilityTypes.includes("LayoutParams") ? "\ntype LayoutParams = LayoutLoadEvent['params'];" : ""}`;
|
|
179845
179865
|
const pageParams = `${pageQueries.length > 0 && !utilityTypes.includes("PageParams") ? "\ntype PageParams = PageLoadEvent['params'];" : ""}`;
|
|
@@ -179854,7 +179874,7 @@ import type { ${layoutVariableLoad || pageVariableLoad ? "VariableFunction, " :
|
|
|
179854
179874
|
onLayoutError,
|
|
179855
179875
|
pageQueries.filter((x4) => x4.variableDefinitions?.length).length > 0
|
|
179856
179876
|
)
|
|
179857
|
-
).concat(
|
|
179877
|
+
).concat(layout_append_VariablesFunction).concat(page_append_VariablesFunction).replace(
|
|
179858
179878
|
/(?<=LayoutData = )([\s\S]*?)(?=;)/,
|
|
179859
179879
|
`Expand<$1 & { ${layoutQueries.map((query) => {
|
|
179860
179880
|
const name2 = query.name.value;
|
package/build/test-cjs/index.js
CHANGED
|
@@ -294491,14 +294491,34 @@ async function svelteKitGenerator(framework2, { config: config3 }) {
|
|
|
294491
294491
|
const afterLayoutLoad = layoutExports.includes("afterLoad");
|
|
294492
294492
|
const beforeLayoutLoad = layoutExports.includes("beforeLoad");
|
|
294493
294493
|
const onLayoutError = layoutExports.includes("onError");
|
|
294494
|
-
const
|
|
294495
|
-
|
|
294494
|
+
const layout_append_VariablesFunction = append_VariablesFunction(
|
|
294495
|
+
"Layout",
|
|
294496
|
+
config3,
|
|
294497
|
+
uniqueLayoutQueries
|
|
294498
|
+
);
|
|
294499
|
+
const page_append_VariablesFunction = append_VariablesFunction(
|
|
294500
|
+
"Page",
|
|
294501
|
+
config3,
|
|
294502
|
+
uniquePageQueries
|
|
294503
|
+
);
|
|
294496
294504
|
const splitString = skTypeString.split("\n\n");
|
|
294497
294505
|
let typeImports = splitString[0];
|
|
294498
294506
|
let utilityTypes = splitString[1];
|
|
294499
294507
|
let typeExports = splitString[2];
|
|
294500
|
-
const
|
|
294501
|
-
|
|
294508
|
+
const functionImportsToBring = [];
|
|
294509
|
+
if (layout_append_VariablesFunction !== "" || page_append_VariablesFunction !== "") {
|
|
294510
|
+
functionImportsToBring.push("VariableFunction");
|
|
294511
|
+
}
|
|
294512
|
+
if (afterLayoutLoad || afterPageLoad) {
|
|
294513
|
+
functionImportsToBring.push("AfterLoadFunction");
|
|
294514
|
+
}
|
|
294515
|
+
if (beforeLayoutLoad || beforePageLoad) {
|
|
294516
|
+
functionImportsToBring.push("BeforeLoadFunction");
|
|
294517
|
+
}
|
|
294518
|
+
const functionImports = functionImportsToBring.length > 0 ? `
|
|
294519
|
+
import type { ${functionImportsToBring.join(
|
|
294520
|
+
", "
|
|
294521
|
+
)} } from '${houdiniRelative}/plugins/houdini-svelte/runtime/types';` : "";
|
|
294502
294522
|
typeImports = typeImports.concat(functionImports).concat(layoutTypeImports).concat(pageTypeImports);
|
|
294503
294523
|
const layoutParams = `${layoutQueries.length > 0 && !utilityTypes.includes("LayoutParams") ? "\ntype LayoutParams = LayoutLoadEvent['params'];" : ""}`;
|
|
294504
294524
|
const pageParams = `${pageQueries.length > 0 && !utilityTypes.includes("PageParams") ? "\ntype PageParams = PageLoadEvent['params'];" : ""}`;
|
|
@@ -294513,7 +294533,7 @@ import type { ${layoutVariableLoad || pageVariableLoad ? "VariableFunction, " :
|
|
|
294513
294533
|
onLayoutError,
|
|
294514
294534
|
pageQueries.filter((x4) => x4.variableDefinitions?.length).length > 0
|
|
294515
294535
|
)
|
|
294516
|
-
).concat(
|
|
294536
|
+
).concat(layout_append_VariablesFunction).concat(page_append_VariablesFunction).replace(
|
|
294517
294537
|
/(?<=LayoutData = )([\s\S]*?)(?=;)/,
|
|
294518
294538
|
`Expand<$1 & { ${layoutQueries.map((query) => {
|
|
294519
294539
|
const name2 = query.name.value;
|
package/build/test-esm/index.js
CHANGED
|
@@ -294480,14 +294480,34 @@ async function svelteKitGenerator(framework2, { config: config3 }) {
|
|
|
294480
294480
|
const afterLayoutLoad = layoutExports.includes("afterLoad");
|
|
294481
294481
|
const beforeLayoutLoad = layoutExports.includes("beforeLoad");
|
|
294482
294482
|
const onLayoutError = layoutExports.includes("onError");
|
|
294483
|
-
const
|
|
294484
|
-
|
|
294483
|
+
const layout_append_VariablesFunction = append_VariablesFunction(
|
|
294484
|
+
"Layout",
|
|
294485
|
+
config3,
|
|
294486
|
+
uniqueLayoutQueries
|
|
294487
|
+
);
|
|
294488
|
+
const page_append_VariablesFunction = append_VariablesFunction(
|
|
294489
|
+
"Page",
|
|
294490
|
+
config3,
|
|
294491
|
+
uniquePageQueries
|
|
294492
|
+
);
|
|
294485
294493
|
const splitString = skTypeString.split("\n\n");
|
|
294486
294494
|
let typeImports = splitString[0];
|
|
294487
294495
|
let utilityTypes = splitString[1];
|
|
294488
294496
|
let typeExports = splitString[2];
|
|
294489
|
-
const
|
|
294490
|
-
|
|
294497
|
+
const functionImportsToBring = [];
|
|
294498
|
+
if (layout_append_VariablesFunction !== "" || page_append_VariablesFunction !== "") {
|
|
294499
|
+
functionImportsToBring.push("VariableFunction");
|
|
294500
|
+
}
|
|
294501
|
+
if (afterLayoutLoad || afterPageLoad) {
|
|
294502
|
+
functionImportsToBring.push("AfterLoadFunction");
|
|
294503
|
+
}
|
|
294504
|
+
if (beforeLayoutLoad || beforePageLoad) {
|
|
294505
|
+
functionImportsToBring.push("BeforeLoadFunction");
|
|
294506
|
+
}
|
|
294507
|
+
const functionImports = functionImportsToBring.length > 0 ? `
|
|
294508
|
+
import type { ${functionImportsToBring.join(
|
|
294509
|
+
", "
|
|
294510
|
+
)} } from '${houdiniRelative}/plugins/houdini-svelte/runtime/types';` : "";
|
|
294491
294511
|
typeImports = typeImports.concat(functionImports).concat(layoutTypeImports).concat(pageTypeImports);
|
|
294492
294512
|
const layoutParams = `${layoutQueries.length > 0 && !utilityTypes.includes("LayoutParams") ? "\ntype LayoutParams = LayoutLoadEvent['params'];" : ""}`;
|
|
294493
294513
|
const pageParams = `${pageQueries.length > 0 && !utilityTypes.includes("PageParams") ? "\ntype PageParams = PageLoadEvent['params'];" : ""}`;
|
|
@@ -294502,7 +294522,7 @@ import type { ${layoutVariableLoad || pageVariableLoad ? "VariableFunction, " :
|
|
|
294502
294522
|
onLayoutError,
|
|
294503
294523
|
pageQueries.filter((x4) => x4.variableDefinitions?.length).length > 0
|
|
294504
294524
|
)
|
|
294505
|
-
).concat(
|
|
294525
|
+
).concat(layout_append_VariablesFunction).concat(page_append_VariablesFunction).replace(
|
|
294506
294526
|
/(?<=LayoutData = )([\s\S]*?)(?=;)/,
|
|
294507
294527
|
`Expand<$1 & { ${layoutQueries.map((query) => {
|
|
294508
294528
|
const name2 = query.name.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.11",
|
|
4
4
|
"description": "The svelte plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"ast-types": "^0.15.1",
|
|
24
24
|
"estree-walker": "^3.0.1",
|
|
25
25
|
"graphql": "^15.8.0",
|
|
26
|
-
"houdini": "^0.17.
|
|
26
|
+
"houdini": "^0.17.11",
|
|
27
27
|
"minimatch": "^5.1.0",
|
|
28
28
|
"recast": "^0.21.5",
|
|
29
29
|
"svelte": "^3.52.0"
|