@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
|
@@ -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}`);
|
|
@@ -828,17 +815,9 @@ module.exports.isEncryptFileError = function (error) {
|
|
|
828
815
|
};
|
|
829
816
|
|
|
830
817
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
831
|
-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8793204fba40d2ad(
|
|
832
|
-
arg0,
|
|
833
|
-
arg1,
|
|
834
|
-
addHeapObject(arg2),
|
|
835
|
-
);
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
839
818
|
try {
|
|
840
819
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
841
|
-
wasm.
|
|
820
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb9e80c303706ad41(
|
|
842
821
|
retptr,
|
|
843
822
|
arg0,
|
|
844
823
|
arg1,
|
|
@@ -854,6 +833,14 @@ function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
|
854
833
|
}
|
|
855
834
|
}
|
|
856
835
|
|
|
836
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
837
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
|
|
838
|
+
arg0,
|
|
839
|
+
arg1,
|
|
840
|
+
addHeapObject(arg2),
|
|
841
|
+
);
|
|
842
|
+
}
|
|
843
|
+
|
|
857
844
|
function __wbg_adapter_60(arg0, arg1) {
|
|
858
845
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
|
859
846
|
arg0,
|
|
@@ -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,14 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
|
4157
4144
|
return ret;
|
|
4158
4145
|
};
|
|
4159
4146
|
|
|
4160
|
-
module.exports.
|
|
4147
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4148
|
+
return handleError(function (arg0, arg1) {
|
|
4149
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4150
|
+
return addHeapObject(ret);
|
|
4151
|
+
}, arguments);
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
module.exports.__wbg_get_87c4e0d7dba36f9a = function () {
|
|
4161
4155
|
return handleError(function (arg0, arg1, arg2) {
|
|
4162
4156
|
let deferred0_0;
|
|
4163
4157
|
let deferred0_1;
|
|
@@ -4172,7 +4166,7 @@ module.exports.__wbg_get_3dca5935651f1080 = function () {
|
|
|
4172
4166
|
}, arguments);
|
|
4173
4167
|
};
|
|
4174
4168
|
|
|
4175
|
-
module.exports.
|
|
4169
|
+
module.exports.__wbg_get_9a7490ad0f2fab94 = function () {
|
|
4176
4170
|
return handleError(function (arg0, arg1, arg2) {
|
|
4177
4171
|
let deferred0_0;
|
|
4178
4172
|
let deferred0_1;
|
|
@@ -4187,19 +4181,12 @@ module.exports.__wbg_get_6085e06bb064bc86 = function () {
|
|
|
4187
4181
|
}, arguments);
|
|
4188
4182
|
};
|
|
4189
4183
|
|
|
4190
|
-
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
|
4191
|
-
return handleError(function (arg0, arg1) {
|
|
4192
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
4193
|
-
return addHeapObject(ret);
|
|
4194
|
-
}, arguments);
|
|
4195
|
-
};
|
|
4196
|
-
|
|
4197
4184
|
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
4198
4185
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4199
4186
|
return addHeapObject(ret);
|
|
4200
4187
|
};
|
|
4201
4188
|
|
|
4202
|
-
module.exports.
|
|
4189
|
+
module.exports.__wbg_getaccesstoken_946af7c6427025e0 = 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_04d959cba02ffd4a = 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_991287a95b235dae = 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_aa45bd9036d4f89b = 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_15be877a4b0d43bf = function () {
|
|
|
4607
4594
|
}, arguments);
|
|
4608
4595
|
};
|
|
4609
4596
|
|
|
4610
|
-
module.exports.
|
|
4597
|
+
module.exports.__wbg_remove_fbf0cb72e4053c21 = function () {
|
|
4611
4598
|
return handleError(function (arg0, arg1, arg2) {
|
|
4612
4599
|
let deferred0_0;
|
|
4613
4600
|
let deferred0_1;
|
|
@@ -4661,7 +4648,7 @@ 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_4b5dafe7385152c0 = function () {
|
|
4665
4652
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4666
4653
|
let deferred0_0;
|
|
4667
4654
|
let deferred0_1;
|
|
@@ -4676,16 +4663,7 @@ module.exports.__wbg_set_533ebe5f1c6148b9 = function () {
|
|
|
4676
4663
|
}, arguments);
|
|
4677
4664
|
};
|
|
4678
4665
|
|
|
4679
|
-
module.exports.
|
|
4680
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
|
-
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4684
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4685
|
-
return addHeapObject(ret);
|
|
4686
|
-
};
|
|
4687
|
-
|
|
4688
|
-
module.exports.__wbg_set_afa0c46c90c00eb5 = function () {
|
|
4666
|
+
module.exports.__wbg_set_4c1dca3917b7d151 = function () {
|
|
4689
4667
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4690
4668
|
let deferred0_0;
|
|
4691
4669
|
let deferred0_1;
|
|
@@ -4700,6 +4678,15 @@ module.exports.__wbg_set_afa0c46c90c00eb5 = function () {
|
|
|
4700
4678
|
}, arguments);
|
|
4701
4679
|
};
|
|
4702
4680
|
|
|
4681
|
+
module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4682
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
4683
|
+
};
|
|
4684
|
+
|
|
4685
|
+
module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4686
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
4687
|
+
return addHeapObject(ret);
|
|
4688
|
+
};
|
|
4689
|
+
|
|
4703
4690
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
|
4704
4691
|
getObject(arg0).body = getObject(arg1);
|
|
4705
4692
|
};
|
|
@@ -4910,28 +4897,28 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
|
4910
4897
|
return ret;
|
|
4911
4898
|
};
|
|
4912
4899
|
|
|
4913
|
-
module.exports.
|
|
4900
|
+
module.exports.__wbindgen_closure_wrapper191 = function (arg0, arg1, arg2) {
|
|
4914
4901
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
|
|
4915
4902
|
return addHeapObject(ret);
|
|
4916
4903
|
};
|
|
4917
4904
|
|
|
4918
|
-
module.exports.
|
|
4905
|
+
module.exports.__wbindgen_closure_wrapper193 = function (arg0, arg1, arg2) {
|
|
4919
4906
|
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
|
|
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,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,
|