@protontech/pass-rust-core
Advanced tools
Comparing version 0.8.3 to 0.9.0
{ | ||
"name": "@protontech/pass-rust-core", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"workspaces": [ | ||
@@ -5,0 +5,0 @@ "password", |
{ | ||
"name": "password", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "proton_pass_web_bg.wasm", |
@@ -192,5 +192,5 @@ let wasm; | ||
/** | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_password(config) { | ||
@@ -231,5 +231,5 @@ let deferred2_0; | ||
/** | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
export function random_words(word_count) { | ||
@@ -264,6 +264,6 @@ try { | ||
/** | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_passphrase(words, config) { | ||
@@ -297,5 +297,5 @@ let deferred3_0; | ||
/** | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_random_passphrase(config) { | ||
@@ -327,5 +327,5 @@ let deferred2_0; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
export function analyze_password(password) { | ||
@@ -339,5 +339,5 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
export function check_password_score(password) { | ||
@@ -351,5 +351,5 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
export function check_password_scores(passwords) { | ||
@@ -363,5 +363,5 @@ const ptr0 = passArrayJsValueToWasm0(passwords, wasm.__wbindgen_malloc); | ||
/** | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
export function calculate_password_score(password) { | ||
@@ -375,4 +375,4 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
export function library_version() { | ||
@@ -535,3 +535,3 @@ let deferred1_0; | ||
export function __wbg_get_3baa728f9d58d3f6(arg0, arg1) { | ||
export function __wbg_get_5419cf6b954aa11d(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
@@ -541,3 +541,3 @@ return addHeapObject(ret); | ||
export function __wbg_length_ae22078168b726f5(arg0) { | ||
export function __wbg_length_f217bbbf7e8e4df4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -547,3 +547,3 @@ return ret; | ||
export function __wbg_new_a220cf903aa02ca2() { | ||
export function __wbg_new_034f913e7636e987() { | ||
const ret = new Array(); | ||
@@ -558,3 +558,3 @@ return addHeapObject(ret); | ||
export function __wbg_newnoargs_76313bd6ff35d0f2(arg0, arg1) { | ||
export function __wbg_newnoargs_1ede4bf2ebbaaf43(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
@@ -564,3 +564,3 @@ return addHeapObject(ret); | ||
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) { | ||
export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -570,3 +570,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_525245e2b9901204() { | ||
export function __wbg_new_e69b5f66fda8f13c() { | ||
const ret = new Object(); | ||
@@ -576,3 +576,3 @@ return addHeapObject(ret); | ||
export function __wbg_self_3093d5d1f7bcb682() { return handleError(function () { | ||
export function __wbg_self_bf91bf94d9e04084() { return handleError(function () { | ||
const ret = self.self; | ||
@@ -582,3 +582,3 @@ return addHeapObject(ret); | ||
export function __wbg_window_3bcfc4d31bc012f8() { return handleError(function () { | ||
export function __wbg_window_52dd9f07d03fd5f8() { return handleError(function () { | ||
const ret = window.window; | ||
@@ -588,3 +588,3 @@ return addHeapObject(ret); | ||
export function __wbg_globalThis_86b222e13bdf32ed() { return handleError(function () { | ||
export function __wbg_globalThis_05c129bf37fcf1be() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
@@ -594,3 +594,3 @@ return addHeapObject(ret); | ||
export function __wbg_global_e5a3fe56f8be9485() { return handleError(function () { | ||
export function __wbg_global_3eca19bb09e9c484() { return handleError(function () { | ||
const ret = global.global; | ||
@@ -600,7 +600,7 @@ return addHeapObject(ret); | ||
export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) { | ||
export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
}; | ||
export function __wbg_instanceof_ArrayBuffer_61dfc3198373c902(arg0) { | ||
export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) { | ||
let result; | ||
@@ -616,3 +616,3 @@ try { | ||
export function __wbg_call_89af060b4e1523f2() { return handleError(function (arg0, arg1, arg2) { | ||
export function __wbg_call_3bfa248576352471() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
@@ -622,3 +622,3 @@ return addHeapObject(ret); | ||
export function __wbg_isSafeInteger_7f1ed56200d90674(arg0) { | ||
export function __wbg_isSafeInteger_b9dff570f01a9100(arg0) { | ||
const ret = Number.isSafeInteger(getObject(arg0)); | ||
@@ -628,3 +628,3 @@ return ret; | ||
export function __wbg_entries_7a0e06255456ebcd(arg0) { | ||
export function __wbg_entries_c02034de337d3ee2(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
@@ -634,3 +634,3 @@ return addHeapObject(ret); | ||
export function __wbg_buffer_b7b08af79b0b0974(arg0) { | ||
export function __wbg_buffer_ccaed51a635d8a2d(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
@@ -640,3 +640,3 @@ return addHeapObject(ret); | ||
export function __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9(arg0, arg1, arg2) { | ||
export function __wbg_newwithbyteoffsetandlength_7e3eb787208af730(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
@@ -646,3 +646,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_ea1883e1e5e86686(arg0) { | ||
export function __wbg_new_fec2611eb9180f95(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
@@ -652,7 +652,7 @@ return addHeapObject(ret); | ||
export function __wbg_set_d1e79e2388520f18(arg0, arg1, arg2) { | ||
export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
export function __wbg_length_8339fcf5d8ecd12e(arg0) { | ||
export function __wbg_length_9254c4bd3b9f23c4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -662,3 +662,3 @@ return ret; | ||
export function __wbg_instanceof_Uint8Array_247a91427532499e(arg0) { | ||
export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) { | ||
let result; | ||
@@ -674,3 +674,3 @@ try { | ||
export function __wbg_newwithlength_ec548f448387c968(arg0) { | ||
export function __wbg_newwithlength_76462a666eca145f(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
@@ -680,3 +680,3 @@ return addHeapObject(ret); | ||
export function __wbg_subarray_7c2e3576afe181d1(arg0, arg1, arg2) { | ||
export function __wbg_subarray_975a06f9dbd16995(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); | ||
@@ -683,0 +683,0 @@ return addHeapObject(ret); |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_password(config: WasmRandomPasswordConfig): string; | ||
/** | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
export function random_words(word_count: number): (string)[]; | ||
/** | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_passphrase(words: (string)[], config: WasmPassphraseConfig): string; | ||
/** | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_random_passphrase(config: WasmPassphraseConfig): string; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
export function analyze_password(password: string): WasmPasswordScoreResult; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
export function check_password_score(password: string): WasmPasswordScore; | ||
/** | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
export function check_password_scores(passwords: (string)[]): WasmPasswordScoreList; | ||
/** | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
export function calculate_password_score(password: string): number; | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
export function library_version(): string; | ||
@@ -48,0 +48,0 @@ export type WasmBoolDict = Map<string, boolean>; |
@@ -1,5 +0,4 @@ | ||
import * as wasm from "./proton_pass_web_bg.wasm"; | ||
export * from "./proton_pass_web_bg.js"; | ||
import { __wbg_set_wasm } from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
export * from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); |
{ | ||
"name": "ui", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "proton_pass_web_bg.wasm", |
@@ -192,4 +192,4 @@ let wasm; | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
export function library_version() { | ||
@@ -213,5 +213,5 @@ let deferred1_0; | ||
/** | ||
* @param {string} email | ||
* @returns {boolean} | ||
*/ | ||
* @param {string} email | ||
* @returns {boolean} | ||
*/ | ||
export function is_email_valid(email) { | ||
@@ -225,4 +225,4 @@ const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} prefix | ||
*/ | ||
* @param {string} prefix | ||
*/ | ||
export function validate_alias_prefix(prefix) { | ||
@@ -245,4 +245,4 @@ try { | ||
/** | ||
* @param {WasmLogin} login | ||
*/ | ||
* @param {WasmLogin} login | ||
*/ | ||
export function validate_login_obj(login) { | ||
@@ -263,5 +263,5 @@ try { | ||
/** | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function get_root_domain(input) { | ||
@@ -295,5 +295,5 @@ let deferred3_0; | ||
/** | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function get_domain(input) { | ||
@@ -327,5 +327,5 @@ let deferred3_0; | ||
/** | ||
* @param {string} card_number | ||
* @returns {WasmCreditCardType} | ||
*/ | ||
* @param {string} card_number | ||
* @returns {WasmCreditCardType} | ||
*/ | ||
export function detect_credit_card_type(card_number) { | ||
@@ -421,3 +421,3 @@ const ptr0 = passStringToWasm0(card_number, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
export function __wbg_get_3baa728f9d58d3f6(arg0, arg1) { | ||
export function __wbg_get_5419cf6b954aa11d(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
@@ -427,3 +427,3 @@ return addHeapObject(ret); | ||
export function __wbg_length_ae22078168b726f5(arg0) { | ||
export function __wbg_length_f217bbbf7e8e4df4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -438,3 +438,3 @@ return ret; | ||
export function __wbg_next_de3e9db4440638b2(arg0) { | ||
export function __wbg_next_13b477da1eaa3897(arg0) { | ||
const ret = getObject(arg0).next; | ||
@@ -444,3 +444,3 @@ return addHeapObject(ret); | ||
export function __wbg_next_f9cb570345655b9a() { return handleError(function (arg0) { | ||
export function __wbg_next_b06e115d1b01e10b() { return handleError(function (arg0) { | ||
const ret = getObject(arg0).next(); | ||
@@ -450,3 +450,3 @@ return addHeapObject(ret); | ||
export function __wbg_done_bfda7aa8f252b39f(arg0) { | ||
export function __wbg_done_983b5ffcaec8c583(arg0) { | ||
const ret = getObject(arg0).done; | ||
@@ -456,3 +456,3 @@ return ret; | ||
export function __wbg_value_6d39332ab4788d86(arg0) { | ||
export function __wbg_value_2ab8a198c834c26a(arg0) { | ||
const ret = getObject(arg0).value; | ||
@@ -462,3 +462,3 @@ return addHeapObject(ret); | ||
export function __wbg_iterator_888179a48810a9fe() { | ||
export function __wbg_iterator_695d699a44d6234c() { | ||
const ret = Symbol.iterator; | ||
@@ -468,3 +468,3 @@ return addHeapObject(ret); | ||
export function __wbg_get_224d16597dbbfd96() { return handleError(function (arg0, arg1) { | ||
export function __wbg_get_ef828680c64da212() { return handleError(function (arg0, arg1) { | ||
const ret = Reflect.get(getObject(arg0), getObject(arg1)); | ||
@@ -474,3 +474,3 @@ return addHeapObject(ret); | ||
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) { | ||
export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -480,3 +480,3 @@ return addHeapObject(ret); | ||
export function __wbg_isArray_8364a5371e9737d8(arg0) { | ||
export function __wbg_isArray_6f3b47f09adb61b5(arg0) { | ||
const ret = Array.isArray(getObject(arg0)); | ||
@@ -486,3 +486,3 @@ return ret; | ||
export function __wbg_instanceof_ArrayBuffer_61dfc3198373c902(arg0) { | ||
export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) { | ||
let result; | ||
@@ -498,3 +498,3 @@ try { | ||
export function __wbg_buffer_b7b08af79b0b0974(arg0) { | ||
export function __wbg_buffer_ccaed51a635d8a2d(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
@@ -504,3 +504,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_ea1883e1e5e86686(arg0) { | ||
export function __wbg_new_fec2611eb9180f95(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
@@ -510,7 +510,7 @@ return addHeapObject(ret); | ||
export function __wbg_set_d1e79e2388520f18(arg0, arg1, arg2) { | ||
export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
export function __wbg_length_8339fcf5d8ecd12e(arg0) { | ||
export function __wbg_length_9254c4bd3b9f23c4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -520,3 +520,3 @@ return ret; | ||
export function __wbg_instanceof_Uint8Array_247a91427532499e(arg0) { | ||
export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) { | ||
let result; | ||
@@ -523,0 +523,0 @@ try { |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @returns {string} | ||
*/ | ||
export function library_version(): string; | ||
/** | ||
* @param {string} email | ||
* @returns {boolean} | ||
*/ | ||
* @param {string} email | ||
* @returns {boolean} | ||
*/ | ||
export function is_email_valid(email: string): boolean; | ||
/** | ||
* @param {string} prefix | ||
*/ | ||
* @param {string} prefix | ||
*/ | ||
export function validate_alias_prefix(prefix: string): void; | ||
/** | ||
* @param {WasmLogin} login | ||
*/ | ||
* @param {WasmLogin} login | ||
*/ | ||
export function validate_login_obj(login: WasmLogin): void; | ||
/** | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function get_root_domain(input: string): string; | ||
/** | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
* @param {string} input | ||
* @returns {string} | ||
*/ | ||
export function get_domain(input: string): string; | ||
/** | ||
* @param {string} card_number | ||
* @returns {WasmCreditCardType} | ||
*/ | ||
* @param {string} card_number | ||
* @returns {WasmCreditCardType} | ||
*/ | ||
export function detect_credit_card_type(card_number: string): WasmCreditCardType; | ||
@@ -35,0 +35,0 @@ export type WasmCreditCardType = "Visa" | "Mastercard" | "AmericanExpress" | "DinersClub" | "Discover" | "Jcb" | "UnionPay" | "Maestro" | "Elo" | "Mir" | "Hiper" | "Hipercard" | "Unknown"; |
@@ -1,5 +0,4 @@ | ||
import * as wasm from "./proton_pass_web_bg.wasm"; | ||
export * from "./proton_pass_web_bg.js"; | ||
import { __wbg_set_wasm } from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
export * from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); |
{ | ||
"name": "worker", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "proton_pass_web_bg.wasm", |
@@ -222,9 +222,32 @@ let wasm; | ||
} | ||
function __wbg_adapter_42(arg0, arg1, arg2) { | ||
wasm.wasm_bindgen__convert__closures__invoke1_mut__h9fe69b7264a6730f(arg0, arg1, addHeapObject(arg2)); | ||
function __wbg_adapter_44(arg0, arg1, arg2) { | ||
wasm.wasm_bindgen__convert__closures__invoke1_mut__h01ce7ebc93eaa72f(arg0, arg1, addHeapObject(arg2)); | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @param {string} uri | ||
* @param {bigint} current_time | ||
* @returns {TotpCode} | ||
*/ | ||
export function generate_totp(uri, current_time) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
const len0 = WASM_VECTOR_LEN; | ||
wasm.generate_totp(retptr, ptr0, len0, current_time); | ||
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true); | ||
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true); | ||
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true); | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @returns {string} | ||
*/ | ||
export function library_version() { | ||
@@ -248,5 +271,5 @@ let deferred1_0; | ||
/** | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_password(config) { | ||
@@ -287,5 +310,5 @@ let deferred2_0; | ||
/** | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
export function random_words(word_count) { | ||
@@ -320,6 +343,6 @@ try { | ||
/** | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_passphrase(words, config) { | ||
@@ -353,5 +376,5 @@ let deferred3_0; | ||
/** | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_random_passphrase(config) { | ||
@@ -383,5 +406,5 @@ let deferred2_0; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
export function analyze_password(password) { | ||
@@ -395,5 +418,5 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
export function check_password_score(password) { | ||
@@ -407,5 +430,5 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
export function check_password_scores(passwords) { | ||
@@ -419,5 +442,5 @@ const ptr0 = passArrayJsValueToWasm0(passwords, wasm.__wbindgen_malloc); | ||
/** | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
export function calculate_password_score(password) { | ||
@@ -431,5 +454,5 @@ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} domain | ||
* @returns {boolean} | ||
*/ | ||
* @param {string} domain | ||
* @returns {boolean} | ||
*/ | ||
export function twofa_domain_eligible(domain) { | ||
@@ -443,5 +466,5 @@ const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {(string)[]} domains | ||
* @returns {WasmBoolDict} | ||
*/ | ||
* @param {(string)[]} domains | ||
* @returns {WasmBoolDict} | ||
*/ | ||
export function twofa_domains_eligible(domains) { | ||
@@ -455,6 +478,6 @@ const ptr0 = passArrayJsValueToWasm0(domains, wasm.__wbindgen_malloc); | ||
/** | ||
* @param {string} email | ||
* @param {Uint8Array} vault_key | ||
* @returns {Uint8Array} | ||
*/ | ||
* @param {string} email | ||
* @param {Uint8Array} vault_key | ||
* @returns {Uint8Array} | ||
*/ | ||
export function create_new_user_invite_signature_body(email, vault_key) { | ||
@@ -468,6 +491,6 @@ const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} domain | ||
* @param {string} request | ||
* @returns {Promise<WasmGeneratePasskeyResponse>} | ||
*/ | ||
* @param {string} domain | ||
* @param {string} request | ||
* @returns {Promise<WasmGeneratePasskeyResponse>} | ||
*/ | ||
export function generate_passkey(domain, request) { | ||
@@ -483,7 +506,7 @@ const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} domain | ||
* @param {Uint8Array} passkey | ||
* @param {string} request | ||
* @returns {Promise<WasmResolvePasskeyChallengeResponse>} | ||
*/ | ||
* @param {string} domain | ||
* @param {Uint8Array} passkey | ||
* @param {string} request | ||
* @returns {Promise<WasmResolvePasskeyChallengeResponse>} | ||
*/ | ||
export function resolve_passkey_challenge(domain, passkey, request) { | ||
@@ -499,5 +522,5 @@ const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
/** | ||
* @param {string} request | ||
* @returns {WasmCreatePasskeyData} | ||
*/ | ||
* @param {string} request | ||
* @returns {WasmCreatePasskeyData} | ||
*/ | ||
export function parse_create_passkey_data(request) { | ||
@@ -528,4 +551,4 @@ try { | ||
} | ||
function __wbg_adapter_110(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h057d40730104467e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
function __wbg_adapter_113(arg0, arg1, arg2, arg3) { | ||
wasm.wasm_bindgen__convert__closures__invoke2_mut__h63c7d600ce326f3e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); | ||
} | ||
@@ -559,2 +582,7 @@ | ||
export function __wbindgen_bigint_from_u64(arg0) { | ||
const ret = BigInt.asUintN(64, arg0); | ||
return addHeapObject(ret); | ||
}; | ||
export function __wbindgen_boolean_get(arg0) { | ||
@@ -591,2 +619,7 @@ const v = getObject(arg0); | ||
export function __wbindgen_as_number(arg0) { | ||
const ret = +getObject(arg0); | ||
return ret; | ||
}; | ||
export function __wbindgen_error_new(arg0, arg1) { | ||
@@ -597,8 +630,3 @@ const ret = new Error(getStringFromWasm0(arg0, arg1)); | ||
export function __wbindgen_as_number(arg0) { | ||
const ret = +getObject(arg0); | ||
return ret; | ||
}; | ||
export function __wbg_queueMicrotask_48421b3cc9052b68(arg0) { | ||
export function __wbg_queueMicrotask_848aa4969108a57e(arg0) { | ||
const ret = getObject(arg0).queueMicrotask; | ||
@@ -623,3 +651,3 @@ return addHeapObject(ret); | ||
export function __wbg_queueMicrotask_12a30234db4045d3(arg0) { | ||
export function __wbg_queueMicrotask_c5419c06eab41e73(arg0) { | ||
queueMicrotask(getObject(arg0)); | ||
@@ -698,3 +726,3 @@ }; | ||
export function __wbg_get_3baa728f9d58d3f6(arg0, arg1) { | ||
export function __wbg_get_5419cf6b954aa11d(arg0, arg1) { | ||
const ret = getObject(arg0)[arg1 >>> 0]; | ||
@@ -704,3 +732,3 @@ return addHeapObject(ret); | ||
export function __wbg_length_ae22078168b726f5(arg0) { | ||
export function __wbg_length_f217bbbf7e8e4df4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -710,3 +738,3 @@ return ret; | ||
export function __wbg_new_a220cf903aa02ca2() { | ||
export function __wbg_new_034f913e7636e987() { | ||
const ret = new Array(); | ||
@@ -716,3 +744,3 @@ return addHeapObject(ret); | ||
export function __wbg_newnoargs_76313bd6ff35d0f2(arg0, arg1) { | ||
export function __wbg_newnoargs_1ede4bf2ebbaaf43(arg0, arg1) { | ||
const ret = new Function(getStringFromWasm0(arg0, arg1)); | ||
@@ -722,3 +750,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_8608a2b51a5f6737() { | ||
export function __wbg_new_7a87a0376e40533b() { | ||
const ret = new Map(); | ||
@@ -728,3 +756,3 @@ return addHeapObject(ret); | ||
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) { | ||
export function __wbg_call_a9ef466721e824f2() { return handleError(function (arg0, arg1) { | ||
const ret = getObject(arg0).call(getObject(arg1)); | ||
@@ -734,3 +762,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_525245e2b9901204() { | ||
export function __wbg_new_e69b5f66fda8f13c() { | ||
const ret = new Object(); | ||
@@ -740,3 +768,3 @@ return addHeapObject(ret); | ||
export function __wbg_self_3093d5d1f7bcb682() { return handleError(function () { | ||
export function __wbg_self_bf91bf94d9e04084() { return handleError(function () { | ||
const ret = self.self; | ||
@@ -746,3 +774,3 @@ return addHeapObject(ret); | ||
export function __wbg_window_3bcfc4d31bc012f8() { return handleError(function () { | ||
export function __wbg_window_52dd9f07d03fd5f8() { return handleError(function () { | ||
const ret = window.window; | ||
@@ -752,3 +780,3 @@ return addHeapObject(ret); | ||
export function __wbg_globalThis_86b222e13bdf32ed() { return handleError(function () { | ||
export function __wbg_globalThis_05c129bf37fcf1be() { return handleError(function () { | ||
const ret = globalThis.globalThis; | ||
@@ -758,3 +786,3 @@ return addHeapObject(ret); | ||
export function __wbg_global_e5a3fe56f8be9485() { return handleError(function () { | ||
export function __wbg_global_3eca19bb09e9c484() { return handleError(function () { | ||
const ret = global.global; | ||
@@ -764,7 +792,7 @@ return addHeapObject(ret); | ||
export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) { | ||
export function __wbg_set_425e70f7c64ac962(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = takeObject(arg2); | ||
}; | ||
export function __wbg_instanceof_ArrayBuffer_61dfc3198373c902(arg0) { | ||
export function __wbg_instanceof_ArrayBuffer_74945570b4a62ec7(arg0) { | ||
let result; | ||
@@ -780,3 +808,3 @@ try { | ||
export function __wbg_call_89af060b4e1523f2() { return handleError(function (arg0, arg1, arg2) { | ||
export function __wbg_call_3bfa248576352471() { return handleError(function (arg0, arg1, arg2) { | ||
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)); | ||
@@ -786,3 +814,3 @@ return addHeapObject(ret); | ||
export function __wbg_set_49185437f0ab06f8(arg0, arg1, arg2) { | ||
export function __wbg_set_277a63e77c89279f(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2)); | ||
@@ -792,3 +820,3 @@ return addHeapObject(ret); | ||
export function __wbg_isSafeInteger_7f1ed56200d90674(arg0) { | ||
export function __wbg_isSafeInteger_b9dff570f01a9100(arg0) { | ||
const ret = Number.isSafeInteger(getObject(arg0)); | ||
@@ -798,3 +826,3 @@ return ret; | ||
export function __wbg_entries_7a0e06255456ebcd(arg0) { | ||
export function __wbg_entries_c02034de337d3ee2(arg0) { | ||
const ret = Object.entries(getObject(arg0)); | ||
@@ -804,3 +832,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_b85e72ed1bfd57f9(arg0, arg1) { | ||
export function __wbg_new_1073970097e5a420(arg0, arg1) { | ||
try { | ||
@@ -812,3 +840,3 @@ var state0 = {a: arg0, b: arg1}; | ||
try { | ||
return __wbg_adapter_110(a, state0.b, arg0, arg1); | ||
return __wbg_adapter_113(a, state0.b, arg0, arg1); | ||
} finally { | ||
@@ -825,3 +853,3 @@ state0.a = a; | ||
export function __wbg_resolve_570458cb99d56a43(arg0) { | ||
export function __wbg_resolve_0aad7c1484731c99(arg0) { | ||
const ret = Promise.resolve(getObject(arg0)); | ||
@@ -831,3 +859,3 @@ return addHeapObject(ret); | ||
export function __wbg_then_95e6edc0f89b73b1(arg0, arg1) { | ||
export function __wbg_then_748f75edfb032440(arg0, arg1) { | ||
const ret = getObject(arg0).then(getObject(arg1)); | ||
@@ -837,3 +865,3 @@ return addHeapObject(ret); | ||
export function __wbg_buffer_b7b08af79b0b0974(arg0) { | ||
export function __wbg_buffer_ccaed51a635d8a2d(arg0) { | ||
const ret = getObject(arg0).buffer; | ||
@@ -843,3 +871,3 @@ return addHeapObject(ret); | ||
export function __wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9(arg0, arg1, arg2) { | ||
export function __wbg_newwithbyteoffsetandlength_7e3eb787208af730(arg0, arg1, arg2) { | ||
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0); | ||
@@ -849,3 +877,3 @@ return addHeapObject(ret); | ||
export function __wbg_new_ea1883e1e5e86686(arg0) { | ||
export function __wbg_new_fec2611eb9180f95(arg0) { | ||
const ret = new Uint8Array(getObject(arg0)); | ||
@@ -855,7 +883,7 @@ return addHeapObject(ret); | ||
export function __wbg_set_d1e79e2388520f18(arg0, arg1, arg2) { | ||
export function __wbg_set_ec2fcf81bc573fd9(arg0, arg1, arg2) { | ||
getObject(arg0).set(getObject(arg1), arg2 >>> 0); | ||
}; | ||
export function __wbg_length_8339fcf5d8ecd12e(arg0) { | ||
export function __wbg_length_9254c4bd3b9f23c4(arg0) { | ||
const ret = getObject(arg0).length; | ||
@@ -865,3 +893,3 @@ return ret; | ||
export function __wbg_instanceof_Uint8Array_247a91427532499e(arg0) { | ||
export function __wbg_instanceof_Uint8Array_df0761410414ef36(arg0) { | ||
let result; | ||
@@ -877,3 +905,3 @@ try { | ||
export function __wbg_newwithlength_ec548f448387c968(arg0) { | ||
export function __wbg_newwithlength_76462a666eca145f(arg0) { | ||
const ret = new Uint8Array(arg0 >>> 0); | ||
@@ -883,3 +911,3 @@ return addHeapObject(ret); | ||
export function __wbg_subarray_7c2e3576afe181d1(arg0, arg1, arg2) { | ||
export function __wbg_subarray_975a06f9dbd16995(arg0, arg1, arg2) { | ||
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0); | ||
@@ -889,3 +917,3 @@ return addHeapObject(ret); | ||
export function __wbg_setindex_a6bfecc47fdc564e(arg0, arg1, arg2) { | ||
export function __wbg_setindex_ffcb66ea02efa3aa(arg0, arg1, arg2) { | ||
getObject(arg0)[arg1 >>> 0] = arg2; | ||
@@ -911,6 +939,6 @@ }; | ||
export function __wbindgen_closure_wrapper463(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 95, __wbg_adapter_42); | ||
export function __wbindgen_closure_wrapper475(arg0, arg1, arg2) { | ||
const ret = makeMutClosure(arg0, arg1, 89, __wbg_adapter_44); | ||
return addHeapObject(ret); | ||
}; | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export const memory: WebAssembly.Memory; | ||
export function generate_totp(a: number, b: number, c: number, d: number): void; | ||
export function library_version(a: number): void; | ||
@@ -22,6 +23,6 @@ export function generate_password(a: number, b: number): void; | ||
export const __wbindgen_export_2: WebAssembly.Table; | ||
export function wasm_bindgen__convert__closures__invoke1_mut__h9fe69b7264a6730f(a: number, b: number, c: number): void; | ||
export function wasm_bindgen__convert__closures__invoke1_mut__h01ce7ebc93eaa72f(a: number, b: number, c: number): void; | ||
export function __wbindgen_add_to_stack_pointer(a: number): number; | ||
export function __wbindgen_free(a: number, b: number, c: number): void; | ||
export function __wbindgen_exn_store(a: number): void; | ||
export function wasm_bindgen__convert__closures__invoke2_mut__h057d40730104467e(a: number, b: number, c: number, d: number): void; | ||
export function wasm_bindgen__convert__closures__invoke2_mut__h63c7d600ce326f3e(a: number, b: number, c: number, d: number): void; |
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* @returns {string} | ||
*/ | ||
* @param {string} uri | ||
* @param {bigint} current_time | ||
* @returns {TotpCode} | ||
*/ | ||
export function generate_totp(uri: string, current_time: bigint): TotpCode; | ||
/** | ||
* @returns {string} | ||
*/ | ||
export function library_version(): string; | ||
/** | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmRandomPasswordConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_password(config: WasmRandomPasswordConfig): string; | ||
/** | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
* @param {number} word_count | ||
* @returns {(string)[]} | ||
*/ | ||
export function random_words(word_count: number): (string)[]; | ||
/** | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {(string)[]} words | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_passphrase(words: (string)[], config: WasmPassphraseConfig): string; | ||
/** | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
* @param {WasmPassphraseConfig} config | ||
* @returns {string} | ||
*/ | ||
export function generate_random_passphrase(config: WasmPassphraseConfig): string; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScoreResult} | ||
*/ | ||
export function analyze_password(password: string): WasmPasswordScoreResult; | ||
/** | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
* @param {string} password | ||
* @returns {WasmPasswordScore} | ||
*/ | ||
export function check_password_score(password: string): WasmPasswordScore; | ||
/** | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
* @param {(string)[]} passwords | ||
* @returns {WasmPasswordScoreList} | ||
*/ | ||
export function check_password_scores(passwords: (string)[]): WasmPasswordScoreList; | ||
/** | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
* @param {string} password | ||
* @returns {number} | ||
*/ | ||
export function calculate_password_score(password: string): number; | ||
/** | ||
* @param {string} domain | ||
* @returns {boolean} | ||
*/ | ||
* @param {string} domain | ||
* @returns {boolean} | ||
*/ | ||
export function twofa_domain_eligible(domain: string): boolean; | ||
/** | ||
* @param {(string)[]} domains | ||
* @returns {WasmBoolDict} | ||
*/ | ||
* @param {(string)[]} domains | ||
* @returns {WasmBoolDict} | ||
*/ | ||
export function twofa_domains_eligible(domains: (string)[]): WasmBoolDict; | ||
/** | ||
* @param {string} email | ||
* @param {Uint8Array} vault_key | ||
* @returns {Uint8Array} | ||
*/ | ||
* @param {string} email | ||
* @param {Uint8Array} vault_key | ||
* @returns {Uint8Array} | ||
*/ | ||
export function create_new_user_invite_signature_body(email: string, vault_key: Uint8Array): Uint8Array; | ||
/** | ||
* @param {string} domain | ||
* @param {string} request | ||
* @returns {Promise<WasmGeneratePasskeyResponse>} | ||
*/ | ||
* @param {string} domain | ||
* @param {string} request | ||
* @returns {Promise<WasmGeneratePasskeyResponse>} | ||
*/ | ||
export function generate_passkey(domain: string, request: string): Promise<WasmGeneratePasskeyResponse>; | ||
/** | ||
* @param {string} domain | ||
* @param {Uint8Array} passkey | ||
* @param {string} request | ||
* @returns {Promise<WasmResolvePasskeyChallengeResponse>} | ||
*/ | ||
* @param {string} domain | ||
* @param {Uint8Array} passkey | ||
* @param {string} request | ||
* @returns {Promise<WasmResolvePasskeyChallengeResponse>} | ||
*/ | ||
export function resolve_passkey_challenge(domain: string, passkey: Uint8Array, request: string): Promise<WasmResolvePasskeyChallengeResponse>; | ||
/** | ||
* @param {string} request | ||
* @returns {WasmCreatePasskeyData} | ||
*/ | ||
* @param {string} request | ||
* @returns {WasmCreatePasskeyData} | ||
*/ | ||
export function parse_create_passkey_data(request: string): WasmCreatePasskeyData; | ||
@@ -188,1 +194,18 @@ export type WasmAuthenticatorAttachment = "platform" | "cross-platform"; | ||
export type TotpAlgorithm = "SHA1" | "SHA256" | "SHA512"; | ||
export interface ParsedTotp { | ||
label: string | undefined; | ||
secret: string; | ||
issuer: string | undefined; | ||
algorithm: TotpAlgorithm | undefined; | ||
digits: number | undefined; | ||
period: number | undefined; | ||
} | ||
export interface TotpCode { | ||
totp: ParsedTotp; | ||
token: string; | ||
timestamp: number; | ||
} | ||
@@ -1,5 +0,4 @@ | ||
import * as wasm from "./proton_pass_web_bg.wasm"; | ||
export * from "./proton_pass_web_bg.js"; | ||
import { __wbg_set_wasm } from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); | ||
export * from "./proton_pass_web_bg.js"; | ||
__wbg_set_wasm(wasm); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2763104
2177