houdini-svelte 2.0.0-next.0 → 2.0.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.
@@ -89557,7 +89557,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
89557
89557
  content = await resp.text();
89558
89558
  const jsonSchema = JSON.parse(content).data;
89559
89559
  let fileData = "";
89560
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
89560
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
89561
89561
  const schema = graphql.buildClientSchema(jsonSchema);
89562
89562
  fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
89563
89563
  } else {
@@ -92808,7 +92808,11 @@ async function getConfig({
92808
92808
  }
92809
92809
  }
92810
92810
  if (schemaOk && !noSchema) {
92811
- _config.schema = await loadSchemaFile(_config.schemaPath);
92811
+ try {
92812
+ _config.schema = await loadSchemaFile(_config.schemaPath);
92813
+ } catch (e22) {
92814
+ console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e22}`);
92815
+ }
92812
92816
  }
92813
92817
  }
92814
92818
  _config.plugins = orderedPlugins(plugins2);
@@ -92939,7 +92943,7 @@ async function loadSchemaFile(schemaPath) {
92939
92943
  });
92940
92944
  }
92941
92945
  const contents = await readFile(schemaPath);
92942
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
92946
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
92943
92947
  return graphql3.buildSchema(contents);
92944
92948
  }
92945
92949
  const jsonContents = JSON.parse(contents);
@@ -89554,7 +89554,7 @@ async function pullSchema(url, fetchTimeout, schemaPath, headers, skipWriting) {
89554
89554
  content = await resp.text();
89555
89555
  const jsonSchema = JSON.parse(content).data;
89556
89556
  let fileData = "";
89557
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
89557
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
89558
89558
  const schema = graphql.buildClientSchema(jsonSchema);
89559
89559
  fileData = graphql.printSchema(graphql.lexicographicSortSchema(schema));
89560
89560
  } else {
@@ -92805,7 +92805,11 @@ async function getConfig({
92805
92805
  }
92806
92806
  }
92807
92807
  if (schemaOk && !noSchema) {
92808
- _config.schema = await loadSchemaFile(_config.schemaPath);
92808
+ try {
92809
+ _config.schema = await loadSchemaFile(_config.schemaPath);
92810
+ } catch (e22) {
92811
+ console.error(`\u26A0\uFE0F Your schema file could not be loaded: ${e22}`);
92812
+ }
92809
92813
  }
92810
92814
  }
92811
92815
  _config.plugins = orderedPlugins(plugins2);
@@ -92936,7 +92940,7 @@ async function loadSchemaFile(schemaPath) {
92936
92940
  });
92937
92941
  }
92938
92942
  const contents = await readFile(schemaPath);
92939
- if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
92943
+ if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql") || schemaPath.endsWith("graphqls")) {
92940
92944
  return graphql3.buildSchema(contents);
92941
92945
  }
92942
92946
  const jsonContents = JSON.parse(contents);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "2.0.0-next.0",
3
+ "version": "2.0.1",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -33,7 +33,7 @@
33
33
  "rollup": "^3.7.4",
34
34
  "svelte": "^5.0.0",
35
35
  "vite": "^5.3.3",
36
- "houdini": "^1.3.0-next.0"
36
+ "houdini": "^1.3.1"
37
37
  },
38
38
  "files": [
39
39
  "build"