houdini-svelte 1.2.12 → 1.2.13

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.
@@ -16418,7 +16418,6 @@ var import_node_util4 = require("node:util");
16418
16418
  var graphql3 = __toESM(require("graphql"), 1);
16419
16419
  var graphql4 = __toESM(require("graphql"), 1);
16420
16420
  var graphql5 = __toESM(require("graphql"), 1);
16421
- var import_vite = require("vite");
16422
16421
  var import_meta = {};
16423
16422
  var require2 = (0, import_module.createRequire)(import_meta.url);
16424
16423
  var __create2 = Object.create;
@@ -78705,7 +78704,7 @@ var t2 = __toESM2(require_lib6(), 1);
78705
78704
 
78706
78705
  // src/plugin/index.ts
78707
78706
  var url = __toESM(require("node:url"), 1);
78708
- var import_vite9 = require("vite");
78707
+ var import_vite7 = require("vite");
78709
78708
 
78710
78709
  // src/plugin/artifactData.ts
78711
78710
  var graphql6 = __toESM(require("graphql"), 1);
@@ -78798,7 +78797,6 @@ var import_node_util8 = require("node:util");
78798
78797
  var graphql32 = __toESM(require("graphql"), 1);
78799
78798
  var graphql42 = __toESM(require("graphql"), 1);
78800
78799
  var graphql52 = __toESM(require("graphql"), 1);
78801
- var import_vite2 = require("vite");
78802
78800
  var graphql15 = __toESM(require("graphql"), 1);
78803
78801
  var graphql62 = __toESM(require("graphql"), 1);
78804
78802
  var import_graphql61 = require("graphql");
@@ -172115,7 +172113,7 @@ function logYellow(str) {
172115
172113
 
172116
172114
  // src/plugin/extractLoadFunction.ts
172117
172115
  var graphql29 = __toESM(require("graphql"), 1);
172118
- var import_vite3 = require("vite");
172116
+ var import_vite = require("vite");
172119
172117
 
172120
172118
  // src/plugin/naming.ts
172121
172119
  var query_variable_fn = (name) => {
@@ -172138,7 +172136,7 @@ async function extract_load_function(config4, filepath, mockArtifacts) {
172138
172136
  }
172139
172137
  let transformed = contents;
172140
172138
  if (filepath.endsWith(".ts")) {
172141
- transformed = (await (0, import_vite3.transformWithEsbuild)(contents, filepath)).code;
172139
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
172142
172140
  }
172143
172141
  if (transformed === null) {
172144
172142
  return nil;
@@ -174685,7 +174683,7 @@ directive @${config4.blockingDisableDirective} on QUERY
174685
174683
  svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
174686
174684
  } catch {
174687
174685
  }
174688
- _env = (0, import_vite9.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
174686
+ _env = (0, import_vite7.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
174689
174687
  return _env;
174690
174688
  }
174691
174689
  });
@@ -16410,7 +16410,6 @@ import { deprecate as deprecate2 } from "node:util";
16410
16410
  import * as graphql3 from "graphql";
16411
16411
  import * as graphql4 from "graphql";
16412
16412
  import * as graphql5 from "graphql";
16413
- import { build } from "vite";
16414
16413
  var require2 = conflict_free(import.meta.url);
16415
16414
  var __create2 = Object.create;
16416
16415
  var __defProp2 = Object.defineProperty;
@@ -78789,7 +78788,6 @@ import { deprecate as deprecate22 } from "node:util";
78789
78788
  import * as graphql32 from "graphql";
78790
78789
  import * as graphql42 from "graphql";
78791
78790
  import * as graphql52 from "graphql";
78792
- import { build as build2 } from "vite";
78793
78791
  import * as graphql15 from "graphql";
78794
78792
  import * as graphql62 from "graphql";
78795
78793
  import { Kind as GraphqlKinds } from "graphql";
@@ -16422,7 +16422,6 @@ var import_node_net = require("node:net");
16422
16422
  var graphql3 = __toESM(require("graphql"), 1);
16423
16423
  var graphql4 = __toESM(require("graphql"), 1);
16424
16424
  var graphql5 = __toESM(require("graphql"), 1);
16425
- var import_vite = require("vite");
16426
16425
  var import_meta = {};
16427
16426
  var require2 = (0, import_module.createRequire)(import_meta.url);
16428
16427
  var __create2 = Object.create;
@@ -110497,7 +110496,6 @@ var import_node_util8 = require("node:util");
110497
110496
  var graphql32 = __toESM(require("graphql"), 1);
110498
110497
  var graphql42 = __toESM(require("graphql"), 1);
110499
110498
  var graphql52 = __toESM(require("graphql"), 1);
110500
- var import_vite2 = require("vite");
110501
110499
  var graphql15 = __toESM(require("graphql"), 1);
110502
110500
  var graphql62 = __toESM(require("graphql"), 1);
110503
110501
  var import_graphql61 = require("graphql");
@@ -176157,7 +176155,7 @@ var graphql30 = __toESM(require("graphql"), 1);
176157
176155
 
176158
176156
  // src/plugin/extractLoadFunction.ts
176159
176157
  var graphql29 = __toESM(require("graphql"), 1);
176160
- var import_vite3 = require("vite");
176158
+ var import_vite = require("vite");
176161
176159
 
176162
176160
  // src/plugin/naming.ts
176163
176161
  var query_variable_fn = (name) => {
@@ -176180,7 +176178,7 @@ async function extract_load_function(config5, filepath, mockArtifacts) {
176180
176178
  }
176181
176179
  let transformed = contents;
176182
176180
  if (filepath.endsWith(".ts")) {
176183
- transformed = (await (0, import_vite3.transformWithEsbuild)(contents, filepath)).code;
176181
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
176184
176182
  }
176185
176183
  if (transformed === null) {
176186
176184
  return nil;
@@ -16416,7 +16416,6 @@ import { isIP } from "node:net";
16416
16416
  import * as graphql3 from "graphql";
16417
16417
  import * as graphql4 from "graphql";
16418
16418
  import * as graphql5 from "graphql";
16419
- import { build } from "vite";
16420
16419
  var require2 = conflict_free(import.meta.url);
16421
16420
  var __create2 = Object.create;
16422
16421
  var __defProp2 = Object.defineProperty;
@@ -110490,7 +110489,6 @@ import { deprecate as deprecate22 } from "node:util";
110490
110489
  import * as graphql32 from "graphql";
110491
110490
  import * as graphql42 from "graphql";
110492
110491
  import * as graphql52 from "graphql";
110493
- import { build as build2 } from "vite";
110494
110492
  import * as graphql15 from "graphql";
110495
110493
  import * as graphql62 from "graphql";
110496
110494
  import { Kind as GraphqlKinds } from "graphql";
@@ -16421,7 +16421,6 @@ var import_node_util4 = require("node:util");
16421
16421
  var graphql3 = __toESM(require("graphql"), 1);
16422
16422
  var graphql4 = __toESM(require("graphql"), 1);
16423
16423
  var graphql5 = __toESM(require("graphql"), 1);
16424
- var import_vite = require("vite");
16425
16424
  var import_meta = {};
16426
16425
  var require2 = (0, import_module.createRequire)(import_meta.url);
16427
16426
  var __create2 = Object.create;
@@ -78720,7 +78719,6 @@ var graphql32 = __toESM(require("graphql"), 1);
78720
78719
  var import_node_crypto = __toESM(require("node:crypto"), 1);
78721
78720
  var graphql42 = __toESM(require("graphql"), 1);
78722
78721
  var graphql52 = __toESM(require("graphql"), 1);
78723
- var import_vite2 = require("vite");
78724
78722
  var graphql15 = __toESM(require("graphql"), 1);
78725
78723
  var graphql62 = __toESM(require("graphql"), 1);
78726
78724
  var import_graphql31 = require("graphql");
@@ -136565,9 +136563,11 @@ function serializeValue(value2) {
136565
136563
  }
136566
136564
  if (typeof value2 === "object" && value2 !== null) {
136567
136565
  return AST4.objectExpression(
136568
- Object.entries(value2).filter(([, value22]) => typeof value22 !== "undefined").map(
136569
- ([key, value22]) => AST4.objectProperty(AST4.stringLiteral(key), serializeValue(value22))
136570
- )
136566
+ Object.entries(value2).filter(
136567
+ ([key, value22]) => typeof value22 !== "undefined" && key !== "prev" && key !== "next"
136568
+ ).map(([key, val]) => {
136569
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
136570
+ })
136571
136571
  );
136572
136572
  }
136573
136573
  if (typeof value2 === "string") {
@@ -140716,7 +140716,7 @@ function validateFragmentArguments(config22, filepath, fragments) {
140716
140716
  if (missing.length > 0) {
140717
140717
  ctx.reportError(
140718
140718
  new graphql26.GraphQLError(
140719
- "The following arguments are missing from this fragment: " + JSON.stringify(missing)
140719
+ `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
140720
140720
  )
140721
140721
  );
140722
140722
  return;
@@ -141376,7 +141376,6 @@ var graphql30 = __toESM(require("graphql"), 1);
141376
141376
  var graphql33 = __toESM(require("graphql"), 1);
141377
141377
  var graphql43 = __toESM(require("graphql"), 1);
141378
141378
  var graphql53 = __toESM(require("graphql"), 1);
141379
- var import_vite3 = require("vite");
141380
141379
  var graphql152 = __toESM(require("graphql"), 1);
141381
141380
  var graphql63 = __toESM(require("graphql"), 1);
141382
141381
  var import_graphql32 = require("graphql");
@@ -198725,6 +198724,10 @@ function testConfigFile({ plugins, ...config22 } = {}) {
198725
198724
 
198726
198725
  directive @live on QUERY
198727
198726
 
198727
+ input MyInput {
198728
+ string: String
198729
+ }
198730
+
198728
198731
  type User implements Node & Friend & CatOwner {
198729
198732
  id: ID!
198730
198733
  name: String!
@@ -199035,7 +199038,7 @@ function mockCollectedDoc(query22, data2) {
199035
199038
 
199036
199039
  // src/plugin/index.ts
199037
199040
  var url = __toESM(require("node:url"), 1);
199038
- var import_vite11 = require("vite");
199041
+ var import_vite7 = require("vite");
199039
199042
 
199040
199043
  // src/plugin/artifactData.ts
199041
199044
  var graphql31 = __toESM(require("graphql"), 1);
@@ -199128,7 +199131,6 @@ var import_node_util10 = require("node:util");
199128
199131
  var graphql35 = __toESM(require("graphql"), 1);
199129
199132
  var graphql44 = __toESM(require("graphql"), 1);
199130
199133
  var graphql54 = __toESM(require("graphql"), 1);
199131
- var import_vite4 = require("vite");
199132
199134
  var graphql153 = __toESM(require("graphql"), 1);
199133
199135
  var graphql64 = __toESM(require("graphql"), 1);
199134
199136
  var import_graphql63 = require("graphql");
@@ -292445,7 +292447,7 @@ function logYellow2(str) {
292445
292447
 
292446
292448
  // src/plugin/extractLoadFunction.ts
292447
292449
  var graphql36 = __toESM(require("graphql"), 1);
292448
- var import_vite5 = require("vite");
292450
+ var import_vite = require("vite");
292449
292451
 
292450
292452
  // src/plugin/naming.ts
292451
292453
  var query_variable_fn = (name) => {
@@ -292468,7 +292470,7 @@ async function extract_load_function(config5, filepath, mockArtifacts) {
292468
292470
  }
292469
292471
  let transformed = contents;
292470
292472
  if (filepath.endsWith(".ts")) {
292471
- transformed = (await (0, import_vite5.transformWithEsbuild)(contents, filepath)).code;
292473
+ transformed = (await (0, import_vite.transformWithEsbuild)(contents, filepath)).code;
292472
292474
  }
292473
292475
  if (transformed === null) {
292474
292476
  return nil;
@@ -295015,7 +295017,7 @@ directive @${config5.blockingDisableDirective} on QUERY
295015
295017
  svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
295016
295018
  } catch {
295017
295019
  }
295018
- _env = (0, import_vite11.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
295020
+ _env = (0, import_vite7.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
295019
295021
  return _env;
295020
295022
  }
295021
295023
  });
@@ -16410,7 +16410,6 @@ import { deprecate as deprecate2 } from "node:util";
16410
16410
  import * as graphql3 from "graphql";
16411
16411
  import * as graphql4 from "graphql";
16412
16412
  import * as graphql5 from "graphql";
16413
- import { build } from "vite";
16414
16413
  var require2 = conflict_free(import.meta.url);
16415
16414
  var __create2 = Object.create;
16416
16415
  var __defProp2 = Object.defineProperty;
@@ -78708,7 +78707,6 @@ import * as graphql32 from "graphql";
78708
78707
  import crypto2 from "node:crypto";
78709
78708
  import * as graphql42 from "graphql";
78710
78709
  import * as graphql52 from "graphql";
78711
- import { build as build2 } from "vite";
78712
78710
  import * as graphql15 from "graphql";
78713
78711
  import * as graphql62 from "graphql";
78714
78712
  import { Kind as GraphqlKinds } from "graphql";
@@ -136552,9 +136550,11 @@ function serializeValue(value2) {
136552
136550
  }
136553
136551
  if (typeof value2 === "object" && value2 !== null) {
136554
136552
  return AST4.objectExpression(
136555
- Object.entries(value2).filter(([, value22]) => typeof value22 !== "undefined").map(
136556
- ([key, value22]) => AST4.objectProperty(AST4.stringLiteral(key), serializeValue(value22))
136557
- )
136553
+ Object.entries(value2).filter(
136554
+ ([key, value22]) => typeof value22 !== "undefined" && key !== "prev" && key !== "next"
136555
+ ).map(([key, val]) => {
136556
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
136557
+ })
136558
136558
  );
136559
136559
  }
136560
136560
  if (typeof value2 === "string") {
@@ -140703,7 +140703,7 @@ function validateFragmentArguments(config22, filepath, fragments) {
140703
140703
  if (missing.length > 0) {
140704
140704
  ctx.reportError(
140705
140705
  new graphql26.GraphQLError(
140706
- "The following arguments are missing from this fragment: " + JSON.stringify(missing)
140706
+ `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
140707
140707
  )
140708
140708
  );
140709
140709
  return;
@@ -141363,7 +141363,6 @@ import * as graphql30 from "graphql";
141363
141363
  import * as graphql33 from "graphql";
141364
141364
  import * as graphql43 from "graphql";
141365
141365
  import * as graphql53 from "graphql";
141366
- import { build as build3 } from "vite";
141367
141366
  import * as graphql152 from "graphql";
141368
141367
  import * as graphql63 from "graphql";
141369
141368
  import { Kind as GraphqlKinds3 } from "graphql";
@@ -198711,6 +198710,10 @@ function testConfigFile({ plugins, ...config22 } = {}) {
198711
198710
 
198712
198711
  directive @live on QUERY
198713
198712
 
198713
+ input MyInput {
198714
+ string: String
198715
+ }
198716
+
198714
198717
  type User implements Node & Friend & CatOwner {
198715
198718
  id: ID!
198716
198719
  name: String!
@@ -199114,7 +199117,6 @@ import { deprecate as deprecate22 } from "node:util";
199114
199117
  import * as graphql35 from "graphql";
199115
199118
  import * as graphql44 from "graphql";
199116
199119
  import * as graphql54 from "graphql";
199117
- import { build as build4 } from "vite";
199118
199120
  import * as graphql153 from "graphql";
199119
199121
  import * as graphql64 from "graphql";
199120
199122
  import { Kind as GraphqlKinds4 } from "graphql";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -32,7 +32,7 @@
32
32
  "rollup": "^3.7.4",
33
33
  "svelte": "^3.57.0",
34
34
  "vite": "^4.1.1",
35
- "houdini": "^1.2.12"
35
+ "houdini": "^1.2.13"
36
36
  },
37
37
  "files": [
38
38
  "build"