houdini-svelte 1.0.9 → 1.0.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/index.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ export type HoudiniSvelteConfig = {
|
|
|
29
29
|
* @default false
|
|
30
30
|
*/
|
|
31
31
|
static?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* set the framework to use. It should be automatically detected but you can override it here.
|
|
34
|
+
* @default undefined
|
|
35
|
+
*/
|
|
36
|
+
framework: 'kit' | 'svelte' | undefined;
|
|
32
37
|
/**
|
|
33
38
|
* Override the classes used when building stores for documents. Values should take the form package.export
|
|
34
39
|
* For example, if you have a store exported from $lib/stores you should set the value to "$lib/stores.CustomStore".
|
|
@@ -188243,8 +188243,12 @@ export const redirect = svelteKitRedirect
|
|
|
188243
188243
|
description: "It has to be a relative path (from houdini.config.js) to your client file. The file must have a default export with an instance of HoudiniClient."
|
|
188244
188244
|
});
|
|
188245
188245
|
}
|
|
188246
|
-
|
|
188247
|
-
|
|
188246
|
+
if (cfgPlugin.framework) {
|
|
188247
|
+
framework = cfgPlugin.framework;
|
|
188248
|
+
} else {
|
|
188249
|
+
const detected = await detectFromPackageJSON(cfg.projectRoot);
|
|
188250
|
+
framework = detected.framework === "kit" ? "kit" : "svelte";
|
|
188251
|
+
}
|
|
188248
188252
|
},
|
|
188249
188253
|
async env({ config: config4 }) {
|
|
188250
188254
|
if (_env) {
|
|
@@ -188233,8 +188233,12 @@ export const redirect = svelteKitRedirect
|
|
|
188233
188233
|
description: "It has to be a relative path (from houdini.config.js) to your client file. The file must have a default export with an instance of HoudiniClient."
|
|
188234
188234
|
});
|
|
188235
188235
|
}
|
|
188236
|
-
|
|
188237
|
-
|
|
188236
|
+
if (cfgPlugin.framework) {
|
|
188237
|
+
framework = cfgPlugin.framework;
|
|
188238
|
+
} else {
|
|
188239
|
+
const detected = await detectFromPackageJSON(cfg.projectRoot);
|
|
188240
|
+
framework = detected.framework === "kit" ? "kit" : "svelte";
|
|
188241
|
+
}
|
|
188238
188242
|
},
|
|
188239
188243
|
async env({ config: config4 }) {
|
|
188240
188244
|
if (_env) {
|
package/build/test-cjs/index.js
CHANGED
|
@@ -306424,8 +306424,12 @@ export const redirect = svelteKitRedirect
|
|
|
306424
306424
|
description: "It has to be a relative path (from houdini.config.js) to your client file. The file must have a default export with an instance of HoudiniClient."
|
|
306425
306425
|
});
|
|
306426
306426
|
}
|
|
306427
|
-
|
|
306428
|
-
|
|
306427
|
+
if (cfgPlugin.framework) {
|
|
306428
|
+
framework = cfgPlugin.framework;
|
|
306429
|
+
} else {
|
|
306430
|
+
const detected = await detectFromPackageJSON(cfg.projectRoot);
|
|
306431
|
+
framework = detected.framework === "kit" ? "kit" : "svelte";
|
|
306432
|
+
}
|
|
306429
306433
|
},
|
|
306430
306434
|
async env({ config: config5 }) {
|
|
306431
306435
|
if (_env) {
|
package/build/test-esm/index.js
CHANGED
|
@@ -306409,8 +306409,12 @@ export const redirect = svelteKitRedirect
|
|
|
306409
306409
|
description: "It has to be a relative path (from houdini.config.js) to your client file. The file must have a default export with an instance of HoudiniClient."
|
|
306410
306410
|
});
|
|
306411
306411
|
}
|
|
306412
|
-
|
|
306413
|
-
|
|
306412
|
+
if (cfgPlugin.framework) {
|
|
306413
|
+
framework = cfgPlugin.framework;
|
|
306414
|
+
} else {
|
|
306415
|
+
const detected = await detectFromPackageJSON(cfg.projectRoot);
|
|
306416
|
+
framework = detected.framework === "kit" ? "kit" : "svelte";
|
|
306417
|
+
}
|
|
306414
306418
|
},
|
|
306415
306419
|
async env({ config: config5 }) {
|
|
306416
306420
|
if (_env) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
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.11"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"build"
|