houdini-svelte 1.2.51 → 1.2.53
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.
package/build/test-cjs/index.js
CHANGED
|
@@ -137680,6 +137680,7 @@ function artifactGenerator(stats) {
|
|
|
137680
137680
|
return;
|
|
137681
137681
|
}
|
|
137682
137682
|
const usedVariableNames = /* @__PURE__ */ new Set();
|
|
137683
|
+
const unusedVariables = /* @__PURE__ */ new Set();
|
|
137683
137684
|
let documentWithoutInternalDirectives = graphql17.visit(document2, {
|
|
137684
137685
|
Directive(node2) {
|
|
137685
137686
|
if (config2.isInternalDirective(node2.name.value)) {
|
|
@@ -137699,6 +137700,7 @@ function artifactGenerator(stats) {
|
|
|
137699
137700
|
VariableDefinition(variableDefinitionNode) {
|
|
137700
137701
|
const name2 = variableDefinitionNode.variable.name.value;
|
|
137701
137702
|
if (!usedVariableNames.has(name2)) {
|
|
137703
|
+
unusedVariables.add(name2);
|
|
137702
137704
|
return null;
|
|
137703
137705
|
}
|
|
137704
137706
|
}
|
|
@@ -137787,6 +137789,7 @@ function artifactGenerator(stats) {
|
|
|
137787
137789
|
refetch: doc.refetch,
|
|
137788
137790
|
raw: rawString,
|
|
137789
137791
|
rootType,
|
|
137792
|
+
stripVariables: [...unusedVariables],
|
|
137790
137793
|
selection: selection_default({
|
|
137791
137794
|
config: config2,
|
|
137792
137795
|
filepath: doc.filename,
|
package/build/test-esm/index.js
CHANGED
|
@@ -137671,6 +137671,7 @@ function artifactGenerator(stats) {
|
|
|
137671
137671
|
return;
|
|
137672
137672
|
}
|
|
137673
137673
|
const usedVariableNames = /* @__PURE__ */ new Set();
|
|
137674
|
+
const unusedVariables = /* @__PURE__ */ new Set();
|
|
137674
137675
|
let documentWithoutInternalDirectives = graphql17.visit(document2, {
|
|
137675
137676
|
Directive(node2) {
|
|
137676
137677
|
if (config2.isInternalDirective(node2.name.value)) {
|
|
@@ -137690,6 +137691,7 @@ function artifactGenerator(stats) {
|
|
|
137690
137691
|
VariableDefinition(variableDefinitionNode) {
|
|
137691
137692
|
const name2 = variableDefinitionNode.variable.name.value;
|
|
137692
137693
|
if (!usedVariableNames.has(name2)) {
|
|
137694
|
+
unusedVariables.add(name2);
|
|
137693
137695
|
return null;
|
|
137694
137696
|
}
|
|
137695
137697
|
}
|
|
@@ -137778,6 +137780,7 @@ function artifactGenerator(stats) {
|
|
|
137778
137780
|
refetch: doc.refetch,
|
|
137779
137781
|
raw: rawString,
|
|
137780
137782
|
rootType,
|
|
137783
|
+
stripVariables: [...unusedVariables],
|
|
137781
137784
|
selection: selection_default({
|
|
137782
137785
|
config: config2,
|
|
137783
137786
|
filepath: doc.filename,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.53",
|
|
4
4
|
"description": "The svelte plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"rollup": "^3.7.4",
|
|
34
34
|
"svelte": "^3.57.0",
|
|
35
35
|
"vite": "^4.1.1",
|
|
36
|
-
"houdini": "^1.2.
|
|
36
|
+
"houdini": "^1.2.53"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"build"
|