@bitcredit/bcr-ebill-wasm 0.4.10 → 0.4.11
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/index.d.ts +6 -6
- package/index.js +43 -43
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1090,11 +1090,11 @@ export interface InitOutput {
|
|
|
1090
1090
|
readonly api_company: () => number;
|
|
1091
1091
|
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1092
1092
|
readonly __wbg_identityproof_free: (a: number, b: number) => void;
|
|
1093
|
-
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1094
1093
|
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
1095
|
-
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1096
1094
|
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
1097
1095
|
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
1096
|
+
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1097
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1098
1098
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1099
1099
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1100
1100
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -1103,11 +1103,11 @@ export interface InitOutput {
|
|
|
1103
1103
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1104
1104
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
1105
1105
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1106
|
-
readonly
|
|
1106
|
+
readonly wasm_bindgen__convert__closures_____invoke__h73608bf8a2f16823: (a: number, b: number) => void;
|
|
1107
1107
|
readonly closure359_externref_shim: (a: number, b: number, c: any) => void;
|
|
1108
|
-
readonly
|
|
1109
|
-
readonly
|
|
1110
|
-
readonly
|
|
1108
|
+
readonly closure891_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
1109
|
+
readonly wasm_bindgen__convert__closures_____invoke__h091d06eb50e30703: (a: number, b: number) => void;
|
|
1110
|
+
readonly closure673_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1111
1111
|
readonly __wbindgen_start: () => void;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
package/index.js
CHANGED
|
@@ -190,7 +190,7 @@ state => {
|
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
|
|
193
|
-
function
|
|
193
|
+
function makeClosure(arg0, arg1, dtor, f) {
|
|
194
194
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
195
195
|
const real = (...args) => {
|
|
196
196
|
|
|
@@ -198,16 +198,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
198
198
|
// count. This ensures that the Rust closure environment won't
|
|
199
199
|
// be deallocated while we're invoking it.
|
|
200
200
|
state.cnt++;
|
|
201
|
-
const a = state.a;
|
|
202
|
-
state.a = 0;
|
|
203
201
|
try {
|
|
204
|
-
return f(a, state.b, ...args);
|
|
202
|
+
return f(state.a, state.b, ...args);
|
|
205
203
|
} finally {
|
|
206
204
|
if (--state.cnt === 0) {
|
|
207
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
205
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b); state.a = 0;
|
|
208
206
|
CLOSURE_DTORS.unregister(state);
|
|
209
|
-
} else {
|
|
210
|
-
state.a = a;
|
|
211
207
|
}
|
|
212
208
|
}
|
|
213
209
|
};
|
|
@@ -216,7 +212,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
216
212
|
return real;
|
|
217
213
|
}
|
|
218
214
|
|
|
219
|
-
function
|
|
215
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
220
216
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
221
217
|
const real = (...args) => {
|
|
222
218
|
|
|
@@ -224,12 +220,16 @@ function makeClosure(arg0, arg1, dtor, f) {
|
|
|
224
220
|
// count. This ensures that the Rust closure environment won't
|
|
225
221
|
// be deallocated while we're invoking it.
|
|
226
222
|
state.cnt++;
|
|
223
|
+
const a = state.a;
|
|
224
|
+
state.a = 0;
|
|
227
225
|
try {
|
|
228
|
-
return f(
|
|
226
|
+
return f(a, state.b, ...args);
|
|
229
227
|
} finally {
|
|
230
228
|
if (--state.cnt === 0) {
|
|
231
|
-
wasm.__wbindgen_export_6.get(state.dtor)(
|
|
229
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
232
230
|
CLOSURE_DTORS.unregister(state);
|
|
231
|
+
} else {
|
|
232
|
+
state.a = a;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
};
|
|
@@ -262,27 +262,27 @@ export function task_worker_entry_point(ptr) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
function
|
|
266
|
-
wasm.
|
|
265
|
+
function __wbg_adapter_10(arg0, arg1) {
|
|
266
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h73608bf8a2f16823(arg0, arg1);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
function
|
|
269
|
+
function __wbg_adapter_13(arg0, arg1, arg2) {
|
|
270
270
|
wasm.closure359_externref_shim(arg0, arg1, arg2);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
function
|
|
274
|
-
const ret = wasm.
|
|
273
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
274
|
+
const ret = wasm.closure891_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
275
275
|
if (ret[1]) {
|
|
276
276
|
throw takeFromExternrefTable0(ret[0]);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
function
|
|
281
|
-
wasm.
|
|
280
|
+
function __wbg_adapter_23(arg0, arg1) {
|
|
281
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h091d06eb50e30703(arg0, arg1);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
function __wbg_adapter_231(arg0, arg1, arg2, arg3) {
|
|
285
|
-
wasm.
|
|
285
|
+
wasm.closure673_externref_shim(arg0, arg1, arg2, arg3);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
/**
|
|
@@ -1651,10 +1651,10 @@ function __wbg_get_imports() {
|
|
|
1651
1651
|
const ret = arg0.fetch(arg1);
|
|
1652
1652
|
return ret;
|
|
1653
1653
|
};
|
|
1654
|
-
imports.wbg.
|
|
1654
|
+
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1655
1655
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1656
1656
|
}, arguments) };
|
|
1657
|
-
imports.wbg.
|
|
1657
|
+
imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() { return handleError(function (arg0, arg1) {
|
|
1658
1658
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1659
1659
|
}, arguments) };
|
|
1660
1660
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -2272,16 +2272,6 @@ function __wbg_get_imports() {
|
|
|
2272
2272
|
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
2273
2273
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2274
2274
|
};
|
|
2275
|
-
imports.wbg.__wbindgen_cast_1e3eda00059a3c9b = function(arg0, arg1) {
|
|
2276
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 668, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2277
|
-
const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_9);
|
|
2278
|
-
return ret;
|
|
2279
|
-
};
|
|
2280
|
-
imports.wbg.__wbindgen_cast_1f0be5a03e92758f = function(arg0, arg1) {
|
|
2281
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 889, function: Function { arguments: [NamedExternref("Event")], shim_idx: 890, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2282
|
-
const ret = makeMutClosure(arg0, arg1, 889, __wbg_adapter_14);
|
|
2283
|
-
return ret;
|
|
2284
|
-
};
|
|
2285
2275
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
2286
2276
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2287
2277
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
@@ -2289,7 +2279,12 @@ function __wbg_get_imports() {
|
|
|
2289
2279
|
};
|
|
2290
2280
|
imports.wbg.__wbindgen_cast_2b95a68344a644f3 = function(arg0, arg1) {
|
|
2291
2281
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [], shim_idx: 274, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
2292
|
-
const ret = makeClosure(arg0, arg1, 273,
|
|
2282
|
+
const ret = makeClosure(arg0, arg1, 273, __wbg_adapter_10);
|
|
2283
|
+
return ret;
|
|
2284
|
+
};
|
|
2285
|
+
imports.wbg.__wbindgen_cast_40244a9e2f654bfd = function(arg0, arg1) {
|
|
2286
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 482, function: Function { arguments: [], shim_idx: 483, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2287
|
+
const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_23);
|
|
2293
2288
|
return ret;
|
|
2294
2289
|
};
|
|
2295
2290
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
@@ -2297,14 +2292,24 @@ function __wbg_get_imports() {
|
|
|
2297
2292
|
const ret = BigInt.asUintN(64, arg0);
|
|
2298
2293
|
return ret;
|
|
2299
2294
|
};
|
|
2295
|
+
imports.wbg.__wbindgen_cast_95ac9040f2c9c09a = function(arg0, arg1) {
|
|
2296
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 482, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2297
|
+
const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_13);
|
|
2298
|
+
return ret;
|
|
2299
|
+
};
|
|
2300
2300
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
2301
2301
|
// Cast intrinsic for `I64 -> Externref`.
|
|
2302
2302
|
const ret = arg0;
|
|
2303
2303
|
return ret;
|
|
2304
2304
|
};
|
|
2305
|
-
imports.wbg.
|
|
2306
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2307
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2305
|
+
imports.wbg.__wbindgen_cast_9c532814b5a699e1 = function(arg0, arg1) {
|
|
2306
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 748, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2307
|
+
const ret = makeMutClosure(arg0, arg1, 748, __wbg_adapter_13);
|
|
2308
|
+
return ret;
|
|
2309
|
+
};
|
|
2310
|
+
imports.wbg.__wbindgen_cast_ca64ae4bc910e254 = function(arg0, arg1) {
|
|
2311
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 887, function: Function { arguments: [], shim_idx: 483, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2312
|
+
const ret = makeMutClosure(arg0, arg1, 887, __wbg_adapter_23);
|
|
2308
2313
|
return ret;
|
|
2309
2314
|
};
|
|
2310
2315
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
@@ -2317,19 +2322,14 @@ function __wbg_get_imports() {
|
|
|
2317
2322
|
const ret = arg0;
|
|
2318
2323
|
return ret;
|
|
2319
2324
|
};
|
|
2320
|
-
imports.wbg.
|
|
2321
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2322
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2323
|
-
return ret;
|
|
2324
|
-
};
|
|
2325
|
-
imports.wbg.__wbindgen_cast_e3d6704fc2f8f5a8 = function(arg0, arg1) {
|
|
2326
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 484, function: Function { arguments: [], shim_idx: 485, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2327
|
-
const ret = makeMutClosure(arg0, arg1, 484, __wbg_adapter_6);
|
|
2325
|
+
imports.wbg.__wbindgen_cast_e29869381abd34df = function(arg0, arg1) {
|
|
2326
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 890, function: Function { arguments: [NamedExternref("Event")], shim_idx: 891, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2327
|
+
const ret = makeMutClosure(arg0, arg1, 890, __wbg_adapter_16);
|
|
2328
2328
|
return ret;
|
|
2329
2329
|
};
|
|
2330
2330
|
imports.wbg.__wbindgen_cast_ef1296fe0ce0c82f = function(arg0, arg1) {
|
|
2331
2331
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2332
|
-
const ret = makeMutClosure(arg0, arg1, 273,
|
|
2332
|
+
const ret = makeMutClosure(arg0, arg1, 273, __wbg_adapter_13);
|
|
2333
2333
|
return ret;
|
|
2334
2334
|
};
|
|
2335
2335
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
package/index_bg.wasm
CHANGED
|
Binary file
|