houdini 1.0.1 → 1.0.2

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.
@@ -78724,8 +78724,8 @@ async function updatePackageJSON(targetPath) {
78724
78724
  }
78725
78725
  packageJSON.devDependencies = {
78726
78726
  ...packageJSON.devDependencies,
78727
- houdini: "^1.0.1",
78728
- "houdini-svelte": "^1.0.1"
78727
+ houdini: "^1.0.2",
78728
+ "houdini-svelte": "^1.0.2"
78729
78729
  };
78730
78730
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
78731
78731
  }
@@ -78729,8 +78729,8 @@ async function updatePackageJSON(targetPath) {
78729
78729
  }
78730
78730
  packageJSON.devDependencies = {
78731
78731
  ...packageJSON.devDependencies,
78732
- houdini: "^1.0.1",
78733
- "houdini-svelte": "^1.0.1"
78732
+ houdini: "^1.0.2",
78733
+ "houdini-svelte": "^1.0.2"
78734
78734
  };
78735
78735
  await fs_exports.writeFile(packagePath, JSON.stringify(packageJSON, null, 4));
78736
78736
  }
@@ -7,5 +7,5 @@ export type Partial<T> = {
7
7
  [P in keyof T]?: T[P];
8
8
  };
9
9
  export declare function pipelineTest(config: Config, documents: string[], shouldPass: boolean, testBody?: ((result: Error | Error[]) => void) | ((docs: Document[]) => void)): () => Promise<void>;
10
- export declare function mockCollectedDoc(query: string): Document;
10
+ export declare function mockCollectedDoc(query: string, data?: Partial<Document>): Document;
11
11
  export declare function clearMock(): void;
@@ -62495,7 +62495,7 @@ function testConfig(config2 = {}) {
62495
62495
  }
62496
62496
  function pipelineTest(config2, documents, shouldPass, testBody) {
62497
62497
  return async () => {
62498
- const docs = documents.map(mockCollectedDoc);
62498
+ const docs = documents.map((doc) => mockCollectedDoc(doc));
62499
62499
  let error = [];
62500
62500
  try {
62501
62501
  await runPipeline2(config2, docs);
@@ -62514,7 +62514,7 @@ function pipelineTest(config2, documents, shouldPass, testBody) {
62514
62514
  }
62515
62515
  };
62516
62516
  }
62517
- function mockCollectedDoc(query2) {
62517
+ function mockCollectedDoc(query2, data) {
62518
62518
  const parsed = graphql25.parse(query2);
62519
62519
  const name = parsed.definitions[0].name.value;
62520
62520
  const operations = parsed.definitions;
@@ -62537,7 +62537,8 @@ function mockCollectedDoc(query2) {
62537
62537
  generateArtifact: true,
62538
62538
  generateStore: true,
62539
62539
  originalString: query2,
62540
- artifact: null
62540
+ artifact: null,
62541
+ ...data
62541
62542
  };
62542
62543
  }
62543
62544
  function clearMock() {
@@ -62490,7 +62490,7 @@ function testConfig(config2 = {}) {
62490
62490
  }
62491
62491
  function pipelineTest(config2, documents, shouldPass, testBody) {
62492
62492
  return async () => {
62493
- const docs = documents.map(mockCollectedDoc);
62493
+ const docs = documents.map((doc) => mockCollectedDoc(doc));
62494
62494
  let error = [];
62495
62495
  try {
62496
62496
  await runPipeline2(config2, docs);
@@ -62509,7 +62509,7 @@ function pipelineTest(config2, documents, shouldPass, testBody) {
62509
62509
  }
62510
62510
  };
62511
62511
  }
62512
- function mockCollectedDoc(query2) {
62512
+ function mockCollectedDoc(query2, data) {
62513
62513
  const parsed = graphql25.parse(query2);
62514
62514
  const name = parsed.definitions[0].name.value;
62515
62515
  const operations = parsed.definitions;
@@ -62532,7 +62532,8 @@ function mockCollectedDoc(query2) {
62532
62532
  generateArtifact: true,
62533
62533
  generateStore: true,
62534
62534
  originalString: query2,
62535
- artifact: null
62535
+ artifact: null,
62536
+ ...data
62536
62537
  };
62537
62538
  }
62538
62539
  function clearMock() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",