@bitwarden/sdk-internal 0.2.0-main.311 → 0.2.0-main.313
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 +44 -57
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +3 -4
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +1 -6
- package/node/bitwarden_wasm_internal.js +44 -57
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +3 -4
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9947387b44f926a435bb6c213b996621f2ce2e11
|
|
@@ -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;
|
|
@@ -513,19 +513,6 @@ export function isPasswordError(error) {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
/**
|
|
517
|
-
* @param {any} error
|
|
518
|
-
* @returns {boolean}
|
|
519
|
-
*/
|
|
520
|
-
export function isPassphraseError(error) {
|
|
521
|
-
try {
|
|
522
|
-
const ret = wasm.isPassphraseError(addBorrowedObject(error));
|
|
523
|
-
return ret !== 0;
|
|
524
|
-
} finally {
|
|
525
|
-
heap[stack_pointer++] = undefined;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
516
|
function _assertClass(instance, klass) {
|
|
530
517
|
if (!(instance instanceof klass)) {
|
|
531
518
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -834,17 +821,9 @@ export function isEncryptFileError(error) {
|
|
|
834
821
|
}
|
|
835
822
|
|
|
836
823
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
837
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8793204fba40d2ad(
|
|
838
|
-
arg0,
|
|
839
|
-
arg1,
|
|
840
|
-
addHeapObject(arg2),
|
|
841
|
-
);
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
845
824
|
try {
|
|
846
825
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
847
|
-
wasm.
|
|
826
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
|
|
848
827
|
retptr,
|
|
849
828
|
arg0,
|
|
850
829
|
arg1,
|
|
@@ -860,6 +839,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
|
860
839
|
}
|
|
861
840
|
}
|
|
862
841
|
|
|
842
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
843
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
844
|
+
arg0,
|
|
845
|
+
arg1,
|
|
846
|
+
addHeapObject(arg2),
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
|
|
863
850
|
function __wbg_adapter_60(arg0, arg1) {
|
|
864
851
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
865
852
|
arg0,
|
|
@@ -867,7 +854,7 @@ function __wbg_adapter_60(arg0, arg1) {
|
|
|
867
854
|
);
|
|
868
855
|
}
|
|
869
856
|
|
|
870
|
-
function
|
|
857
|
+
function __wbg_adapter_336(arg0, arg1, arg2, arg3) {
|
|
871
858
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
|
872
859
|
arg0,
|
|
873
860
|
arg1,
|
|
@@ -4141,7 +4128,14 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
|
4141
4128
|
return ret;
|
|
4142
4129
|
}
|
|
4143
4130
|
|
|
4144
|
-
export function
|
|
4131
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
4132
|
+
return handleError(function (arg0, arg1) {
|
|
4133
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4134
|
+
return addHeapObject(ret);
|
|
4135
|
+
}, arguments);
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
export function __wbg_get_87c4e0d7dba36f9a() {
|
|
4145
4139
|
return handleError(function (arg0, arg1, arg2) {
|
|
4146
4140
|
let deferred0_0;
|
|
4147
4141
|
let deferred0_1;
|
|
@@ -4156,7 +4150,7 @@ export function __wbg_get_3dca5935651f1080() {
|
|
|
4156
4150
|
}, arguments);
|
|
4157
4151
|
}
|
|
4158
4152
|
|
|
4159
|
-
export function
|
|
4153
|
+
export function __wbg_get_9a7490ad0f2fab94() {
|
|
4160
4154
|
return handleError(function (arg0, arg1, arg2) {
|
|
4161
4155
|
let deferred0_0;
|
|
4162
4156
|
let deferred0_1;
|
|
@@ -4171,19 +4165,12 @@ export function __wbg_get_6085e06bb064bc86() {
|
|
|
4171
4165
|
}, arguments);
|
|
4172
4166
|
}
|
|
4173
4167
|
|
|
4174
|
-
export function __wbg_get_67b2ba62fc30de12() {
|
|
4175
|
-
return handleError(function (arg0, arg1) {
|
|
4176
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4177
|
-
return addHeapObject(ret);
|
|
4178
|
-
}, arguments);
|
|
4179
|
-
}
|
|
4180
|
-
|
|
4181
4168
|
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
4182
4169
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4183
4170
|
return addHeapObject(ret);
|
|
4184
4171
|
}
|
|
4185
4172
|
|
|
4186
|
-
export function
|
|
4173
|
+
export function __wbg_getaccesstoken_946af7c6427025e0(arg0) {
|
|
4187
4174
|
const ret = getObject(arg0).get_access_token();
|
|
4188
4175
|
return addHeapObject(ret);
|
|
4189
4176
|
}
|
|
@@ -4368,14 +4355,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
4368
4355
|
return ret;
|
|
4369
4356
|
}
|
|
4370
4357
|
|
|
4371
|
-
export function
|
|
4358
|
+
export function __wbg_list_04d959cba02ffd4a() {
|
|
4372
4359
|
return handleError(function (arg0) {
|
|
4373
4360
|
const ret = getObject(arg0).list();
|
|
4374
4361
|
return addHeapObject(ret);
|
|
4375
4362
|
}, arguments);
|
|
4376
4363
|
}
|
|
4377
4364
|
|
|
4378
|
-
export function
|
|
4365
|
+
export function __wbg_list_991287a95b235dae() {
|
|
4379
4366
|
return handleError(function (arg0) {
|
|
4380
4367
|
const ret = getObject(arg0).list();
|
|
4381
4368
|
return addHeapObject(ret);
|
|
@@ -4418,7 +4405,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
4418
4405
|
const a = state0.a;
|
|
4419
4406
|
state0.a = 0;
|
|
4420
4407
|
try {
|
|
4421
|
-
return
|
|
4408
|
+
return __wbg_adapter_336(a, state0.b, arg0, arg1);
|
|
4422
4409
|
} finally {
|
|
4423
4410
|
state0.a = a;
|
|
4424
4411
|
}
|
|
@@ -4576,7 +4563,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
4576
4563
|
}, arguments);
|
|
4577
4564
|
}
|
|
4578
4565
|
|
|
4579
|
-
export function
|
|
4566
|
+
export function __wbg_remove_aa45bd9036d4f89b() {
|
|
4580
4567
|
return handleError(function (arg0, arg1, arg2) {
|
|
4581
4568
|
let deferred0_0;
|
|
4582
4569
|
let deferred0_1;
|
|
@@ -4591,7 +4578,7 @@ export function __wbg_remove_15be877a4b0d43bf() {
|
|
|
4591
4578
|
}, arguments);
|
|
4592
4579
|
}
|
|
4593
4580
|
|
|
4594
|
-
export function
|
|
4581
|
+
export function __wbg_remove_fbf0cb72e4053c21() {
|
|
4595
4582
|
return handleError(function (arg0, arg1, arg2) {
|
|
4596
4583
|
let deferred0_0;
|
|
4597
4584
|
let deferred0_1;
|
|
@@ -4645,7 +4632,7 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
4645
4632
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
4646
4633
|
}
|
|
4647
4634
|
|
|
4648
|
-
export function
|
|
4635
|
+
export function __wbg_set_4b5dafe7385152c0() {
|
|
4649
4636
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4650
4637
|
let deferred0_0;
|
|
4651
4638
|
let deferred0_1;
|
|
@@ -4660,16 +4647,7 @@ export function __wbg_set_533ebe5f1c6148b9() {
|
|
|
4660
4647
|
}, arguments);
|
|
4661
4648
|
}
|
|
4662
4649
|
|
|
4663
|
-
export function
|
|
4664
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4665
|
-
}
|
|
4666
|
-
|
|
4667
|
-
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4668
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4669
|
-
return addHeapObject(ret);
|
|
4670
|
-
}
|
|
4671
|
-
|
|
4672
|
-
export function __wbg_set_afa0c46c90c00eb5() {
|
|
4650
|
+
export function __wbg_set_4c1dca3917b7d151() {
|
|
4673
4651
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4674
4652
|
let deferred0_0;
|
|
4675
4653
|
let deferred0_1;
|
|
@@ -4684,6 +4662,15 @@ export function __wbg_set_afa0c46c90c00eb5() {
|
|
|
4684
4662
|
}, arguments);
|
|
4685
4663
|
}
|
|
4686
4664
|
|
|
4665
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4666
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4667
|
+
}
|
|
4668
|
+
|
|
4669
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4670
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4671
|
+
return addHeapObject(ret);
|
|
4672
|
+
}
|
|
4673
|
+
|
|
4687
4674
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
4688
4675
|
getObject(arg0).body = getObject(arg1);
|
|
4689
4676
|
}
|
|
@@ -4894,28 +4881,28 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
4894
4881
|
return ret;
|
|
4895
4882
|
}
|
|
4896
4883
|
|
|
4897
|
-
export function
|
|
4884
|
+
export function __wbindgen_closure_wrapper191(arg0, arg1, arg2) {
|
|
4898
4885
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
|
|
4899
4886
|
return addHeapObject(ret);
|
|
4900
4887
|
}
|
|
4901
4888
|
|
|
4902
|
-
export function
|
|
4889
|
+
export function __wbindgen_closure_wrapper193(arg0, arg1, arg2) {
|
|
4903
4890
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
|
|
4904
4891
|
return addHeapObject(ret);
|
|
4905
4892
|
}
|
|
4906
4893
|
|
|
4907
|
-
export function
|
|
4908
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4894
|
+
export function __wbindgen_closure_wrapper3801(arg0, arg1, arg2) {
|
|
4895
|
+
const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_60);
|
|
4909
4896
|
return addHeapObject(ret);
|
|
4910
4897
|
}
|
|
4911
4898
|
|
|
4912
|
-
export function
|
|
4913
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4899
|
+
export function __wbindgen_closure_wrapper6146(arg0, arg1, arg2) {
|
|
4900
|
+
const ret = makeMutClosure(arg0, arg1, 318, __wbg_adapter_60);
|
|
4914
4901
|
return addHeapObject(ret);
|
|
4915
4902
|
}
|
|
4916
4903
|
|
|
4917
|
-
export function
|
|
4918
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4904
|
+
export function __wbindgen_closure_wrapper6531(arg0, arg1, arg2) {
|
|
4905
|
+
const ret = makeMutClosure(arg0, arg1, 341, __wbg_adapter_57);
|
|
4919
4906
|
return addHeapObject(ret);
|
|
4920
4907
|
}
|
|
4921
4908
|
|
|
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,16 +407,16 @@ 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,
|
|
414
|
+
d: number,
|
|
415
415
|
) => void;
|
|
416
|
-
export const
|
|
416
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
|
|
417
417
|
a: number,
|
|
418
418
|
b: number,
|
|
419
419
|
c: number,
|
|
420
|
-
d: number,
|
|
421
420
|
) => void;
|
|
422
421
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e: (
|
|
423
422
|
a: number,
|