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

@phala/dcap-qvl-web

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phala/dcap-qvl-web - npm Package Compare versions

Comparing version 0.1.0-beta.1 to 0.1.0-beta.2

7

dcap-qvl-web.d.ts

@@ -15,11 +15,8 @@ /* tslint:disable */

readonly memory: WebAssembly.Memory;
readonly js_verify: (a: number, b: number, c: number) => Array;
readonly js_verify: (a: number, b: number, c: number, d: number) => void;
readonly ring_core_0_17_8_bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly __externref_table_dealloc: (a: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __externref_table_alloc: () => number;
readonly __wbindgen_start: () => void;
}

@@ -26,0 +23,0 @@

let wasm;
const heap = new Array(128).fill(undefined);
heap.push(undefined, null, true, false);
function getObject(idx) { return heap[idx]; }
let heap_next = heap.length;
function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );

@@ -21,2 +41,11 @@

function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
}
function isLikeNone(x) {

@@ -155,8 +184,2 @@ return x === undefined || x === null;

}
function takeFromExternrefTable0(idx) {
const value = wasm.__wbindgen_export_2.get(idx);
wasm.__externref_table_dealloc(idx);
return value;
}
/**

@@ -169,15 +192,17 @@ * @param {any} raw_quote

export function js_verify(raw_quote, quote_collateral, now) {
const ret = wasm.js_verify(raw_quote, quote_collateral, now);
if (ret[2]) {
throw takeFromExternrefTable0(ret[1]);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.js_verify(retptr, addHeapObject(raw_quote), addHeapObject(quote_collateral), now);
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);
}
return takeFromExternrefTable0(ret[0]);
}
function addToExternrefTable0(obj) {
const idx = wasm.__externref_table_alloc();
wasm.__wbindgen_export_2.set(idx, obj);
return idx;
}
function handleError(f, args) {

@@ -187,4 +212,3 @@ try {

} catch (e) {
const idx = addToExternrefTable0(e);
wasm.__wbindgen_exn_store(idx);
wasm.__wbindgen_exn_store(addHeapObject(e));
}

@@ -231,12 +255,15 @@ }

imports.wbg = {};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = arg0;
const val = getObject(arg0);
const ret = typeof(val) === 'object' && val !== null;

@@ -246,7 +273,7 @@ return ret;

imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
const ret = arg0 == arg1;
const ret = getObject(arg0) == getObject(arg1);
return ret;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = arg0;
const v = getObject(arg0);
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;

@@ -256,3 +283,3 @@ return ret;

imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
const obj = arg1;
const obj = getObject(arg1);
const ret = typeof(obj) === 'number' ? obj : undefined;

@@ -263,3 +290,3 @@ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);

imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = arg1;
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;

@@ -273,13 +300,17 @@ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

const ret = arg0;
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
arg0[arg1] = arg2;
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
};
imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
const ret = arg0[arg1 >>> 0];
return ret;
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
};
imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
const ret = arg0.length;
const ret = getObject(arg0).length;
return ret;

@@ -289,45 +320,45 @@ };

const ret = new Array();
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(arg0) === 'function';
const ret = typeof(getObject(arg0)) === 'function';
return ret;
};
imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
const ret = arg0.next;
return ret;
const ret = getObject(arg0).next;
return addHeapObject(ret);
};
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
const ret = arg0.next();
return ret;
const ret = getObject(arg0).next();
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
const ret = arg0.done;
const ret = getObject(arg0).done;
return ret;
};
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
const ret = arg0.value;
return ret;
const ret = getObject(arg0).value;
return addHeapObject(ret);
};
imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
const ret = Symbol.iterator;
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
const ret = Reflect.get(arg0, arg1);
return ret;
const ret = Reflect.get(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
const ret = arg0.call(arg1);
return ret;
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
const ret = new Object();
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
arg0[arg1 >>> 0] = arg2;
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
};
imports.wbg.__wbg_isArray_6f3b47f09adb61b5 = function(arg0) {
const ret = Array.isArray(arg0);
const ret = Array.isArray(getObject(arg0));
return ret;

@@ -338,3 +369,3 @@ };

try {
result = arg0 instanceof ArrayBuffer;
result = getObject(arg0) instanceof ArrayBuffer;
} catch (_) {

@@ -347,22 +378,22 @@ result = false;

imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
const ret = Number.isSafeInteger(arg0);
const ret = Number.isSafeInteger(getObject(arg0));
return ret;
};
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
const ret = arg0.buffer;
return ret;
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
};
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
return ret;
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
return addHeapObject(ret);
};
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
const ret = new Uint8Array(arg0);
return ret;
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
arg0.set(arg1, arg2 >>> 0);
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
const ret = arg0.length;
const ret = getObject(arg0).length;
return ret;

@@ -373,3 +404,3 @@ };

try {
result = arg0 instanceof Uint8Array;
result = getObject(arg0) instanceof Uint8Array;
} catch (_) {

@@ -382,3 +413,3 @@ result = false;

imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
const ret = debugString(arg1);
const ret = debugString(getObject(arg1));
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);

@@ -394,14 +425,4 @@ const len1 = WASM_VECTOR_LEN;

const ret = wasm.memory;
return ret;
return addHeapObject(ret);
};
imports.wbg.__wbindgen_init_externref_table = function() {
const table = wasm.__wbindgen_export_2;
const offset = table.grow(4);
table.set(0, undefined);
table.set(offset + 0, undefined);
table.set(offset + 1, null);
table.set(offset + 2, true);
table.set(offset + 3, false);
;
};

@@ -422,3 +443,3 @@ return imports;

wasm.__wbindgen_start();
return wasm;

@@ -425,0 +446,0 @@ }

@@ -13,3 +13,3 @@ {

"homepage": "https://github.com/Phala-Network/dcap-qvl",
"version": "0.1.0-beta.1",
"version": "0.1.0-beta.2",
"license": "MIT",

@@ -26,2 +26,2 @@ "files": [

]
}
}

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