houdini 0.19.2 → 0.19.3

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.
@@ -77733,8 +77733,8 @@ async function updatePackageJSON(targetPath) {
77733
77733
  }
77734
77734
  packageJSON.devDependencies = {
77735
77735
  ...packageJSON.devDependencies,
77736
- houdini: "^0.19.2",
77737
- "houdini-svelte": "^0.19.2",
77736
+ houdini: "^0.19.3",
77737
+ "houdini-svelte": "^0.19.3",
77738
77738
  graphql: "^15.8.0"
77739
77739
  };
77740
77740
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
@@ -77738,8 +77738,8 @@ async function updatePackageJSON(targetPath) {
77738
77738
  }
77739
77739
  packageJSON.devDependencies = {
77740
77740
  ...packageJSON.devDependencies,
77741
- houdini: "^0.19.2",
77742
- "houdini-svelte": "^0.19.2",
77741
+ houdini: "^0.19.3",
77742
+ "houdini-svelte": "^0.19.3",
77743
77743
  graphql: "^15.8.0"
77744
77744
  };
77745
77745
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
@@ -74264,7 +74264,9 @@ function find_insert_index(script) {
74264
74264
  return insert_index;
74265
74265
  }
74266
74266
  function find_exported_fn(body, name2) {
74267
+ console.log(body);
74267
74268
  for (const statement of body) {
74269
+ console.log(statement);
74268
74270
  if (statement.type !== "ExportNamedDeclaration") {
74269
74271
  continue;
74270
74272
  }
@@ -74280,8 +74282,15 @@ function find_exported_fn(body, name2) {
74280
74282
  continue;
74281
74283
  }
74282
74284
  const declaration = value.declarations[0];
74283
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
74284
- return declaration.init;
74285
+ let { init } = declaration;
74286
+ if (!init) {
74287
+ continue;
74288
+ }
74289
+ if (init.type === "TSSatisfiesExpression") {
74290
+ init = init.expression;
74291
+ }
74292
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
74293
+ return init;
74285
74294
  }
74286
74295
  } else {
74287
74296
  continue;
@@ -74258,7 +74258,9 @@ function find_insert_index(script) {
74258
74258
  return insert_index;
74259
74259
  }
74260
74260
  function find_exported_fn(body, name2) {
74261
+ console.log(body);
74261
74262
  for (const statement of body) {
74263
+ console.log(statement);
74262
74264
  if (statement.type !== "ExportNamedDeclaration") {
74263
74265
  continue;
74264
74266
  }
@@ -74274,8 +74276,15 @@ function find_exported_fn(body, name2) {
74274
74276
  continue;
74275
74277
  }
74276
74278
  const declaration = value.declarations[0];
74277
- if (declaration.init?.type === "FunctionExpression" || declaration.init?.type === "ArrowFunctionExpression") {
74278
- return declaration.init;
74279
+ let { init } = declaration;
74280
+ if (!init) {
74281
+ continue;
74282
+ }
74283
+ if (init.type === "TSSatisfiesExpression") {
74284
+ init = init.expression;
74285
+ }
74286
+ if (init.type === "FunctionExpression" || init.type === "ArrowFunctionExpression") {
74287
+ return init;
74279
74288
  }
74280
74289
  } else {
74281
74290
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",