houdini-svelte 1.0.6 → 1.0.7

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.
@@ -151537,6 +151537,12 @@ function inlineType({
151537
151537
  includeFragments,
151538
151538
  allOptional
151539
151539
  });
151540
+ const hasIncludeOrSkipDirective = selection2.directives && selection2.directives.filter(
151541
+ (directive) => directive.name.value === "include" || directive.name.value === "skip"
151542
+ ).length > 0;
151543
+ if (hasIncludeOrSkipDirective) {
151544
+ attributeType = AST10.tsUnionType([attributeType, AST10.tsUndefinedKeyword()]);
151545
+ }
151540
151546
  const prop = readonlyProperty(
151541
151547
  AST10.tsPropertySignature(
151542
151548
  AST10.identifier(attributeName),
@@ -151528,6 +151528,12 @@ function inlineType({
151528
151528
  includeFragments,
151529
151529
  allOptional
151530
151530
  });
151531
+ const hasIncludeOrSkipDirective = selection2.directives && selection2.directives.filter(
151532
+ (directive) => directive.name.value === "include" || directive.name.value === "skip"
151533
+ ).length > 0;
151534
+ if (hasIncludeOrSkipDirective) {
151535
+ attributeType = AST10.tsUnionType([attributeType, AST10.tsUndefinedKeyword()]);
151536
+ }
151531
151537
  const prop = readonlyProperty(
151532
151538
  AST10.tsPropertySignature(
151533
151539
  AST10.identifier(attributeName),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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.55.1",
34
34
  "vite": "^4.1.1",
35
- "houdini": "^1.0.6"
35
+ "houdini": "^1.0.7"
36
36
  },
37
37
  "files": [
38
38
  "build"