Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@protontech/pass-rust-core

Package Overview
Dependencies
Maintainers
9
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protontech/pass-rust-core - npm Package Compare versions

Comparing version 0.7.9 to 0.7.10

2

package.json
{
"name": "@protontech/pass-rust-core",
"version": "0.7.9",
"version": "0.7.10",
"files": [

@@ -5,0 +5,0 @@ "proton_pass_web_bg.wasm",

@@ -27,22 +27,24 @@ let wasm;

const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
function isLikeNone(x) {
return x === undefined || x === null;
}
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
let cachedFloat64Memory0 = null;
cachedTextDecoder.decode();
function getFloat64Memory0() {
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
}
let cachedUint8Memory0 = null;
let cachedInt32Memory0 = null;
function getUint8Memory0() {
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
function getInt32Memory0() {
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedUint8Memory0;
return cachedInt32Memory0;
}
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}
function addHeapObject(obj) {

@@ -59,2 +61,11 @@ if (heap_next === heap.length) heap.push(heap.length + 1);

let cachedUint8Memory0 = null;
function getUint8Memory0() {
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
}
return cachedUint8Memory0;
}
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;

@@ -116,22 +127,11 @@

function isLikeNone(x) {
return x === undefined || x === null;
}
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
let cachedInt32Memory0 = null;
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
function getInt32Memory0() {
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachedInt32Memory0;
}
cachedTextDecoder.decode();
let cachedFloat64Memory0 = null;
function getFloat64Memory0() {
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
}
return cachedFloat64Memory0;
function getStringFromWasm0(ptr, len) {
ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
}

@@ -203,7 +203,36 @@

}
/**
*/
export function pass_common_set_panic_hook() {
wasm.pass_common_set_panic_hook();
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(state => {
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
});
function makeMutClosure(arg0, arg1, dtor, f) {
const state = { a: arg0, b: arg1, cnt: 1, dtor };
const real = (...args) => {
// First up with a closure we increment the internal reference
// count. This ensures that the Rust closure environment won't
// be deallocated while we're invoking it.
state.cnt++;
const a = state.a;
state.a = 0;
try {
return f(a, state.b, ...args);
} finally {
if (--state.cnt === 0) {
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
CLOSURE_DTORS.unregister(state);
} else {
state.a = a;
}
}
};
real.original = state;
CLOSURE_DTORS.register(real, state, state);
return real;
}
function __wbg_adapter_42(arg0, arg1, arg2) {
wasm.wasm_bindgen__convert__closures__invoke1_mut__h25555701691336cf(arg0, arg1, addHeapObject(arg2));
}

@@ -510,22 +539,11 @@ /**

* @param {string} request
* @returns {WasmGeneratePasskeyResponse}
* @returns {Promise<WasmGeneratePasskeyResponse>}
*/
export function generate_passkey(domain, request) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
wasm.generate_passkey(retptr, ptr0, len0, ptr1, len1);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
const ret = wasm.generate_passkey(ptr0, len0, ptr1, len1);
return takeObject(ret);
}

@@ -537,22 +555,11 @@

* @param {string} request
* @returns {WasmResolvePasskeyChallengeResponse}
* @returns {Promise<WasmResolvePasskeyChallengeResponse>}
*/
export function resolve_passkey_challenge(domain, passkey, request) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
wasm.resolve_passkey_challenge(retptr, ptr0, len0, addHeapObject(passkey), ptr1, len1);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return takeObject(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
const ptr0 = passStringToWasm0(domain, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
const ret = wasm.resolve_passkey_challenge(ptr0, len0, addHeapObject(passkey), ptr1, len1);
return takeObject(ret);
}

@@ -651,2 +658,5 @@

}
function __wbg_adapter_128(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h78149813b81c2f86(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
}

@@ -657,12 +667,2 @@ export function __wbindgen_object_drop_ref(arg0) {

export function __wbindgen_error_new(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
export function __wbindgen_is_undefined(arg0) {

@@ -678,2 +678,14 @@ const ret = getObject(arg0) === undefined;

export function __wbindgen_number_get(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'number' ? obj : undefined;
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
};
export function __wbindgen_bigint_from_i64(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
export function __wbindgen_boolean_get(arg0) {

@@ -705,27 +717,41 @@ const v = getObject(arg0);

export function __wbg_new_abda76e883ba8a5f() {
const ret = new Error();
export function __wbindgen_object_clone_ref(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
const ret = getObject(arg1).stack;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
export function __wbindgen_as_number(arg0) {
const ret = +getObject(arg0);
return ret;
};
export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
export function __wbindgen_error_new(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
export function __wbg_queueMicrotask_3cbae2ec6b6cd3d6(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
};
export function __wbindgen_is_function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
export function __wbindgen_cb_drop(arg0) {
const obj = takeObject(arg0).original;
if (obj.cnt-- == 1) {
obj.a = 0;
return true;
}
const ret = false;
return ret;
};
export function __wbg_queueMicrotask_481971b0d87f3dd4(arg0) {
queueMicrotask(getObject(arg0));
};
export function __wbg_crypto_d05b68a3572bb8ca(arg0) {

@@ -779,10 +805,3 @@ const ret = getObject(arg0).crypto;

export function __wbindgen_number_get(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'number' ? obj : undefined;
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
};
export function __wbg_String_88810dfeb4021902(arg0, arg1) {
export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
const ret = String(getObject(arg1));

@@ -800,8 +819,3 @@ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

export function __wbindgen_bigint_from_i64(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
const ret = getObject(arg0)[getObject(arg1)];

@@ -811,3 +825,3 @@ return addHeapObject(ret);

export function __wbg_set_841ac57cff3d672b(arg0, arg1, arg2) {
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);

@@ -831,7 +845,2 @@ };

export function __wbindgen_is_function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
export function __wbg_newnoargs_e258087cd0daa0ea(arg0, arg1) {

@@ -947,2 +956,31 @@ const ret = new Function(getStringFromWasm0(arg0, arg1));

export function __wbg_new_81740750da40724f(arg0, arg1) {
try {
var state0 = {a: arg0, b: arg1};
var cb0 = (arg0, arg1) => {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_128(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
};
const ret = new Promise(cb0);
return addHeapObject(ret);
} finally {
state0.a = state0.b = 0;
}
};
export function __wbg_resolve_b0083a7967828ec8(arg0) {
const ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
};
export function __wbg_then_0c86a60e8fcfe9f6(arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));
return addHeapObject(ret);
};
export function __wbg_buffer_12d079cc21e14bdb(arg0) {

@@ -1014,1 +1052,6 @@ const ret = getObject(arg0).buffer;

export function __wbindgen_closure_wrapper488(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 93, __wbg_adapter_42);
return addHeapObject(ret);
};
/* tslint:disable */
/* eslint-disable */
/**
*/
export function pass_common_set_panic_hook(): void;
/**
* @returns {string}

@@ -88,5 +85,5 @@ */

* @param {string} request
* @returns {WasmGeneratePasskeyResponse}
* @returns {Promise<WasmGeneratePasskeyResponse>}
*/
export function generate_passkey(domain: string, request: string): WasmGeneratePasskeyResponse;
export function generate_passkey(domain: string, request: string): Promise<WasmGeneratePasskeyResponse>;
/**

@@ -96,5 +93,5 @@ * @param {string} domain

* @param {string} request
* @returns {WasmResolvePasskeyChallengeResponse}
* @returns {Promise<WasmResolvePasskeyChallengeResponse>}
*/
export function resolve_passkey_challenge(domain: string, passkey: Uint8Array, request: string): WasmResolvePasskeyChallengeResponse;
export function resolve_passkey_challenge(domain: string, passkey: Uint8Array, request: string): Promise<WasmResolvePasskeyChallengeResponse>;
/**

@@ -115,14 +112,2 @@ * @param {string} request

export function get_domain(input: string): string;
export type WasmBoolDict = Map<string, boolean>;
export type WasmCreditCardType = "Visa" | "Mastercard" | "AmericanExpress" | "DinersClub" | "Discover" | "Jcb" | "UnionPay" | "Maestro" | "Elo" | "Mir" | "Hiper" | "Hipercard" | "Unknown";
export interface WasmLogin {
title: string;
username: string;
password: string;
totp: string | undefined;
urls: string[];
}
export type WasmAuthenticatorAttachment = "platform" | "cross-platform";

@@ -204,2 +189,12 @@

export type WasmBoolDict = Map<string, boolean>;
export interface WasmLogin {
title: string;
username: string;
password: string;
totp: string | undefined;
urls: string[];
}
export interface WasmRandomPasswordConfig {

@@ -233,1 +228,3 @@ length: number;

export type WasmCreditCardType = "Visa" | "Mastercard" | "AmericanExpress" | "DinersClub" | "Discover" | "Jcb" | "UnionPay" | "Maestro" | "Elo" | "Mir" | "Hiper" | "Hipercard" | "Unknown";

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc