@bitwarden/sdk-internal 0.1.6 → 0.2.0-main.1
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
|
@@ -231,7 +231,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
231
231
|
return real;
|
|
232
232
|
}
|
|
233
233
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
|
234
|
-
wasm.
|
|
234
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hec6c9a85ed863308(
|
|
235
235
|
arg0,
|
|
236
236
|
arg1,
|
|
237
237
|
addHeapObject(arg2),
|
|
@@ -245,8 +245,8 @@ function handleError(f, args) {
|
|
|
245
245
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
248
|
+
function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
|
|
249
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(
|
|
250
250
|
arg0,
|
|
251
251
|
arg1,
|
|
252
252
|
addHeapObject(arg2),
|
|
@@ -324,6 +324,25 @@ export class BitwardenClient {
|
|
|
324
324
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* @returns {string}
|
|
329
|
+
*/
|
|
330
|
+
version() {
|
|
331
|
+
let deferred1_0;
|
|
332
|
+
let deferred1_1;
|
|
333
|
+
try {
|
|
334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
335
|
+
wasm.bitwardenclient_version(retptr, this.__wbg_ptr);
|
|
336
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
337
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
338
|
+
deferred1_0 = r0;
|
|
339
|
+
deferred1_1 = r1;
|
|
340
|
+
return getStringFromWasm0(r0, r1);
|
|
341
|
+
} finally {
|
|
342
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
343
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
327
346
|
/**
|
|
328
347
|
* @param {string} msg
|
|
329
348
|
*/
|
|
@@ -568,7 +587,24 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
568
587
|
return addHeapObject(ret);
|
|
569
588
|
}
|
|
570
589
|
|
|
571
|
-
export function
|
|
590
|
+
export function __wbg_next_b06e115d1b01e10b() {
|
|
591
|
+
return handleError(function (arg0) {
|
|
592
|
+
const ret = getObject(arg0).next();
|
|
593
|
+
return addHeapObject(ret);
|
|
594
|
+
}, arguments);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
export function __wbg_done_983b5ffcaec8c583(arg0) {
|
|
598
|
+
const ret = getObject(arg0).done;
|
|
599
|
+
return ret;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export function __wbg_value_2ab8a198c834c26a(arg0) {
|
|
603
|
+
const ret = getObject(arg0).value;
|
|
604
|
+
return addHeapObject(ret);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export function __wbg_new_b9ef247b18a93a97(arg0, arg1) {
|
|
572
608
|
let deferred0_0;
|
|
573
609
|
let deferred0_1;
|
|
574
610
|
try {
|
|
@@ -664,23 +700,6 @@ export function __wbg_headers_1b9bf90c73fae600(arg0) {
|
|
|
664
700
|
return addHeapObject(ret);
|
|
665
701
|
}
|
|
666
702
|
|
|
667
|
-
export function __wbg_next_b06e115d1b01e10b() {
|
|
668
|
-
return handleError(function (arg0) {
|
|
669
|
-
const ret = getObject(arg0).next();
|
|
670
|
-
return addHeapObject(ret);
|
|
671
|
-
}, arguments);
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
export function __wbg_done_983b5ffcaec8c583(arg0) {
|
|
675
|
-
const ret = getObject(arg0).done;
|
|
676
|
-
return ret;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
export function __wbg_value_2ab8a198c834c26a(arg0) {
|
|
680
|
-
const ret = getObject(arg0).value;
|
|
681
|
-
return addHeapObject(ret);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
703
|
export function __wbg_stringify_eead5648c09faaf8() {
|
|
685
704
|
return handleError(function (arg0) {
|
|
686
705
|
const ret = JSON.stringify(getObject(arg0));
|
|
@@ -731,7 +750,7 @@ export function __wbg_new_1073970097e5a420(arg0, arg1) {
|
|
|
731
750
|
const a = state0.a;
|
|
732
751
|
state0.a = 0;
|
|
733
752
|
try {
|
|
734
|
-
return
|
|
753
|
+
return __wbg_adapter_100(a, state0.b, arg0, arg1);
|
|
735
754
|
} finally {
|
|
736
755
|
state0.a = a;
|
|
737
756
|
}
|
|
@@ -1048,7 +1067,7 @@ export function __wbg_warn_2e2787d40aad9a81(arg0, arg1, arg2, arg3) {
|
|
|
1048
1067
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1049
1068
|
}
|
|
1050
1069
|
|
|
1051
|
-
export function
|
|
1070
|
+
export function __wbindgen_closure_wrapper1610(arg0, arg1, arg2) {
|
|
1052
1071
|
const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_38);
|
|
1053
1072
|
return addHeapObject(ret);
|
|
1054
1073
|
}
|
|
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,
|