houdini-svelte 1.2.13 → 1.2.14
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 +16 -32
- package/build/plugin-esm/index.js +16 -32
- package/build/preprocess-cjs/index.js +16 -32
- package/build/preprocess-esm/index.js +16 -32
- package/build/test-cjs/index.js +35 -51
- package/build/test-esm/index.js +35 -51
- package/package.json +2 -2
|
@@ -78239,7 +78239,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
|
|
|
78239
78239
|
}
|
|
78240
78240
|
};
|
|
78241
78241
|
});
|
|
78242
|
-
var currentDir =
|
|
78242
|
+
var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
78243
78243
|
var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
|
|
78244
78244
|
var emptySchema = graphql2.buildSchema("type Query { hello: String }");
|
|
78245
78245
|
var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
@@ -78582,6 +78582,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
78582
78582
|
}
|
|
78583
78583
|
var conventions_exports = {};
|
|
78584
78584
|
__export2(conventions_exports, {
|
|
78585
|
+
adapter_config_path: () => adapter_config_path,
|
|
78585
78586
|
fallback_unit_path: () => fallback_unit_path,
|
|
78586
78587
|
is_layout: () => is_layout,
|
|
78587
78588
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78593,13 +78594,10 @@ __export2(conventions_exports, {
|
|
|
78593
78594
|
read_layoutView: () => read_layoutView,
|
|
78594
78595
|
read_pageQuery: () => read_pageQuery,
|
|
78595
78596
|
read_pageView: () => read_pageView,
|
|
78596
|
-
render_app_path: () => render_app_path,
|
|
78597
|
-
render_client_path: () => render_client_path,
|
|
78598
|
-
render_server_path: () => render_server_path,
|
|
78599
|
-
render_yoga_path: () => render_yoga_path,
|
|
78600
78597
|
router_index_path: () => router_index_path,
|
|
78601
78598
|
router_path: () => router_path,
|
|
78602
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
78599
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
78600
|
+
server_adapter_path: () => server_adapter_path
|
|
78603
78601
|
});
|
|
78604
78602
|
function router_path(config22) {
|
|
78605
78603
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -78607,17 +78605,11 @@ function router_path(config22) {
|
|
|
78607
78605
|
function page_entry_path(config22, id2, base) {
|
|
78608
78606
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
78609
78607
|
}
|
|
78610
|
-
function
|
|
78611
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
78612
|
-
}
|
|
78613
|
-
function render_server_path(config22, base) {
|
|
78608
|
+
function server_adapter_path(config22, base) {
|
|
78614
78609
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
78615
78610
|
}
|
|
78616
|
-
function
|
|
78617
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
78618
|
-
}
|
|
78619
|
-
function render_app_path(config22, base) {
|
|
78620
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
78611
|
+
function adapter_config_path(config22, base) {
|
|
78612
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
78621
78613
|
}
|
|
78622
78614
|
function page_unit_path(config22, id2, base) {
|
|
78623
78615
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -144080,7 +144072,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
|
|
|
144080
144072
|
}
|
|
144081
144073
|
};
|
|
144082
144074
|
});
|
|
144083
|
-
var currentDir2 =
|
|
144075
|
+
var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
|
|
144084
144076
|
var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
|
|
144085
144077
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
144086
144078
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -144091,6 +144083,7 @@ var recast2 = __toESM3(require_main22(), 1);
|
|
|
144091
144083
|
var AST2 = recast2.types.builders;
|
|
144092
144084
|
var conventions_exports2 = {};
|
|
144093
144085
|
__export3(conventions_exports2, {
|
|
144086
|
+
adapter_config_path: () => adapter_config_path2,
|
|
144094
144087
|
fallback_unit_path: () => fallback_unit_path2,
|
|
144095
144088
|
is_layout: () => is_layout2,
|
|
144096
144089
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -144102,13 +144095,10 @@ __export3(conventions_exports2, {
|
|
|
144102
144095
|
read_layoutView: () => read_layoutView2,
|
|
144103
144096
|
read_pageQuery: () => read_pageQuery2,
|
|
144104
144097
|
read_pageView: () => read_pageView2,
|
|
144105
|
-
render_app_path: () => render_app_path2,
|
|
144106
|
-
render_client_path: () => render_client_path2,
|
|
144107
|
-
render_server_path: () => render_server_path2,
|
|
144108
|
-
render_yoga_path: () => render_yoga_path2,
|
|
144109
144098
|
router_index_path: () => router_index_path2,
|
|
144110
144099
|
router_path: () => router_path2,
|
|
144111
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
144100
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
144101
|
+
server_adapter_path: () => server_adapter_path2
|
|
144112
144102
|
});
|
|
144113
144103
|
function router_path2(config4) {
|
|
144114
144104
|
return path_exports2.join(base_dir2(config4), "Router.jsx");
|
|
@@ -144116,17 +144106,11 @@ function router_path2(config4) {
|
|
|
144116
144106
|
function page_entry_path2(config4, id2, base) {
|
|
144117
144107
|
return path_exports2.join(page_entries_dir2(config4, base), `${id2}.jsx`);
|
|
144118
144108
|
}
|
|
144119
|
-
function
|
|
144120
|
-
return path_exports2.join(units_dir2(config4, base), "render", "client.jsx");
|
|
144121
|
-
}
|
|
144122
|
-
function render_server_path2(config4, base) {
|
|
144109
|
+
function server_adapter_path2(config4, base) {
|
|
144123
144110
|
return path_exports2.join(units_dir2(config4, base), "render", "server.js");
|
|
144124
144111
|
}
|
|
144125
|
-
function
|
|
144126
|
-
return path_exports2.join(units_dir2(config4, base), "render", "
|
|
144127
|
-
}
|
|
144128
|
-
function render_app_path2(config4, base) {
|
|
144129
|
-
return path_exports2.join(units_dir2(config4, base), "render", "App.jsx");
|
|
144112
|
+
function adapter_config_path2(config4, base) {
|
|
144113
|
+
return path_exports2.join(units_dir2(config4, base), "render", "config.js");
|
|
144130
144114
|
}
|
|
144131
144115
|
function page_unit_path2(config4, id2, base) {
|
|
144132
144116
|
return path_exports2.join(page_units_dir2(config4, base), `${id2}.jsx`);
|
|
@@ -144323,11 +144307,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
144323
144307
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
144324
144308
|
|
|
144325
144309
|
interface Node {
|
|
144326
|
-
|
|
144310
|
+
id: ID!
|
|
144327
144311
|
}
|
|
144328
144312
|
|
|
144329
144313
|
extend type Query {
|
|
144330
|
-
|
|
144314
|
+
node(id: ID!): Node
|
|
144331
144315
|
}
|
|
144332
144316
|
|
|
144333
144317
|
For more information, please visit these links:
|
|
@@ -78230,7 +78230,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
|
|
|
78230
78230
|
}
|
|
78231
78231
|
};
|
|
78232
78232
|
});
|
|
78233
|
-
var currentDir =
|
|
78233
|
+
var currentDir = dirname(fileURLToPath(import.meta.url));
|
|
78234
78234
|
var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
|
|
78235
78235
|
var emptySchema = graphql2.buildSchema("type Query { hello: String }");
|
|
78236
78236
|
var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
@@ -78573,6 +78573,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
78573
78573
|
}
|
|
78574
78574
|
var conventions_exports = {};
|
|
78575
78575
|
__export(conventions_exports, {
|
|
78576
|
+
adapter_config_path: () => adapter_config_path,
|
|
78576
78577
|
fallback_unit_path: () => fallback_unit_path,
|
|
78577
78578
|
is_layout: () => is_layout,
|
|
78578
78579
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78584,13 +78585,10 @@ __export(conventions_exports, {
|
|
|
78584
78585
|
read_layoutView: () => read_layoutView,
|
|
78585
78586
|
read_pageQuery: () => read_pageQuery,
|
|
78586
78587
|
read_pageView: () => read_pageView,
|
|
78587
|
-
render_app_path: () => render_app_path,
|
|
78588
|
-
render_client_path: () => render_client_path,
|
|
78589
|
-
render_server_path: () => render_server_path,
|
|
78590
|
-
render_yoga_path: () => render_yoga_path,
|
|
78591
78588
|
router_index_path: () => router_index_path,
|
|
78592
78589
|
router_path: () => router_path,
|
|
78593
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
78590
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
78591
|
+
server_adapter_path: () => server_adapter_path
|
|
78594
78592
|
});
|
|
78595
78593
|
function router_path(config22) {
|
|
78596
78594
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -78598,17 +78596,11 @@ function router_path(config22) {
|
|
|
78598
78596
|
function page_entry_path(config22, id2, base) {
|
|
78599
78597
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
78600
78598
|
}
|
|
78601
|
-
function
|
|
78602
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
78603
|
-
}
|
|
78604
|
-
function render_server_path(config22, base) {
|
|
78599
|
+
function server_adapter_path(config22, base) {
|
|
78605
78600
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
78606
78601
|
}
|
|
78607
|
-
function
|
|
78608
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
78609
|
-
}
|
|
78610
|
-
function render_app_path(config22, base) {
|
|
78611
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
78602
|
+
function adapter_config_path(config22, base) {
|
|
78603
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
78612
78604
|
}
|
|
78613
78605
|
function page_unit_path(config22, id2, base) {
|
|
78614
78606
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -144070,7 +144062,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
|
|
|
144070
144062
|
}
|
|
144071
144063
|
};
|
|
144072
144064
|
});
|
|
144073
|
-
var currentDir2 =
|
|
144065
|
+
var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
|
|
144074
144066
|
var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
|
|
144075
144067
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
144076
144068
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -144081,6 +144073,7 @@ var recast2 = __toESM3(require_main22(), 1);
|
|
|
144081
144073
|
var AST2 = recast2.types.builders;
|
|
144082
144074
|
var conventions_exports2 = {};
|
|
144083
144075
|
__export2(conventions_exports2, {
|
|
144076
|
+
adapter_config_path: () => adapter_config_path2,
|
|
144084
144077
|
fallback_unit_path: () => fallback_unit_path2,
|
|
144085
144078
|
is_layout: () => is_layout2,
|
|
144086
144079
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -144092,13 +144085,10 @@ __export2(conventions_exports2, {
|
|
|
144092
144085
|
read_layoutView: () => read_layoutView2,
|
|
144093
144086
|
read_pageQuery: () => read_pageQuery2,
|
|
144094
144087
|
read_pageView: () => read_pageView2,
|
|
144095
|
-
render_app_path: () => render_app_path2,
|
|
144096
|
-
render_client_path: () => render_client_path2,
|
|
144097
|
-
render_server_path: () => render_server_path2,
|
|
144098
|
-
render_yoga_path: () => render_yoga_path2,
|
|
144099
144088
|
router_index_path: () => router_index_path2,
|
|
144100
144089
|
router_path: () => router_path2,
|
|
144101
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
144090
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
144091
|
+
server_adapter_path: () => server_adapter_path2
|
|
144102
144092
|
});
|
|
144103
144093
|
function router_path2(config4) {
|
|
144104
144094
|
return path_exports2.join(base_dir2(config4), "Router.jsx");
|
|
@@ -144106,17 +144096,11 @@ function router_path2(config4) {
|
|
|
144106
144096
|
function page_entry_path2(config4, id2, base) {
|
|
144107
144097
|
return path_exports2.join(page_entries_dir2(config4, base), `${id2}.jsx`);
|
|
144108
144098
|
}
|
|
144109
|
-
function
|
|
144110
|
-
return path_exports2.join(units_dir2(config4, base), "render", "client.jsx");
|
|
144111
|
-
}
|
|
144112
|
-
function render_server_path2(config4, base) {
|
|
144099
|
+
function server_adapter_path2(config4, base) {
|
|
144113
144100
|
return path_exports2.join(units_dir2(config4, base), "render", "server.js");
|
|
144114
144101
|
}
|
|
144115
|
-
function
|
|
144116
|
-
return path_exports2.join(units_dir2(config4, base), "render", "
|
|
144117
|
-
}
|
|
144118
|
-
function render_app_path2(config4, base) {
|
|
144119
|
-
return path_exports2.join(units_dir2(config4, base), "render", "App.jsx");
|
|
144102
|
+
function adapter_config_path2(config4, base) {
|
|
144103
|
+
return path_exports2.join(units_dir2(config4, base), "render", "config.js");
|
|
144120
144104
|
}
|
|
144121
144105
|
function page_unit_path2(config4, id2, base) {
|
|
144122
144106
|
return path_exports2.join(page_units_dir2(config4, base), `${id2}.jsx`);
|
|
@@ -144313,11 +144297,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
144313
144297
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
144314
144298
|
|
|
144315
144299
|
interface Node {
|
|
144316
|
-
|
|
144300
|
+
id: ID!
|
|
144317
144301
|
}
|
|
144318
144302
|
|
|
144319
144303
|
extend type Query {
|
|
144320
|
-
|
|
144304
|
+
node(id: ID!): Node
|
|
144321
144305
|
}
|
|
144322
144306
|
|
|
144323
144307
|
For more information, please visit these links:
|
|
@@ -81589,7 +81589,7 @@ var LogLevel = {
|
|
|
81589
81589
|
ShortSummary: "short-summary",
|
|
81590
81590
|
Quiet: "quiet"
|
|
81591
81591
|
};
|
|
81592
|
-
var currentDir =
|
|
81592
|
+
var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
81593
81593
|
var Config = class {
|
|
81594
81594
|
filepath;
|
|
81595
81595
|
rootDir;
|
|
@@ -82676,6 +82676,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
82676
82676
|
}
|
|
82677
82677
|
var conventions_exports = {};
|
|
82678
82678
|
__export2(conventions_exports, {
|
|
82679
|
+
adapter_config_path: () => adapter_config_path,
|
|
82679
82680
|
fallback_unit_path: () => fallback_unit_path,
|
|
82680
82681
|
is_layout: () => is_layout,
|
|
82681
82682
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -82687,13 +82688,10 @@ __export2(conventions_exports, {
|
|
|
82687
82688
|
read_layoutView: () => read_layoutView,
|
|
82688
82689
|
read_pageQuery: () => read_pageQuery,
|
|
82689
82690
|
read_pageView: () => read_pageView,
|
|
82690
|
-
render_app_path: () => render_app_path,
|
|
82691
|
-
render_client_path: () => render_client_path,
|
|
82692
|
-
render_server_path: () => render_server_path,
|
|
82693
|
-
render_yoga_path: () => render_yoga_path,
|
|
82694
82691
|
router_index_path: () => router_index_path,
|
|
82695
82692
|
router_path: () => router_path,
|
|
82696
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
82693
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
82694
|
+
server_adapter_path: () => server_adapter_path
|
|
82697
82695
|
});
|
|
82698
82696
|
function router_path(config22) {
|
|
82699
82697
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -82701,17 +82699,11 @@ function router_path(config22) {
|
|
|
82701
82699
|
function page_entry_path(config22, id2, base) {
|
|
82702
82700
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
82703
82701
|
}
|
|
82704
|
-
function
|
|
82705
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
82706
|
-
}
|
|
82707
|
-
function render_server_path(config22, base) {
|
|
82702
|
+
function server_adapter_path(config22, base) {
|
|
82708
82703
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
82709
82704
|
}
|
|
82710
|
-
function
|
|
82711
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
82712
|
-
}
|
|
82713
|
-
function render_app_path(config22, base) {
|
|
82714
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
82705
|
+
function adapter_config_path(config22, base) {
|
|
82706
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
82715
82707
|
}
|
|
82716
82708
|
function page_unit_path(config22, id2, base) {
|
|
82717
82709
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -175779,7 +175771,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
|
|
|
175779
175771
|
}
|
|
175780
175772
|
};
|
|
175781
175773
|
});
|
|
175782
|
-
var currentDir2 =
|
|
175774
|
+
var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
|
|
175783
175775
|
var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
|
|
175784
175776
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
175785
175777
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -175790,6 +175782,7 @@ var recast2 = __toESM3(require_main22(), 1);
|
|
|
175790
175782
|
var AST2 = recast2.types.builders;
|
|
175791
175783
|
var conventions_exports2 = {};
|
|
175792
175784
|
__export3(conventions_exports2, {
|
|
175785
|
+
adapter_config_path: () => adapter_config_path2,
|
|
175793
175786
|
fallback_unit_path: () => fallback_unit_path2,
|
|
175794
175787
|
is_layout: () => is_layout2,
|
|
175795
175788
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -175801,13 +175794,10 @@ __export3(conventions_exports2, {
|
|
|
175801
175794
|
read_layoutView: () => read_layoutView2,
|
|
175802
175795
|
read_pageQuery: () => read_pageQuery2,
|
|
175803
175796
|
read_pageView: () => read_pageView2,
|
|
175804
|
-
render_app_path: () => render_app_path2,
|
|
175805
|
-
render_client_path: () => render_client_path2,
|
|
175806
|
-
render_server_path: () => render_server_path2,
|
|
175807
|
-
render_yoga_path: () => render_yoga_path2,
|
|
175808
175797
|
router_index_path: () => router_index_path2,
|
|
175809
175798
|
router_path: () => router_path2,
|
|
175810
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
175799
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
175800
|
+
server_adapter_path: () => server_adapter_path2
|
|
175811
175801
|
});
|
|
175812
175802
|
function router_path2(config42) {
|
|
175813
175803
|
return path_exports2.join(base_dir2(config42), "Router.jsx");
|
|
@@ -175815,17 +175805,11 @@ function router_path2(config42) {
|
|
|
175815
175805
|
function page_entry_path2(config42, id2, base) {
|
|
175816
175806
|
return path_exports2.join(page_entries_dir2(config42, base), `${id2}.jsx`);
|
|
175817
175807
|
}
|
|
175818
|
-
function
|
|
175819
|
-
return path_exports2.join(units_dir2(config42, base), "render", "client.jsx");
|
|
175820
|
-
}
|
|
175821
|
-
function render_server_path2(config42, base) {
|
|
175808
|
+
function server_adapter_path2(config42, base) {
|
|
175822
175809
|
return path_exports2.join(units_dir2(config42, base), "render", "server.js");
|
|
175823
175810
|
}
|
|
175824
|
-
function
|
|
175825
|
-
return path_exports2.join(units_dir2(config42, base), "render", "
|
|
175826
|
-
}
|
|
175827
|
-
function render_app_path2(config42, base) {
|
|
175828
|
-
return path_exports2.join(units_dir2(config42, base), "render", "App.jsx");
|
|
175811
|
+
function adapter_config_path2(config42, base) {
|
|
175812
|
+
return path_exports2.join(units_dir2(config42, base), "render", "config.js");
|
|
175829
175813
|
}
|
|
175830
175814
|
function page_unit_path2(config42, id2, base) {
|
|
175831
175815
|
return path_exports2.join(page_units_dir2(config42, base), `${id2}.jsx`);
|
|
@@ -176022,11 +176006,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
176022
176006
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
176023
176007
|
|
|
176024
176008
|
interface Node {
|
|
176025
|
-
|
|
176009
|
+
id: ID!
|
|
176026
176010
|
}
|
|
176027
176011
|
|
|
176028
176012
|
extend type Query {
|
|
176029
|
-
|
|
176013
|
+
node(id: ID!): Node
|
|
176030
176014
|
}
|
|
176031
176015
|
|
|
176032
176016
|
For more information, please visit these links:
|
|
@@ -81582,7 +81582,7 @@ var LogLevel = {
|
|
|
81582
81582
|
ShortSummary: "short-summary",
|
|
81583
81583
|
Quiet: "quiet"
|
|
81584
81584
|
};
|
|
81585
|
-
var currentDir =
|
|
81585
|
+
var currentDir = dirname(fileURLToPath(import.meta.url));
|
|
81586
81586
|
var Config = class {
|
|
81587
81587
|
filepath;
|
|
81588
81588
|
rootDir;
|
|
@@ -82669,6 +82669,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
82669
82669
|
}
|
|
82670
82670
|
var conventions_exports = {};
|
|
82671
82671
|
__export(conventions_exports, {
|
|
82672
|
+
adapter_config_path: () => adapter_config_path,
|
|
82672
82673
|
fallback_unit_path: () => fallback_unit_path,
|
|
82673
82674
|
is_layout: () => is_layout,
|
|
82674
82675
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -82680,13 +82681,10 @@ __export(conventions_exports, {
|
|
|
82680
82681
|
read_layoutView: () => read_layoutView,
|
|
82681
82682
|
read_pageQuery: () => read_pageQuery,
|
|
82682
82683
|
read_pageView: () => read_pageView,
|
|
82683
|
-
render_app_path: () => render_app_path,
|
|
82684
|
-
render_client_path: () => render_client_path,
|
|
82685
|
-
render_server_path: () => render_server_path,
|
|
82686
|
-
render_yoga_path: () => render_yoga_path,
|
|
82687
82684
|
router_index_path: () => router_index_path,
|
|
82688
82685
|
router_path: () => router_path,
|
|
82689
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
82686
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
82687
|
+
server_adapter_path: () => server_adapter_path
|
|
82690
82688
|
});
|
|
82691
82689
|
function router_path(config22) {
|
|
82692
82690
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -82694,17 +82692,11 @@ function router_path(config22) {
|
|
|
82694
82692
|
function page_entry_path(config22, id2, base) {
|
|
82695
82693
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
82696
82694
|
}
|
|
82697
|
-
function
|
|
82698
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
82699
|
-
}
|
|
82700
|
-
function render_server_path(config22, base) {
|
|
82695
|
+
function server_adapter_path(config22, base) {
|
|
82701
82696
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
82702
82697
|
}
|
|
82703
|
-
function
|
|
82704
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
82705
|
-
}
|
|
82706
|
-
function render_app_path(config22, base) {
|
|
82707
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
82698
|
+
function adapter_config_path(config22, base) {
|
|
82699
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
82708
82700
|
}
|
|
82709
82701
|
function page_unit_path(config22, id2, base) {
|
|
82710
82702
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -175771,7 +175763,7 @@ var mutation2 = documentPlugin2(ArtifactKind2.Mutation, () => {
|
|
|
175771
175763
|
}
|
|
175772
175764
|
};
|
|
175773
175765
|
});
|
|
175774
|
-
var currentDir2 =
|
|
175766
|
+
var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
|
|
175775
175767
|
var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
|
|
175776
175768
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
175777
175769
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -175782,6 +175774,7 @@ var recast2 = __toESM3(require_main22(), 1);
|
|
|
175782
175774
|
var AST2 = recast2.types.builders;
|
|
175783
175775
|
var conventions_exports2 = {};
|
|
175784
175776
|
__export2(conventions_exports2, {
|
|
175777
|
+
adapter_config_path: () => adapter_config_path2,
|
|
175785
175778
|
fallback_unit_path: () => fallback_unit_path2,
|
|
175786
175779
|
is_layout: () => is_layout2,
|
|
175787
175780
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -175793,13 +175786,10 @@ __export2(conventions_exports2, {
|
|
|
175793
175786
|
read_layoutView: () => read_layoutView2,
|
|
175794
175787
|
read_pageQuery: () => read_pageQuery2,
|
|
175795
175788
|
read_pageView: () => read_pageView2,
|
|
175796
|
-
render_app_path: () => render_app_path2,
|
|
175797
|
-
render_client_path: () => render_client_path2,
|
|
175798
|
-
render_server_path: () => render_server_path2,
|
|
175799
|
-
render_yoga_path: () => render_yoga_path2,
|
|
175800
175789
|
router_index_path: () => router_index_path2,
|
|
175801
175790
|
router_path: () => router_path2,
|
|
175802
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
175791
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
175792
|
+
server_adapter_path: () => server_adapter_path2
|
|
175803
175793
|
});
|
|
175804
175794
|
function router_path2(config42) {
|
|
175805
175795
|
return path_exports2.join(base_dir2(config42), "Router.jsx");
|
|
@@ -175807,17 +175797,11 @@ function router_path2(config42) {
|
|
|
175807
175797
|
function page_entry_path2(config42, id2, base) {
|
|
175808
175798
|
return path_exports2.join(page_entries_dir2(config42, base), `${id2}.jsx`);
|
|
175809
175799
|
}
|
|
175810
|
-
function
|
|
175811
|
-
return path_exports2.join(units_dir2(config42, base), "render", "client.jsx");
|
|
175812
|
-
}
|
|
175813
|
-
function render_server_path2(config42, base) {
|
|
175800
|
+
function server_adapter_path2(config42, base) {
|
|
175814
175801
|
return path_exports2.join(units_dir2(config42, base), "render", "server.js");
|
|
175815
175802
|
}
|
|
175816
|
-
function
|
|
175817
|
-
return path_exports2.join(units_dir2(config42, base), "render", "
|
|
175818
|
-
}
|
|
175819
|
-
function render_app_path2(config42, base) {
|
|
175820
|
-
return path_exports2.join(units_dir2(config42, base), "render", "App.jsx");
|
|
175803
|
+
function adapter_config_path2(config42, base) {
|
|
175804
|
+
return path_exports2.join(units_dir2(config42, base), "render", "config.js");
|
|
175821
175805
|
}
|
|
175822
175806
|
function page_unit_path2(config42, id2, base) {
|
|
175823
175807
|
return path_exports2.join(page_units_dir2(config42, base), `${id2}.jsx`);
|
|
@@ -176014,11 +175998,11 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
176014
175998
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
176015
175999
|
|
|
176016
176000
|
interface Node {
|
|
176017
|
-
|
|
176001
|
+
id: ID!
|
|
176018
176002
|
}
|
|
176019
176003
|
|
|
176020
176004
|
extend type Query {
|
|
176021
|
-
|
|
176005
|
+
node(id: ID!): Node
|
|
176022
176006
|
}
|
|
176023
176007
|
|
|
176024
176008
|
For more information, please visit these links:
|
package/build/test-cjs/index.js
CHANGED
|
@@ -78242,7 +78242,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
|
|
|
78242
78242
|
}
|
|
78243
78243
|
};
|
|
78244
78244
|
});
|
|
78245
|
-
var currentDir =
|
|
78245
|
+
var currentDir = dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
78246
78246
|
var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
|
|
78247
78247
|
var emptySchema = graphql2.buildSchema("type Query { hello: String }");
|
|
78248
78248
|
var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
@@ -78585,6 +78585,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
78585
78585
|
}
|
|
78586
78586
|
var conventions_exports = {};
|
|
78587
78587
|
__export2(conventions_exports, {
|
|
78588
|
+
adapter_config_path: () => adapter_config_path,
|
|
78588
78589
|
fallback_unit_path: () => fallback_unit_path,
|
|
78589
78590
|
is_layout: () => is_layout,
|
|
78590
78591
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78596,13 +78597,10 @@ __export2(conventions_exports, {
|
|
|
78596
78597
|
read_layoutView: () => read_layoutView,
|
|
78597
78598
|
read_pageQuery: () => read_pageQuery,
|
|
78598
78599
|
read_pageView: () => read_pageView,
|
|
78599
|
-
render_app_path: () => render_app_path,
|
|
78600
|
-
render_client_path: () => render_client_path,
|
|
78601
|
-
render_server_path: () => render_server_path,
|
|
78602
|
-
render_yoga_path: () => render_yoga_path,
|
|
78603
78600
|
router_index_path: () => router_index_path,
|
|
78604
78601
|
router_path: () => router_path,
|
|
78605
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
78602
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
78603
|
+
server_adapter_path: () => server_adapter_path
|
|
78606
78604
|
});
|
|
78607
78605
|
function router_path(config22) {
|
|
78608
78606
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -78610,17 +78608,11 @@ function router_path(config22) {
|
|
|
78610
78608
|
function page_entry_path(config22, id2, base) {
|
|
78611
78609
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
78612
78610
|
}
|
|
78613
|
-
function
|
|
78614
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
78615
|
-
}
|
|
78616
|
-
function render_server_path(config22, base) {
|
|
78611
|
+
function server_adapter_path(config22, base) {
|
|
78617
78612
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
78618
78613
|
}
|
|
78619
|
-
function
|
|
78620
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
78621
|
-
}
|
|
78622
|
-
function render_app_path(config22, base) {
|
|
78623
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
78614
|
+
function adapter_config_path(config22, base) {
|
|
78615
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
78624
78616
|
}
|
|
78625
78617
|
function page_unit_path(config22, id2, base) {
|
|
78626
78618
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -135359,7 +135351,7 @@ var LogLevel = {
|
|
|
135359
135351
|
ShortSummary: "short-summary",
|
|
135360
135352
|
Quiet: "quiet"
|
|
135361
135353
|
};
|
|
135362
|
-
var currentDir2 =
|
|
135354
|
+
var currentDir2 = dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
|
|
135363
135355
|
var DEFAULT_CONFIG_PATH2 = join3(process.cwd(), "houdini.config.js");
|
|
135364
135356
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
135365
135357
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -137100,7 +137092,7 @@ async function paginate(config22, documents) {
|
|
|
137100
137092
|
value: "__typename"
|
|
137101
137093
|
}
|
|
137102
137094
|
},
|
|
137103
|
-
...(typeConfig?.keys || [
|
|
137095
|
+
...(typeConfig?.keys || [config22.defaultKeys[0]]).map((key) => ({
|
|
137104
137096
|
kind: graphql11.Kind.FIELD,
|
|
137105
137097
|
name: {
|
|
137106
137098
|
kind: graphql11.Kind.NAME,
|
|
@@ -140952,7 +140944,7 @@ function nodeDirectives(config22, directives) {
|
|
|
140952
140944
|
}
|
|
140953
140945
|
if (!possibleNodes.includes(definitionType)) {
|
|
140954
140946
|
ctx.reportError(
|
|
140955
|
-
new graphql26.GraphQLError(paginateOnNonNodeMessage(
|
|
140947
|
+
new graphql26.GraphQLError(paginateOnNonNodeMessage(node2.name.value))
|
|
140956
140948
|
);
|
|
140957
140949
|
}
|
|
140958
140950
|
}
|
|
@@ -141087,45 +141079,45 @@ function getAndVerifyNodeInterface(config22) {
|
|
|
141087
141079
|
return null;
|
|
141088
141080
|
}
|
|
141089
141081
|
if (!graphql26.isInterfaceType(nodeInterface)) {
|
|
141090
|
-
displayInvalidNodeFieldMessage(config22
|
|
141082
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141091
141083
|
return null;
|
|
141092
141084
|
}
|
|
141093
141085
|
const queryType = schema2.getQueryType();
|
|
141094
141086
|
if (!queryType) {
|
|
141095
|
-
displayInvalidNodeFieldMessage(config22
|
|
141087
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141096
141088
|
return null;
|
|
141097
141089
|
}
|
|
141098
141090
|
const nodeField = queryType.getFields()["node"];
|
|
141099
141091
|
if (!nodeField) {
|
|
141100
|
-
displayInvalidNodeFieldMessage(config22
|
|
141092
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141101
141093
|
return null;
|
|
141102
141094
|
}
|
|
141103
141095
|
const args = nodeField.args;
|
|
141104
141096
|
if (args.length === 0) {
|
|
141105
|
-
displayInvalidNodeFieldMessage(config22
|
|
141097
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141106
141098
|
return null;
|
|
141107
141099
|
}
|
|
141108
|
-
const idArg = args.find((arg) => arg.name ===
|
|
141100
|
+
const idArg = args.find((arg) => arg.name === config22.defaultKeys[0]);
|
|
141109
141101
|
if (!idArg) {
|
|
141110
|
-
displayInvalidNodeFieldMessage(config22
|
|
141102
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141111
141103
|
return null;
|
|
141112
141104
|
}
|
|
141113
141105
|
const idType = unwrapType2(config22, idArg.type);
|
|
141114
141106
|
if (idType.type.name !== "ID") {
|
|
141115
|
-
displayInvalidNodeFieldMessage(config22
|
|
141107
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141116
141108
|
return null;
|
|
141117
141109
|
}
|
|
141118
141110
|
const fieldReturnType = unwrapType2(config22, nodeField.type);
|
|
141119
141111
|
if (fieldReturnType.type.name !== "Node") {
|
|
141120
|
-
displayInvalidNodeFieldMessage(config22
|
|
141112
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141121
141113
|
return null;
|
|
141122
141114
|
}
|
|
141123
141115
|
return nodeInterface;
|
|
141124
141116
|
}
|
|
141125
141117
|
var nbInvalidNodeFieldMessageDisplayed = 0;
|
|
141126
|
-
function displayInvalidNodeFieldMessage(
|
|
141118
|
+
function displayInvalidNodeFieldMessage(config22) {
|
|
141127
141119
|
if (nbInvalidNodeFieldMessageDisplayed === 0) {
|
|
141128
|
-
if (logLevel === LogLevel.Full) {
|
|
141120
|
+
if (config22.logLevel === LogLevel.Full) {
|
|
141129
141121
|
console.warn(invalidNodeFieldMessage);
|
|
141130
141122
|
} else {
|
|
141131
141123
|
console.warn(invalidNodeFieldMessageLight);
|
|
@@ -141139,18 +141131,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
141139
141131
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
141140
141132
|
|
|
141141
141133
|
interface Node {
|
|
141142
|
-
|
|
141134
|
+
id: ID!
|
|
141143
141135
|
}
|
|
141144
141136
|
|
|
141145
141137
|
extend type Query {
|
|
141146
|
-
|
|
141138
|
+
node(id: ID!): Node
|
|
141147
141139
|
}
|
|
141148
141140
|
|
|
141149
141141
|
For more information, please visit these links:
|
|
141150
141142
|
- https://graphql.org/learn/global-object-identification/
|
|
141151
141143
|
- ${siteURL}/guides/caching-data#custom-ids
|
|
141152
141144
|
`;
|
|
141153
|
-
var paginateOnNonNodeMessage = (
|
|
141145
|
+
var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
|
|
141154
141146
|
If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
|
|
141155
141147
|
have defined a resolver entry for the fragment type.
|
|
141156
141148
|
|
|
@@ -197975,7 +197967,7 @@ var LogLevel2 = {
|
|
|
197975
197967
|
ShortSummary: "short-summary",
|
|
197976
197968
|
Quiet: "quiet"
|
|
197977
197969
|
};
|
|
197978
|
-
var currentDir3 =
|
|
197970
|
+
var currentDir3 = dirname3((0, import_node_url4.fileURLToPath)(import_meta3.url));
|
|
197979
197971
|
var Config = class {
|
|
197980
197972
|
filepath;
|
|
197981
197973
|
rootDir;
|
|
@@ -198705,11 +198697,11 @@ var invalidNodeFieldMessage2 = `\u26A0\uFE0F Your project defines a Node interf
|
|
|
198705
198697
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
198706
198698
|
|
|
198707
198699
|
interface Node {
|
|
198708
|
-
|
|
198700
|
+
id: ID!
|
|
198709
198701
|
}
|
|
198710
198702
|
|
|
198711
198703
|
extend type Query {
|
|
198712
|
-
|
|
198704
|
+
node(id: ID!): Node
|
|
198713
198705
|
}
|
|
198714
198706
|
|
|
198715
198707
|
For more information, please visit these links:
|
|
@@ -264414,7 +264406,7 @@ var mutation4 = documentPlugin4(ArtifactKind4.Mutation, () => {
|
|
|
264414
264406
|
}
|
|
264415
264407
|
};
|
|
264416
264408
|
});
|
|
264417
|
-
var currentDir4 =
|
|
264409
|
+
var currentDir4 = dirname4((0, import_node_url5.fileURLToPath)(import_meta4.url));
|
|
264418
264410
|
var DEFAULT_CONFIG_PATH4 = join22(process.cwd(), "houdini.config.js");
|
|
264419
264411
|
var emptySchema4 = graphql211.buildSchema("type Query { hello: String }");
|
|
264420
264412
|
var defaultDirectives4 = emptySchema4.getDirectives().map((dir) => dir.name);
|
|
@@ -264425,6 +264417,7 @@ var recast16 = __toESM5(require_main24(), 1);
|
|
|
264425
264417
|
var AST16 = recast16.types.builders;
|
|
264426
264418
|
var conventions_exports2 = {};
|
|
264427
264419
|
__export5(conventions_exports2, {
|
|
264420
|
+
adapter_config_path: () => adapter_config_path2,
|
|
264428
264421
|
fallback_unit_path: () => fallback_unit_path2,
|
|
264429
264422
|
is_layout: () => is_layout2,
|
|
264430
264423
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -264436,13 +264429,10 @@ __export5(conventions_exports2, {
|
|
|
264436
264429
|
read_layoutView: () => read_layoutView2,
|
|
264437
264430
|
read_pageQuery: () => read_pageQuery2,
|
|
264438
264431
|
read_pageView: () => read_pageView2,
|
|
264439
|
-
render_app_path: () => render_app_path2,
|
|
264440
|
-
render_client_path: () => render_client_path2,
|
|
264441
|
-
render_server_path: () => render_server_path2,
|
|
264442
|
-
render_yoga_path: () => render_yoga_path2,
|
|
264443
264432
|
router_index_path: () => router_index_path2,
|
|
264444
264433
|
router_path: () => router_path2,
|
|
264445
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
264434
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
264435
|
+
server_adapter_path: () => server_adapter_path2
|
|
264446
264436
|
});
|
|
264447
264437
|
function router_path2(config42) {
|
|
264448
264438
|
return path_exports4.join(base_dir2(config42), "Router.jsx");
|
|
@@ -264450,17 +264440,11 @@ function router_path2(config42) {
|
|
|
264450
264440
|
function page_entry_path2(config42, id2, base) {
|
|
264451
264441
|
return path_exports4.join(page_entries_dir2(config42, base), `${id2}.jsx`);
|
|
264452
264442
|
}
|
|
264453
|
-
function
|
|
264454
|
-
return path_exports4.join(units_dir2(config42, base), "render", "client.jsx");
|
|
264455
|
-
}
|
|
264456
|
-
function render_server_path2(config42, base) {
|
|
264443
|
+
function server_adapter_path2(config42, base) {
|
|
264457
264444
|
return path_exports4.join(units_dir2(config42, base), "render", "server.js");
|
|
264458
264445
|
}
|
|
264459
|
-
function
|
|
264460
|
-
return path_exports4.join(units_dir2(config42, base), "render", "
|
|
264461
|
-
}
|
|
264462
|
-
function render_app_path2(config42, base) {
|
|
264463
|
-
return path_exports4.join(units_dir2(config42, base), "render", "App.jsx");
|
|
264446
|
+
function adapter_config_path2(config42, base) {
|
|
264447
|
+
return path_exports4.join(units_dir2(config42, base), "render", "config.js");
|
|
264464
264448
|
}
|
|
264465
264449
|
function page_unit_path2(config42, id2, base) {
|
|
264466
264450
|
return path_exports4.join(page_units_dir2(config42, base), `${id2}.jsx`);
|
|
@@ -264657,11 +264641,11 @@ var invalidNodeFieldMessage3 = `\u26A0\uFE0F Your project defines a Node interf
|
|
|
264657
264641
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
264658
264642
|
|
|
264659
264643
|
interface Node {
|
|
264660
|
-
|
|
264644
|
+
id: ID!
|
|
264661
264645
|
}
|
|
264662
264646
|
|
|
264663
264647
|
extend type Query {
|
|
264664
|
-
|
|
264648
|
+
node(id: ID!): Node
|
|
264665
264649
|
}
|
|
264666
264650
|
|
|
264667
264651
|
For more information, please visit these links:
|
package/build/test-esm/index.js
CHANGED
|
@@ -78230,7 +78230,7 @@ var mutation = documentPlugin(ArtifactKind.Mutation, () => {
|
|
|
78230
78230
|
}
|
|
78231
78231
|
};
|
|
78232
78232
|
});
|
|
78233
|
-
var currentDir =
|
|
78233
|
+
var currentDir = dirname(fileURLToPath(import.meta.url));
|
|
78234
78234
|
var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
|
|
78235
78235
|
var emptySchema = graphql2.buildSchema("type Query { hello: String }");
|
|
78236
78236
|
var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
@@ -78573,6 +78573,7 @@ async function find_graphql(config22, parsedScript, walker) {
|
|
|
78573
78573
|
}
|
|
78574
78574
|
var conventions_exports = {};
|
|
78575
78575
|
__export(conventions_exports, {
|
|
78576
|
+
adapter_config_path: () => adapter_config_path,
|
|
78576
78577
|
fallback_unit_path: () => fallback_unit_path,
|
|
78577
78578
|
is_layout: () => is_layout,
|
|
78578
78579
|
layout_unit_path: () => layout_unit_path,
|
|
@@ -78584,13 +78585,10 @@ __export(conventions_exports, {
|
|
|
78584
78585
|
read_layoutView: () => read_layoutView,
|
|
78585
78586
|
read_pageQuery: () => read_pageQuery,
|
|
78586
78587
|
read_pageView: () => read_pageView,
|
|
78587
|
-
render_app_path: () => render_app_path,
|
|
78588
|
-
render_client_path: () => render_client_path,
|
|
78589
|
-
render_server_path: () => render_server_path,
|
|
78590
|
-
render_yoga_path: () => render_yoga_path,
|
|
78591
78588
|
router_index_path: () => router_index_path,
|
|
78592
78589
|
router_path: () => router_path,
|
|
78593
|
-
serialized_manifest_path: () => serialized_manifest_path
|
|
78590
|
+
serialized_manifest_path: () => serialized_manifest_path,
|
|
78591
|
+
server_adapter_path: () => server_adapter_path
|
|
78594
78592
|
});
|
|
78595
78593
|
function router_path(config22) {
|
|
78596
78594
|
return path_exports.join(base_dir(config22), "Router.jsx");
|
|
@@ -78598,17 +78596,11 @@ function router_path(config22) {
|
|
|
78598
78596
|
function page_entry_path(config22, id2, base) {
|
|
78599
78597
|
return path_exports.join(page_entries_dir(config22, base), `${id2}.jsx`);
|
|
78600
78598
|
}
|
|
78601
|
-
function
|
|
78602
|
-
return path_exports.join(units_dir(config22, base), "render", "client.jsx");
|
|
78603
|
-
}
|
|
78604
|
-
function render_server_path(config22, base) {
|
|
78599
|
+
function server_adapter_path(config22, base) {
|
|
78605
78600
|
return path_exports.join(units_dir(config22, base), "render", "server.js");
|
|
78606
78601
|
}
|
|
78607
|
-
function
|
|
78608
|
-
return path_exports.join(units_dir(config22, base), "render", "
|
|
78609
|
-
}
|
|
78610
|
-
function render_app_path(config22, base) {
|
|
78611
|
-
return path_exports.join(units_dir(config22, base), "render", "App.jsx");
|
|
78602
|
+
function adapter_config_path(config22, base) {
|
|
78603
|
+
return path_exports.join(units_dir(config22, base), "render", "config.js");
|
|
78612
78604
|
}
|
|
78613
78605
|
function page_unit_path(config22, id2, base) {
|
|
78614
78606
|
return path_exports.join(page_units_dir(config22, base), `${id2}.jsx`);
|
|
@@ -135346,7 +135338,7 @@ var LogLevel = {
|
|
|
135346
135338
|
ShortSummary: "short-summary",
|
|
135347
135339
|
Quiet: "quiet"
|
|
135348
135340
|
};
|
|
135349
|
-
var currentDir2 =
|
|
135341
|
+
var currentDir2 = dirname2(fileURLToPath2(import.meta.url));
|
|
135350
135342
|
var DEFAULT_CONFIG_PATH2 = join3(process.cwd(), "houdini.config.js");
|
|
135351
135343
|
var emptySchema2 = graphql22.buildSchema("type Query { hello: String }");
|
|
135352
135344
|
var defaultDirectives2 = emptySchema2.getDirectives().map((dir) => dir.name);
|
|
@@ -137087,7 +137079,7 @@ async function paginate(config22, documents) {
|
|
|
137087
137079
|
value: "__typename"
|
|
137088
137080
|
}
|
|
137089
137081
|
},
|
|
137090
|
-
...(typeConfig?.keys || [
|
|
137082
|
+
...(typeConfig?.keys || [config22.defaultKeys[0]]).map((key) => ({
|
|
137091
137083
|
kind: graphql11.Kind.FIELD,
|
|
137092
137084
|
name: {
|
|
137093
137085
|
kind: graphql11.Kind.NAME,
|
|
@@ -140939,7 +140931,7 @@ function nodeDirectives(config22, directives) {
|
|
|
140939
140931
|
}
|
|
140940
140932
|
if (!possibleNodes.includes(definitionType)) {
|
|
140941
140933
|
ctx.reportError(
|
|
140942
|
-
new graphql26.GraphQLError(paginateOnNonNodeMessage(
|
|
140934
|
+
new graphql26.GraphQLError(paginateOnNonNodeMessage(node2.name.value))
|
|
140943
140935
|
);
|
|
140944
140936
|
}
|
|
140945
140937
|
}
|
|
@@ -141074,45 +141066,45 @@ function getAndVerifyNodeInterface(config22) {
|
|
|
141074
141066
|
return null;
|
|
141075
141067
|
}
|
|
141076
141068
|
if (!graphql26.isInterfaceType(nodeInterface)) {
|
|
141077
|
-
displayInvalidNodeFieldMessage(config22
|
|
141069
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141078
141070
|
return null;
|
|
141079
141071
|
}
|
|
141080
141072
|
const queryType = schema2.getQueryType();
|
|
141081
141073
|
if (!queryType) {
|
|
141082
|
-
displayInvalidNodeFieldMessage(config22
|
|
141074
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141083
141075
|
return null;
|
|
141084
141076
|
}
|
|
141085
141077
|
const nodeField = queryType.getFields()["node"];
|
|
141086
141078
|
if (!nodeField) {
|
|
141087
|
-
displayInvalidNodeFieldMessage(config22
|
|
141079
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141088
141080
|
return null;
|
|
141089
141081
|
}
|
|
141090
141082
|
const args = nodeField.args;
|
|
141091
141083
|
if (args.length === 0) {
|
|
141092
|
-
displayInvalidNodeFieldMessage(config22
|
|
141084
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141093
141085
|
return null;
|
|
141094
141086
|
}
|
|
141095
|
-
const idArg = args.find((arg) => arg.name ===
|
|
141087
|
+
const idArg = args.find((arg) => arg.name === config22.defaultKeys[0]);
|
|
141096
141088
|
if (!idArg) {
|
|
141097
|
-
displayInvalidNodeFieldMessage(config22
|
|
141089
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141098
141090
|
return null;
|
|
141099
141091
|
}
|
|
141100
141092
|
const idType = unwrapType2(config22, idArg.type);
|
|
141101
141093
|
if (idType.type.name !== "ID") {
|
|
141102
|
-
displayInvalidNodeFieldMessage(config22
|
|
141094
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141103
141095
|
return null;
|
|
141104
141096
|
}
|
|
141105
141097
|
const fieldReturnType = unwrapType2(config22, nodeField.type);
|
|
141106
141098
|
if (fieldReturnType.type.name !== "Node") {
|
|
141107
|
-
displayInvalidNodeFieldMessage(config22
|
|
141099
|
+
displayInvalidNodeFieldMessage(config22);
|
|
141108
141100
|
return null;
|
|
141109
141101
|
}
|
|
141110
141102
|
return nodeInterface;
|
|
141111
141103
|
}
|
|
141112
141104
|
var nbInvalidNodeFieldMessageDisplayed = 0;
|
|
141113
|
-
function displayInvalidNodeFieldMessage(
|
|
141105
|
+
function displayInvalidNodeFieldMessage(config22) {
|
|
141114
141106
|
if (nbInvalidNodeFieldMessageDisplayed === 0) {
|
|
141115
|
-
if (logLevel === LogLevel.Full) {
|
|
141107
|
+
if (config22.logLevel === LogLevel.Full) {
|
|
141116
141108
|
console.warn(invalidNodeFieldMessage);
|
|
141117
141109
|
} else {
|
|
141118
141110
|
console.warn(invalidNodeFieldMessageLight);
|
|
@@ -141126,18 +141118,18 @@ var invalidNodeFieldMessage = `\u26A0\uFE0F Your project defines a Node interfa
|
|
|
141126
141118
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
141127
141119
|
|
|
141128
141120
|
interface Node {
|
|
141129
|
-
|
|
141121
|
+
id: ID!
|
|
141130
141122
|
}
|
|
141131
141123
|
|
|
141132
141124
|
extend type Query {
|
|
141133
|
-
|
|
141125
|
+
node(id: ID!): Node
|
|
141134
141126
|
}
|
|
141135
141127
|
|
|
141136
141128
|
For more information, please visit these links:
|
|
141137
141129
|
- https://graphql.org/learn/global-object-identification/
|
|
141138
141130
|
- ${siteURL}/guides/caching-data#custom-ids
|
|
141139
141131
|
`;
|
|
141140
|
-
var paginateOnNonNodeMessage = (
|
|
141132
|
+
var paginateOnNonNodeMessage = (directiveName) => `It looks like you are trying to use @${directiveName} on a document that does not have a valid type resolver.
|
|
141141
141133
|
If this is happening inside of a fragment, make sure that the fragment either implements the Node interface or you
|
|
141142
141134
|
have defined a resolver entry for the fragment type.
|
|
141143
141135
|
|
|
@@ -197961,7 +197953,7 @@ var LogLevel2 = {
|
|
|
197961
197953
|
ShortSummary: "short-summary",
|
|
197962
197954
|
Quiet: "quiet"
|
|
197963
197955
|
};
|
|
197964
|
-
var currentDir3 =
|
|
197956
|
+
var currentDir3 = dirname3(fileURLToPath3(import.meta.url));
|
|
197965
197957
|
var Config = class {
|
|
197966
197958
|
filepath;
|
|
197967
197959
|
rootDir;
|
|
@@ -198691,11 +198683,11 @@ var invalidNodeFieldMessage2 = `\u26A0\uFE0F Your project defines a Node interf
|
|
|
198691
198683
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
198692
198684
|
|
|
198693
198685
|
interface Node {
|
|
198694
|
-
|
|
198686
|
+
id: ID!
|
|
198695
198687
|
}
|
|
198696
198688
|
|
|
198697
198689
|
extend type Query {
|
|
198698
|
-
|
|
198690
|
+
node(id: ID!): Node
|
|
198699
198691
|
}
|
|
198700
198692
|
|
|
198701
198693
|
For more information, please visit these links:
|
|
@@ -264399,7 +264391,7 @@ var mutation4 = documentPlugin4(ArtifactKind4.Mutation, () => {
|
|
|
264399
264391
|
}
|
|
264400
264392
|
};
|
|
264401
264393
|
});
|
|
264402
|
-
var currentDir4 =
|
|
264394
|
+
var currentDir4 = dirname4(fileURLToPath4(import.meta.url));
|
|
264403
264395
|
var DEFAULT_CONFIG_PATH4 = join22(process.cwd(), "houdini.config.js");
|
|
264404
264396
|
var emptySchema4 = graphql211.buildSchema("type Query { hello: String }");
|
|
264405
264397
|
var defaultDirectives4 = emptySchema4.getDirectives().map((dir) => dir.name);
|
|
@@ -264410,6 +264402,7 @@ var recast16 = __toESM5(require_main24(), 1);
|
|
|
264410
264402
|
var AST16 = recast16.types.builders;
|
|
264411
264403
|
var conventions_exports2 = {};
|
|
264412
264404
|
__export4(conventions_exports2, {
|
|
264405
|
+
adapter_config_path: () => adapter_config_path2,
|
|
264413
264406
|
fallback_unit_path: () => fallback_unit_path2,
|
|
264414
264407
|
is_layout: () => is_layout2,
|
|
264415
264408
|
layout_unit_path: () => layout_unit_path2,
|
|
@@ -264421,13 +264414,10 @@ __export4(conventions_exports2, {
|
|
|
264421
264414
|
read_layoutView: () => read_layoutView2,
|
|
264422
264415
|
read_pageQuery: () => read_pageQuery2,
|
|
264423
264416
|
read_pageView: () => read_pageView2,
|
|
264424
|
-
render_app_path: () => render_app_path2,
|
|
264425
|
-
render_client_path: () => render_client_path2,
|
|
264426
|
-
render_server_path: () => render_server_path2,
|
|
264427
|
-
render_yoga_path: () => render_yoga_path2,
|
|
264428
264417
|
router_index_path: () => router_index_path2,
|
|
264429
264418
|
router_path: () => router_path2,
|
|
264430
|
-
serialized_manifest_path: () => serialized_manifest_path2
|
|
264419
|
+
serialized_manifest_path: () => serialized_manifest_path2,
|
|
264420
|
+
server_adapter_path: () => server_adapter_path2
|
|
264431
264421
|
});
|
|
264432
264422
|
function router_path2(config42) {
|
|
264433
264423
|
return path_exports4.join(base_dir2(config42), "Router.jsx");
|
|
@@ -264435,17 +264425,11 @@ function router_path2(config42) {
|
|
|
264435
264425
|
function page_entry_path2(config42, id2, base) {
|
|
264436
264426
|
return path_exports4.join(page_entries_dir2(config42, base), `${id2}.jsx`);
|
|
264437
264427
|
}
|
|
264438
|
-
function
|
|
264439
|
-
return path_exports4.join(units_dir2(config42, base), "render", "client.jsx");
|
|
264440
|
-
}
|
|
264441
|
-
function render_server_path2(config42, base) {
|
|
264428
|
+
function server_adapter_path2(config42, base) {
|
|
264442
264429
|
return path_exports4.join(units_dir2(config42, base), "render", "server.js");
|
|
264443
264430
|
}
|
|
264444
|
-
function
|
|
264445
|
-
return path_exports4.join(units_dir2(config42, base), "render", "
|
|
264446
|
-
}
|
|
264447
|
-
function render_app_path2(config42, base) {
|
|
264448
|
-
return path_exports4.join(units_dir2(config42, base), "render", "App.jsx");
|
|
264431
|
+
function adapter_config_path2(config42, base) {
|
|
264432
|
+
return path_exports4.join(units_dir2(config42, base), "render", "config.js");
|
|
264449
264433
|
}
|
|
264450
264434
|
function page_unit_path2(config42, id2, base) {
|
|
264451
264435
|
return path_exports4.join(page_units_dir2(config42, base), `${id2}.jsx`);
|
|
@@ -264642,11 +264626,11 @@ var invalidNodeFieldMessage3 = `\u26A0\uFE0F Your project defines a Node interf
|
|
|
264642
264626
|
If you are trying to provide the Node interface and its field, they must look like the following:
|
|
264643
264627
|
|
|
264644
264628
|
interface Node {
|
|
264645
|
-
|
|
264629
|
+
id: ID!
|
|
264646
264630
|
}
|
|
264647
264631
|
|
|
264648
264632
|
extend type Query {
|
|
264649
|
-
|
|
264633
|
+
node(id: ID!): Node
|
|
264650
264634
|
}
|
|
264651
264635
|
|
|
264652
264636
|
For more information, please visit these links:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
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.14"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"build"
|