houdini 1.2.38 → 1.2.40
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/cmd-cjs/index.js +4 -7
- package/build/cmd-esm/index.js +4 -7
- package/build/codegen-cjs/index.js +2 -5
- package/build/codegen-esm/index.js +2 -5
- package/build/lib-cjs/index.js +2 -5
- package/build/lib-esm/index.js +2 -5
- package/build/runtime-cjs/cache/cache.js +2 -5
- package/build/runtime-esm/cache/cache.js +2 -5
- package/build/test-cjs/index.js +2 -5
- package/build/test-esm/index.js +2 -5
- package/build/vite-cjs/index.js +2 -5
- package/build/vite-esm/index.js +2 -5
- package/package.json +1 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -66827,10 +66827,7 @@ var CacheInternal = class {
|
|
|
66827
66827
|
});
|
|
66828
66828
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
66829
66829
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
66830
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
66831
|
-
if (typeof target !== "string") {
|
|
66832
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
66833
|
-
}
|
|
66830
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
66834
66831
|
const targetID = this.id(operation.type, target);
|
|
66835
66832
|
if (!targetID) {
|
|
66836
66833
|
continue;
|
|
@@ -67030,7 +67027,7 @@ var CacheInternal = class {
|
|
|
67030
67027
|
};
|
|
67031
67028
|
}
|
|
67032
67029
|
id(type, data) {
|
|
67033
|
-
const id = typeof data === "
|
|
67030
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
67034
67031
|
if (!id) {
|
|
67035
67032
|
return null;
|
|
67036
67033
|
}
|
|
@@ -78124,12 +78121,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
78124
78121
|
}
|
|
78125
78122
|
packageJSON2.devDependencies = {
|
|
78126
78123
|
...packageJSON2.devDependencies,
|
|
78127
|
-
houdini: "^1.2.
|
|
78124
|
+
houdini: "^1.2.40"
|
|
78128
78125
|
};
|
|
78129
78126
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
78130
78127
|
packageJSON2.devDependencies = {
|
|
78131
78128
|
...packageJSON2.devDependencies,
|
|
78132
|
-
"houdini-svelte": "^1.2.
|
|
78129
|
+
"houdini-svelte": "^1.2.40"
|
|
78133
78130
|
};
|
|
78134
78131
|
} else {
|
|
78135
78132
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -66833,10 +66833,7 @@ var CacheInternal = class {
|
|
|
66833
66833
|
});
|
|
66834
66834
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
66835
66835
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
66836
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
66837
|
-
if (typeof target !== "string") {
|
|
66838
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
66839
|
-
}
|
|
66836
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
66840
66837
|
const targetID = this.id(operation.type, target);
|
|
66841
66838
|
if (!targetID) {
|
|
66842
66839
|
continue;
|
|
@@ -67036,7 +67033,7 @@ var CacheInternal = class {
|
|
|
67036
67033
|
};
|
|
67037
67034
|
}
|
|
67038
67035
|
id(type, data) {
|
|
67039
|
-
const id = typeof data === "
|
|
67036
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
67040
67037
|
if (!id) {
|
|
67041
67038
|
return null;
|
|
67042
67039
|
}
|
|
@@ -78129,12 +78126,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
78129
78126
|
}
|
|
78130
78127
|
packageJSON2.devDependencies = {
|
|
78131
78128
|
...packageJSON2.devDependencies,
|
|
78132
|
-
houdini: "^1.2.
|
|
78129
|
+
houdini: "^1.2.40"
|
|
78133
78130
|
};
|
|
78134
78131
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
78135
78132
|
packageJSON2.devDependencies = {
|
|
78136
78133
|
...packageJSON2.devDependencies,
|
|
78137
|
-
"houdini-svelte": "^1.2.
|
|
78134
|
+
"houdini-svelte": "^1.2.40"
|
|
78138
78135
|
};
|
|
78139
78136
|
} else {
|
|
78140
78137
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -56201,10 +56201,7 @@ var CacheInternal = class {
|
|
|
56201
56201
|
});
|
|
56202
56202
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
56203
56203
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
56204
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
56205
|
-
if (typeof target !== "string") {
|
|
56206
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
56207
|
-
}
|
|
56204
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
56208
56205
|
const targetID = this.id(operation.type, target);
|
|
56209
56206
|
if (!targetID) {
|
|
56210
56207
|
continue;
|
|
@@ -56404,7 +56401,7 @@ var CacheInternal = class {
|
|
|
56404
56401
|
};
|
|
56405
56402
|
}
|
|
56406
56403
|
id(type, data) {
|
|
56407
|
-
const id = typeof data === "
|
|
56404
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
56408
56405
|
if (!id) {
|
|
56409
56406
|
return null;
|
|
56410
56407
|
}
|
|
@@ -56201,10 +56201,7 @@ var CacheInternal = class {
|
|
|
56201
56201
|
});
|
|
56202
56202
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
56203
56203
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
56204
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
56205
|
-
if (typeof target !== "string") {
|
|
56206
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
56207
|
-
}
|
|
56204
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
56208
56205
|
const targetID = this.id(operation.type, target);
|
|
56209
56206
|
if (!targetID) {
|
|
56210
56207
|
continue;
|
|
@@ -56404,7 +56401,7 @@ var CacheInternal = class {
|
|
|
56404
56401
|
};
|
|
56405
56402
|
}
|
|
56406
56403
|
id(type, data) {
|
|
56407
|
-
const id = typeof data === "
|
|
56404
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
56408
56405
|
if (!id) {
|
|
56409
56406
|
return null;
|
|
56410
56407
|
}
|
package/build/lib-cjs/index.js
CHANGED
|
@@ -65293,10 +65293,7 @@ var CacheInternal = class {
|
|
|
65293
65293
|
});
|
|
65294
65294
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
65295
65295
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
65296
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
65297
|
-
if (typeof target !== "string") {
|
|
65298
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
65299
|
-
}
|
|
65296
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
65300
65297
|
const targetID = this.id(operation.type, target);
|
|
65301
65298
|
if (!targetID) {
|
|
65302
65299
|
continue;
|
|
@@ -65496,7 +65493,7 @@ var CacheInternal = class {
|
|
|
65496
65493
|
};
|
|
65497
65494
|
}
|
|
65498
65495
|
id(type, data) {
|
|
65499
|
-
const id = typeof data === "
|
|
65496
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
65500
65497
|
if (!id) {
|
|
65501
65498
|
return null;
|
|
65502
65499
|
}
|
package/build/lib-esm/index.js
CHANGED
|
@@ -65215,10 +65215,7 @@ var CacheInternal = class {
|
|
|
65215
65215
|
});
|
|
65216
65216
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
65217
65217
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
65218
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
65219
|
-
if (typeof target !== "string") {
|
|
65220
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
65221
|
-
}
|
|
65218
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
65222
65219
|
const targetID = this.id(operation.type, target);
|
|
65223
65220
|
if (!targetID) {
|
|
65224
65221
|
continue;
|
|
@@ -65418,7 +65415,7 @@ var CacheInternal = class {
|
|
|
65418
65415
|
};
|
|
65419
65416
|
}
|
|
65420
65417
|
id(type, data) {
|
|
65421
|
-
const id = typeof data === "
|
|
65418
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
65422
65419
|
if (!id) {
|
|
65423
65420
|
return null;
|
|
65424
65421
|
}
|
|
@@ -520,10 +520,7 @@ class CacheInternal {
|
|
|
520
520
|
});
|
|
521
521
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
522
522
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
523
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
524
|
-
if (typeof target !== "string") {
|
|
525
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
526
|
-
}
|
|
523
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
527
524
|
const targetID = this.id(operation.type, target);
|
|
528
525
|
if (!targetID) {
|
|
529
526
|
continue;
|
|
@@ -723,7 +720,7 @@ class CacheInternal {
|
|
|
723
720
|
};
|
|
724
721
|
}
|
|
725
722
|
id(type, data) {
|
|
726
|
-
const id = typeof data === "
|
|
723
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
727
724
|
if (!id) {
|
|
728
725
|
return null;
|
|
729
726
|
}
|
|
@@ -492,10 +492,7 @@ class CacheInternal {
|
|
|
492
492
|
});
|
|
493
493
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
494
494
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
495
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
496
|
-
if (typeof target !== "string") {
|
|
497
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
498
|
-
}
|
|
495
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
499
496
|
const targetID = this.id(operation.type, target);
|
|
500
497
|
if (!targetID) {
|
|
501
498
|
continue;
|
|
@@ -695,7 +692,7 @@ class CacheInternal {
|
|
|
695
692
|
};
|
|
696
693
|
}
|
|
697
694
|
id(type, data) {
|
|
698
|
-
const id = typeof data === "
|
|
695
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
699
696
|
if (!id) {
|
|
700
697
|
return null;
|
|
701
698
|
}
|
package/build/test-cjs/index.js
CHANGED
|
@@ -56211,10 +56211,7 @@ var CacheInternal = class {
|
|
|
56211
56211
|
});
|
|
56212
56212
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
56213
56213
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
56214
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
56215
|
-
if (typeof target !== "string") {
|
|
56216
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
56217
|
-
}
|
|
56214
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
56218
56215
|
const targetID = this.id(operation.type, target);
|
|
56219
56216
|
if (!targetID) {
|
|
56220
56217
|
continue;
|
|
@@ -56414,7 +56411,7 @@ var CacheInternal = class {
|
|
|
56414
56411
|
};
|
|
56415
56412
|
}
|
|
56416
56413
|
id(type, data) {
|
|
56417
|
-
const id = typeof data === "
|
|
56414
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
56418
56415
|
if (!id) {
|
|
56419
56416
|
return null;
|
|
56420
56417
|
}
|
package/build/test-esm/index.js
CHANGED
|
@@ -56208,10 +56208,7 @@ var CacheInternal = class {
|
|
|
56208
56208
|
});
|
|
56209
56209
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
56210
56210
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
56211
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
56212
|
-
if (typeof target !== "string") {
|
|
56213
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
56214
|
-
}
|
|
56211
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
56215
56212
|
const targetID = this.id(operation.type, target);
|
|
56216
56213
|
if (!targetID) {
|
|
56217
56214
|
continue;
|
|
@@ -56411,7 +56408,7 @@ var CacheInternal = class {
|
|
|
56411
56408
|
};
|
|
56412
56409
|
}
|
|
56413
56410
|
id(type, data) {
|
|
56414
|
-
const id = typeof data === "
|
|
56411
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
56415
56412
|
if (!id) {
|
|
56416
56413
|
return null;
|
|
56417
56414
|
}
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -67967,10 +67967,7 @@ var CacheInternal = class {
|
|
|
67967
67967
|
});
|
|
67968
67968
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
67969
67969
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
67970
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
67971
|
-
if (typeof target !== "string") {
|
|
67972
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
67973
|
-
}
|
|
67970
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
67974
67971
|
const targetID = this.id(operation.type, target);
|
|
67975
67972
|
if (!targetID) {
|
|
67976
67973
|
continue;
|
|
@@ -68170,7 +68167,7 @@ var CacheInternal = class {
|
|
|
68170
68167
|
};
|
|
68171
68168
|
}
|
|
68172
68169
|
id(type, data) {
|
|
68173
|
-
const id = typeof data === "
|
|
68170
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
68174
68171
|
if (!id) {
|
|
68175
68172
|
return null;
|
|
68176
68173
|
}
|
package/build/vite-esm/index.js
CHANGED
|
@@ -67961,10 +67961,7 @@ var CacheInternal = class {
|
|
|
67961
67961
|
});
|
|
67962
67962
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
67963
67963
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
67964
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
67965
|
-
if (typeof target !== "string") {
|
|
67966
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
67967
|
-
}
|
|
67964
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
67968
67965
|
const targetID = this.id(operation.type, target);
|
|
67969
67966
|
if (!targetID) {
|
|
67970
67967
|
continue;
|
|
@@ -68164,7 +68161,7 @@ var CacheInternal = class {
|
|
|
68164
68161
|
};
|
|
68165
68162
|
}
|
|
68166
68163
|
id(type, data) {
|
|
68167
|
-
const id = typeof data === "
|
|
68164
|
+
const id = typeof data === "object" ? this.computeID(type, data) : data;
|
|
68168
68165
|
if (!id) {
|
|
68169
68166
|
return null;
|
|
68170
68167
|
}
|