houdini 1.3.0 → 1.3.1
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/cmd-cjs/index.js
CHANGED
|
@@ -65029,7 +65029,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
65029
65029
|
content = await resp.text();
|
|
65030
65030
|
const jsonSchema = JSON.parse(content).data;
|
|
65031
65031
|
let fileData = "";
|
|
65032
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
65032
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
65033
65033
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
65034
65034
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
65035
65035
|
} else {
|
|
@@ -68338,7 +68338,11 @@ async function getConfig({
|
|
|
68338
68338
|
}
|
|
68339
68339
|
}
|
|
68340
68340
|
if (schemaOk && !noSchema) {
|
|
68341
|
-
|
|
68341
|
+
try {
|
|
68342
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
68343
|
+
} catch (e3) {
|
|
68344
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e3}`);
|
|
68345
|
+
}
|
|
68342
68346
|
}
|
|
68343
68347
|
}
|
|
68344
68348
|
_config.plugins = orderedPlugins(plugins);
|
|
@@ -68469,7 +68473,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
68469
68473
|
});
|
|
68470
68474
|
}
|
|
68471
68475
|
const contents = await readFile(schemaPath);
|
|
68472
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
68476
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
68473
68477
|
return graphql3.buildSchema(contents);
|
|
68474
68478
|
}
|
|
68475
68479
|
const jsonContents = JSON.parse(contents);
|
|
@@ -78444,12 +78448,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
78444
78448
|
}
|
|
78445
78449
|
packageJSON2.devDependencies = {
|
|
78446
78450
|
...packageJSON2.devDependencies,
|
|
78447
|
-
houdini: "^1.3.
|
|
78451
|
+
houdini: "^1.3.1"
|
|
78448
78452
|
};
|
|
78449
78453
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
78450
78454
|
packageJSON2.devDependencies = {
|
|
78451
78455
|
...packageJSON2.devDependencies,
|
|
78452
|
-
"houdini-svelte": "^
|
|
78456
|
+
"houdini-svelte": "^2.0.1"
|
|
78453
78457
|
};
|
|
78454
78458
|
} else {
|
|
78455
78459
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -65035,7 +65035,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
65035
65035
|
content = await resp.text();
|
|
65036
65036
|
const jsonSchema = JSON.parse(content).data;
|
|
65037
65037
|
let fileData = "";
|
|
65038
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
65038
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
65039
65039
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
65040
65040
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
65041
65041
|
} else {
|
|
@@ -68343,7 +68343,11 @@ async function getConfig({
|
|
|
68343
68343
|
}
|
|
68344
68344
|
}
|
|
68345
68345
|
if (schemaOk && !noSchema) {
|
|
68346
|
-
|
|
68346
|
+
try {
|
|
68347
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
68348
|
+
} catch (e3) {
|
|
68349
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e3}`);
|
|
68350
|
+
}
|
|
68347
68351
|
}
|
|
68348
68352
|
}
|
|
68349
68353
|
_config.plugins = orderedPlugins(plugins);
|
|
@@ -68474,7 +68478,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
68474
68478
|
});
|
|
68475
68479
|
}
|
|
68476
68480
|
const contents = await readFile(schemaPath);
|
|
68477
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
68481
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
68478
68482
|
return graphql3.buildSchema(contents);
|
|
68479
68483
|
}
|
|
68480
68484
|
const jsonContents = JSON.parse(contents);
|
|
@@ -78449,12 +78453,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
78449
78453
|
}
|
|
78450
78454
|
packageJSON2.devDependencies = {
|
|
78451
78455
|
...packageJSON2.devDependencies,
|
|
78452
|
-
houdini: "^1.3.
|
|
78456
|
+
houdini: "^1.3.1"
|
|
78453
78457
|
};
|
|
78454
78458
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
78455
78459
|
packageJSON2.devDependencies = {
|
|
78456
78460
|
...packageJSON2.devDependencies,
|
|
78457
|
-
"houdini-svelte": "^
|
|
78461
|
+
"houdini-svelte": "^2.0.1"
|
|
78458
78462
|
};
|
|
78459
78463
|
} else {
|
|
78460
78464
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -63420,7 +63420,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
63420
63420
|
content = await resp.text();
|
|
63421
63421
|
const jsonSchema = JSON.parse(content).data;
|
|
63422
63422
|
let fileData = "";
|
|
63423
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
63423
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
63424
63424
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
63425
63425
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
63426
63426
|
} else {
|
|
@@ -68633,7 +68633,11 @@ async function getConfig({
|
|
|
68633
68633
|
}
|
|
68634
68634
|
}
|
|
68635
68635
|
if (schemaOk && !noSchema) {
|
|
68636
|
-
|
|
68636
|
+
try {
|
|
68637
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
68638
|
+
} catch (e2) {
|
|
68639
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e2}`);
|
|
68640
|
+
}
|
|
68637
68641
|
}
|
|
68638
68642
|
}
|
|
68639
68643
|
_config.plugins = orderedPlugins(plugins2);
|
|
@@ -68764,7 +68768,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
68764
68768
|
});
|
|
68765
68769
|
}
|
|
68766
68770
|
const contents = await readFile(schemaPath);
|
|
68767
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
68771
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
68768
68772
|
return graphql3.buildSchema(contents);
|
|
68769
68773
|
}
|
|
68770
68774
|
const jsonContents = JSON.parse(contents);
|
package/build/lib-esm/index.js
CHANGED
|
@@ -63335,7 +63335,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
63335
63335
|
content = await resp.text();
|
|
63336
63336
|
const jsonSchema = JSON.parse(content).data;
|
|
63337
63337
|
let fileData = "";
|
|
63338
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
63338
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
63339
63339
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
63340
63340
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
63341
63341
|
} else {
|
|
@@ -68547,7 +68547,11 @@ async function getConfig({
|
|
|
68547
68547
|
}
|
|
68548
68548
|
}
|
|
68549
68549
|
if (schemaOk && !noSchema) {
|
|
68550
|
-
|
|
68550
|
+
try {
|
|
68551
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
68552
|
+
} catch (e2) {
|
|
68553
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e2}`);
|
|
68554
|
+
}
|
|
68551
68555
|
}
|
|
68552
68556
|
}
|
|
68553
68557
|
_config.plugins = orderedPlugins(plugins2);
|
|
@@ -68678,7 +68682,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
68678
68682
|
});
|
|
68679
68683
|
}
|
|
68680
68684
|
const contents = await readFile(schemaPath);
|
|
68681
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
68685
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
68682
68686
|
return graphql3.buildSchema(contents);
|
|
68683
68687
|
}
|
|
68684
68688
|
const jsonContents = JSON.parse(contents);
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -66344,7 +66344,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
66344
66344
|
content = await resp.text();
|
|
66345
66345
|
const jsonSchema = JSON.parse(content).data;
|
|
66346
66346
|
let fileData = "";
|
|
66347
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
66347
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
66348
66348
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
66349
66349
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
66350
66350
|
} else {
|
|
@@ -69889,7 +69889,11 @@ async function getConfig({
|
|
|
69889
69889
|
}
|
|
69890
69890
|
}
|
|
69891
69891
|
if (schemaOk && !noSchema) {
|
|
69892
|
-
|
|
69892
|
+
try {
|
|
69893
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
69894
|
+
} catch (e2) {
|
|
69895
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e2}`);
|
|
69896
|
+
}
|
|
69893
69897
|
}
|
|
69894
69898
|
}
|
|
69895
69899
|
_config.plugins = orderedPlugins(plugins);
|
|
@@ -70020,7 +70024,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
70020
70024
|
});
|
|
70021
70025
|
}
|
|
70022
70026
|
const contents = await readFile(schemaPath);
|
|
70023
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
70027
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
70024
70028
|
return graphql3.buildSchema(contents);
|
|
70025
70029
|
}
|
|
70026
70030
|
const jsonContents = JSON.parse(contents);
|
package/build/vite-esm/index.js
CHANGED
|
@@ -66338,7 +66338,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
|
|
|
66338
66338
|
content = await resp.text();
|
|
66339
66339
|
const jsonSchema = JSON.parse(content).data;
|
|
66340
66340
|
let fileData = "";
|
|
66341
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
66341
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
66342
66342
|
const schema = graphql.buildClientSchema(jsonSchema);
|
|
66343
66343
|
fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
|
|
66344
66344
|
} else {
|
|
@@ -69882,7 +69882,11 @@ async function getConfig({
|
|
|
69882
69882
|
}
|
|
69883
69883
|
}
|
|
69884
69884
|
if (schemaOk && !noSchema) {
|
|
69885
|
-
|
|
69885
|
+
try {
|
|
69886
|
+
_config.schema = await loadSchemaFile(_config.schemaPath);
|
|
69887
|
+
} catch (e2) {
|
|
69888
|
+
console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e2}`);
|
|
69889
|
+
}
|
|
69886
69890
|
}
|
|
69887
69891
|
}
|
|
69888
69892
|
_config.plugins = orderedPlugins(plugins);
|
|
@@ -70013,7 +70017,7 @@ async function loadSchemaFile(schemaPath) {
|
|
|
70013
70017
|
});
|
|
70014
70018
|
}
|
|
70015
70019
|
const contents = await readFile(schemaPath);
|
|
70016
|
-
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
|
|
70020
|
+
if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
|
|
70017
70021
|
return graphql3.buildSchema(contents);
|
|
70018
70022
|
}
|
|
70019
70023
|
const jsonContents = JSON.parse(contents);
|