@automerge/sedimentree 0.8.2 → 0.8.3
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 +136 -23
- package/dist/cjs/web.cjs +137 -24
- package/dist/esm/wasm-base64.js +1 -1
- package/dist/iife/index.js +137 -24
- package/dist/index.d.ts +4 -0
- package/dist/sedimentree.wasm +0 -0
- package/dist/wasm_bindgen/bundler/sedimentree_wasm.d.ts +4 -0
- package/dist/wasm_bindgen/bundler/sedimentree_wasm_bg.js +144 -24
- package/dist/wasm_bindgen/bundler/sedimentree_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/bundler/sedimentree_wasm_bg.wasm.d.ts +10 -9
- package/dist/wasm_bindgen/nodejs/sedimentree_wasm.cjs +144 -24
- package/dist/wasm_bindgen/nodejs/sedimentree_wasm.d.ts +4 -0
- package/dist/wasm_bindgen/nodejs/sedimentree_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/nodejs/sedimentree_wasm_bg.wasm.d.ts +10 -9
- package/dist/wasm_bindgen/web/sedimentree_wasm.d.ts +14 -9
- package/dist/wasm_bindgen/web/sedimentree_wasm.js +144 -24
- package/dist/wasm_bindgen/web/sedimentree_wasm_bg.wasm +0 -0
- package/dist/wasm_bindgen/web/sedimentree_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
|
@@ -48,7 +48,7 @@ export class BlobMeta {
|
|
|
48
48
|
* @param {Uint8Array} blob
|
|
49
49
|
*/
|
|
50
50
|
constructor(blob) {
|
|
51
|
-
const ptr0 = passArray8ToWasm0(blob, wasm.
|
|
51
|
+
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_export);
|
|
52
52
|
const len0 = WASM_VECTOR_LEN;
|
|
53
53
|
const ret = wasm.blobmeta_new(ptr0, len0);
|
|
54
54
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -234,7 +234,7 @@ export class Digest {
|
|
|
234
234
|
* @returns {Digest}
|
|
235
235
|
*/
|
|
236
236
|
static fromBase58(s) {
|
|
237
|
-
const ptr0 = passStringToWasm0(s, wasm.
|
|
237
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
238
238
|
const len0 = WASM_VECTOR_LEN;
|
|
239
239
|
const ret = wasm.digest_fromBase58(ptr0, len0);
|
|
240
240
|
if (ret[2]) {
|
|
@@ -252,7 +252,7 @@ export class Digest {
|
|
|
252
252
|
* @returns {Digest}
|
|
253
253
|
*/
|
|
254
254
|
static fromBytes(bytes) {
|
|
255
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
255
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
256
256
|
const len0 = WASM_VECTOR_LEN;
|
|
257
257
|
const ret = wasm.digest_fromBytes(ptr0, len0);
|
|
258
258
|
if (ret[2]) {
|
|
@@ -270,7 +270,7 @@ export class Digest {
|
|
|
270
270
|
* @returns {Digest}
|
|
271
271
|
*/
|
|
272
272
|
static fromHexString(s) {
|
|
273
|
-
const ptr0 = passStringToWasm0(s, wasm.
|
|
273
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
274
274
|
const len0 = WASM_VECTOR_LEN;
|
|
275
275
|
const ret = wasm.digest_fromHexString(ptr0, len0);
|
|
276
276
|
if (ret[2]) {
|
|
@@ -287,7 +287,7 @@ export class Digest {
|
|
|
287
287
|
* @param {Uint8Array} bytes
|
|
288
288
|
*/
|
|
289
289
|
constructor(bytes) {
|
|
290
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
290
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
291
291
|
const len0 = WASM_VECTOR_LEN;
|
|
292
292
|
const ret = wasm.digest_new(ptr0, len0);
|
|
293
293
|
if (ret[2]) {
|
|
@@ -394,9 +394,9 @@ export class Fragment {
|
|
|
394
394
|
var ptr0 = sedimentree_id.__destroy_into_raw();
|
|
395
395
|
_assertClass(head, Digest);
|
|
396
396
|
var ptr1 = head.__destroy_into_raw();
|
|
397
|
-
const ptr2 = passArrayJsValueToWasm0(boundary, wasm.
|
|
397
|
+
const ptr2 = passArrayJsValueToWasm0(boundary, wasm.__wbindgen_export);
|
|
398
398
|
const len2 = WASM_VECTOR_LEN;
|
|
399
|
-
const ptr3 = passArrayJsValueToWasm0(checkpoints, wasm.
|
|
399
|
+
const ptr3 = passArrayJsValueToWasm0(checkpoints, wasm.__wbindgen_export);
|
|
400
400
|
const len3 = WASM_VECTOR_LEN;
|
|
401
401
|
_assertClass(blob_meta, BlobMeta);
|
|
402
402
|
var ptr4 = blob_meta.__destroy_into_raw();
|
|
@@ -552,7 +552,7 @@ export class LooseCommit {
|
|
|
552
552
|
constructor(sedimentree_id, parents, blob_meta) {
|
|
553
553
|
_assertClass(sedimentree_id, SedimentreeId);
|
|
554
554
|
var ptr0 = sedimentree_id.__destroy_into_raw();
|
|
555
|
-
const ptr1 = passArrayJsValueToWasm0(parents, wasm.
|
|
555
|
+
const ptr1 = passArrayJsValueToWasm0(parents, wasm.__wbindgen_export);
|
|
556
556
|
const len1 = WASM_VECTOR_LEN;
|
|
557
557
|
_assertClass(blob_meta, BlobMeta);
|
|
558
558
|
const ret = wasm.loosecommit_new(ptr0, ptr1, len1, blob_meta.__wbg_ptr);
|
|
@@ -724,6 +724,18 @@ export class MemoryStorage {
|
|
|
724
724
|
MemoryStorageFinalization.register(this, this.__wbg_ptr, this);
|
|
725
725
|
return this;
|
|
726
726
|
}
|
|
727
|
+
/**
|
|
728
|
+
* Save commits and fragments in a single batch.
|
|
729
|
+
* @param {SedimentreeId} sedimentree_id
|
|
730
|
+
* @param {Array<any>} commits
|
|
731
|
+
* @param {Array<any>} fragments
|
|
732
|
+
* @returns {Promise<any>}
|
|
733
|
+
*/
|
|
734
|
+
saveBatchAll(sedimentree_id, commits, fragments) {
|
|
735
|
+
_assertClass(sedimentree_id, SedimentreeId);
|
|
736
|
+
const ret = wasm.memorystorage_saveBatchAll(this.__wbg_ptr, sedimentree_id.__wbg_ptr, commits, fragments);
|
|
737
|
+
return ret;
|
|
738
|
+
}
|
|
727
739
|
/**
|
|
728
740
|
* Save a commit with its blob.
|
|
729
741
|
* @param {SedimentreeId} sedimentree_id
|
|
@@ -802,9 +814,9 @@ export class Sedimentree {
|
|
|
802
814
|
* @param {LooseCommit[]} commits
|
|
803
815
|
*/
|
|
804
816
|
constructor(fragments, commits) {
|
|
805
|
-
const ptr0 = passArrayJsValueToWasm0(fragments, wasm.
|
|
817
|
+
const ptr0 = passArrayJsValueToWasm0(fragments, wasm.__wbindgen_export);
|
|
806
818
|
const len0 = WASM_VECTOR_LEN;
|
|
807
|
-
const ptr1 = passArrayJsValueToWasm0(commits, wasm.
|
|
819
|
+
const ptr1 = passArrayJsValueToWasm0(commits, wasm.__wbindgen_export);
|
|
808
820
|
const len1 = WASM_VECTOR_LEN;
|
|
809
821
|
const ret = wasm.sedimentree_new(ptr0, len0, ptr1, len1);
|
|
810
822
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -853,7 +865,7 @@ export class SedimentreeId {
|
|
|
853
865
|
* @returns {SedimentreeId}
|
|
854
866
|
*/
|
|
855
867
|
static fromBytes(bytes) {
|
|
856
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
868
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
857
869
|
const len0 = WASM_VECTOR_LEN;
|
|
858
870
|
const ret = wasm.sedimentreeid_fromBytes(ptr0, len0);
|
|
859
871
|
if (ret[2]) {
|
|
@@ -930,6 +942,12 @@ export class SignedFragment {
|
|
|
930
942
|
SignedFragmentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
931
943
|
return obj;
|
|
932
944
|
}
|
|
945
|
+
static __unwrap(jsValue) {
|
|
946
|
+
if (!(jsValue instanceof SignedFragment)) {
|
|
947
|
+
return 0;
|
|
948
|
+
}
|
|
949
|
+
return jsValue.__destroy_into_raw();
|
|
950
|
+
}
|
|
933
951
|
__destroy_into_raw() {
|
|
934
952
|
const ptr = this.__wbg_ptr;
|
|
935
953
|
this.__wbg_ptr = 0;
|
|
@@ -1001,6 +1019,12 @@ export class SignedLooseCommit {
|
|
|
1001
1019
|
SignedLooseCommitFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1002
1020
|
return obj;
|
|
1003
1021
|
}
|
|
1022
|
+
static __unwrap(jsValue) {
|
|
1023
|
+
if (!(jsValue instanceof SignedLooseCommit)) {
|
|
1024
|
+
return 0;
|
|
1025
|
+
}
|
|
1026
|
+
return jsValue.__destroy_into_raw();
|
|
1027
|
+
}
|
|
1004
1028
|
__destroy_into_raw() {
|
|
1005
1029
|
const ptr = this.__wbg_ptr;
|
|
1006
1030
|
this.__wbg_ptr = 0;
|
|
@@ -1064,24 +1088,31 @@ if (Symbol.dispose) SignedLooseCommit.prototype[Symbol.dispose] = SignedLooseCom
|
|
|
1064
1088
|
function __wbg_get_imports() {
|
|
1065
1089
|
const import0 = {
|
|
1066
1090
|
__proto__: null,
|
|
1067
|
-
|
|
1091
|
+
__wbg___wasm_refgen_toWasmDigest_476b24805f220005: function(arg0) {
|
|
1068
1092
|
const ret = arg0.__wasm_refgen_toWasmDigest();
|
|
1069
1093
|
_assertClass(ret, Digest);
|
|
1070
1094
|
var ptr1 = ret.__destroy_into_raw();
|
|
1071
1095
|
return ptr1;
|
|
1072
1096
|
},
|
|
1073
|
-
|
|
1097
|
+
__wbg___wasm_refgen_toWasmFragment_10dd1ff9b3934840: function(arg0) {
|
|
1074
1098
|
const ret = arg0.__wasm_refgen_toWasmFragment();
|
|
1075
1099
|
_assertClass(ret, Fragment);
|
|
1076
1100
|
var ptr1 = ret.__destroy_into_raw();
|
|
1077
1101
|
return ptr1;
|
|
1078
1102
|
},
|
|
1079
|
-
|
|
1103
|
+
__wbg___wasm_refgen_toWasmLooseCommit_f36ad6a9389cee03: function(arg0) {
|
|
1080
1104
|
const ret = arg0.__wasm_refgen_toWasmLooseCommit();
|
|
1081
1105
|
_assertClass(ret, LooseCommit);
|
|
1082
1106
|
var ptr1 = ret.__destroy_into_raw();
|
|
1083
1107
|
return ptr1;
|
|
1084
1108
|
},
|
|
1109
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
1110
|
+
const ret = debugString(arg1);
|
|
1111
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1112
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1113
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1114
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1115
|
+
},
|
|
1085
1116
|
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
1086
1117
|
const ret = typeof(arg0) === 'function';
|
|
1087
1118
|
return ret;
|
|
@@ -1118,14 +1149,30 @@ function __wbg_get_imports() {
|
|
|
1118
1149
|
const ret = FragmentWithBlob.__wrap(arg0);
|
|
1119
1150
|
return ret;
|
|
1120
1151
|
},
|
|
1152
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
1153
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1154
|
+
return ret;
|
|
1155
|
+
}, arguments); },
|
|
1156
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
1157
|
+
const ret = arg0[arg1 >>> 0];
|
|
1158
|
+
return ret;
|
|
1159
|
+
},
|
|
1121
1160
|
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
1122
1161
|
const ret = Number.isSafeInteger(arg0);
|
|
1123
1162
|
return ret;
|
|
1124
1163
|
},
|
|
1164
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
1165
|
+
const ret = arg0.length;
|
|
1166
|
+
return ret;
|
|
1167
|
+
},
|
|
1125
1168
|
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1126
1169
|
const ret = arg0.length;
|
|
1127
1170
|
return ret;
|
|
1128
1171
|
},
|
|
1172
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1173
|
+
const ret = new Uint8Array(arg0);
|
|
1174
|
+
return ret;
|
|
1175
|
+
},
|
|
1129
1176
|
__wbg_new_a70fbab9066b301f: function() {
|
|
1130
1177
|
const ret = new Array();
|
|
1131
1178
|
return ret;
|
|
@@ -1145,7 +1192,7 @@ function __wbg_get_imports() {
|
|
|
1145
1192
|
const a = state0.a;
|
|
1146
1193
|
state0.a = 0;
|
|
1147
1194
|
try {
|
|
1148
|
-
return
|
|
1195
|
+
return __wasm_bindgen_func_elem_552_67(a, state0.b, arg0, arg1);
|
|
1149
1196
|
} finally {
|
|
1150
1197
|
state0.a = a;
|
|
1151
1198
|
}
|
|
@@ -1181,6 +1228,14 @@ function __wbg_get_imports() {
|
|
|
1181
1228
|
__wbg_set_name_7ef37fe858379aaf: function(arg0, arg1, arg2) {
|
|
1182
1229
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1183
1230
|
},
|
|
1231
|
+
__wbg_signedfragment_unwrap: function(arg0) {
|
|
1232
|
+
const ret = SignedFragment.__unwrap(arg0);
|
|
1233
|
+
return ret;
|
|
1234
|
+
},
|
|
1235
|
+
__wbg_signedloosecommit_unwrap: function(arg0) {
|
|
1236
|
+
const ret = SignedLooseCommit.__unwrap(arg0);
|
|
1237
|
+
return ret;
|
|
1238
|
+
},
|
|
1184
1239
|
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1185
1240
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1186
1241
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1202,8 +1257,8 @@ function __wbg_get_imports() {
|
|
|
1202
1257
|
return ret;
|
|
1203
1258
|
},
|
|
1204
1259
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1205
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1206
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1260
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 70, function: Function { arguments: [Externref], shim_idx: 132, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1261
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_385, __wasm_bindgen_func_elem_552);
|
|
1207
1262
|
return ret;
|
|
1208
1263
|
},
|
|
1209
1264
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1232,15 +1287,15 @@ function __wbg_get_imports() {
|
|
|
1232
1287
|
};
|
|
1233
1288
|
}
|
|
1234
1289
|
|
|
1235
|
-
function
|
|
1236
|
-
const ret = wasm.
|
|
1290
|
+
function __wasm_bindgen_func_elem_552(arg0, arg1, arg2) {
|
|
1291
|
+
const ret = wasm.__wasm_bindgen_func_elem_552(arg0, arg1, arg2);
|
|
1237
1292
|
if (ret[1]) {
|
|
1238
1293
|
throw takeFromExternrefTable0(ret[0]);
|
|
1239
1294
|
}
|
|
1240
1295
|
}
|
|
1241
1296
|
|
|
1242
|
-
function
|
|
1243
|
-
wasm.
|
|
1297
|
+
function __wasm_bindgen_func_elem_552_67(arg0, arg1, arg2, arg3) {
|
|
1298
|
+
wasm.__wasm_bindgen_func_elem_552_67(arg0, arg1, arg2, arg3);
|
|
1244
1299
|
}
|
|
1245
1300
|
|
|
1246
1301
|
const MemoryStorageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1287,7 +1342,7 @@ const SignedLooseCommitFinalization = (typeof FinalizationRegistry === 'undefine
|
|
|
1287
1342
|
: new FinalizationRegistry(ptr => wasm.__wbg_signedloosecommit_free(ptr >>> 0, 1));
|
|
1288
1343
|
|
|
1289
1344
|
function addToExternrefTable0(obj) {
|
|
1290
|
-
const idx = wasm.
|
|
1345
|
+
const idx = wasm.__wbindgen_export4();
|
|
1291
1346
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1292
1347
|
return idx;
|
|
1293
1348
|
}
|
|
@@ -1302,6 +1357,71 @@ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
|
1302
1357
|
? { register: () => {}, unregister: () => {} }
|
|
1303
1358
|
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1304
1359
|
|
|
1360
|
+
function debugString(val) {
|
|
1361
|
+
// primitive types
|
|
1362
|
+
const type = typeof val;
|
|
1363
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1364
|
+
return `${val}`;
|
|
1365
|
+
}
|
|
1366
|
+
if (type == 'string') {
|
|
1367
|
+
return `"${val}"`;
|
|
1368
|
+
}
|
|
1369
|
+
if (type == 'symbol') {
|
|
1370
|
+
const description = val.description;
|
|
1371
|
+
if (description == null) {
|
|
1372
|
+
return 'Symbol';
|
|
1373
|
+
} else {
|
|
1374
|
+
return `Symbol(${description})`;
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
if (type == 'function') {
|
|
1378
|
+
const name = val.name;
|
|
1379
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1380
|
+
return `Function(${name})`;
|
|
1381
|
+
} else {
|
|
1382
|
+
return 'Function';
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
// objects
|
|
1386
|
+
if (Array.isArray(val)) {
|
|
1387
|
+
const length = val.length;
|
|
1388
|
+
let debug = '[';
|
|
1389
|
+
if (length > 0) {
|
|
1390
|
+
debug += debugString(val[0]);
|
|
1391
|
+
}
|
|
1392
|
+
for(let i = 1; i < length; i++) {
|
|
1393
|
+
debug += ', ' + debugString(val[i]);
|
|
1394
|
+
}
|
|
1395
|
+
debug += ']';
|
|
1396
|
+
return debug;
|
|
1397
|
+
}
|
|
1398
|
+
// Test for built-in
|
|
1399
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1400
|
+
let className;
|
|
1401
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1402
|
+
className = builtInMatches[1];
|
|
1403
|
+
} else {
|
|
1404
|
+
// Failed to match the standard '[object ClassName]'
|
|
1405
|
+
return toString.call(val);
|
|
1406
|
+
}
|
|
1407
|
+
if (className == 'Object') {
|
|
1408
|
+
// we're a user defined class or Object
|
|
1409
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1410
|
+
// easier than looping through ownProperties of `val`.
|
|
1411
|
+
try {
|
|
1412
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1413
|
+
} catch (_) {
|
|
1414
|
+
return 'Object';
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
// errors
|
|
1418
|
+
if (val instanceof Error) {
|
|
1419
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1420
|
+
}
|
|
1421
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1422
|
+
return className;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1305
1425
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1306
1426
|
ptr = ptr >>> 0;
|
|
1307
1427
|
const mem = getDataViewMemory0();
|
|
@@ -1344,7 +1464,7 @@ function handleError(f, args) {
|
|
|
1344
1464
|
return f.apply(this, args);
|
|
1345
1465
|
} catch (e) {
|
|
1346
1466
|
const idx = addToExternrefTable0(e);
|
|
1347
|
-
wasm.
|
|
1467
|
+
wasm.__wbindgen_export3(idx);
|
|
1348
1468
|
}
|
|
1349
1469
|
}
|
|
1350
1470
|
|
|
@@ -1436,7 +1556,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
1436
1556
|
|
|
1437
1557
|
function takeFromExternrefTable0(idx) {
|
|
1438
1558
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1439
|
-
wasm.
|
|
1559
|
+
wasm.__wbindgen_export5(idx);
|
|
1440
1560
|
return value;
|
|
1441
1561
|
}
|
|
1442
1562
|
|
|
Binary file
|
|
@@ -72,23 +72,24 @@ export const memorystorage_listFragmentDigests: (a: number, b: number) => any;
|
|
|
72
72
|
export const memorystorage_loadAllFragments: (a: number, b: number) => any;
|
|
73
73
|
export const memorystorage_deleteFragment: (a: number, b: number, c: number) => any;
|
|
74
74
|
export const memorystorage_deleteAllFragments: (a: number, b: number) => any;
|
|
75
|
+
export const memorystorage_saveBatchAll: (a: number, b: number, c: any, d: any) => any;
|
|
75
76
|
export const depth___wasm_refgen_toWasmDepth: (a: number) => number;
|
|
76
77
|
export const fragmentwithblob_new: (a: number, b: any) => number;
|
|
77
78
|
export const __wbg_sedimentreeid_free: (a: number, b: number) => void;
|
|
78
79
|
export const __wbg_fragmentwithblob_free: (a: number, b: number) => void;
|
|
79
80
|
export const __wbg_signedloosecommit_free: (a: number, b: number) => void;
|
|
80
|
-
export const sedimentreeid___wasm_refgen_toWasmSedimentreeId: (a: number) => number;
|
|
81
81
|
export const sedimentreeid_toBytes: (a: number) => [number, number];
|
|
82
|
+
export const sedimentreeid___wasm_refgen_toWasmSedimentreeId: (a: number) => number;
|
|
82
83
|
export const fragmentwithblob_blob: (a: number) => any;
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const __wbindgen_export: (a: number) =>
|
|
87
|
-
export const __wbindgen_export2: () => number;
|
|
84
|
+
export const __wasm_bindgen_func_elem_385: (a: number, b: number) => void;
|
|
85
|
+
export const __wasm_bindgen_func_elem_552: (a: number, b: number, c: any) => [number, number];
|
|
86
|
+
export const __wasm_bindgen_func_elem_552_67: (a: number, b: number, c: any, d: any) => void;
|
|
87
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
88
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
89
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
90
|
+
export const __wbindgen_export4: () => number;
|
|
88
91
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
89
|
-
export const
|
|
90
|
-
export const __wbindgen_export4: (a: number) => void;
|
|
91
|
-
export const __wbindgen_export5: (a: number, b: number, c: number, d: number) => number;
|
|
92
|
+
export const __wbindgen_export5: (a: number) => void;
|
|
92
93
|
export const __wbindgen_export6: (a: number, b: number, c: number) => void;
|
|
93
94
|
export const __wbindgen_export7: (a: number, b: number) => void;
|
|
94
95
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|