houdini-svelte 0.19.1 → 0.19.2
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 +2 -1
- package/build/plugin-cjs/index.js +14 -9
- package/build/plugin-esm/index.js +11 -8
- package/build/test-cjs/index.js +24 -22
- package/build/test-esm/index.js +24 -22
- package/package.json +2 -2
package/build/plugin/index.d.ts
CHANGED
|
@@ -12401,21 +12401,21 @@ var require_lexicographicSortSchema2 = __commonJS({
|
|
|
12401
12401
|
}));
|
|
12402
12402
|
}
|
|
12403
12403
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
12404
|
-
var
|
|
12405
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
12404
|
+
var _config2 = type.toConfig();
|
|
12405
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
12406
12406
|
interfaces: function interfaces() {
|
|
12407
|
-
return sortTypes(
|
|
12407
|
+
return sortTypes(_config2.interfaces);
|
|
12408
12408
|
},
|
|
12409
12409
|
fields: function fields() {
|
|
12410
|
-
return sortFields(
|
|
12410
|
+
return sortFields(_config2.fields);
|
|
12411
12411
|
}
|
|
12412
12412
|
}));
|
|
12413
12413
|
}
|
|
12414
12414
|
if ((0, _definition.isUnionType)(type)) {
|
|
12415
|
-
var
|
|
12416
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
12415
|
+
var _config22 = type.toConfig();
|
|
12416
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
12417
12417
|
types: function types13() {
|
|
12418
|
-
return sortTypes(
|
|
12418
|
+
return sortTypes(_config22.types);
|
|
12419
12419
|
}
|
|
12420
12420
|
}));
|
|
12421
12421
|
}
|
|
@@ -31067,6 +31067,7 @@ var init_exports = __esm({
|
|
|
31067
31067
|
// src/plugin/index.ts
|
|
31068
31068
|
var plugin_exports = {};
|
|
31069
31069
|
__export(plugin_exports, {
|
|
31070
|
+
_config: () => _config,
|
|
31070
31071
|
default: () => plugin_default
|
|
31071
31072
|
});
|
|
31072
31073
|
module.exports = __toCommonJS(plugin_exports);
|
|
@@ -185815,7 +185816,7 @@ import_fs.default.readdirSync = function(filepath, options) {
|
|
|
185815
185816
|
if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
|
|
185816
185817
|
result.push(virtual_file("+layout.svelte", options));
|
|
185817
185818
|
}
|
|
185818
|
-
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
|
|
185819
|
+
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
|
|
185819
185820
|
result.push(virtual_file("+layout.server.js", options));
|
|
185820
185821
|
}
|
|
185821
185822
|
if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
|
|
@@ -186857,6 +186858,7 @@ async function validateDocuments({
|
|
|
186857
186858
|
|
|
186858
186859
|
// src/plugin/index.ts
|
|
186859
186860
|
var framework = "svelte";
|
|
186861
|
+
var _config;
|
|
186860
186862
|
var HoudiniSveltePlugin = async () => ({
|
|
186861
186863
|
order: "core",
|
|
186862
186864
|
extensions: [".svelte"],
|
|
@@ -186926,6 +186928,7 @@ export const error = svelteKitError
|
|
|
186926
186928
|
...fsPatch_default(() => framework)
|
|
186927
186929
|
},
|
|
186928
186930
|
async after_load(cfg) {
|
|
186931
|
+
_config = cfg;
|
|
186929
186932
|
const cfgPlugin = plugin_config(cfg);
|
|
186930
186933
|
let client_file_exists = false;
|
|
186931
186934
|
if (path_exports.extname(cfgPlugin.client)) {
|
|
@@ -186966,7 +186969,9 @@ export const error = svelteKitError
|
|
|
186966
186969
|
var _env;
|
|
186967
186970
|
var plugin_default = HoudiniSveltePlugin;
|
|
186968
186971
|
// Annotate the CommonJS export names for ESM import in node:
|
|
186969
|
-
0 && (module.exports = {
|
|
186972
|
+
0 && (module.exports = {
|
|
186973
|
+
_config
|
|
186974
|
+
});
|
|
186970
186975
|
/*!
|
|
186971
186976
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
186972
186977
|
*
|
|
@@ -12406,21 +12406,21 @@ var require_lexicographicSortSchema2 = __commonJS({
|
|
|
12406
12406
|
}));
|
|
12407
12407
|
}
|
|
12408
12408
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
12409
|
-
var
|
|
12410
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
12409
|
+
var _config2 = type.toConfig();
|
|
12410
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
12411
12411
|
interfaces: function interfaces() {
|
|
12412
|
-
return sortTypes(
|
|
12412
|
+
return sortTypes(_config2.interfaces);
|
|
12413
12413
|
},
|
|
12414
12414
|
fields: function fields() {
|
|
12415
|
-
return sortFields(
|
|
12415
|
+
return sortFields(_config2.fields);
|
|
12416
12416
|
}
|
|
12417
12417
|
}));
|
|
12418
12418
|
}
|
|
12419
12419
|
if ((0, _definition.isUnionType)(type)) {
|
|
12420
|
-
var
|
|
12421
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
12420
|
+
var _config22 = type.toConfig();
|
|
12421
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
12422
12422
|
types: function types13() {
|
|
12423
|
-
return sortTypes(
|
|
12423
|
+
return sortTypes(_config22.types);
|
|
12424
12424
|
}
|
|
12425
12425
|
}));
|
|
12426
12426
|
}
|
|
@@ -185811,7 +185811,7 @@ filesystem.readdirSync = function(filepath, options) {
|
|
|
185811
185811
|
if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
|
|
185812
185812
|
result.push(virtual_file("+layout.svelte", options));
|
|
185813
185813
|
}
|
|
185814
|
-
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
|
|
185814
|
+
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
|
|
185815
185815
|
result.push(virtual_file("+layout.server.js", options));
|
|
185816
185816
|
}
|
|
185817
185817
|
if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
|
|
@@ -186853,6 +186853,7 @@ async function validateDocuments({
|
|
|
186853
186853
|
|
|
186854
186854
|
// src/plugin/index.ts
|
|
186855
186855
|
var framework = "svelte";
|
|
186856
|
+
var _config;
|
|
186856
186857
|
var HoudiniSveltePlugin = async () => ({
|
|
186857
186858
|
order: "core",
|
|
186858
186859
|
extensions: [".svelte"],
|
|
@@ -186922,6 +186923,7 @@ export const error = svelteKitError
|
|
|
186922
186923
|
...fsPatch_default(() => framework)
|
|
186923
186924
|
},
|
|
186924
186925
|
async after_load(cfg) {
|
|
186926
|
+
_config = cfg;
|
|
186925
186927
|
const cfgPlugin = plugin_config(cfg);
|
|
186926
186928
|
let client_file_exists = false;
|
|
186927
186929
|
if (path_exports.extname(cfgPlugin.client)) {
|
|
@@ -186962,6 +186964,7 @@ export const error = svelteKitError
|
|
|
186962
186964
|
var _env;
|
|
186963
186965
|
var plugin_default = HoudiniSveltePlugin;
|
|
186964
186966
|
export {
|
|
186967
|
+
_config,
|
|
186965
186968
|
plugin_default as default
|
|
186966
186969
|
};
|
|
186967
186970
|
/*!
|
package/build/test-cjs/index.js
CHANGED
|
@@ -12401,21 +12401,21 @@ var require_lexicographicSortSchema4 = __commonJS({
|
|
|
12401
12401
|
}));
|
|
12402
12402
|
}
|
|
12403
12403
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
12404
|
-
var
|
|
12405
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
12404
|
+
var _config2 = type.toConfig();
|
|
12405
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
12406
12406
|
interfaces: function interfaces() {
|
|
12407
|
-
return sortTypes(
|
|
12407
|
+
return sortTypes(_config2.interfaces);
|
|
12408
12408
|
},
|
|
12409
12409
|
fields: function fields() {
|
|
12410
|
-
return sortFields(
|
|
12410
|
+
return sortFields(_config2.fields);
|
|
12411
12411
|
}
|
|
12412
12412
|
}));
|
|
12413
12413
|
}
|
|
12414
12414
|
if ((0, _definition.isUnionType)(type)) {
|
|
12415
|
-
var
|
|
12416
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
12415
|
+
var _config22 = type.toConfig();
|
|
12416
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
12417
12417
|
types: function types13() {
|
|
12418
|
-
return sortTypes(
|
|
12418
|
+
return sortTypes(_config22.types);
|
|
12419
12419
|
}
|
|
12420
12420
|
}));
|
|
12421
12421
|
}
|
|
@@ -104255,21 +104255,21 @@ var require_lexicographicSortSchema2 = __commonJS3({
|
|
|
104255
104255
|
}));
|
|
104256
104256
|
}
|
|
104257
104257
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
104258
|
-
var
|
|
104259
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
104258
|
+
var _config2 = type.toConfig();
|
|
104259
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
104260
104260
|
interfaces: function interfaces() {
|
|
104261
|
-
return sortTypes(
|
|
104261
|
+
return sortTypes(_config2.interfaces);
|
|
104262
104262
|
},
|
|
104263
104263
|
fields: function fields() {
|
|
104264
|
-
return sortFields(
|
|
104264
|
+
return sortFields(_config2.fields);
|
|
104265
104265
|
}
|
|
104266
104266
|
}));
|
|
104267
104267
|
}
|
|
104268
104268
|
if ((0, _definition.isUnionType)(type)) {
|
|
104269
|
-
var
|
|
104270
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
104269
|
+
var _config22 = type.toConfig();
|
|
104270
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
104271
104271
|
types: function types14() {
|
|
104272
|
-
return sortTypes(
|
|
104272
|
+
return sortTypes(_config22.types);
|
|
104273
104273
|
}
|
|
104274
104274
|
}));
|
|
104275
104275
|
}
|
|
@@ -164401,21 +164401,21 @@ var require_lexicographicSortSchema3 = __commonJS4({
|
|
|
164401
164401
|
}));
|
|
164402
164402
|
}
|
|
164403
164403
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
164404
|
-
var
|
|
164405
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
164404
|
+
var _config2 = type.toConfig();
|
|
164405
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
164406
164406
|
interfaces: function interfaces() {
|
|
164407
|
-
return sortTypes(
|
|
164407
|
+
return sortTypes(_config2.interfaces);
|
|
164408
164408
|
},
|
|
164409
164409
|
fields: function fields() {
|
|
164410
|
-
return sortFields(
|
|
164410
|
+
return sortFields(_config2.fields);
|
|
164411
164411
|
}
|
|
164412
164412
|
}));
|
|
164413
164413
|
}
|
|
164414
164414
|
if ((0, _definition.isUnionType)(type)) {
|
|
164415
|
-
var
|
|
164416
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
164415
|
+
var _config22 = type.toConfig();
|
|
164416
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
164417
164417
|
types: function types14() {
|
|
164418
|
-
return sortTypes(
|
|
164418
|
+
return sortTypes(_config22.types);
|
|
164419
164419
|
}
|
|
164420
164420
|
}));
|
|
164421
164421
|
}
|
|
@@ -302327,7 +302327,7 @@ import_fs.default.readdirSync = function(filepath, options) {
|
|
|
302327
302327
|
if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
|
|
302328
302328
|
result.push(virtual_file("+layout.svelte", options));
|
|
302329
302329
|
}
|
|
302330
|
-
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
|
|
302330
|
+
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
|
|
302331
302331
|
result.push(virtual_file("+layout.server.js", options));
|
|
302332
302332
|
}
|
|
302333
302333
|
if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
|
|
@@ -303369,6 +303369,7 @@ async function validateDocuments({
|
|
|
303369
303369
|
|
|
303370
303370
|
// src/plugin/index.ts
|
|
303371
303371
|
var framework = "svelte";
|
|
303372
|
+
var _config;
|
|
303372
303373
|
var HoudiniSveltePlugin = async () => ({
|
|
303373
303374
|
order: "core",
|
|
303374
303375
|
extensions: [".svelte"],
|
|
@@ -303438,6 +303439,7 @@ export const error = svelteKitError
|
|
|
303438
303439
|
...fsPatch_default(() => framework)
|
|
303439
303440
|
},
|
|
303440
303441
|
async after_load(cfg) {
|
|
303442
|
+
_config = cfg;
|
|
303441
303443
|
const cfgPlugin = plugin_config(cfg);
|
|
303442
303444
|
let client_file_exists = false;
|
|
303443
303445
|
if (path_exports.extname(cfgPlugin.client)) {
|
package/build/test-esm/index.js
CHANGED
|
@@ -12406,21 +12406,21 @@ var require_lexicographicSortSchema4 = __commonJS({
|
|
|
12406
12406
|
}));
|
|
12407
12407
|
}
|
|
12408
12408
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
12409
|
-
var
|
|
12410
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
12409
|
+
var _config2 = type.toConfig();
|
|
12410
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
12411
12411
|
interfaces: function interfaces() {
|
|
12412
|
-
return sortTypes(
|
|
12412
|
+
return sortTypes(_config2.interfaces);
|
|
12413
12413
|
},
|
|
12414
12414
|
fields: function fields() {
|
|
12415
|
-
return sortFields(
|
|
12415
|
+
return sortFields(_config2.fields);
|
|
12416
12416
|
}
|
|
12417
12417
|
}));
|
|
12418
12418
|
}
|
|
12419
12419
|
if ((0, _definition.isUnionType)(type)) {
|
|
12420
|
-
var
|
|
12421
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
12420
|
+
var _config22 = type.toConfig();
|
|
12421
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
12422
12422
|
types: function types13() {
|
|
12423
|
-
return sortTypes(
|
|
12423
|
+
return sortTypes(_config22.types);
|
|
12424
12424
|
}
|
|
12425
12425
|
}));
|
|
12426
12426
|
}
|
|
@@ -104246,21 +104246,21 @@ var require_lexicographicSortSchema2 = __commonJS3({
|
|
|
104246
104246
|
}));
|
|
104247
104247
|
}
|
|
104248
104248
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
104249
|
-
var
|
|
104250
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
104249
|
+
var _config2 = type.toConfig();
|
|
104250
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
104251
104251
|
interfaces: function interfaces() {
|
|
104252
|
-
return sortTypes(
|
|
104252
|
+
return sortTypes(_config2.interfaces);
|
|
104253
104253
|
},
|
|
104254
104254
|
fields: function fields() {
|
|
104255
|
-
return sortFields(
|
|
104255
|
+
return sortFields(_config2.fields);
|
|
104256
104256
|
}
|
|
104257
104257
|
}));
|
|
104258
104258
|
}
|
|
104259
104259
|
if ((0, _definition.isUnionType)(type)) {
|
|
104260
|
-
var
|
|
104261
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
104260
|
+
var _config22 = type.toConfig();
|
|
104261
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
104262
104262
|
types: function types14() {
|
|
104263
|
-
return sortTypes(
|
|
104263
|
+
return sortTypes(_config22.types);
|
|
104264
104264
|
}
|
|
104265
104265
|
}));
|
|
104266
104266
|
}
|
|
@@ -164391,21 +164391,21 @@ var require_lexicographicSortSchema3 = __commonJS4({
|
|
|
164391
164391
|
}));
|
|
164392
164392
|
}
|
|
164393
164393
|
if ((0, _definition.isInterfaceType)(type)) {
|
|
164394
|
-
var
|
|
164395
|
-
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({},
|
|
164394
|
+
var _config2 = type.toConfig();
|
|
164395
|
+
return new _definition.GraphQLInterfaceType(_objectSpread(_objectSpread({}, _config2), {}, {
|
|
164396
164396
|
interfaces: function interfaces() {
|
|
164397
|
-
return sortTypes(
|
|
164397
|
+
return sortTypes(_config2.interfaces);
|
|
164398
164398
|
},
|
|
164399
164399
|
fields: function fields() {
|
|
164400
|
-
return sortFields(
|
|
164400
|
+
return sortFields(_config2.fields);
|
|
164401
164401
|
}
|
|
164402
164402
|
}));
|
|
164403
164403
|
}
|
|
164404
164404
|
if ((0, _definition.isUnionType)(type)) {
|
|
164405
|
-
var
|
|
164406
|
-
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({},
|
|
164405
|
+
var _config22 = type.toConfig();
|
|
164406
|
+
return new _definition.GraphQLUnionType(_objectSpread(_objectSpread({}, _config22), {}, {
|
|
164407
164407
|
types: function types14() {
|
|
164408
|
-
return sortTypes(
|
|
164408
|
+
return sortTypes(_config22.types);
|
|
164409
164409
|
}
|
|
164410
164410
|
}));
|
|
164411
164411
|
}
|
|
@@ -302316,7 +302316,7 @@ filesystem.readdirSync = function(filepath, options) {
|
|
|
302316
302316
|
if (is_root_route(posix_filepath) && !contains2("+layout.svelte")) {
|
|
302317
302317
|
result.push(virtual_file("+layout.svelte", options));
|
|
302318
302318
|
}
|
|
302319
|
-
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts")) {
|
|
302319
|
+
if (is_root_route(posix_filepath) && !contains2("+layout.server.js", "+layout.server.ts") && !plugin_config(_config).static) {
|
|
302320
302320
|
result.push(virtual_file("+layout.server.js", options));
|
|
302321
302321
|
}
|
|
302322
302322
|
if (is_root_route(posix_filepath) && !contains2("+layout.js", "+layout.ts")) {
|
|
@@ -303358,6 +303358,7 @@ async function validateDocuments({
|
|
|
303358
303358
|
|
|
303359
303359
|
// src/plugin/index.ts
|
|
303360
303360
|
var framework = "svelte";
|
|
303361
|
+
var _config;
|
|
303361
303362
|
var HoudiniSveltePlugin = async () => ({
|
|
303362
303363
|
order: "core",
|
|
303363
303364
|
extensions: [".svelte"],
|
|
@@ -303427,6 +303428,7 @@ export const error = svelteKitError
|
|
|
303427
303428
|
...fsPatch_default(() => framework)
|
|
303428
303429
|
},
|
|
303429
303430
|
async after_load(cfg) {
|
|
303431
|
+
_config = cfg;
|
|
303430
303432
|
const cfgPlugin = plugin_config(cfg);
|
|
303431
303433
|
let client_file_exists = false;
|
|
303432
303434
|
if (path_exports.extname(cfgPlugin.client)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "The svelte plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"recast": "^0.23.1",
|
|
32
32
|
"svelte": "^3.55.0",
|
|
33
33
|
"vite": "^4.0.1",
|
|
34
|
-
"houdini": "^0.19.
|
|
34
|
+
"houdini": "^0.19.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"graphql": "^14.0.0 || ^15.0.0"
|