@automerge/sedimentree 0.8.1 → 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 +7 -0
- package/dist/sedimentree.wasm +0 -0
- package/dist/wasm_bindgen/bundler/sedimentree_wasm.d.ts +7 -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 +7 -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 +17 -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-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/bundler/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/nodejs/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline0.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline1.js +0 -0
- /package/dist/wasm_bindgen/web/snippets/{sedimentree_wasm-7c7e743695651440 → sedimentree_wasm-c507f5285f2927a0}/inline2.js +0 -0
|
@@ -84,7 +84,7 @@ var BlobMeta = class _BlobMeta {
|
|
|
84
84
|
* @param {Uint8Array} blob
|
|
85
85
|
*/
|
|
86
86
|
constructor(blob) {
|
|
87
|
-
const ptr0 = passArray8ToWasm0(blob, wasm.
|
|
87
|
+
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_export);
|
|
88
88
|
const len0 = WASM_VECTOR_LEN;
|
|
89
89
|
const ret = wasm.blobmeta_new(ptr0, len0);
|
|
90
90
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -255,7 +255,7 @@ var Digest = class _Digest {
|
|
|
255
255
|
* @returns {Digest}
|
|
256
256
|
*/
|
|
257
257
|
static fromBase58(s) {
|
|
258
|
-
const ptr0 = passStringToWasm0(s, wasm.
|
|
258
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
259
259
|
const len0 = WASM_VECTOR_LEN;
|
|
260
260
|
const ret = wasm.digest_fromBase58(ptr0, len0);
|
|
261
261
|
if (ret[2]) {
|
|
@@ -273,7 +273,7 @@ var Digest = class _Digest {
|
|
|
273
273
|
* @returns {Digest}
|
|
274
274
|
*/
|
|
275
275
|
static fromBytes(bytes) {
|
|
276
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
276
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
277
277
|
const len0 = WASM_VECTOR_LEN;
|
|
278
278
|
const ret = wasm.digest_fromBytes(ptr0, len0);
|
|
279
279
|
if (ret[2]) {
|
|
@@ -291,7 +291,7 @@ var Digest = class _Digest {
|
|
|
291
291
|
* @returns {Digest}
|
|
292
292
|
*/
|
|
293
293
|
static fromHexString(s) {
|
|
294
|
-
const ptr0 = passStringToWasm0(s, wasm.
|
|
294
|
+
const ptr0 = passStringToWasm0(s, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
295
295
|
const len0 = WASM_VECTOR_LEN;
|
|
296
296
|
const ret = wasm.digest_fromHexString(ptr0, len0);
|
|
297
297
|
if (ret[2]) {
|
|
@@ -308,7 +308,7 @@ var Digest = class _Digest {
|
|
|
308
308
|
* @param {Uint8Array} bytes
|
|
309
309
|
*/
|
|
310
310
|
constructor(bytes) {
|
|
311
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
311
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
312
312
|
const len0 = WASM_VECTOR_LEN;
|
|
313
313
|
const ret = wasm.digest_new(ptr0, len0);
|
|
314
314
|
if (ret[2]) {
|
|
@@ -411,9 +411,9 @@ var Fragment = class _Fragment {
|
|
|
411
411
|
var ptr0 = sedimentree_id.__destroy_into_raw();
|
|
412
412
|
_assertClass(head, Digest);
|
|
413
413
|
var ptr1 = head.__destroy_into_raw();
|
|
414
|
-
const ptr2 = passArrayJsValueToWasm0(boundary, wasm.
|
|
414
|
+
const ptr2 = passArrayJsValueToWasm0(boundary, wasm.__wbindgen_export);
|
|
415
415
|
const len2 = WASM_VECTOR_LEN;
|
|
416
|
-
const ptr3 = passArrayJsValueToWasm0(checkpoints, wasm.
|
|
416
|
+
const ptr3 = passArrayJsValueToWasm0(checkpoints, wasm.__wbindgen_export);
|
|
417
417
|
const len3 = WASM_VECTOR_LEN;
|
|
418
418
|
_assertClass(blob_meta, BlobMeta);
|
|
419
419
|
var ptr4 = blob_meta.__destroy_into_raw();
|
|
@@ -560,7 +560,7 @@ var LooseCommit = class _LooseCommit {
|
|
|
560
560
|
constructor(sedimentree_id, parents, blob_meta) {
|
|
561
561
|
_assertClass(sedimentree_id, SedimentreeId);
|
|
562
562
|
var ptr0 = sedimentree_id.__destroy_into_raw();
|
|
563
|
-
const ptr1 = passArrayJsValueToWasm0(parents, wasm.
|
|
563
|
+
const ptr1 = passArrayJsValueToWasm0(parents, wasm.__wbindgen_export);
|
|
564
564
|
const len1 = WASM_VECTOR_LEN;
|
|
565
565
|
_assertClass(blob_meta, BlobMeta);
|
|
566
566
|
const ret = wasm.loosecommit_new(ptr0, ptr1, len1, blob_meta.__wbg_ptr);
|
|
@@ -726,6 +726,18 @@ var MemoryStorage = class {
|
|
|
726
726
|
MemoryStorageFinalization.register(this, this.__wbg_ptr, this);
|
|
727
727
|
return this;
|
|
728
728
|
}
|
|
729
|
+
/**
|
|
730
|
+
* Save commits and fragments in a single batch.
|
|
731
|
+
* @param {SedimentreeId} sedimentree_id
|
|
732
|
+
* @param {Array<any>} commits
|
|
733
|
+
* @param {Array<any>} fragments
|
|
734
|
+
* @returns {Promise<any>}
|
|
735
|
+
*/
|
|
736
|
+
saveBatchAll(sedimentree_id, commits, fragments) {
|
|
737
|
+
_assertClass(sedimentree_id, SedimentreeId);
|
|
738
|
+
const ret = wasm.memorystorage_saveBatchAll(this.__wbg_ptr, sedimentree_id.__wbg_ptr, commits, fragments);
|
|
739
|
+
return ret;
|
|
740
|
+
}
|
|
729
741
|
/**
|
|
730
742
|
* Save a commit with its blob.
|
|
731
743
|
* @param {SedimentreeId} sedimentree_id
|
|
@@ -800,9 +812,9 @@ var Sedimentree = class _Sedimentree {
|
|
|
800
812
|
* @param {LooseCommit[]} commits
|
|
801
813
|
*/
|
|
802
814
|
constructor(fragments, commits) {
|
|
803
|
-
const ptr0 = passArrayJsValueToWasm0(fragments, wasm.
|
|
815
|
+
const ptr0 = passArrayJsValueToWasm0(fragments, wasm.__wbindgen_export);
|
|
804
816
|
const len0 = WASM_VECTOR_LEN;
|
|
805
|
-
const ptr1 = passArrayJsValueToWasm0(commits, wasm.
|
|
817
|
+
const ptr1 = passArrayJsValueToWasm0(commits, wasm.__wbindgen_export);
|
|
806
818
|
const len1 = WASM_VECTOR_LEN;
|
|
807
819
|
const ret = wasm.sedimentree_new(ptr0, len0, ptr1, len1);
|
|
808
820
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -847,7 +859,7 @@ var SedimentreeId = class _SedimentreeId {
|
|
|
847
859
|
* @returns {SedimentreeId}
|
|
848
860
|
*/
|
|
849
861
|
static fromBytes(bytes) {
|
|
850
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.
|
|
862
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
|
|
851
863
|
const len0 = WASM_VECTOR_LEN;
|
|
852
864
|
const ret = wasm.sedimentreeid_fromBytes(ptr0, len0);
|
|
853
865
|
if (ret[2]) {
|
|
@@ -919,6 +931,12 @@ var SignedFragment = class _SignedFragment {
|
|
|
919
931
|
SignedFragmentFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
920
932
|
return obj;
|
|
921
933
|
}
|
|
934
|
+
static __unwrap(jsValue) {
|
|
935
|
+
if (!(jsValue instanceof _SignedFragment)) {
|
|
936
|
+
return 0;
|
|
937
|
+
}
|
|
938
|
+
return jsValue.__destroy_into_raw();
|
|
939
|
+
}
|
|
922
940
|
__destroy_into_raw() {
|
|
923
941
|
const ptr = this.__wbg_ptr;
|
|
924
942
|
this.__wbg_ptr = 0;
|
|
@@ -986,6 +1004,12 @@ var SignedLooseCommit = class _SignedLooseCommit {
|
|
|
986
1004
|
SignedLooseCommitFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
987
1005
|
return obj;
|
|
988
1006
|
}
|
|
1007
|
+
static __unwrap(jsValue) {
|
|
1008
|
+
if (!(jsValue instanceof _SignedLooseCommit)) {
|
|
1009
|
+
return 0;
|
|
1010
|
+
}
|
|
1011
|
+
return jsValue.__destroy_into_raw();
|
|
1012
|
+
}
|
|
989
1013
|
__destroy_into_raw() {
|
|
990
1014
|
const ptr = this.__wbg_ptr;
|
|
991
1015
|
this.__wbg_ptr = 0;
|
|
@@ -1048,24 +1072,31 @@ if (Symbol.dispose) SignedLooseCommit.prototype[Symbol.dispose] = SignedLooseCom
|
|
|
1048
1072
|
function __wbg_get_imports() {
|
|
1049
1073
|
const import0 = {
|
|
1050
1074
|
__proto__: null,
|
|
1051
|
-
|
|
1075
|
+
__wbg___wasm_refgen_toWasmDigest_476b24805f220005: function(arg0) {
|
|
1052
1076
|
const ret = arg0.__wasm_refgen_toWasmDigest();
|
|
1053
1077
|
_assertClass(ret, Digest);
|
|
1054
1078
|
var ptr1 = ret.__destroy_into_raw();
|
|
1055
1079
|
return ptr1;
|
|
1056
1080
|
},
|
|
1057
|
-
|
|
1081
|
+
__wbg___wasm_refgen_toWasmFragment_10dd1ff9b3934840: function(arg0) {
|
|
1058
1082
|
const ret = arg0.__wasm_refgen_toWasmFragment();
|
|
1059
1083
|
_assertClass(ret, Fragment);
|
|
1060
1084
|
var ptr1 = ret.__destroy_into_raw();
|
|
1061
1085
|
return ptr1;
|
|
1062
1086
|
},
|
|
1063
|
-
|
|
1087
|
+
__wbg___wasm_refgen_toWasmLooseCommit_f36ad6a9389cee03: function(arg0) {
|
|
1064
1088
|
const ret = arg0.__wasm_refgen_toWasmLooseCommit();
|
|
1065
1089
|
_assertClass(ret, LooseCommit);
|
|
1066
1090
|
var ptr1 = ret.__destroy_into_raw();
|
|
1067
1091
|
return ptr1;
|
|
1068
1092
|
},
|
|
1093
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
1094
|
+
const ret = debugString(arg1);
|
|
1095
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1096
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1097
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1098
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1099
|
+
},
|
|
1069
1100
|
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
1070
1101
|
const ret = typeof arg0 === "function";
|
|
1071
1102
|
return ret;
|
|
@@ -1104,14 +1135,32 @@ function __wbg_get_imports() {
|
|
|
1104
1135
|
const ret = FragmentWithBlob.__wrap(arg0);
|
|
1105
1136
|
return ret;
|
|
1106
1137
|
},
|
|
1138
|
+
__wbg_get_3ef1eba1850ade27: function() {
|
|
1139
|
+
return handleError(function(arg0, arg1) {
|
|
1140
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1141
|
+
return ret;
|
|
1142
|
+
}, arguments);
|
|
1143
|
+
},
|
|
1144
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
1145
|
+
const ret = arg0[arg1 >>> 0];
|
|
1146
|
+
return ret;
|
|
1147
|
+
},
|
|
1107
1148
|
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
1108
1149
|
const ret = Number.isSafeInteger(arg0);
|
|
1109
1150
|
return ret;
|
|
1110
1151
|
},
|
|
1152
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
1153
|
+
const ret = arg0.length;
|
|
1154
|
+
return ret;
|
|
1155
|
+
},
|
|
1111
1156
|
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1112
1157
|
const ret = arg0.length;
|
|
1113
1158
|
return ret;
|
|
1114
1159
|
},
|
|
1160
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1161
|
+
const ret = new Uint8Array(arg0);
|
|
1162
|
+
return ret;
|
|
1163
|
+
},
|
|
1115
1164
|
__wbg_new_a70fbab9066b301f: function() {
|
|
1116
1165
|
const ret = new Array();
|
|
1117
1166
|
return ret;
|
|
@@ -1131,7 +1180,7 @@ function __wbg_get_imports() {
|
|
|
1131
1180
|
const a = state0.a;
|
|
1132
1181
|
state0.a = 0;
|
|
1133
1182
|
try {
|
|
1134
|
-
return
|
|
1183
|
+
return __wasm_bindgen_func_elem_552_67(a, state0.b, arg02, arg12);
|
|
1135
1184
|
} finally {
|
|
1136
1185
|
state0.a = a;
|
|
1137
1186
|
}
|
|
@@ -1167,6 +1216,14 @@ function __wbg_get_imports() {
|
|
|
1167
1216
|
__wbg_set_name_7ef37fe858379aaf: function(arg0, arg1, arg2) {
|
|
1168
1217
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1169
1218
|
},
|
|
1219
|
+
__wbg_signedfragment_unwrap: function(arg0) {
|
|
1220
|
+
const ret = SignedFragment.__unwrap(arg0);
|
|
1221
|
+
return ret;
|
|
1222
|
+
},
|
|
1223
|
+
__wbg_signedloosecommit_unwrap: function(arg0) {
|
|
1224
|
+
const ret = SignedLooseCommit.__unwrap(arg0);
|
|
1225
|
+
return ret;
|
|
1226
|
+
},
|
|
1170
1227
|
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1171
1228
|
const ret = typeof global === "undefined" ? null : global;
|
|
1172
1229
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1188,7 +1245,7 @@ function __wbg_get_imports() {
|
|
|
1188
1245
|
return ret;
|
|
1189
1246
|
},
|
|
1190
1247
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1191
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1248
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_385, __wasm_bindgen_func_elem_552);
|
|
1192
1249
|
return ret;
|
|
1193
1250
|
},
|
|
1194
1251
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1214,14 +1271,14 @@ function __wbg_get_imports() {
|
|
|
1214
1271
|
"./sedimentree_wasm_bg.js": import0
|
|
1215
1272
|
};
|
|
1216
1273
|
}
|
|
1217
|
-
function
|
|
1218
|
-
const ret = wasm.
|
|
1274
|
+
function __wasm_bindgen_func_elem_552(arg0, arg1, arg2) {
|
|
1275
|
+
const ret = wasm.__wasm_bindgen_func_elem_552(arg0, arg1, arg2);
|
|
1219
1276
|
if (ret[1]) {
|
|
1220
1277
|
throw takeFromExternrefTable0(ret[0]);
|
|
1221
1278
|
}
|
|
1222
1279
|
}
|
|
1223
|
-
function
|
|
1224
|
-
wasm.
|
|
1280
|
+
function __wasm_bindgen_func_elem_552_67(arg0, arg1, arg2, arg3) {
|
|
1281
|
+
wasm.__wasm_bindgen_func_elem_552_67(arg0, arg1, arg2, arg3);
|
|
1225
1282
|
}
|
|
1226
1283
|
var MemoryStorageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
1227
1284
|
}, unregister: () => {
|
|
@@ -1266,7 +1323,7 @@ var SignedLooseCommitFinalization = typeof FinalizationRegistry === "undefined"
|
|
|
1266
1323
|
}, unregister: () => {
|
|
1267
1324
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_signedloosecommit_free(ptr >>> 0, 1));
|
|
1268
1325
|
function addToExternrefTable0(obj) {
|
|
1269
|
-
const idx = wasm.
|
|
1326
|
+
const idx = wasm.__wbindgen_export4();
|
|
1270
1327
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1271
1328
|
return idx;
|
|
1272
1329
|
}
|
|
@@ -1278,6 +1335,62 @@ function _assertClass(instance, klass) {
|
|
|
1278
1335
|
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
1279
1336
|
}, unregister: () => {
|
|
1280
1337
|
} } : new FinalizationRegistry((state) => state.dtor(state.a, state.b));
|
|
1338
|
+
function debugString(val) {
|
|
1339
|
+
const type = typeof val;
|
|
1340
|
+
if (type == "number" || type == "boolean" || val == null) {
|
|
1341
|
+
return `${val}`;
|
|
1342
|
+
}
|
|
1343
|
+
if (type == "string") {
|
|
1344
|
+
return `"${val}"`;
|
|
1345
|
+
}
|
|
1346
|
+
if (type == "symbol") {
|
|
1347
|
+
const description = val.description;
|
|
1348
|
+
if (description == null) {
|
|
1349
|
+
return "Symbol";
|
|
1350
|
+
} else {
|
|
1351
|
+
return `Symbol(${description})`;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
if (type == "function") {
|
|
1355
|
+
const name = val.name;
|
|
1356
|
+
if (typeof name == "string" && name.length > 0) {
|
|
1357
|
+
return `Function(${name})`;
|
|
1358
|
+
} else {
|
|
1359
|
+
return "Function";
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
if (Array.isArray(val)) {
|
|
1363
|
+
const length = val.length;
|
|
1364
|
+
let debug = "[";
|
|
1365
|
+
if (length > 0) {
|
|
1366
|
+
debug += debugString(val[0]);
|
|
1367
|
+
}
|
|
1368
|
+
for (let i = 1; i < length; i++) {
|
|
1369
|
+
debug += ", " + debugString(val[i]);
|
|
1370
|
+
}
|
|
1371
|
+
debug += "]";
|
|
1372
|
+
return debug;
|
|
1373
|
+
}
|
|
1374
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1375
|
+
let className;
|
|
1376
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1377
|
+
className = builtInMatches[1];
|
|
1378
|
+
} else {
|
|
1379
|
+
return toString.call(val);
|
|
1380
|
+
}
|
|
1381
|
+
if (className == "Object") {
|
|
1382
|
+
try {
|
|
1383
|
+
return "Object(" + JSON.stringify(val) + ")";
|
|
1384
|
+
} catch (_) {
|
|
1385
|
+
return "Object";
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
if (val instanceof Error) {
|
|
1389
|
+
return `${val.name}: ${val.message}
|
|
1390
|
+
${val.stack}`;
|
|
1391
|
+
}
|
|
1392
|
+
return className;
|
|
1393
|
+
}
|
|
1281
1394
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
1282
1395
|
ptr = ptr >>> 0;
|
|
1283
1396
|
const mem = getDataViewMemory0();
|
|
@@ -1315,7 +1428,7 @@ function handleError(f, args) {
|
|
|
1315
1428
|
return f.apply(this, args);
|
|
1316
1429
|
} catch (e) {
|
|
1317
1430
|
const idx = addToExternrefTable0(e);
|
|
1318
|
-
wasm.
|
|
1431
|
+
wasm.__wbindgen_export3(idx);
|
|
1319
1432
|
}
|
|
1320
1433
|
}
|
|
1321
1434
|
function isLikeNone(x) {
|
|
@@ -1391,7 +1504,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
1391
1504
|
}
|
|
1392
1505
|
function takeFromExternrefTable0(idx) {
|
|
1393
1506
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1394
|
-
wasm.
|
|
1507
|
+
wasm.__wbindgen_export5(idx);
|
|
1395
1508
|
return value;
|
|
1396
1509
|
}
|
|
1397
1510
|
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|