@bitwarden/sdk-internal 0.2.0-main.92 → 0.2.0-main.93
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 +6 -6
- package/bitwarden_wasm_internal_bg.js +13 -13
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +1 -1
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +6 -6
- package/node/bitwarden_wasm_internal.js +13 -13
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
@@ -313,12 +313,6 @@ export interface TotpError extends Error {
|
|
313
313
|
|
314
314
|
export function isTotpError(error: any): error is TotpError;
|
315
315
|
|
316
|
-
export interface TestError extends Error {
|
317
|
-
name: "TestError";
|
318
|
-
}
|
319
|
-
|
320
|
-
export function isTestError(error: any): error is TestError;
|
321
|
-
|
322
316
|
export type Uuid = string;
|
323
317
|
|
324
318
|
/**
|
@@ -337,6 +331,12 @@ export type Utc = unknown;
|
|
337
331
|
*/
|
338
332
|
export type NonZeroU32 = number;
|
339
333
|
|
334
|
+
export interface TestError extends Error {
|
335
|
+
name: "TestError";
|
336
|
+
}
|
337
|
+
|
338
|
+
export function isTestError(error: any): error is TestError;
|
339
|
+
|
340
340
|
export class BitwardenClient {
|
341
341
|
free(): void;
|
342
342
|
constructor(settings?: ClientSettings | null, log_level?: LogLevel | null);
|
@@ -370,19 +370,6 @@ module.exports.isTotpError = function (error) {
|
|
370
370
|
}
|
371
371
|
};
|
372
372
|
|
373
|
-
/**
|
374
|
-
* @param {any} error
|
375
|
-
* @returns {boolean}
|
376
|
-
*/
|
377
|
-
module.exports.isTestError = function (error) {
|
378
|
-
try {
|
379
|
-
const ret = wasm.isTestError(addBorrowedObject(error));
|
380
|
-
return ret !== 0;
|
381
|
-
} finally {
|
382
|
-
heap[stack_pointer++] = undefined;
|
383
|
-
}
|
384
|
-
};
|
385
|
-
|
386
373
|
/**
|
387
374
|
* Generate a new SSH key pair
|
388
375
|
*
|
@@ -451,6 +438,19 @@ module.exports.import_ssh_key = function (imported_key, password) {
|
|
451
438
|
}
|
452
439
|
};
|
453
440
|
|
441
|
+
/**
|
442
|
+
* @param {any} error
|
443
|
+
* @returns {boolean}
|
444
|
+
*/
|
445
|
+
module.exports.isTestError = function (error) {
|
446
|
+
try {
|
447
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
448
|
+
return ret !== 0;
|
449
|
+
} finally {
|
450
|
+
heap[stack_pointer++] = undefined;
|
451
|
+
}
|
452
|
+
};
|
453
|
+
|
454
454
|
function __wbg_adapter_40(arg0, arg1, arg2) {
|
455
455
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7af7927fe391910e(
|
456
456
|
arg0,
|
Binary file
|
@@ -18,7 +18,6 @@ export const bitwardenclient_version: (a: number, b: number) => void;
|
|
18
18
|
export const bitwardenclient_throw: (a: number, b: number, c: number, d: number) => void;
|
19
19
|
export const bitwardenclient_http_get: (a: number, b: number, c: number) => number;
|
20
20
|
export const bitwardenclient_crypto: (a: number) => number;
|
21
|
-
export const isTestError: (a: number) => number;
|
22
21
|
export const cryptoclient_initialize_user_crypto: (a: number, b: number) => number;
|
23
22
|
export const cryptoclient_initialize_org_crypto: (a: number, b: number) => number;
|
24
23
|
export const cryptoclient_make_key_pair: (a: number, b: number, c: number, d: number) => void;
|
@@ -34,6 +33,7 @@ export const clienttotp_generate_totp: (
|
|
34
33
|
e: number,
|
35
34
|
f: number,
|
36
35
|
) => void;
|
36
|
+
export const isTestError: (a: number) => number;
|
37
37
|
export const __wbg_cryptoclient_free: (a: number, b: number) => void;
|
38
38
|
export const __wbg_clientfolders_free: (a: number, b: number) => void;
|
39
39
|
export const __wbg_clienttotp_free: (a: number, b: number) => void;
|