@bitwarden/sdk-internal 0.2.0-main.310 → 0.2.0-main.312
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 +1 -6
- package/bitwarden_wasm_internal_bg.js +23 -36
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +2 -3
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +1 -6
- package/node/bitwarden_wasm_internal.js +23 -36
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +2 -3
- package/package.json +1 -1
|
@@ -945,12 +945,7 @@ export interface PassphraseGeneratorRequest {
|
|
|
945
945
|
includeNumber: boolean;
|
|
946
946
|
}
|
|
947
947
|
|
|
948
|
-
export
|
|
949
|
-
name: "PassphraseError";
|
|
950
|
-
variant: "InvalidNumWords";
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
export function isPassphraseError(error: any): error is PassphraseError;
|
|
948
|
+
export type PassphraseError = { InvalidNumWords: { minimum: number; maximum: number } };
|
|
954
949
|
|
|
955
950
|
export interface DiscoverResponse {
|
|
956
951
|
version: string;
|
|
@@ -507,19 +507,6 @@ module.exports.isPasswordError = function (error) {
|
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
509
|
|
|
510
|
-
/**
|
|
511
|
-
* @param {any} error
|
|
512
|
-
* @returns {boolean}
|
|
513
|
-
*/
|
|
514
|
-
module.exports.isPassphraseError = function (error) {
|
|
515
|
-
try {
|
|
516
|
-
const ret = wasm.isPassphraseError(addBorrowedObject(error));
|
|
517
|
-
return ret !== 0;
|
|
518
|
-
} finally {
|
|
519
|
-
heap[stack_pointer++] = undefined;
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
|
|
523
510
|
function _assertClass(instance, klass) {
|
|
524
511
|
if (!(instance instanceof klass)) {
|
|
525
512
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -830,7 +817,7 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
830
817
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
831
818
|
try {
|
|
832
819
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
833
|
-
wasm.
|
|
820
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
|
|
834
821
|
retptr,
|
|
835
822
|
arg0,
|
|
836
823
|
arg1,
|
|
@@ -847,7 +834,7 @@ function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
|
847
834
|
}
|
|
848
835
|
|
|
849
836
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
850
|
-
wasm.
|
|
837
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
851
838
|
arg0,
|
|
852
839
|
arg1,
|
|
853
840
|
addHeapObject(arg2),
|
|
@@ -861,7 +848,7 @@ function __wbg_adapter_60(arg0, arg1) {
|
|
|
861
848
|
);
|
|
862
849
|
}
|
|
863
850
|
|
|
864
|
-
function
|
|
851
|
+
function __wbg_adapter_336(arg0, arg1, arg2, arg3) {
|
|
865
852
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
866
853
|
arg0,
|
|
867
854
|
arg1,
|
|
@@ -4157,7 +4144,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4157
4144
|
return ret;
|
|
4158
4145
|
};
|
|
4159
4146
|
|
|
4160
|
-
module.exports.
|
|
4147
|
+
module.exports.__wbg_get_06413fe5c74b47e9 = function () {
|
|
4161
4148
|
return handleError(function (arg0, arg1, arg2) {
|
|
4162
4149
|
let deferred0_0;
|
|
4163
4150
|
let deferred0_1;
|
|
@@ -4179,7 +4166,7 @@ module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
|
4179
4166
|
}, arguments);
|
|
4180
4167
|
};
|
|
4181
4168
|
|
|
4182
|
-
module.exports.
|
|
4169
|
+
module.exports.__wbg_get_a0e559c325e5c984 = function () {
|
|
4183
4170
|
return handleError(function (arg0, arg1, arg2) {
|
|
4184
4171
|
let deferred0_0;
|
|
4185
4172
|
let deferred0_1;
|
|
@@ -4199,7 +4186,7 @@ module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
|
4199
4186
|
return addHeapObject(ret);
|
|
4200
4187
|
};
|
|
4201
4188
|
|
|
4202
|
-
module.exports.
|
|
4189
|
+
module.exports.__wbg_getaccesstoken_9ea03742be981bde = function (arg0) {
|
|
4203
4190
|
const ret = getObject(arg0).get_access_token();
|
|
4204
4191
|
return addHeapObject(ret);
|
|
4205
4192
|
};
|
|
@@ -4384,14 +4371,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
|
4384
4371
|
return ret;
|
|
4385
4372
|
};
|
|
4386
4373
|
|
|
4387
|
-
module.exports.
|
|
4374
|
+
module.exports.__wbg_list_3f12bdb7e5687184 = function () {
|
|
4388
4375
|
return handleError(function (arg0) {
|
|
4389
4376
|
const ret = getObject(arg0).list();
|
|
4390
4377
|
return addHeapObject(ret);
|
|
4391
4378
|
}, arguments);
|
|
4392
4379
|
};
|
|
4393
4380
|
|
|
4394
|
-
module.exports.
|
|
4381
|
+
module.exports.__wbg_list_a617cda4a5e0a3eb = function () {
|
|
4395
4382
|
return handleError(function (arg0) {
|
|
4396
4383
|
const ret = getObject(arg0).list();
|
|
4397
4384
|
return addHeapObject(ret);
|
|
@@ -4434,7 +4421,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
|
4434
4421
|
const a = state0.a;
|
|
4435
4422
|
state0.a = 0;
|
|
4436
4423
|
try {
|
|
4437
|
-
return
|
|
4424
|
+
return __wbg_adapter_336(a, state0.b, arg0, arg1);
|
|
4438
4425
|
} finally {
|
|
4439
4426
|
state0.a = a;
|
|
4440
4427
|
}
|
|
@@ -4592,7 +4579,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
|
4592
4579
|
}, arguments);
|
|
4593
4580
|
};
|
|
4594
4581
|
|
|
4595
|
-
module.exports.
|
|
4582
|
+
module.exports.__wbg_remove_55d70a14faa7a84e = function () {
|
|
4596
4583
|
return handleError(function (arg0, arg1, arg2) {
|
|
4597
4584
|
let deferred0_0;
|
|
4598
4585
|
let deferred0_1;
|
|
@@ -4607,7 +4594,7 @@ module.exports.__wbg_remove_975abb7a03360aba = function () {
|
|
|
4607
4594
|
}, arguments);
|
|
4608
4595
|
};
|
|
4609
4596
|
|
|
4610
|
-
module.exports.
|
|
4597
|
+
module.exports.__wbg_remove_960e3b50ec787551 = function () {
|
|
4611
4598
|
return handleError(function (arg0, arg1, arg2) {
|
|
4612
4599
|
let deferred0_0;
|
|
4613
4600
|
let deferred0_1;
|
|
@@ -4661,7 +4648,11 @@ module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
|
4661
4648
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4662
4649
|
};
|
|
4663
4650
|
|
|
4664
|
-
module.exports.
|
|
4651
|
+
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4652
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4653
|
+
};
|
|
4654
|
+
|
|
4655
|
+
module.exports.__wbg_set_707b38d265c0047e = function () {
|
|
4665
4656
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4666
4657
|
let deferred0_0;
|
|
4667
4658
|
let deferred0_1;
|
|
@@ -4676,16 +4667,12 @@ module.exports.__wbg_set_40d071fe896210d7 = function () {
|
|
|
4676
4667
|
}, arguments);
|
|
4677
4668
|
};
|
|
4678
4669
|
|
|
4679
|
-
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4680
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
4670
|
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4684
4671
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4685
4672
|
return addHeapObject(ret);
|
|
4686
4673
|
};
|
|
4687
4674
|
|
|
4688
|
-
module.exports.
|
|
4675
|
+
module.exports.__wbg_set_fa5f3e1670c6515d = function () {
|
|
4689
4676
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4690
4677
|
let deferred0_0;
|
|
4691
4678
|
let deferred0_1;
|
|
@@ -4920,18 +4907,18 @@ module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
|
|
|
4920
4907
|
return addHeapObject(ret);
|
|
4921
4908
|
};
|
|
4922
4909
|
|
|
4923
|
-
module.exports.
|
|
4924
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4910
|
+
module.exports.__wbindgen_closure_wrapper3801 = function (arg0, arg1, arg2) {
|
|
4911
|
+
const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
|
|
4925
4912
|
return addHeapObject(ret);
|
|
4926
4913
|
};
|
|
4927
4914
|
|
|
4928
|
-
module.exports.
|
|
4929
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4915
|
+
module.exports.__wbindgen_closure_wrapper6146 = function (arg0, arg1, arg2) {
|
|
4916
|
+
const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_60);
|
|
4930
4917
|
return addHeapObject(ret);
|
|
4931
4918
|
};
|
|
4932
4919
|
|
|
4933
|
-
module.exports.
|
|
4934
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4920
|
+
module.exports.__wbindgen_closure_wrapper6531 = function (arg0, arg1, arg2) {
|
|
4921
|
+
const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_57);
|
|
4935
4922
|
return addHeapObject(ret);
|
|
4936
4923
|
};
|
|
4937
4924
|
|
|
Binary file
|
|
@@ -251,7 +251,6 @@ export const generatorclient_password: (a: number, b: number, c: number) => void
|
|
|
251
251
|
export const generatorclient_passphrase: (a: number, b: number, c: number) => void;
|
|
252
252
|
export const isUsernameError: (a: number) => number;
|
|
253
253
|
export const isPasswordError: (a: number) => number;
|
|
254
|
-
export const isPassphraseError: (a: number) => number;
|
|
255
254
|
export const __wbg_outgoingmessage_free: (a: number, b: number) => void;
|
|
256
255
|
export const __wbg_get_outgoingmessage_payload: (a: number, b: number) => void;
|
|
257
256
|
export const __wbg_set_outgoingmessage_payload: (a: number, b: number, c: number) => void;
|
|
@@ -408,13 +407,13 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
|
408
407
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
409
408
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
410
409
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
411
|
-
export const
|
|
410
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41: (
|
|
412
411
|
a: number,
|
|
413
412
|
b: number,
|
|
414
413
|
c: number,
|
|
415
414
|
d: number,
|
|
416
415
|
) => void;
|
|
417
|
-
export const
|
|
416
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
|
|
418
417
|
a: number,
|
|
419
418
|
b: number,
|
|
420
419
|
c: number,
|