@bitwarden/sdk-internal 0.1.6 → 0.1.7
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/bitwarden_wasm_internal.d.ts +4 -0
- package/bitwarden_wasm_internal_bg.js +42 -23
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +3 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +4 -0
- package/node/bitwarden_wasm_internal.js +42 -23
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +3 -2
- package/package.json +2 -2
|
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec6c9a85ed863308(
|
|
229
229
|
arg0,
|
|
230
230
|
arg1,
|
|
231
231
|
addHeapObject(arg2),
|
|
@@ -239,8 +239,8 @@ function handleError(f, args) {
|
|
|
239
239
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
wasm.
|
|
242
|
+
function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
|
|
243
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(
|
|
244
244
|
arg0,
|
|
245
245
|
arg1,
|
|
246
246
|
addHeapObject(arg2),
|
|
@@ -318,6 +318,25 @@ class BitwardenClient {
|
|
|
318
318
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* @returns {string}
|
|
323
|
+
*/
|
|
324
|
+
version() {
|
|
325
|
+
let deferred1_0;
|
|
326
|
+
let deferred1_1;
|
|
327
|
+
try {
|
|
328
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
329
|
+
wasm.bitwardenclient_version(retptr, this.__wbg_ptr);
|
|
330
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
331
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
332
|
+
deferred1_0 = r0;
|
|
333
|
+
deferred1_1 = r1;
|
|
334
|
+
return getStringFromWasm0(r0, r1);
|
|
335
|
+
} finally {
|
|
336
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
337
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
321
340
|
/**
|
|
322
341
|
* @param {string} msg
|
|
323
342
|
*/
|
|
@@ -566,7 +585,24 @@ module.exports.__wbindgen_object_clone_ref = function (arg0) {
|
|
|
566
585
|
return addHeapObject(ret);
|
|
567
586
|
};
|
|
568
587
|
|
|
569
|
-
module.exports.
|
|
588
|
+
module.exports.__wbg_next_b06e115d1b01e10b = function () {
|
|
589
|
+
return handleError(function (arg0) {
|
|
590
|
+
const ret = getObject(arg0).next();
|
|
591
|
+
return addHeapObject(ret);
|
|
592
|
+
}, arguments);
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
module.exports.__wbg_done_983b5ffcaec8c583 = function (arg0) {
|
|
596
|
+
const ret = getObject(arg0).done;
|
|
597
|
+
return ret;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
module.exports.__wbg_value_2ab8a198c834c26a = function (arg0) {
|
|
601
|
+
const ret = getObject(arg0).value;
|
|
602
|
+
return addHeapObject(ret);
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
module.exports.__wbg_new_97e630adfc58d1e5 = function (arg0, arg1) {
|
|
570
606
|
let deferred0_0;
|
|
571
607
|
let deferred0_1;
|
|
572
608
|
try {
|
|
@@ -662,23 +698,6 @@ module.exports.__wbg_headers_1b9bf90c73fae600 = function (arg0) {
|
|
|
662
698
|
return addHeapObject(ret);
|
|
663
699
|
};
|
|
664
700
|
|
|
665
|
-
module.exports.__wbg_next_b06e115d1b01e10b = function () {
|
|
666
|
-
return handleError(function (arg0) {
|
|
667
|
-
const ret = getObject(arg0).next();
|
|
668
|
-
return addHeapObject(ret);
|
|
669
|
-
}, arguments);
|
|
670
|
-
};
|
|
671
|
-
|
|
672
|
-
module.exports.__wbg_done_983b5ffcaec8c583 = function (arg0) {
|
|
673
|
-
const ret = getObject(arg0).done;
|
|
674
|
-
return ret;
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
module.exports.__wbg_value_2ab8a198c834c26a = function (arg0) {
|
|
678
|
-
const ret = getObject(arg0).value;
|
|
679
|
-
return addHeapObject(ret);
|
|
680
|
-
};
|
|
681
|
-
|
|
682
701
|
module.exports.__wbg_stringify_eead5648c09faaf8 = function () {
|
|
683
702
|
return handleError(function (arg0) {
|
|
684
703
|
const ret = JSON.stringify(getObject(arg0));
|
|
@@ -729,7 +748,7 @@ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
|
|
|
729
748
|
const a = state0.a;
|
|
730
749
|
state0.a = 0;
|
|
731
750
|
try {
|
|
732
|
-
return
|
|
751
|
+
return __wbg_adapter_100(a, state0.b, arg0, arg1);
|
|
733
752
|
} finally {
|
|
734
753
|
state0.a = a;
|
|
735
754
|
}
|
|
@@ -1046,7 +1065,7 @@ module.exports.__wbg_warn_2e2787d40aad9a81 = function (arg0, arg1, arg2, arg3) {
|
|
|
1046
1065
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1047
1066
|
};
|
|
1048
1067
|
|
|
1049
|
-
module.exports.
|
|
1068
|
+
module.exports.__wbindgen_closure_wrapper1610 = function (arg0, arg1, arg2) {
|
|
1050
1069
|
const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_38);
|
|
1051
1070
|
return addHeapObject(ret);
|
|
1052
1071
|
};
|
|
Binary file
|
|
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
|
|
|
4
4
|
export function __wbg_bitwardenclient_free(a: number, b: number): void;
|
|
5
5
|
export function bitwardenclient_new(a: number, b: number): number;
|
|
6
6
|
export function bitwardenclient_echo(a: number, b: number, c: number, d: number): void;
|
|
7
|
+
export function bitwardenclient_version(a: number, b: number): void;
|
|
7
8
|
export function bitwardenclient_throw(a: number, b: number, c: number, d: number): void;
|
|
8
9
|
export function bitwardenclient_http_get(a: number, b: number, c: number): number;
|
|
9
10
|
export function bitwardenclient_crypto(a: number): number;
|
|
@@ -18,7 +19,7 @@ export function clientvault_folders(a: number): number;
|
|
|
18
19
|
export function __wbindgen_malloc(a: number, b: number): number;
|
|
19
20
|
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
|
20
21
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
21
|
-
export function
|
|
22
|
+
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec6c9a85ed863308(
|
|
22
23
|
a: number,
|
|
23
24
|
b: number,
|
|
24
25
|
c: number,
|
|
@@ -26,7 +27,7 @@ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen
|
|
|
26
27
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
27
28
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
28
29
|
export function __wbindgen_exn_store(a: number): void;
|
|
29
|
-
export function
|
|
30
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(
|
|
30
31
|
a: number,
|
|
31
32
|
b: number,
|
|
32
33
|
c: number,
|