@bitwarden/sdk-internal 0.2.0-main.42 → 0.2.0-main.44

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.
@@ -258,7 +258,7 @@ export class BitwardenClient {
258
258
  */
259
259
  echo(msg: string): string;
260
260
  version(): string;
261
- throw(msg: string): Promise<void>;
261
+ throw(msg: string): void;
262
262
  /**
263
263
  * Test method, calls http endpoint
264
264
  */
@@ -429,13 +429,21 @@ export class BitwardenClient {
429
429
  }
430
430
  /**
431
431
  * @param {string} msg
432
- * @returns {Promise<void>}
433
432
  */
434
433
  throw(msg) {
435
- const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
436
- const len0 = WASM_VECTOR_LEN;
437
- const ret = wasm.bitwardenclient_throw(this.__wbg_ptr, ptr0, len0);
438
- return takeObject(ret);
434
+ try {
435
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
436
+ const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
437
+ const len0 = WASM_VECTOR_LEN;
438
+ wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
439
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
440
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
441
+ if (r1) {
442
+ throw takeObject(r0);
443
+ }
444
+ } finally {
445
+ wasm.__wbindgen_add_to_stack_pointer(16);
446
+ }
439
447
  }
440
448
  /**
441
449
  * Test method, calls http endpoint
@@ -1173,8 +1181,8 @@ export function __wbindgen_cb_drop(arg0) {
1173
1181
  return ret;
1174
1182
  }
1175
1183
 
1176
- export function __wbindgen_closure_wrapper1933(arg0, arg1, arg2) {
1177
- const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
1184
+ export function __wbindgen_closure_wrapper1929(arg0, arg1, arg2) {
1185
+ const ret = makeMutClosure(arg0, arg1, 545, __wbg_adapter_38);
1178
1186
  return addHeapObject(ret);
1179
1187
  }
1180
1188
 
Binary file
@@ -8,7 +8,7 @@ export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
8
8
  export const bitwardenclient_new: (a: number, b: number) => number;
9
9
  export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
10
10
  export const bitwardenclient_version: (a: number, b: number) => void;
11
- export const bitwardenclient_throw: (a: number, b: number, c: number) => number;
11
+ export const bitwardenclient_throw: (a: number, b: number, c: number, d: number) => void;
12
12
  export const bitwardenclient_http_get: (a: number, b: number, c: number) => number;
13
13
  export const bitwardenclient_crypto: (a: number) => number;
14
14
  export const isTestError: (a: number) => number;