@bitwarden/sdk-internal 0.2.0-main.91 → 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 CHANGED
@@ -1 +1 @@
1
- c89ea8e56228939a3750fc29e599fbcf1cda3ff7
1
+ f6dbde32794c00cac4583741086f60f0ea6c0364
@@ -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);
@@ -376,19 +376,6 @@ export function isTotpError(error) {
376
376
  }
377
377
  }
378
378
 
379
- /**
380
- * @param {any} error
381
- * @returns {boolean}
382
- */
383
- export function isTestError(error) {
384
- try {
385
- const ret = wasm.isTestError(addBorrowedObject(error));
386
- return ret !== 0;
387
- } finally {
388
- heap[stack_pointer++] = undefined;
389
- }
390
- }
391
-
392
379
  /**
393
380
  * Generate a new SSH key pair
394
381
  *
@@ -457,6 +444,19 @@ export function import_ssh_key(imported_key, password) {
457
444
  }
458
445
  }
459
446
 
447
+ /**
448
+ * @param {any} error
449
+ * @returns {boolean}
450
+ */
451
+ export function isTestError(error) {
452
+ try {
453
+ const ret = wasm.isTestError(addBorrowedObject(error));
454
+ return ret !== 0;
455
+ } finally {
456
+ heap[stack_pointer++] = undefined;
457
+ }
458
+ }
459
+
460
460
  function __wbg_adapter_40(arg0, arg1, arg2) {
461
461
  wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7af7927fe391910e(
462
462
  arg0,
@@ -1405,8 +1405,8 @@ export function __wbindgen_cb_drop(arg0) {
1405
1405
  return ret;
1406
1406
  }
1407
1407
 
1408
- export function __wbindgen_closure_wrapper2086(arg0, arg1, arg2) {
1409
- const ret = makeMutClosure(arg0, arg1, 559, __wbg_adapter_40);
1408
+ export function __wbindgen_closure_wrapper2153(arg0, arg1, arg2) {
1409
+ const ret = makeMutClosure(arg0, arg1, 605, __wbg_adapter_40);
1410
1410
  return addHeapObject(ret);
1411
1411
  }
1412
1412
 
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;