houdini-svelte 1.2.38 → 1.2.39
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.
|
@@ -77361,10 +77361,7 @@ var CacheInternal = class {
|
|
|
77361
77361
|
});
|
|
77362
77362
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
77363
77363
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
77364
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
77365
|
-
if (typeof target !== "string") {
|
|
77366
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
77367
|
-
}
|
|
77364
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
77368
77365
|
const targetID = this.id(operation.type, target);
|
|
77369
77366
|
if (!targetID) {
|
|
77370
77367
|
continue;
|
|
@@ -77564,7 +77561,7 @@ var CacheInternal = class {
|
|
|
77564
77561
|
};
|
|
77565
77562
|
}
|
|
77566
77563
|
id(type, data2) {
|
|
77567
|
-
const id2 = typeof data2 === "
|
|
77564
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
77568
77565
|
if (!id2) {
|
|
77569
77566
|
return null;
|
|
77570
77567
|
}
|
|
@@ -142500,10 +142497,7 @@ var CacheInternal2 = class {
|
|
|
142500
142497
|
});
|
|
142501
142498
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
142502
142499
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
142503
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
142504
|
-
if (typeof target !== "string") {
|
|
142505
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
142506
|
-
}
|
|
142500
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
142507
142501
|
const targetID = this.id(operation.type, target);
|
|
142508
142502
|
if (!targetID) {
|
|
142509
142503
|
continue;
|
|
@@ -142703,7 +142697,7 @@ var CacheInternal2 = class {
|
|
|
142703
142697
|
};
|
|
142704
142698
|
}
|
|
142705
142699
|
id(type, data2) {
|
|
142706
|
-
const id2 = typeof data2 === "
|
|
142700
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
142707
142701
|
if (!id2) {
|
|
142708
142702
|
return null;
|
|
142709
142703
|
}
|
|
@@ -77356,10 +77356,7 @@ var CacheInternal = class {
|
|
|
77356
77356
|
});
|
|
77357
77357
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
77358
77358
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
77359
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
77360
|
-
if (typeof target !== "string") {
|
|
77361
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
77362
|
-
}
|
|
77359
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
77363
77360
|
const targetID = this.id(operation.type, target);
|
|
77364
77361
|
if (!targetID) {
|
|
77365
77362
|
continue;
|
|
@@ -77559,7 +77556,7 @@ var CacheInternal = class {
|
|
|
77559
77556
|
};
|
|
77560
77557
|
}
|
|
77561
77558
|
id(type, data2) {
|
|
77562
|
-
const id2 = typeof data2 === "
|
|
77559
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
77563
77560
|
if (!id2) {
|
|
77564
77561
|
return null;
|
|
77565
77562
|
}
|
|
@@ -142494,10 +142491,7 @@ var CacheInternal2 = class {
|
|
|
142494
142491
|
});
|
|
142495
142492
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
142496
142493
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
142497
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
142498
|
-
if (typeof target !== "string") {
|
|
142499
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
142500
|
-
}
|
|
142494
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
142501
142495
|
const targetID = this.id(operation.type, target);
|
|
142502
142496
|
if (!targetID) {
|
|
142503
142497
|
continue;
|
|
@@ -142697,7 +142691,7 @@ var CacheInternal2 = class {
|
|
|
142697
142691
|
};
|
|
142698
142692
|
}
|
|
142699
142693
|
id(type, data2) {
|
|
142700
|
-
const id2 = typeof data2 === "
|
|
142694
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
142701
142695
|
if (!id2) {
|
|
142702
142696
|
return null;
|
|
142703
142697
|
}
|
|
@@ -80696,10 +80696,7 @@ var CacheInternal = class {
|
|
|
80696
80696
|
});
|
|
80697
80697
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
80698
80698
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
80699
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
80700
|
-
if (typeof target !== "string") {
|
|
80701
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
80702
|
-
}
|
|
80699
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
80703
80700
|
const targetID = this.id(operation.type, target);
|
|
80704
80701
|
if (!targetID) {
|
|
80705
80702
|
continue;
|
|
@@ -80899,7 +80896,7 @@ var CacheInternal = class {
|
|
|
80899
80896
|
};
|
|
80900
80897
|
}
|
|
80901
80898
|
id(type, data2) {
|
|
80902
|
-
const id2 = typeof data2 === "
|
|
80899
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
80903
80900
|
if (!id2) {
|
|
80904
80901
|
return null;
|
|
80905
80902
|
}
|
|
@@ -174306,10 +174303,7 @@ var CacheInternal2 = class {
|
|
|
174306
174303
|
});
|
|
174307
174304
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
174308
174305
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
174309
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
174310
|
-
if (typeof target !== "string") {
|
|
174311
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
174312
|
-
}
|
|
174306
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
174313
174307
|
const targetID = this.id(operation.type, target);
|
|
174314
174308
|
if (!targetID) {
|
|
174315
174309
|
continue;
|
|
@@ -174509,7 +174503,7 @@ var CacheInternal2 = class {
|
|
|
174509
174503
|
};
|
|
174510
174504
|
}
|
|
174511
174505
|
id(type, data2) {
|
|
174512
|
-
const id2 = typeof data2 === "
|
|
174506
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
174513
174507
|
if (!id2) {
|
|
174514
174508
|
return null;
|
|
174515
174509
|
}
|
|
@@ -80693,10 +80693,7 @@ var CacheInternal = class {
|
|
|
80693
80693
|
});
|
|
80694
80694
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
80695
80695
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
80696
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
80697
|
-
if (typeof target !== "string") {
|
|
80698
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
80699
|
-
}
|
|
80696
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
80700
80697
|
const targetID = this.id(operation.type, target);
|
|
80701
80698
|
if (!targetID) {
|
|
80702
80699
|
continue;
|
|
@@ -80896,7 +80893,7 @@ var CacheInternal = class {
|
|
|
80896
80893
|
};
|
|
80897
80894
|
}
|
|
80898
80895
|
id(type, data2) {
|
|
80899
|
-
const id2 = typeof data2 === "
|
|
80896
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
80900
80897
|
if (!id2) {
|
|
80901
80898
|
return null;
|
|
80902
80899
|
}
|
|
@@ -174302,10 +174299,7 @@ var CacheInternal2 = class {
|
|
|
174302
174299
|
});
|
|
174303
174300
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
174304
174301
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
174305
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
174306
|
-
if (typeof target !== "string") {
|
|
174307
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
174308
|
-
}
|
|
174302
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
174309
174303
|
const targetID = this.id(operation.type, target);
|
|
174310
174304
|
if (!targetID) {
|
|
174311
174305
|
continue;
|
|
@@ -174505,7 +174499,7 @@ var CacheInternal2 = class {
|
|
|
174505
174499
|
};
|
|
174506
174500
|
}
|
|
174507
174501
|
id(type, data2) {
|
|
174508
|
-
const id2 = typeof data2 === "
|
|
174502
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
174509
174503
|
if (!id2) {
|
|
174510
174504
|
return null;
|
|
174511
174505
|
}
|
package/build/test-cjs/index.js
CHANGED
|
@@ -77364,10 +77364,7 @@ var CacheInternal = class {
|
|
|
77364
77364
|
});
|
|
77365
77365
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
77366
77366
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
77367
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
77368
|
-
if (typeof target !== "string") {
|
|
77369
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
77370
|
-
}
|
|
77367
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
77371
77368
|
const targetID = this.id(operation.type, target);
|
|
77372
77369
|
if (!targetID) {
|
|
77373
77370
|
continue;
|
|
@@ -77567,7 +77564,7 @@ var CacheInternal = class {
|
|
|
77567
77564
|
};
|
|
77568
77565
|
}
|
|
77569
77566
|
id(type, data2) {
|
|
77570
|
-
const id2 = typeof data2 === "
|
|
77567
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
77571
77568
|
if (!id2) {
|
|
77572
77569
|
return null;
|
|
77573
77570
|
}
|
|
@@ -134384,10 +134381,7 @@ var CacheInternal2 = class {
|
|
|
134384
134381
|
});
|
|
134385
134382
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
134386
134383
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
134387
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
134388
|
-
if (typeof target !== "string") {
|
|
134389
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
134390
|
-
}
|
|
134384
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
134391
134385
|
const targetID = this.id(operation.type, target);
|
|
134392
134386
|
if (!targetID) {
|
|
134393
134387
|
continue;
|
|
@@ -134587,7 +134581,7 @@ var CacheInternal2 = class {
|
|
|
134587
134581
|
};
|
|
134588
134582
|
}
|
|
134589
134583
|
id(type, data2) {
|
|
134590
|
-
const id2 = typeof data2 === "
|
|
134584
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
134591
134585
|
if (!id2) {
|
|
134592
134586
|
return null;
|
|
134593
134587
|
}
|
|
@@ -198715,10 +198709,7 @@ var CacheInternal3 = class {
|
|
|
198715
198709
|
});
|
|
198716
198710
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
198717
198711
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
198718
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
198719
|
-
if (typeof target !== "string") {
|
|
198720
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
198721
|
-
}
|
|
198712
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
198722
198713
|
const targetID = this.id(operation.type, target);
|
|
198723
198714
|
if (!targetID) {
|
|
198724
198715
|
continue;
|
|
@@ -198918,7 +198909,7 @@ var CacheInternal3 = class {
|
|
|
198918
198909
|
};
|
|
198919
198910
|
}
|
|
198920
198911
|
id(type, data2) {
|
|
198921
|
-
const id2 = typeof data2 === "
|
|
198912
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
198922
198913
|
if (!id2) {
|
|
198923
198914
|
return null;
|
|
198924
198915
|
}
|
|
@@ -264594,10 +264585,7 @@ var CacheInternal4 = class {
|
|
|
264594
264585
|
});
|
|
264595
264586
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
264596
264587
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
264597
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
264598
|
-
if (typeof target !== "string") {
|
|
264599
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
264600
|
-
}
|
|
264588
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
264601
264589
|
const targetID = this.id(operation.type, target);
|
|
264602
264590
|
if (!targetID) {
|
|
264603
264591
|
continue;
|
|
@@ -264797,7 +264785,7 @@ var CacheInternal4 = class {
|
|
|
264797
264785
|
};
|
|
264798
264786
|
}
|
|
264799
264787
|
id(type, data2) {
|
|
264800
|
-
const id2 = typeof data2 === "
|
|
264788
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
264801
264789
|
if (!id2) {
|
|
264802
264790
|
return null;
|
|
264803
264791
|
}
|
package/build/test-esm/index.js
CHANGED
|
@@ -77356,10 +77356,7 @@ var CacheInternal = class {
|
|
|
77356
77356
|
});
|
|
77357
77357
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
77358
77358
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
77359
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
77360
|
-
if (typeof target !== "string") {
|
|
77361
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
77362
|
-
}
|
|
77359
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
77363
77360
|
const targetID = this.id(operation.type, target);
|
|
77364
77361
|
if (!targetID) {
|
|
77365
77362
|
continue;
|
|
@@ -77559,7 +77556,7 @@ var CacheInternal = class {
|
|
|
77559
77556
|
};
|
|
77560
77557
|
}
|
|
77561
77558
|
id(type, data2) {
|
|
77562
|
-
const id2 = typeof data2 === "
|
|
77559
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
77563
77560
|
if (!id2) {
|
|
77564
77561
|
return null;
|
|
77565
77562
|
}
|
|
@@ -134375,10 +134372,7 @@ var CacheInternal2 = class {
|
|
|
134375
134372
|
});
|
|
134376
134373
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
134377
134374
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
134378
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
134379
|
-
if (typeof target !== "string") {
|
|
134380
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
134381
|
-
}
|
|
134375
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
134382
134376
|
const targetID = this.id(operation.type, target);
|
|
134383
134377
|
if (!targetID) {
|
|
134384
134378
|
continue;
|
|
@@ -134578,7 +134572,7 @@ var CacheInternal2 = class {
|
|
|
134578
134572
|
};
|
|
134579
134573
|
}
|
|
134580
134574
|
id(type, data2) {
|
|
134581
|
-
const id2 = typeof data2 === "
|
|
134575
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
134582
134576
|
if (!id2) {
|
|
134583
134577
|
return null;
|
|
134584
134578
|
}
|
|
@@ -198705,10 +198699,7 @@ var CacheInternal3 = class {
|
|
|
198705
198699
|
});
|
|
198706
198700
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
198707
198701
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
198708
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
198709
|
-
if (typeof target !== "string") {
|
|
198710
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
198711
|
-
}
|
|
198702
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
198712
198703
|
const targetID = this.id(operation.type, target);
|
|
198713
198704
|
if (!targetID) {
|
|
198714
198705
|
continue;
|
|
@@ -198908,7 +198899,7 @@ var CacheInternal3 = class {
|
|
|
198908
198899
|
};
|
|
198909
198900
|
}
|
|
198910
198901
|
id(type, data2) {
|
|
198911
|
-
const id2 = typeof data2 === "
|
|
198902
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
198912
198903
|
if (!id2) {
|
|
198913
198904
|
return null;
|
|
198914
198905
|
}
|
|
@@ -264583,10 +264574,7 @@ var CacheInternal4 = class {
|
|
|
264583
264574
|
});
|
|
264584
264575
|
} else if (operation.action === "remove" && target instanceof Object && fieldSelection && operation.list) {
|
|
264585
264576
|
this.cache.list(operation.list, parentID, operation.target === "all").when(operation.when).remove(target, variables, layer);
|
|
264586
|
-
} else if (operation.action === "delete" && operation.type) {
|
|
264587
|
-
if (typeof target !== "string") {
|
|
264588
|
-
throw new Error("Cannot delete a record with a non-string ID");
|
|
264589
|
-
}
|
|
264577
|
+
} else if (operation.action === "delete" && operation.type && target) {
|
|
264590
264578
|
const targetID = this.id(operation.type, target);
|
|
264591
264579
|
if (!targetID) {
|
|
264592
264580
|
continue;
|
|
@@ -264786,7 +264774,7 @@ var CacheInternal4 = class {
|
|
|
264786
264774
|
};
|
|
264787
264775
|
}
|
|
264788
264776
|
id(type, data2) {
|
|
264789
|
-
const id2 = typeof data2 === "
|
|
264777
|
+
const id2 = typeof data2 === "object" ? this.computeID(type, data2) : data2;
|
|
264790
264778
|
if (!id2) {
|
|
264791
264779
|
return null;
|
|
264792
264780
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.39",
|
|
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.39"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"build"
|