@automerge/subduction 0.10.1 → 0.10.2
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/dist/cjs/wasm-base64.cjs +1 -1
- package/dist/cjs/web-bindings.cjs +73 -41
- package/dist/cjs/web.cjs +74 -42
- package/dist/esm/wasm-base64.js +1 -1
- package/dist/iife/index.js +74 -42
- package/dist/index.d.ts +4 -0
- package/dist/subduction.wasm +0 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm.d.ts +4 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.js +74 -42
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/bundler/subduction_wasm_bg.wasm.d.ts +10 -9
- package/dist/wasm_bindgen/nodejs/subduction_wasm.cjs +74 -42
- package/dist/wasm_bindgen/nodejs/subduction_wasm.d.ts +4 -0
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/nodejs/subduction_wasm_bg.wasm.d.ts +10 -9
- package/dist/wasm_bindgen/web/subduction_wasm.d.ts +14 -9
- package/dist/wasm_bindgen/web/subduction_wasm.js +74 -42
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/web/subduction_wasm_bg.wasm.d.ts +10 -9
- package/package.json +1 -1
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-75027ecce41278de → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
|
@@ -64,7 +64,7 @@ __export(subduction_wasm_exports, {
|
|
|
64
64
|
});
|
|
65
65
|
module.exports = __toCommonJS(subduction_wasm_exports);
|
|
66
66
|
|
|
67
|
-
// subduction_wasm/dist/wasm_bindgen/web/snippets/sedimentree_wasm-
|
|
67
|
+
// subduction_wasm/dist/wasm_bindgen/web/snippets/sedimentree_wasm-c507f5285f2927a0/inline2.js
|
|
68
68
|
function tryIntoJsSedimentreeIdsArray(xs) {
|
|
69
69
|
return xs;
|
|
70
70
|
}
|
|
@@ -1280,6 +1280,18 @@ var MemoryStorage = class {
|
|
|
1280
1280
|
MemoryStorageFinalization.register(this, this.__wbg_ptr, this);
|
|
1281
1281
|
return this;
|
|
1282
1282
|
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Save commits and fragments in a single batch.
|
|
1285
|
+
* @param {SedimentreeId} sedimentree_id
|
|
1286
|
+
* @param {Array<any>} commits
|
|
1287
|
+
* @param {Array<any>} fragments
|
|
1288
|
+
* @returns {Promise<any>}
|
|
1289
|
+
*/
|
|
1290
|
+
saveBatchAll(sedimentree_id, commits, fragments) {
|
|
1291
|
+
_assertClass(sedimentree_id, SedimentreeId);
|
|
1292
|
+
const ret = wasm.memorystorage_saveBatchAll(this.__wbg_ptr, sedimentree_id.__wbg_ptr, commits, fragments);
|
|
1293
|
+
return ret;
|
|
1294
|
+
}
|
|
1283
1295
|
/**
|
|
1284
1296
|
* Save a commit with its blob.
|
|
1285
1297
|
* @param {SedimentreeId} sedimentree_id
|
|
@@ -1815,6 +1827,12 @@ var SignedFragment = class _SignedFragment {
|
|
|
1815
1827
|
SignedFragmentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1816
1828
|
return obj;
|
|
1817
1829
|
}
|
|
1830
|
+
static __unwrap(jsValue) {
|
|
1831
|
+
if (!(jsValue instanceof _SignedFragment)) {
|
|
1832
|
+
return 0;
|
|
1833
|
+
}
|
|
1834
|
+
return jsValue.__destroy_into_raw();
|
|
1835
|
+
}
|
|
1818
1836
|
__destroy_into_raw() {
|
|
1819
1837
|
const ptr = this.__wbg_ptr;
|
|
1820
1838
|
this.__wbg_ptr = 0;
|
|
@@ -1882,6 +1900,12 @@ var SignedLooseCommit = class _SignedLooseCommit {
|
|
|
1882
1900
|
SignedLooseCommitFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1883
1901
|
return obj;
|
|
1884
1902
|
}
|
|
1903
|
+
static __unwrap(jsValue) {
|
|
1904
|
+
if (!(jsValue instanceof _SignedLooseCommit)) {
|
|
1905
|
+
return 0;
|
|
1906
|
+
}
|
|
1907
|
+
return jsValue.__destroy_into_raw();
|
|
1908
|
+
}
|
|
1885
1909
|
__destroy_into_raw() {
|
|
1886
1910
|
const ptr = this.__wbg_ptr;
|
|
1887
1911
|
this.__wbg_ptr = 0;
|
|
@@ -3286,37 +3310,37 @@ function start() {
|
|
|
3286
3310
|
function __wbg_get_imports() {
|
|
3287
3311
|
const import0 = {
|
|
3288
3312
|
__proto__: null,
|
|
3289
|
-
|
|
3313
|
+
__wbg___wasm_refgen_toWasmCommitWithBlob_bcab5aaed3558280: function(arg0) {
|
|
3290
3314
|
const ret = arg0.__wasm_refgen_toWasmCommitWithBlob();
|
|
3291
3315
|
_assertClass(ret, CommitWithBlob);
|
|
3292
3316
|
var ptr1 = ret.__destroy_into_raw();
|
|
3293
3317
|
return ptr1;
|
|
3294
3318
|
},
|
|
3295
|
-
|
|
3319
|
+
__wbg___wasm_refgen_toWasmDepth_5124f666e343ff0c: function(arg0) {
|
|
3296
3320
|
const ret = arg0.__wasm_refgen_toWasmDepth();
|
|
3297
3321
|
_assertClass(ret, Depth);
|
|
3298
3322
|
var ptr1 = ret.__destroy_into_raw();
|
|
3299
3323
|
return ptr1;
|
|
3300
3324
|
},
|
|
3301
|
-
|
|
3325
|
+
__wbg___wasm_refgen_toWasmDigest_476b24805f220005: function(arg0) {
|
|
3302
3326
|
const ret = arg0.__wasm_refgen_toWasmDigest();
|
|
3303
3327
|
_assertClass(ret, Digest);
|
|
3304
3328
|
var ptr1 = ret.__destroy_into_raw();
|
|
3305
3329
|
return ptr1;
|
|
3306
3330
|
},
|
|
3307
|
-
|
|
3331
|
+
__wbg___wasm_refgen_toWasmFragmentWithBlob_ed713e5c5f4cc52e: function(arg0) {
|
|
3308
3332
|
const ret = arg0.__wasm_refgen_toWasmFragmentWithBlob();
|
|
3309
3333
|
_assertClass(ret, FragmentWithBlob);
|
|
3310
3334
|
var ptr1 = ret.__destroy_into_raw();
|
|
3311
3335
|
return ptr1;
|
|
3312
3336
|
},
|
|
3313
|
-
|
|
3337
|
+
__wbg___wasm_refgen_toWasmFragment_10dd1ff9b3934840: function(arg0) {
|
|
3314
3338
|
const ret = arg0.__wasm_refgen_toWasmFragment();
|
|
3315
3339
|
_assertClass(ret, Fragment);
|
|
3316
3340
|
var ptr1 = ret.__destroy_into_raw();
|
|
3317
3341
|
return ptr1;
|
|
3318
3342
|
},
|
|
3319
|
-
|
|
3343
|
+
__wbg___wasm_refgen_toWasmLooseCommit_f36ad6a9389cee03: function(arg0) {
|
|
3320
3344
|
const ret = arg0.__wasm_refgen_toWasmLooseCommit();
|
|
3321
3345
|
_assertClass(ret, LooseCommit);
|
|
3322
3346
|
var ptr1 = ret.__destroy_into_raw();
|
|
@@ -3477,11 +3501,11 @@ function __wbg_get_imports() {
|
|
|
3477
3501
|
const ret = arg0.data;
|
|
3478
3502
|
return ret;
|
|
3479
3503
|
},
|
|
3480
|
-
|
|
3504
|
+
__wbg_deleteAllCommits_026a63e00bba2a2c: function(arg0, arg1) {
|
|
3481
3505
|
const ret = arg0.deleteAllCommits(arg1);
|
|
3482
3506
|
return ret;
|
|
3483
3507
|
},
|
|
3484
|
-
|
|
3508
|
+
__wbg_deleteAllFragments_857ddb74b3342f83: function(arg0, arg1) {
|
|
3485
3509
|
const ret = arg0.deleteAllFragments(arg1);
|
|
3486
3510
|
return ret;
|
|
3487
3511
|
},
|
|
@@ -3740,15 +3764,15 @@ function __wbg_get_imports() {
|
|
|
3740
3764
|
const ret = arg0.length;
|
|
3741
3765
|
return ret;
|
|
3742
3766
|
},
|
|
3743
|
-
|
|
3767
|
+
__wbg_loadAllCommits_c18e977eb552890c: function(arg0, arg1) {
|
|
3744
3768
|
const ret = arg0.loadAllCommits(arg1);
|
|
3745
3769
|
return ret;
|
|
3746
3770
|
},
|
|
3747
|
-
|
|
3771
|
+
__wbg_loadAllFragments_499f304a483c7f7f: function(arg0, arg1) {
|
|
3748
3772
|
const ret = arg0.loadAllFragments(arg1);
|
|
3749
3773
|
return ret;
|
|
3750
3774
|
},
|
|
3751
|
-
|
|
3775
|
+
__wbg_loadAllSedimentreeIds_da48711155f73930: function(arg0) {
|
|
3752
3776
|
const ret = arg0.loadAllSedimentreeIds();
|
|
3753
3777
|
return ret;
|
|
3754
3778
|
},
|
|
@@ -3793,7 +3817,7 @@ function __wbg_get_imports() {
|
|
|
3793
3817
|
const a = state0.a;
|
|
3794
3818
|
state0.a = 0;
|
|
3795
3819
|
try {
|
|
3796
|
-
return
|
|
3820
|
+
return __wasm_bindgen_func_elem_1652_195(a, state0.b, arg02, arg12);
|
|
3797
3821
|
} finally {
|
|
3798
3822
|
state0.a = a;
|
|
3799
3823
|
}
|
|
@@ -3831,7 +3855,7 @@ function __wbg_get_imports() {
|
|
|
3831
3855
|
const a = state0.a;
|
|
3832
3856
|
state0.a = 0;
|
|
3833
3857
|
try {
|
|
3834
|
-
return
|
|
3858
|
+
return __wasm_bindgen_func_elem_1652_196(a, state0.b, arg02, arg12);
|
|
3835
3859
|
} finally {
|
|
3836
3860
|
state0.a = a;
|
|
3837
3861
|
}
|
|
@@ -3971,19 +3995,19 @@ function __wbg_get_imports() {
|
|
|
3971
3995
|
return ret;
|
|
3972
3996
|
}, arguments);
|
|
3973
3997
|
},
|
|
3974
|
-
|
|
3998
|
+
__wbg_saveBatchAll_7c5c5f486aefa571: function(arg0, arg1, arg2, arg3) {
|
|
3975
3999
|
const ret = arg0.saveBatchAll(arg1, arg2, arg3);
|
|
3976
4000
|
return ret;
|
|
3977
4001
|
},
|
|
3978
|
-
|
|
4002
|
+
__wbg_saveCommit_fb38edd913837eb2: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3979
4003
|
const ret = arg0.saveCommit(arg1, arg2, arg3, arg4);
|
|
3980
4004
|
return ret;
|
|
3981
4005
|
},
|
|
3982
|
-
|
|
4006
|
+
__wbg_saveFragment_8682cc697a38dbad: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3983
4007
|
const ret = arg0.saveFragment(arg1, arg2, arg3, arg4);
|
|
3984
4008
|
return ret;
|
|
3985
4009
|
},
|
|
3986
|
-
|
|
4010
|
+
__wbg_saveSedimentreeId_ec8145842e87e53b: function(arg0, arg1) {
|
|
3987
4011
|
const ret = arg0.saveSedimentreeId(arg1);
|
|
3988
4012
|
return ret;
|
|
3989
4013
|
},
|
|
@@ -4078,10 +4102,18 @@ function __wbg_get_imports() {
|
|
|
4078
4102
|
const ret = SignedFragment.__wrap(arg0);
|
|
4079
4103
|
return ret;
|
|
4080
4104
|
},
|
|
4105
|
+
__wbg_signedfragment_unwrap: function(arg0) {
|
|
4106
|
+
const ret = SignedFragment.__unwrap(arg0);
|
|
4107
|
+
return ret;
|
|
4108
|
+
},
|
|
4081
4109
|
__wbg_signedloosecommit_new: function(arg0) {
|
|
4082
4110
|
const ret = SignedLooseCommit.__wrap(arg0);
|
|
4083
4111
|
return ret;
|
|
4084
4112
|
},
|
|
4113
|
+
__wbg_signedloosecommit_unwrap: function(arg0) {
|
|
4114
|
+
const ret = SignedLooseCommit.__unwrap(arg0);
|
|
4115
|
+
return ret;
|
|
4116
|
+
},
|
|
4085
4117
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
4086
4118
|
const ret = arg1.stack;
|
|
4087
4119
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -4164,7 +4196,7 @@ function __wbg_get_imports() {
|
|
|
4164
4196
|
return ret;
|
|
4165
4197
|
}, arguments);
|
|
4166
4198
|
},
|
|
4167
|
-
|
|
4199
|
+
__wbg_tryIntoJsSedimentreeIdsArray_b07d2438a6f2a3b9: function() {
|
|
4168
4200
|
return handleError(function(arg0, arg1) {
|
|
4169
4201
|
const ret = tryIntoJsSedimentreeIdsArray(arg1);
|
|
4170
4202
|
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_export);
|
|
@@ -4186,27 +4218,27 @@ function __wbg_get_imports() {
|
|
|
4186
4218
|
return ret;
|
|
4187
4219
|
},
|
|
4188
4220
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
4189
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4221
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_639);
|
|
4190
4222
|
return ret;
|
|
4191
4223
|
},
|
|
4192
4224
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
4193
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4225
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_639_1);
|
|
4194
4226
|
return ret;
|
|
4195
4227
|
},
|
|
4196
4228
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
4197
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4229
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_639_2);
|
|
4198
4230
|
return ret;
|
|
4199
4231
|
},
|
|
4200
4232
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
4201
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4233
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_639_3);
|
|
4202
4234
|
return ret;
|
|
4203
4235
|
},
|
|
4204
4236
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
4205
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
4237
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_638);
|
|
4206
4238
|
return ret;
|
|
4207
4239
|
},
|
|
4208
4240
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
4209
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4241
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_287, __wasm_bindgen_func_elem_1652);
|
|
4210
4242
|
return ret;
|
|
4211
4243
|
},
|
|
4212
4244
|
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
@@ -4268,32 +4300,32 @@ function __wbg_get_imports() {
|
|
|
4268
4300
|
"./snippets/subduction_wasm-ec51bcf335db35bd/inline1.js": inline1_exports
|
|
4269
4301
|
};
|
|
4270
4302
|
}
|
|
4271
|
-
function
|
|
4272
|
-
wasm.
|
|
4303
|
+
function __wasm_bindgen_func_elem_638(arg0, arg1) {
|
|
4304
|
+
wasm.__wasm_bindgen_func_elem_638(arg0, arg1);
|
|
4273
4305
|
}
|
|
4274
|
-
function
|
|
4275
|
-
wasm.
|
|
4306
|
+
function __wasm_bindgen_func_elem_639(arg0, arg1, arg2) {
|
|
4307
|
+
wasm.__wasm_bindgen_func_elem_639(arg0, arg1, arg2);
|
|
4276
4308
|
}
|
|
4277
|
-
function
|
|
4278
|
-
wasm.
|
|
4309
|
+
function __wasm_bindgen_func_elem_639_1(arg0, arg1, arg2) {
|
|
4310
|
+
wasm.__wasm_bindgen_func_elem_639_1(arg0, arg1, arg2);
|
|
4279
4311
|
}
|
|
4280
|
-
function
|
|
4281
|
-
wasm.
|
|
4312
|
+
function __wasm_bindgen_func_elem_639_2(arg0, arg1, arg2) {
|
|
4313
|
+
wasm.__wasm_bindgen_func_elem_639_2(arg0, arg1, arg2);
|
|
4282
4314
|
}
|
|
4283
|
-
function
|
|
4284
|
-
wasm.
|
|
4315
|
+
function __wasm_bindgen_func_elem_639_3(arg0, arg1, arg2) {
|
|
4316
|
+
wasm.__wasm_bindgen_func_elem_639_3(arg0, arg1, arg2);
|
|
4285
4317
|
}
|
|
4286
|
-
function
|
|
4287
|
-
const ret = wasm.
|
|
4318
|
+
function __wasm_bindgen_func_elem_1652(arg0, arg1, arg2) {
|
|
4319
|
+
const ret = wasm.__wasm_bindgen_func_elem_1652(arg0, arg1, arg2);
|
|
4288
4320
|
if (ret[1]) {
|
|
4289
4321
|
throw takeFromExternrefTable0(ret[0]);
|
|
4290
4322
|
}
|
|
4291
4323
|
}
|
|
4292
|
-
function
|
|
4293
|
-
wasm.
|
|
4324
|
+
function __wasm_bindgen_func_elem_1652_195(arg0, arg1, arg2, arg3) {
|
|
4325
|
+
wasm.__wasm_bindgen_func_elem_1652_195(arg0, arg1, arg2, arg3);
|
|
4294
4326
|
}
|
|
4295
|
-
function
|
|
4296
|
-
wasm.
|
|
4327
|
+
function __wasm_bindgen_func_elem_1652_196(arg0, arg1, arg2, arg3) {
|
|
4328
|
+
wasm.__wasm_bindgen_func_elem_1652_196(arg0, arg1, arg2, arg3);
|
|
4297
4329
|
}
|
|
4298
4330
|
var __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
4299
4331
|
var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|