houdini-svelte 1.0.4 → 1.0.5
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.
|
@@ -91713,9 +91713,7 @@ var CacheInternal = class {
|
|
|
91713
91713
|
let targetSelection = getFieldsForType(selection, data2["__typename"]);
|
|
91714
91714
|
for (const [field, value2] of Object.entries(data2)) {
|
|
91715
91715
|
if (!selection || !targetSelection[field]) {
|
|
91716
|
-
|
|
91717
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection)
|
|
91718
|
-
);
|
|
91716
|
+
continue;
|
|
91719
91717
|
}
|
|
91720
91718
|
let {
|
|
91721
91719
|
type: linkedType,
|
|
@@ -156737,9 +156735,7 @@ var CacheInternal2 = class {
|
|
|
156737
156735
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
156738
156736
|
for (const [field, value2] of Object.entries(data2)) {
|
|
156739
156737
|
if (!selection2 || !targetSelection[field]) {
|
|
156740
|
-
|
|
156741
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
156742
|
-
);
|
|
156738
|
+
continue;
|
|
156743
156739
|
}
|
|
156744
156740
|
let {
|
|
156745
156741
|
type: linkedType,
|
|
@@ -186459,6 +186455,13 @@ async function svelteKitGenerator(framework2, { config: config4 }) {
|
|
|
186459
186455
|
uniqueLayoutQueries.push(layout);
|
|
186460
186456
|
}
|
|
186461
186457
|
}
|
|
186458
|
+
if (!config4.include.some((path3) => path3.includes("js")) && (!plugin_config(config4).static || uniquePageQueries.length > 0 || uniqueLayoutQueries.length > 0)) {
|
|
186459
|
+
console.error(
|
|
186460
|
+
`\u26A0\uFE0F You are using at least one page/layout query but aren't "include"ing .js files in your config.
|
|
186461
|
+
|
|
186462
|
+
This will cause houdini to not pick up the generated files and prevent it from working as expected.`
|
|
186463
|
+
);
|
|
186464
|
+
}
|
|
186462
186465
|
let skTypeString = await fs_exports.readFile(svelteTypeFilePath);
|
|
186463
186466
|
if (skTypeString) {
|
|
186464
186467
|
const pageTypeImports = getTypeImports(houdiniRelative, config4, uniquePageQueries);
|
|
@@ -91708,9 +91708,7 @@ var CacheInternal = class {
|
|
|
91708
91708
|
let targetSelection = getFieldsForType(selection, data2["__typename"]);
|
|
91709
91709
|
for (const [field, value2] of Object.entries(data2)) {
|
|
91710
91710
|
if (!selection || !targetSelection[field]) {
|
|
91711
|
-
|
|
91712
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection)
|
|
91713
|
-
);
|
|
91711
|
+
continue;
|
|
91714
91712
|
}
|
|
91715
91713
|
let {
|
|
91716
91714
|
type: linkedType,
|
|
@@ -156731,9 +156729,7 @@ var CacheInternal2 = class {
|
|
|
156731
156729
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
156732
156730
|
for (const [field, value2] of Object.entries(data2)) {
|
|
156733
156731
|
if (!selection2 || !targetSelection[field]) {
|
|
156734
|
-
|
|
156735
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
156736
|
-
);
|
|
156732
|
+
continue;
|
|
156737
156733
|
}
|
|
156738
156734
|
let {
|
|
156739
156735
|
type: linkedType,
|
|
@@ -186453,6 +186449,13 @@ async function svelteKitGenerator(framework2, { config: config4 }) {
|
|
|
186453
186449
|
uniqueLayoutQueries.push(layout);
|
|
186454
186450
|
}
|
|
186455
186451
|
}
|
|
186452
|
+
if (!config4.include.some((path3) => path3.includes("js")) && (!plugin_config(config4).static || uniquePageQueries.length > 0 || uniqueLayoutQueries.length > 0)) {
|
|
186453
|
+
console.error(
|
|
186454
|
+
`\u26A0\uFE0F You are using at least one page/layout query but aren't "include"ing .js files in your config.
|
|
186455
|
+
|
|
186456
|
+
This will cause houdini to not pick up the generated files and prevent it from working as expected.`
|
|
186457
|
+
);
|
|
186458
|
+
}
|
|
186456
186459
|
let skTypeString = await fs_exports.readFile(svelteTypeFilePath);
|
|
186457
186460
|
if (skTypeString) {
|
|
186458
186461
|
const pageTypeImports = getTypeImports(houdiniRelative, config4, uniquePageQueries);
|
|
@@ -94906,9 +94906,7 @@ var CacheInternal = class {
|
|
|
94906
94906
|
let targetSelection = getFieldsForType(selection, data2["__typename"]);
|
|
94907
94907
|
for (const [field, value2] of Object.entries(data2)) {
|
|
94908
94908
|
if (!selection || !targetSelection[field]) {
|
|
94909
|
-
|
|
94910
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection)
|
|
94911
|
-
);
|
|
94909
|
+
continue;
|
|
94912
94910
|
}
|
|
94913
94911
|
let {
|
|
94914
94912
|
type: linkedType,
|
|
@@ -188590,9 +188588,7 @@ var CacheInternal2 = class {
|
|
|
188590
188588
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
188591
188589
|
for (const [field, value2] of Object.entries(data2)) {
|
|
188592
188590
|
if (!selection2 || !targetSelection[field]) {
|
|
188593
|
-
|
|
188594
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
188595
|
-
);
|
|
188591
|
+
continue;
|
|
188596
188592
|
}
|
|
188597
188593
|
let {
|
|
188598
188594
|
type: linkedType,
|
|
@@ -94899,9 +94899,7 @@ var CacheInternal = class {
|
|
|
94899
94899
|
let targetSelection = getFieldsForType(selection, data2["__typename"]);
|
|
94900
94900
|
for (const [field, value2] of Object.entries(data2)) {
|
|
94901
94901
|
if (!selection || !targetSelection[field]) {
|
|
94902
|
-
|
|
94903
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection)
|
|
94904
|
-
);
|
|
94902
|
+
continue;
|
|
94905
94903
|
}
|
|
94906
94904
|
let {
|
|
94907
94905
|
type: linkedType,
|
|
@@ -188582,9 +188580,7 @@ var CacheInternal2 = class {
|
|
|
188582
188580
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
188583
188581
|
for (const [field, value2] of Object.entries(data2)) {
|
|
188584
188582
|
if (!selection2 || !targetSelection[field]) {
|
|
188585
|
-
|
|
188586
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
188587
|
-
);
|
|
188583
|
+
continue;
|
|
188588
188584
|
}
|
|
188589
188585
|
let {
|
|
188590
188586
|
type: linkedType,
|
package/build/test-cjs/index.js
CHANGED
|
@@ -91716,9 +91716,7 @@ var CacheInternal = class {
|
|
|
91716
91716
|
let targetSelection = getFieldsForType(selection2, data2["__typename"]);
|
|
91717
91717
|
for (const [field, value2] of Object.entries(data2)) {
|
|
91718
91718
|
if (!selection2 || !targetSelection[field]) {
|
|
91719
|
-
|
|
91720
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
91721
|
-
);
|
|
91719
|
+
continue;
|
|
91722
91720
|
}
|
|
91723
91721
|
let {
|
|
91724
91722
|
type: linkedType,
|
|
@@ -147985,9 +147983,7 @@ var CacheInternal2 = class {
|
|
|
147985
147983
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
147986
147984
|
for (const [field, value2] of Object.entries(data2)) {
|
|
147987
147985
|
if (!selection2 || !targetSelection[field]) {
|
|
147988
|
-
|
|
147989
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
147990
|
-
);
|
|
147986
|
+
continue;
|
|
147991
147987
|
}
|
|
147992
147988
|
let {
|
|
147993
147989
|
type: linkedType,
|
|
@@ -209049,9 +209045,7 @@ var CacheInternal3 = class {
|
|
|
209049
209045
|
let targetSelection = getFieldsForType3(selection2, data2["__typename"]);
|
|
209050
209046
|
for (const [field, value2] of Object.entries(data2)) {
|
|
209051
209047
|
if (!selection2 || !targetSelection[field]) {
|
|
209052
|
-
|
|
209053
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
209054
|
-
);
|
|
209048
|
+
continue;
|
|
209055
209049
|
}
|
|
209056
209050
|
let {
|
|
209057
209051
|
type: linkedType,
|
|
@@ -274720,9 +274714,7 @@ var CacheInternal4 = class {
|
|
|
274720
274714
|
let targetSelection = getFieldsForType4(selection2, data2["__typename"]);
|
|
274721
274715
|
for (const [field, value2] of Object.entries(data2)) {
|
|
274722
274716
|
if (!selection2 || !targetSelection[field]) {
|
|
274723
|
-
|
|
274724
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
274725
|
-
);
|
|
274717
|
+
continue;
|
|
274726
274718
|
}
|
|
274727
274719
|
let {
|
|
274728
274720
|
type: linkedType,
|
|
@@ -304442,6 +304434,13 @@ async function svelteKitGenerator(framework2, { config: config5 }) {
|
|
|
304442
304434
|
uniqueLayoutQueries.push(layout);
|
|
304443
304435
|
}
|
|
304444
304436
|
}
|
|
304437
|
+
if (!config5.include.some((path5) => path5.includes("js")) && (!plugin_config(config5).static || uniquePageQueries.length > 0 || uniqueLayoutQueries.length > 0)) {
|
|
304438
|
+
console.error(
|
|
304439
|
+
`\u26A0\uFE0F You are using at least one page/layout query but aren't "include"ing .js files in your config.
|
|
304440
|
+
|
|
304441
|
+
This will cause houdini to not pick up the generated files and prevent it from working as expected.`
|
|
304442
|
+
);
|
|
304443
|
+
}
|
|
304445
304444
|
let skTypeString = await fs_exports.readFile(svelteTypeFilePath);
|
|
304446
304445
|
if (skTypeString) {
|
|
304447
304446
|
const pageTypeImports = getTypeImports(houdiniRelative, config5, uniquePageQueries);
|
package/build/test-esm/index.js
CHANGED
|
@@ -91708,9 +91708,7 @@ var CacheInternal = class {
|
|
|
91708
91708
|
let targetSelection = getFieldsForType(selection2, data2["__typename"]);
|
|
91709
91709
|
for (const [field, value2] of Object.entries(data2)) {
|
|
91710
91710
|
if (!selection2 || !targetSelection[field]) {
|
|
91711
|
-
|
|
91712
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
91713
|
-
);
|
|
91711
|
+
continue;
|
|
91714
91712
|
}
|
|
91715
91713
|
let {
|
|
91716
91714
|
type: linkedType,
|
|
@@ -147976,9 +147974,7 @@ var CacheInternal2 = class {
|
|
|
147976
147974
|
let targetSelection = getFieldsForType2(selection2, data2["__typename"]);
|
|
147977
147975
|
for (const [field, value2] of Object.entries(data2)) {
|
|
147978
147976
|
if (!selection2 || !targetSelection[field]) {
|
|
147979
|
-
|
|
147980
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
147981
|
-
);
|
|
147977
|
+
continue;
|
|
147982
147978
|
}
|
|
147983
147979
|
let {
|
|
147984
147980
|
type: linkedType,
|
|
@@ -209039,9 +209035,7 @@ var CacheInternal3 = class {
|
|
|
209039
209035
|
let targetSelection = getFieldsForType3(selection2, data2["__typename"]);
|
|
209040
209036
|
for (const [field, value2] of Object.entries(data2)) {
|
|
209041
209037
|
if (!selection2 || !targetSelection[field]) {
|
|
209042
|
-
|
|
209043
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
209044
|
-
);
|
|
209038
|
+
continue;
|
|
209045
209039
|
}
|
|
209046
209040
|
let {
|
|
209047
209041
|
type: linkedType,
|
|
@@ -274709,9 +274703,7 @@ var CacheInternal4 = class {
|
|
|
274709
274703
|
let targetSelection = getFieldsForType4(selection2, data2["__typename"]);
|
|
274710
274704
|
for (const [field, value2] of Object.entries(data2)) {
|
|
274711
274705
|
if (!selection2 || !targetSelection[field]) {
|
|
274712
|
-
|
|
274713
|
-
"Could not find field listing in selection for " + field + " @ " + JSON.stringify(selection2)
|
|
274714
|
-
);
|
|
274706
|
+
continue;
|
|
274715
274707
|
}
|
|
274716
274708
|
let {
|
|
274717
274709
|
type: linkedType,
|
|
@@ -304431,6 +304423,13 @@ async function svelteKitGenerator(framework2, { config: config5 }) {
|
|
|
304431
304423
|
uniqueLayoutQueries.push(layout);
|
|
304432
304424
|
}
|
|
304433
304425
|
}
|
|
304426
|
+
if (!config5.include.some((path5) => path5.includes("js")) && (!plugin_config(config5).static || uniquePageQueries.length > 0 || uniqueLayoutQueries.length > 0)) {
|
|
304427
|
+
console.error(
|
|
304428
|
+
`\u26A0\uFE0F You are using at least one page/layout query but aren't "include"ing .js files in your config.
|
|
304429
|
+
|
|
304430
|
+
This will cause houdini to not pick up the generated files and prevent it from working as expected.`
|
|
304431
|
+
);
|
|
304432
|
+
}
|
|
304434
304433
|
let skTypeString = await fs_exports.readFile(svelteTypeFilePath);
|
|
304435
304434
|
if (skTypeString) {
|
|
304436
304435
|
const pageTypeImports = getTypeImports(houdiniRelative, config5, uniquePageQueries);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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.55.1",
|
|
34
34
|
"vite": "^4.1.1",
|
|
35
|
-
"houdini": "^1.0.
|
|
35
|
+
"houdini": "^1.0.5"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"build"
|