houdini-svelte 0.19.2 → 0.19.4

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.
@@ -156449,8 +156449,15 @@ function find_exported_fn(body, name2) {
156449
156449
  continue;
156450
156450
  }
156451
156451
  const declaration = value2.declarations[0];
156452
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
156453
- return declaration.init;
156452
+ let { init } = declaration;
156453
+ if (!init) {
156454
+ continue;
156455
+ }
156456
+ if (init.type === "TSSatisfiesExpression") {
156457
+ init = init.expression;
156458
+ }
156459
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
156460
+ return init;
156454
156461
  }
156455
156462
  } else {
156456
156463
  continue;
@@ -156444,8 +156444,15 @@ function find_exported_fn(body, name2) {
156444
156444
  continue;
156445
156445
  }
156446
156446
  const declaration = value2.declarations[0];
156447
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
156448
- return declaration.init;
156447
+ let { init } = declaration;
156448
+ if (!init) {
156449
+ continue;
156450
+ }
156451
+ if (init.type === "TSSatisfiesExpression") {
156452
+ init = init.expression;
156453
+ }
156454
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
156455
+ return init;
156449
156456
  }
156450
156457
  } else {
156451
156458
  continue;
@@ -188237,8 +188237,15 @@ function find_exported_fn(body, name2) {
188237
188237
  continue;
188238
188238
  }
188239
188239
  const declaration = value2.declarations[0];
188240
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
188241
- return declaration.init;
188240
+ let { init } = declaration;
188241
+ if (!init) {
188242
+ continue;
188243
+ }
188244
+ if (init.type === "TSSatisfiesExpression") {
188245
+ init = init.expression;
188246
+ }
188247
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
188248
+ return init;
188242
188249
  }
188243
188250
  } else {
188244
188251
  continue;
@@ -188229,8 +188229,15 @@ function find_exported_fn(body, name2) {
188229
188229
  continue;
188230
188230
  }
188231
188231
  const declaration = value2.declarations[0];
188232
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
188233
- return declaration.init;
188232
+ let { init } = declaration;
188233
+ if (!init) {
188234
+ continue;
188235
+ }
188236
+ if (init.type === "TSSatisfiesExpression") {
188237
+ init = init.expression;
188238
+ }
188239
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
188240
+ return init;
188234
188241
  }
188235
188242
  } else {
188236
188243
  continue;
@@ -272960,8 +272960,15 @@ function find_exported_fn(body, name2) {
272960
272960
  continue;
272961
272961
  }
272962
272962
  const declaration = value2.declarations[0];
272963
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
272964
- return declaration.init;
272963
+ let { init } = declaration;
272964
+ if (!init) {
272965
+ continue;
272966
+ }
272967
+ if (init.type === "TSSatisfiesExpression") {
272968
+ init = init.expression;
272969
+ }
272970
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
272971
+ return init;
272965
272972
  }
272966
272973
  } else {
272967
272974
  continue;
@@ -272949,8 +272949,15 @@ function find_exported_fn(body, name2) {
272949
272949
  continue;
272950
272950
  }
272951
272951
  const declaration = value2.declarations[0];
272952
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
272953
- return declaration.init;
272952
+ let { init } = declaration;
272953
+ if (!init) {
272954
+ continue;
272955
+ }
272956
+ if (init.type === "TSSatisfiesExpression") {
272957
+ init = init.expression;
272958
+ }
272959
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
272960
+ return init;
272954
272961
  }
272955
272962
  } else {
272956
272963
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "0.19.2",
3
+ "version": "0.19.4",
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.2"
34
+ "houdini": "^0.19.4"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "graphql": "^14.0.0 || ^15.0.0"