houdini-svelte 0.20.0 → 0.20.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.
@@ -184821,7 +184821,7 @@ function is_route(config4, framework2, filepath) {
184821
184821
  if (framework2 === "svelte") {
184822
184822
  return false;
184823
184823
  }
184824
- if (!filepath.startsWith(config4.routesDir)) {
184824
+ if (!filepath.startsWith(config4.routesDir) && !filepath.startsWith(path_exports.join(config4.projectRoot, config4.routesDir))) {
184825
184825
  return false;
184826
184826
  }
184827
184827
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -184981,11 +184981,12 @@ async function walk_routes(config4, framework2, visitor, dirpath = config4.route
184981
184981
  }
184982
184982
  if (visitor.route && validRoute) {
184983
184983
  const relative_path_regex = /src(.*)/;
184984
+ const local = dirpath.replace(config4.projectRoot, "");
184984
184985
  const svelteTypeFilePath = path_exports.join(
184985
184986
  config4.projectRoot,
184986
184987
  ".svelte-kit",
184987
184988
  "types",
184988
- dirpath.match(relative_path_regex)?.[0] ?? "",
184989
+ local.match(relative_path_regex)?.[0] ?? "",
184989
184990
  "$types.d.ts"
184990
184991
  );
184991
184992
  if (!fs_exports.existsSync(svelteTypeFilePath)) {
@@ -184816,7 +184816,7 @@ function is_route(config4, framework2, filepath) {
184816
184816
  if (framework2 === "svelte") {
184817
184817
  return false;
184818
184818
  }
184819
- if (!filepath.startsWith(config4.routesDir)) {
184819
+ if (!filepath.startsWith(config4.routesDir) && !filepath.startsWith(path_exports.join(config4.projectRoot, config4.routesDir))) {
184820
184820
  return false;
184821
184821
  }
184822
184822
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -184976,11 +184976,12 @@ async function walk_routes(config4, framework2, visitor, dirpath = config4.route
184976
184976
  }
184977
184977
  if (visitor.route && validRoute) {
184978
184978
  const relative_path_regex = /src(.*)/;
184979
+ const local = dirpath.replace(config4.projectRoot, "");
184979
184980
  const svelteTypeFilePath = path_exports.join(
184980
184981
  config4.projectRoot,
184981
184982
  ".svelte-kit",
184982
184983
  "types",
184983
- dirpath.match(relative_path_regex)?.[0] ?? "",
184984
+ local.match(relative_path_regex)?.[0] ?? "",
184984
184985
  "$types.d.ts"
184985
184986
  );
184986
184987
  if (!fs_exports.existsSync(svelteTypeFilePath)) {
@@ -188596,7 +188596,7 @@ function is_route(config4, framework, filepath) {
188596
188596
  if (framework === "svelte") {
188597
188597
  return false;
188598
188598
  }
188599
- if (!filepath.startsWith(config4.routesDir)) {
188599
+ if (!filepath.startsWith(config4.routesDir) && !filepath.startsWith(path_exports.join(config4.projectRoot, config4.routesDir))) {
188600
188600
  return false;
188601
188601
  }
188602
188602
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -188588,7 +188588,7 @@ function is_route(config4, framework, filepath) {
188588
188588
  if (framework === "svelte") {
188589
188589
  return false;
188590
188590
  }
188591
- if (!filepath.startsWith(config4.routesDir)) {
188591
+ if (!filepath.startsWith(config4.routesDir) && !filepath.startsWith(path_exports.join(config4.projectRoot, config4.routesDir))) {
188592
188592
  return false;
188593
188593
  }
188594
188594
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -301362,7 +301362,7 @@ function is_route(config5, framework2, filepath) {
301362
301362
  if (framework2 === "svelte") {
301363
301363
  return false;
301364
301364
  }
301365
- if (!filepath.startsWith(config5.routesDir)) {
301365
+ if (!filepath.startsWith(config5.routesDir) && !filepath.startsWith(path_exports.join(config5.projectRoot, config5.routesDir))) {
301366
301366
  return false;
301367
301367
  }
301368
301368
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -301522,11 +301522,12 @@ async function walk_routes(config5, framework2, visitor, dirpath = config5.route
301522
301522
  }
301523
301523
  if (visitor.route && validRoute) {
301524
301524
  const relative_path_regex = /src(.*)/;
301525
+ const local = dirpath.replace(config5.projectRoot, "");
301525
301526
  const svelteTypeFilePath = path_exports.join(
301526
301527
  config5.projectRoot,
301527
301528
  ".svelte-kit",
301528
301529
  "types",
301529
- dirpath.match(relative_path_regex)?.[0] ?? "",
301530
+ local.match(relative_path_regex)?.[0] ?? "",
301530
301531
  "$types.d.ts"
301531
301532
  );
301532
301533
  if (!fs_exports.existsSync(svelteTypeFilePath)) {
@@ -301351,7 +301351,7 @@ function is_route(config5, framework2, filepath) {
301351
301351
  if (framework2 === "svelte") {
301352
301352
  return false;
301353
301353
  }
301354
- if (!filepath.startsWith(config5.routesDir)) {
301354
+ if (!filepath.startsWith(config5.routesDir) && !filepath.startsWith(path_exports.join(config5.projectRoot, config5.routesDir))) {
301355
301355
  return false;
301356
301356
  }
301357
301357
  return ["+layout.svelte", "+page.svelte"].includes(path_exports.parse(filepath).base);
@@ -301511,11 +301511,12 @@ async function walk_routes(config5, framework2, visitor, dirpath = config5.route
301511
301511
  }
301512
301512
  if (visitor.route && validRoute) {
301513
301513
  const relative_path_regex = /src(.*)/;
301514
+ const local = dirpath.replace(config5.projectRoot, "");
301514
301515
  const svelteTypeFilePath = path_exports.join(
301515
301516
  config5.projectRoot,
301516
301517
  ".svelte-kit",
301517
301518
  "types",
301518
- dirpath.match(relative_path_regex)?.[0] ?? "",
301519
+ local.match(relative_path_regex)?.[0] ?? "",
301519
301520
  "$types.d.ts"
301520
301521
  );
301521
301522
  if (!fs_exports.existsSync(svelteTypeFilePath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
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.20.0"
34
+ "houdini": "^0.20.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "graphql": "^14.0.0 || ^15.0.0"