houdini-svelte 1.2.3 → 1.2.4
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/plugin/codegen/index.d.ts +2 -3
- package/build/plugin/fsPatch.d.ts +4 -0
- package/build/plugin-cjs/index.js +97 -13
- package/build/plugin-esm/index.js +97 -13
- package/build/preprocess-cjs/index.js +97 -13
- package/build/preprocess-esm/index.js +97 -13
- package/build/runtime/stores/base.d.ts +1 -1
- package/build/runtime-cjs/stores/base.d.ts +1 -1
- package/build/runtime-esm/stores/base.d.ts +1 -1
- package/build/test-cjs/index.js +222 -34
- package/build/test-esm/index.js +222 -34
- package/package.json +2 -2
package/build/test-esm/index.js
CHANGED
|
@@ -89549,6 +89549,7 @@ __export(fs_exports, {
|
|
|
89549
89549
|
recursiveCopy: () => recursiveCopy,
|
|
89550
89550
|
remove: () => remove,
|
|
89551
89551
|
rmdir: () => rmdir,
|
|
89552
|
+
snapshot: () => snapshot,
|
|
89552
89553
|
stat: () => stat,
|
|
89553
89554
|
writeFile: () => writeFile
|
|
89554
89555
|
});
|
|
@@ -89735,16 +89736,17 @@ function existsSync(dirPath) {
|
|
|
89735
89736
|
}
|
|
89736
89737
|
return import_memfs.fs.existsSync(dirPath);
|
|
89737
89738
|
}
|
|
89738
|
-
async function readdir(filepath) {
|
|
89739
|
+
async function readdir(filepath, opts) {
|
|
89739
89740
|
if (!houdini_mode.is_testing) {
|
|
89740
|
-
return await fs.readdir(filepath);
|
|
89741
|
+
return await fs.readdir(filepath, opts);
|
|
89741
89742
|
}
|
|
89742
89743
|
if (filepath.includes("build/runtime")) {
|
|
89743
|
-
return await fs.readdir(filepath);
|
|
89744
|
+
return await fs.readdir(filepath, opts);
|
|
89744
89745
|
}
|
|
89745
89746
|
try {
|
|
89746
|
-
return import_memfs.fs.readdirSync(filepath);
|
|
89747
|
-
} catch {
|
|
89747
|
+
return import_memfs.fs.readdirSync(filepath, opts);
|
|
89748
|
+
} catch (e22) {
|
|
89749
|
+
console.log(e22);
|
|
89748
89750
|
return [];
|
|
89749
89751
|
}
|
|
89750
89752
|
}
|
|
@@ -89795,6 +89797,11 @@ async function recursiveCopy(source, target, transforms, notRoot) {
|
|
|
89795
89797
|
);
|
|
89796
89798
|
}
|
|
89797
89799
|
}
|
|
89800
|
+
function snapshot(base) {
|
|
89801
|
+
return Object.fromEntries(
|
|
89802
|
+
Object.entries(import_memfs.vol.toJSON()).filter(([key]) => !base || key.startsWith(base)).map(([key, value2]) => [!base ? key : key.substring(base.length), value2])
|
|
89803
|
+
);
|
|
89804
|
+
}
|
|
89798
89805
|
async function glob(pattern) {
|
|
89799
89806
|
return await promisify(import_glob.glob)(posixify(pattern));
|
|
89800
89807
|
}
|
|
@@ -90662,6 +90669,10 @@ var List = class {
|
|
|
90662
90669
|
updates: ["append", "prepend"],
|
|
90663
90670
|
selection: {
|
|
90664
90671
|
fields: {
|
|
90672
|
+
__typename: {
|
|
90673
|
+
keyRaw: "__typename",
|
|
90674
|
+
type: "String"
|
|
90675
|
+
},
|
|
90665
90676
|
node: {
|
|
90666
90677
|
type: listType,
|
|
90667
90678
|
keyRaw: "node",
|
|
@@ -90686,7 +90697,15 @@ var List = class {
|
|
|
90686
90697
|
};
|
|
90687
90698
|
insertData = {
|
|
90688
90699
|
newEntry: {
|
|
90689
|
-
edges: [
|
|
90700
|
+
edges: [
|
|
90701
|
+
{
|
|
90702
|
+
__typename: listType + "Edge",
|
|
90703
|
+
node: {
|
|
90704
|
+
...data2,
|
|
90705
|
+
__typename: listType
|
|
90706
|
+
}
|
|
90707
|
+
}
|
|
90708
|
+
]
|
|
90690
90709
|
}
|
|
90691
90710
|
};
|
|
90692
90711
|
} else {
|
|
@@ -91110,6 +91129,23 @@ var InMemoryStorage = class {
|
|
|
91110
91129
|
}
|
|
91111
91130
|
return this.data[this.data.length - 1];
|
|
91112
91131
|
}
|
|
91132
|
+
serialize() {
|
|
91133
|
+
return JSON.stringify({
|
|
91134
|
+
rank: this.rank,
|
|
91135
|
+
fields: this.topLayer.fields,
|
|
91136
|
+
links: this.topLayer.links
|
|
91137
|
+
});
|
|
91138
|
+
}
|
|
91139
|
+
hydrate(args, layer) {
|
|
91140
|
+
if (!args) {
|
|
91141
|
+
return;
|
|
91142
|
+
}
|
|
91143
|
+
const { rank, fields, links } = args;
|
|
91144
|
+
this.rank = rank;
|
|
91145
|
+
layer ??= this.createLayer(true);
|
|
91146
|
+
layer.fields = fields;
|
|
91147
|
+
layer.links = links;
|
|
91148
|
+
}
|
|
91113
91149
|
};
|
|
91114
91150
|
var Layer = class {
|
|
91115
91151
|
id;
|
|
@@ -91687,6 +91723,12 @@ var Cache = class {
|
|
|
91687
91723
|
config() {
|
|
91688
91724
|
return this._internal_unstable.config;
|
|
91689
91725
|
}
|
|
91726
|
+
serialize() {
|
|
91727
|
+
return this._internal_unstable.storage.serialize();
|
|
91728
|
+
}
|
|
91729
|
+
hydrate(...args) {
|
|
91730
|
+
return this._internal_unstable.storage.hydrate(...args);
|
|
91731
|
+
}
|
|
91690
91732
|
clearLayer(layerID) {
|
|
91691
91733
|
const layer = this._internal_unstable.storage.getLayer(layerID);
|
|
91692
91734
|
if (!layer) {
|
|
@@ -92717,7 +92759,7 @@ function deepMerge2(filepath, ...targets) {
|
|
|
92717
92759
|
});
|
|
92718
92760
|
}
|
|
92719
92761
|
}
|
|
92720
|
-
|
|
92762
|
+
function parseJS(str, config5) {
|
|
92721
92763
|
const defaultConfig = {
|
|
92722
92764
|
plugins: ["typescript", "importAssertions"],
|
|
92723
92765
|
sourceType: "module"
|
|
@@ -146841,6 +146883,7 @@ __export2(fs_exports2, {
|
|
|
146841
146883
|
recursiveCopy: () => recursiveCopy2,
|
|
146842
146884
|
remove: () => remove2,
|
|
146843
146885
|
rmdir: () => rmdir2,
|
|
146886
|
+
snapshot: () => snapshot2,
|
|
146844
146887
|
stat: () => stat3,
|
|
146845
146888
|
writeFile: () => writeFile2
|
|
146846
146889
|
});
|
|
@@ -147027,16 +147070,17 @@ function existsSync2(dirPath) {
|
|
|
147027
147070
|
}
|
|
147028
147071
|
return import_memfs2.fs.existsSync(dirPath);
|
|
147029
147072
|
}
|
|
147030
|
-
async function readdir2(filepath) {
|
|
147073
|
+
async function readdir2(filepath, opts) {
|
|
147031
147074
|
if (!houdini_mode2.is_testing) {
|
|
147032
|
-
return await fs3.readdir(filepath);
|
|
147075
|
+
return await fs3.readdir(filepath, opts);
|
|
147033
147076
|
}
|
|
147034
147077
|
if (filepath.includes("build/runtime")) {
|
|
147035
|
-
return await fs3.readdir(filepath);
|
|
147078
|
+
return await fs3.readdir(filepath, opts);
|
|
147036
147079
|
}
|
|
147037
147080
|
try {
|
|
147038
|
-
return import_memfs2.fs.readdirSync(filepath);
|
|
147039
|
-
} catch {
|
|
147081
|
+
return import_memfs2.fs.readdirSync(filepath, opts);
|
|
147082
|
+
} catch (e3) {
|
|
147083
|
+
console.log(e3);
|
|
147040
147084
|
return [];
|
|
147041
147085
|
}
|
|
147042
147086
|
}
|
|
@@ -147087,6 +147131,11 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
|
|
|
147087
147131
|
);
|
|
147088
147132
|
}
|
|
147089
147133
|
}
|
|
147134
|
+
function snapshot2(base) {
|
|
147135
|
+
return Object.fromEntries(
|
|
147136
|
+
Object.entries(import_memfs2.vol.toJSON()).filter(([key]) => !base || key.startsWith(base)).map(([key, value2]) => [!base ? key : key.substring(base.length), value2])
|
|
147137
|
+
);
|
|
147138
|
+
}
|
|
147090
147139
|
async function glob2(pattern) {
|
|
147091
147140
|
return await promisify3(import_glob2.glob)(posixify2(pattern));
|
|
147092
147141
|
}
|
|
@@ -147312,6 +147361,10 @@ var List2 = class {
|
|
|
147312
147361
|
updates: ["append", "prepend"],
|
|
147313
147362
|
selection: {
|
|
147314
147363
|
fields: {
|
|
147364
|
+
__typename: {
|
|
147365
|
+
keyRaw: "__typename",
|
|
147366
|
+
type: "String"
|
|
147367
|
+
},
|
|
147315
147368
|
node: {
|
|
147316
147369
|
type: listType,
|
|
147317
147370
|
keyRaw: "node",
|
|
@@ -147336,7 +147389,15 @@ var List2 = class {
|
|
|
147336
147389
|
};
|
|
147337
147390
|
insertData = {
|
|
147338
147391
|
newEntry: {
|
|
147339
|
-
edges: [
|
|
147392
|
+
edges: [
|
|
147393
|
+
{
|
|
147394
|
+
__typename: listType + "Edge",
|
|
147395
|
+
node: {
|
|
147396
|
+
...data2,
|
|
147397
|
+
__typename: listType
|
|
147398
|
+
}
|
|
147399
|
+
}
|
|
147400
|
+
]
|
|
147340
147401
|
}
|
|
147341
147402
|
};
|
|
147342
147403
|
} else {
|
|
@@ -147760,6 +147821,23 @@ var InMemoryStorage2 = class {
|
|
|
147760
147821
|
}
|
|
147761
147822
|
return this.data[this.data.length - 1];
|
|
147762
147823
|
}
|
|
147824
|
+
serialize() {
|
|
147825
|
+
return JSON.stringify({
|
|
147826
|
+
rank: this.rank,
|
|
147827
|
+
fields: this.topLayer.fields,
|
|
147828
|
+
links: this.topLayer.links
|
|
147829
|
+
});
|
|
147830
|
+
}
|
|
147831
|
+
hydrate(args, layer) {
|
|
147832
|
+
if (!args) {
|
|
147833
|
+
return;
|
|
147834
|
+
}
|
|
147835
|
+
const { rank, fields, links } = args;
|
|
147836
|
+
this.rank = rank;
|
|
147837
|
+
layer ??= this.createLayer(true);
|
|
147838
|
+
layer.fields = fields;
|
|
147839
|
+
layer.links = links;
|
|
147840
|
+
}
|
|
147763
147841
|
};
|
|
147764
147842
|
var Layer2 = class {
|
|
147765
147843
|
id;
|
|
@@ -148337,6 +148415,12 @@ var Cache2 = class {
|
|
|
148337
148415
|
config() {
|
|
148338
148416
|
return this._internal_unstable.config;
|
|
148339
148417
|
}
|
|
148418
|
+
serialize() {
|
|
148419
|
+
return this._internal_unstable.storage.serialize();
|
|
148420
|
+
}
|
|
148421
|
+
hydrate(...args) {
|
|
148422
|
+
return this._internal_unstable.storage.hydrate(...args);
|
|
148423
|
+
}
|
|
148340
148424
|
clearLayer(layerID) {
|
|
148341
148425
|
const layer = this._internal_unstable.storage.getLayer(layerID);
|
|
148342
148426
|
if (!layer) {
|
|
@@ -149462,7 +149546,7 @@ function deepMerge22(filepath, ...targets) {
|
|
|
149462
149546
|
});
|
|
149463
149547
|
}
|
|
149464
149548
|
}
|
|
149465
|
-
|
|
149549
|
+
function parseJS2(str, config22) {
|
|
149466
149550
|
const defaultConfig = {
|
|
149467
149551
|
plugins: ["typescript", "importAssertions"],
|
|
149468
149552
|
sourceType: "module"
|
|
@@ -152460,12 +152544,28 @@ ${exportStatement("config")}
|
|
|
152460
152544
|
},
|
|
152461
152545
|
[path_exports2.join(config22.runtimeSource, "client", "plugins", "injectedPlugins.js")]: (content) => injectPlugins({ config: config22, content, importStatement, exportStatement })
|
|
152462
152546
|
}),
|
|
152463
|
-
...config22.plugins.filter((plugin2) => plugin2.includeRuntime).map(
|
|
152547
|
+
...config22.plugins.filter((plugin2) => plugin2.includeRuntime).map(
|
|
152548
|
+
(plugin2) => generatePluginRuntime({
|
|
152549
|
+
config: config22,
|
|
152550
|
+
docs,
|
|
152551
|
+
plugin: plugin2,
|
|
152552
|
+
importStatement,
|
|
152553
|
+
exportDefaultStatement: exportStatement,
|
|
152554
|
+
exportStarStatement: exportStar
|
|
152555
|
+
})
|
|
152556
|
+
),
|
|
152464
152557
|
generatePluginIndex({ config: config22, exportStatement: exportStar })
|
|
152465
152558
|
]);
|
|
152466
152559
|
await generateGraphqlReturnTypes(config22, docs);
|
|
152467
152560
|
}
|
|
152468
|
-
async function generatePluginRuntime(
|
|
152561
|
+
async function generatePluginRuntime({
|
|
152562
|
+
config: config22,
|
|
152563
|
+
docs,
|
|
152564
|
+
plugin: plugin2,
|
|
152565
|
+
importStatement,
|
|
152566
|
+
exportDefaultStatement,
|
|
152567
|
+
exportStarStatement
|
|
152568
|
+
}) {
|
|
152469
152569
|
if (houdini_mode2.is_testing || !plugin2.includeRuntime) {
|
|
152470
152570
|
return;
|
|
152471
152571
|
}
|
|
@@ -152493,7 +152593,13 @@ async function generatePluginRuntime(config22, docs, plugin2) {
|
|
|
152493
152593
|
Object.fromEntries(
|
|
152494
152594
|
Object.entries(transformMap).map(([key, value2]) => [
|
|
152495
152595
|
path_exports2.join(runtime_path, key),
|
|
152496
|
-
(content) => value2({
|
|
152596
|
+
(content) => value2({
|
|
152597
|
+
config: config22,
|
|
152598
|
+
content,
|
|
152599
|
+
importStatement,
|
|
152600
|
+
exportDefaultStatement,
|
|
152601
|
+
exportStarStatement
|
|
152602
|
+
})
|
|
152497
152603
|
])
|
|
152498
152604
|
)
|
|
152499
152605
|
);
|
|
@@ -154323,14 +154429,12 @@ async function typeCheck(config22, docs) {
|
|
|
154323
154429
|
for (const targetType of targetTypes) {
|
|
154324
154430
|
const missingIDFields = config22.keyFieldsForType(targetType.name).filter((fieldName) => !targetType.getFields()[fieldName]);
|
|
154325
154431
|
if (missingIDFields.length > 0) {
|
|
154326
|
-
const message = `@${config22.listDirective} on ${logGreen(
|
|
154327
|
-
targetType.name
|
|
154328
|
-
)} as a configuration issue. Object identification missing: ${missingIDFields.map((c2) => `"${logYellow(c2)}"`).join(", ")}. Check 'Custom IDs' if needed.`;
|
|
154329
154432
|
errors.push(
|
|
154330
154433
|
new HoudiniError2({
|
|
154331
154434
|
filepath: filename,
|
|
154332
|
-
message
|
|
154333
|
-
|
|
154435
|
+
message: `@${config22.listDirective} on ${logGreen(
|
|
154436
|
+
targetType.name
|
|
154437
|
+
)} has a configuration issue: ${targetType} dos not have a valid key. Please check this link for more information: https://houdinigraphql.com/guides/caching-data#custom-ids`
|
|
154334
154438
|
})
|
|
154335
154439
|
);
|
|
154336
154440
|
return;
|
|
@@ -209129,6 +209233,7 @@ __export3(fs_exports3, {
|
|
|
209129
209233
|
recursiveCopy: () => recursiveCopy3,
|
|
209130
209234
|
remove: () => remove3,
|
|
209131
209235
|
rmdir: () => rmdir3,
|
|
209236
|
+
snapshot: () => snapshot3,
|
|
209132
209237
|
stat: () => stat4,
|
|
209133
209238
|
writeFile: () => writeFile3
|
|
209134
209239
|
});
|
|
@@ -209315,16 +209420,17 @@ function existsSync3(dirPath) {
|
|
|
209315
209420
|
}
|
|
209316
209421
|
return import_memfs3.fs.existsSync(dirPath);
|
|
209317
209422
|
}
|
|
209318
|
-
async function readdir3(filepath) {
|
|
209423
|
+
async function readdir3(filepath, opts) {
|
|
209319
209424
|
if (!houdini_mode3.is_testing) {
|
|
209320
|
-
return await fs4.readdir(filepath);
|
|
209425
|
+
return await fs4.readdir(filepath, opts);
|
|
209321
209426
|
}
|
|
209322
209427
|
if (filepath.includes("build/runtime")) {
|
|
209323
|
-
return await fs4.readdir(filepath);
|
|
209428
|
+
return await fs4.readdir(filepath, opts);
|
|
209324
209429
|
}
|
|
209325
209430
|
try {
|
|
209326
|
-
return import_memfs3.fs.readdirSync(filepath);
|
|
209327
|
-
} catch {
|
|
209431
|
+
return import_memfs3.fs.readdirSync(filepath, opts);
|
|
209432
|
+
} catch (e3) {
|
|
209433
|
+
console.log(e3);
|
|
209328
209434
|
return [];
|
|
209329
209435
|
}
|
|
209330
209436
|
}
|
|
@@ -209375,6 +209481,11 @@ async function recursiveCopy3(source, target, transforms, notRoot) {
|
|
|
209375
209481
|
);
|
|
209376
209482
|
}
|
|
209377
209483
|
}
|
|
209484
|
+
function snapshot3(base) {
|
|
209485
|
+
return Object.fromEntries(
|
|
209486
|
+
Object.entries(import_memfs3.vol.toJSON()).filter(([key]) => !base || key.startsWith(base)).map(([key, value2]) => [!base ? key : key.substring(base.length), value2])
|
|
209487
|
+
);
|
|
209488
|
+
}
|
|
209378
209489
|
async function glob3(pattern) {
|
|
209379
209490
|
return await promisify4(import_glob3.glob)(posixify3(pattern));
|
|
209380
209491
|
}
|
|
@@ -209600,6 +209711,10 @@ var List3 = class {
|
|
|
209600
209711
|
updates: ["append", "prepend"],
|
|
209601
209712
|
selection: {
|
|
209602
209713
|
fields: {
|
|
209714
|
+
__typename: {
|
|
209715
|
+
keyRaw: "__typename",
|
|
209716
|
+
type: "String"
|
|
209717
|
+
},
|
|
209603
209718
|
node: {
|
|
209604
209719
|
type: listType,
|
|
209605
209720
|
keyRaw: "node",
|
|
@@ -209624,7 +209739,15 @@ var List3 = class {
|
|
|
209624
209739
|
};
|
|
209625
209740
|
insertData = {
|
|
209626
209741
|
newEntry: {
|
|
209627
|
-
edges: [
|
|
209742
|
+
edges: [
|
|
209743
|
+
{
|
|
209744
|
+
__typename: listType + "Edge",
|
|
209745
|
+
node: {
|
|
209746
|
+
...data2,
|
|
209747
|
+
__typename: listType
|
|
209748
|
+
}
|
|
209749
|
+
}
|
|
209750
|
+
]
|
|
209628
209751
|
}
|
|
209629
209752
|
};
|
|
209630
209753
|
} else {
|
|
@@ -210048,6 +210171,23 @@ var InMemoryStorage3 = class {
|
|
|
210048
210171
|
}
|
|
210049
210172
|
return this.data[this.data.length - 1];
|
|
210050
210173
|
}
|
|
210174
|
+
serialize() {
|
|
210175
|
+
return JSON.stringify({
|
|
210176
|
+
rank: this.rank,
|
|
210177
|
+
fields: this.topLayer.fields,
|
|
210178
|
+
links: this.topLayer.links
|
|
210179
|
+
});
|
|
210180
|
+
}
|
|
210181
|
+
hydrate(args, layer) {
|
|
210182
|
+
if (!args) {
|
|
210183
|
+
return;
|
|
210184
|
+
}
|
|
210185
|
+
const { rank, fields, links } = args;
|
|
210186
|
+
this.rank = rank;
|
|
210187
|
+
layer ??= this.createLayer(true);
|
|
210188
|
+
layer.fields = fields;
|
|
210189
|
+
layer.links = links;
|
|
210190
|
+
}
|
|
210051
210191
|
};
|
|
210052
210192
|
var Layer3 = class {
|
|
210053
210193
|
id;
|
|
@@ -210625,6 +210765,12 @@ var Cache3 = class {
|
|
|
210625
210765
|
config() {
|
|
210626
210766
|
return this._internal_unstable.config;
|
|
210627
210767
|
}
|
|
210768
|
+
serialize() {
|
|
210769
|
+
return this._internal_unstable.storage.serialize();
|
|
210770
|
+
}
|
|
210771
|
+
hydrate(...args) {
|
|
210772
|
+
return this._internal_unstable.storage.hydrate(...args);
|
|
210773
|
+
}
|
|
210628
210774
|
clearLayer(layerID) {
|
|
210629
210775
|
const layer = this._internal_unstable.storage.getLayer(layerID);
|
|
210630
210776
|
if (!layer) {
|
|
@@ -274641,6 +274787,7 @@ __export4(fs_exports4, {
|
|
|
274641
274787
|
recursiveCopy: () => recursiveCopy4,
|
|
274642
274788
|
remove: () => remove4,
|
|
274643
274789
|
rmdir: () => rmdir4,
|
|
274790
|
+
snapshot: () => snapshot4,
|
|
274644
274791
|
stat: () => stat5,
|
|
274645
274792
|
writeFile: () => writeFile4
|
|
274646
274793
|
});
|
|
@@ -274827,16 +274974,17 @@ function existsSync4(dirPath) {
|
|
|
274827
274974
|
}
|
|
274828
274975
|
return import_memfs4.fs.existsSync(dirPath);
|
|
274829
274976
|
}
|
|
274830
|
-
async function readdir4(filepath) {
|
|
274977
|
+
async function readdir4(filepath, opts) {
|
|
274831
274978
|
if (!houdini_mode4.is_testing) {
|
|
274832
|
-
return await fs5.readdir(filepath);
|
|
274979
|
+
return await fs5.readdir(filepath, opts);
|
|
274833
274980
|
}
|
|
274834
274981
|
if (filepath.includes("build/runtime")) {
|
|
274835
|
-
return await fs5.readdir(filepath);
|
|
274982
|
+
return await fs5.readdir(filepath, opts);
|
|
274836
274983
|
}
|
|
274837
274984
|
try {
|
|
274838
|
-
return import_memfs4.fs.readdirSync(filepath);
|
|
274839
|
-
} catch {
|
|
274985
|
+
return import_memfs4.fs.readdirSync(filepath, opts);
|
|
274986
|
+
} catch (e22) {
|
|
274987
|
+
console.log(e22);
|
|
274840
274988
|
return [];
|
|
274841
274989
|
}
|
|
274842
274990
|
}
|
|
@@ -274887,6 +275035,11 @@ async function recursiveCopy4(source, target, transforms, notRoot) {
|
|
|
274887
275035
|
);
|
|
274888
275036
|
}
|
|
274889
275037
|
}
|
|
275038
|
+
function snapshot4(base) {
|
|
275039
|
+
return Object.fromEntries(
|
|
275040
|
+
Object.entries(import_memfs4.vol.toJSON()).filter(([key]) => !base || key.startsWith(base)).map(([key, value2]) => [!base ? key : key.substring(base.length), value2])
|
|
275041
|
+
);
|
|
275042
|
+
}
|
|
274890
275043
|
async function glob4(pattern) {
|
|
274891
275044
|
return await promisify5(import_glob4.glob)(posixify4(pattern));
|
|
274892
275045
|
}
|
|
@@ -275740,6 +275893,10 @@ var List4 = class {
|
|
|
275740
275893
|
updates: ["append", "prepend"],
|
|
275741
275894
|
selection: {
|
|
275742
275895
|
fields: {
|
|
275896
|
+
__typename: {
|
|
275897
|
+
keyRaw: "__typename",
|
|
275898
|
+
type: "String"
|
|
275899
|
+
},
|
|
275743
275900
|
node: {
|
|
275744
275901
|
type: listType,
|
|
275745
275902
|
keyRaw: "node",
|
|
@@ -275764,7 +275921,15 @@ var List4 = class {
|
|
|
275764
275921
|
};
|
|
275765
275922
|
insertData = {
|
|
275766
275923
|
newEntry: {
|
|
275767
|
-
edges: [
|
|
275924
|
+
edges: [
|
|
275925
|
+
{
|
|
275926
|
+
__typename: listType + "Edge",
|
|
275927
|
+
node: {
|
|
275928
|
+
...data2,
|
|
275929
|
+
__typename: listType
|
|
275930
|
+
}
|
|
275931
|
+
}
|
|
275932
|
+
]
|
|
275768
275933
|
}
|
|
275769
275934
|
};
|
|
275770
275935
|
} else {
|
|
@@ -276188,6 +276353,23 @@ var InMemoryStorage4 = class {
|
|
|
276188
276353
|
}
|
|
276189
276354
|
return this.data[this.data.length - 1];
|
|
276190
276355
|
}
|
|
276356
|
+
serialize() {
|
|
276357
|
+
return JSON.stringify({
|
|
276358
|
+
rank: this.rank,
|
|
276359
|
+
fields: this.topLayer.fields,
|
|
276360
|
+
links: this.topLayer.links
|
|
276361
|
+
});
|
|
276362
|
+
}
|
|
276363
|
+
hydrate(args, layer) {
|
|
276364
|
+
if (!args) {
|
|
276365
|
+
return;
|
|
276366
|
+
}
|
|
276367
|
+
const { rank, fields, links } = args;
|
|
276368
|
+
this.rank = rank;
|
|
276369
|
+
layer ??= this.createLayer(true);
|
|
276370
|
+
layer.fields = fields;
|
|
276371
|
+
layer.links = links;
|
|
276372
|
+
}
|
|
276191
276373
|
};
|
|
276192
276374
|
var Layer4 = class {
|
|
276193
276375
|
id;
|
|
@@ -276765,6 +276947,12 @@ var Cache4 = class {
|
|
|
276765
276947
|
config() {
|
|
276766
276948
|
return this._internal_unstable.config;
|
|
276767
276949
|
}
|
|
276950
|
+
serialize() {
|
|
276951
|
+
return this._internal_unstable.storage.serialize();
|
|
276952
|
+
}
|
|
276953
|
+
hydrate(...args) {
|
|
276954
|
+
return this._internal_unstable.storage.hydrate(...args);
|
|
276955
|
+
}
|
|
276768
276956
|
clearLayer(layerID) {
|
|
276769
276957
|
const layer = this._internal_unstable.storage.getLayer(layerID);
|
|
276770
276958
|
if (!layer) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-svelte",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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.57.0",
|
|
34
34
|
"vite": "^4.1.1",
|
|
35
|
-
"houdini": "^1.2.
|
|
35
|
+
"houdini": "^1.2.4"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"build"
|