@bitwarden/sdk-internal 0.2.0-main.105 → 0.2.0-main.107
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/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +2 -1
- package/bitwarden_wasm_internal_bg.js +15 -12
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +4 -3
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +2 -1
- package/node/bitwarden_wasm_internal.js +15 -12
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function init_sdk(log_level?: LogLevel | null): void;
|
|
3
4
|
/**
|
|
4
5
|
* Generate a new SSH key pair
|
|
5
6
|
*
|
|
@@ -347,7 +348,7 @@ export function isTestError(error: any): error is TestError;
|
|
|
347
348
|
|
|
348
349
|
export class BitwardenClient {
|
|
349
350
|
free(): void;
|
|
350
|
-
constructor(settings?: ClientSettings | null
|
|
351
|
+
constructor(settings?: ClientSettings | null);
|
|
351
352
|
/**
|
|
352
353
|
* Test method, echoes back the input
|
|
353
354
|
*/
|
|
@@ -303,6 +303,13 @@ function takeFromExternrefTable0(idx) {
|
|
|
303
303
|
wasm.__externref_table_dealloc(idx);
|
|
304
304
|
return value;
|
|
305
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* @param {LogLevel | null} [log_level]
|
|
308
|
+
*/
|
|
309
|
+
module.exports.init_sdk = function (log_level) {
|
|
310
|
+
wasm.init_sdk(isLikeNone(log_level) ? 5 : log_level);
|
|
311
|
+
};
|
|
312
|
+
|
|
306
313
|
/**
|
|
307
314
|
* Generate a new SSH key pair
|
|
308
315
|
*
|
|
@@ -365,11 +372,11 @@ module.exports.isTestError = function (error) {
|
|
|
365
372
|
};
|
|
366
373
|
|
|
367
374
|
function __wbg_adapter_42(arg0, arg1, arg2) {
|
|
368
|
-
wasm.
|
|
375
|
+
wasm.closure544_externref_shim(arg0, arg1, arg2);
|
|
369
376
|
}
|
|
370
377
|
|
|
371
|
-
function
|
|
372
|
-
wasm.
|
|
378
|
+
function __wbg_adapter_146(arg0, arg1, arg2, arg3) {
|
|
379
|
+
wasm.closure402_externref_shim(arg0, arg1, arg2, arg3);
|
|
373
380
|
}
|
|
374
381
|
|
|
375
382
|
/**
|
|
@@ -411,13 +418,9 @@ class BitwardenClient {
|
|
|
411
418
|
}
|
|
412
419
|
/**
|
|
413
420
|
* @param {ClientSettings | null} [settings]
|
|
414
|
-
* @param {LogLevel | null} [log_level]
|
|
415
421
|
*/
|
|
416
|
-
constructor(settings
|
|
417
|
-
const ret = wasm.bitwardenclient_new(
|
|
418
|
-
isLikeNone(settings) ? 0 : addToExternrefTable0(settings),
|
|
419
|
-
isLikeNone(log_level) ? 5 : log_level,
|
|
420
|
-
);
|
|
422
|
+
constructor(settings) {
|
|
423
|
+
const ret = wasm.bitwardenclient_new(isLikeNone(settings) ? 0 : addToExternrefTable0(settings));
|
|
421
424
|
this.__wbg_ptr = ret >>> 0;
|
|
422
425
|
BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
|
|
423
426
|
return this;
|
|
@@ -939,7 +942,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
939
942
|
const a = state0.a;
|
|
940
943
|
state0.a = 0;
|
|
941
944
|
try {
|
|
942
|
-
return
|
|
945
|
+
return __wbg_adapter_146(a, state0.b, arg0, arg1);
|
|
943
946
|
} finally {
|
|
944
947
|
state0.a = a;
|
|
945
948
|
}
|
|
@@ -1256,8 +1259,8 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
1256
1259
|
return ret;
|
|
1257
1260
|
};
|
|
1258
1261
|
|
|
1259
|
-
module.exports.
|
|
1260
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1262
|
+
module.exports.__wbindgen_closure_wrapper2127 = function (arg0, arg1, arg2) {
|
|
1263
|
+
const ret = makeMutClosure(arg0, arg1, 545, __wbg_adapter_42);
|
|
1261
1264
|
return ret;
|
|
1262
1265
|
};
|
|
1263
1266
|
|
|
Binary file
|
|
@@ -12,7 +12,7 @@ export const isDecryptError: (a: any) => number;
|
|
|
12
12
|
export const isEncryptError: (a: any) => number;
|
|
13
13
|
export const isTotpError: (a: any) => number;
|
|
14
14
|
export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
|
|
15
|
-
export const bitwardenclient_new: (a: number
|
|
15
|
+
export const bitwardenclient_new: (a: number) => number;
|
|
16
16
|
export const bitwardenclient_echo: (a: number, b: number, c: number) => [number, number];
|
|
17
17
|
export const bitwardenclient_version: (a: number) => [number, number];
|
|
18
18
|
export const bitwardenclient_throw: (a: number, b: number, c: number) => [number, number];
|
|
@@ -26,6 +26,7 @@ export const cryptoclient_make_key_pair: (
|
|
|
26
26
|
c: number,
|
|
27
27
|
) => [number, number, number];
|
|
28
28
|
export const cryptoclient_verify_asymmetric_keys: (a: number, b: any) => [number, number, number];
|
|
29
|
+
export const init_sdk: (a: number) => void;
|
|
29
30
|
export const generate_ssh_key: (a: any) => [number, number, number];
|
|
30
31
|
export const import_ssh_key: (
|
|
31
32
|
a: number,
|
|
@@ -57,6 +58,6 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
57
58
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
58
59
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
59
60
|
export const __externref_table_dealloc: (a: number) => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
61
|
+
export const closure544_externref_shim: (a: number, b: number, c: any) => void;
|
|
62
|
+
export const closure402_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
62
63
|
export const __wbindgen_start: () => void;
|