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

@biscuit-auth/biscuit-wasm

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biscuit-auth/biscuit-wasm - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

dist/snippets/biscuit-auth-9e9cb948e4a45b32/inline0.js

476

dist/biscuit.js
let imports = {};
imports['./snippets/biscuit-auth-21b789ded65f3814/inline0.js'] = require('./snippets/biscuit-auth-21b789ded65f3814/inline0.js');
imports['./snippets/biscuit-auth-9e9cb948e4a45b32/inline0.js'] = require('./snippets/biscuit-auth-9e9cb948e4a45b32/inline0.js');
imports['__wbindgen_placeholder__'] = module.exports;

@@ -59,2 +59,10 @@ let wasm;

let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachegetInt32Memory0;
}
let WASM_VECTOR_LEN = 0;

@@ -122,10 +130,2 @@

let cachegetInt32Memory0 = null;
function getInt32Memory0() {
if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
}
return cachegetInt32Memory0;
}
function getArrayU8FromWasm0(ptr, len) {

@@ -199,5 +199,15 @@ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);

add_fact(fact) {
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_fact(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_fact(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -209,5 +219,15 @@ /**

add_rule(rule) {
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_rule(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_rule(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -221,5 +241,15 @@ /**

add_check(check) {
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_check(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_check(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -235,5 +265,15 @@ /**

add_policy(policy) {
var ptr0 = passStringToWasm0(policy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_policy(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(policy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_policy(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -245,5 +285,15 @@ /**

add_code(source) {
var ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_code(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.authorizer_add_code(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -258,4 +308,15 @@ /**

authorize() {
var ret = wasm.authorizer_authorize(this.ptr);
return ret >>> 0;
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.authorizer_authorize(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return r0 >>> 0;
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -316,7 +377,18 @@ }

append(block) {
_assertClass(block, BlockBuilder);
var ptr0 = block.ptr;
block.ptr = 0;
var ret = wasm.biscuit_append(this.ptr, ptr0);
return Biscuit.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertClass(block, BlockBuilder);
var ptr0 = block.ptr;
block.ptr = 0;
wasm.biscuit_append(retptr, this.ptr, ptr0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Biscuit.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -328,4 +400,15 @@ /**

authorizer() {
var ret = wasm.biscuit_authorizer(this.ptr);
return Authorizer.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.biscuit_authorizer(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Authorizer.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -339,4 +422,15 @@ /**

seal() {
var ret = wasm.biscuit_seal(this.ptr);
return Biscuit.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
wasm.biscuit_seal(retptr, this.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Biscuit.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -352,7 +446,18 @@ /**

static from_bytes(data, root) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
_assertClass(root, PublicKey);
var ret = wasm.biscuit_from_bytes(ptr0, len0, root.ptr);
return Biscuit.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
_assertClass(root, PublicKey);
wasm.biscuit_from_bytes(retptr, ptr0, len0, root.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Biscuit.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -368,7 +473,18 @@ /**

static from_base64(data, root) {
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
_assertClass(root, PublicKey);
var ret = wasm.biscuit_from_base64(ptr0, len0, root.ptr);
return Biscuit.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
_assertClass(root, PublicKey);
wasm.biscuit_from_base64(retptr, ptr0, len0, root.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Biscuit.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -385,2 +501,7 @@ /**

var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
var r3 = getInt32Memory0()[retptr / 4 + 3];
if (r3) {
throw takeObject(r2);
}
var v0 = getArrayU8FromWasm0(r0, r1).slice();

@@ -403,6 +524,14 @@ wasm.__wbindgen_free(r0, r1 * 1);

var r1 = getInt32Memory0()[retptr / 4 + 1];
return getStringFromWasm0(r0, r1);
var r2 = getInt32Memory0()[retptr / 4 + 2];
var r3 = getInt32Memory0()[retptr / 4 + 3];
var ptr0 = r0;
var len0 = r1;
if (r3) {
ptr0 = 0; len0 = 0;
throw takeObject(r2);
}
return getStringFromWasm0(ptr0, len0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(r0, r1);
wasm.__wbindgen_free(ptr0, len0);
}

@@ -486,6 +615,17 @@ }

build(root) {
const ptr = this.__destroy_into_raw();
_assertClass(root, KeyPair);
var ret = wasm.biscuitbuilder_build(ptr, root.ptr);
return Biscuit.__wrap(ret);
try {
const ptr = this.__destroy_into_raw();
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertClass(root, KeyPair);
wasm.biscuitbuilder_build(retptr, ptr, root.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return Biscuit.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -497,5 +637,15 @@ /**

add_authority_fact(fact) {
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_fact(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_fact(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -507,5 +657,15 @@ /**

add_authority_rule(rule) {
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_rule(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_rule(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -519,5 +679,15 @@ /**

add_authority_check(check) {
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_check(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.biscuitbuilder_add_authority_check(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -554,5 +724,15 @@ }

add_fact(fact) {
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_fact(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(fact, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_fact(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -564,5 +744,15 @@ /**

add_rule(rule) {
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_rule(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(rule, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_rule(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -576,5 +766,15 @@ /**

add_check(check) {
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_check(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(check, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_check(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -586,5 +786,15 @@ /**

add_code(source) {
var ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_code(this.ptr, ptr0, len0);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.blockbuilder_add_code(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -666,6 +876,13 @@ }

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.privatekey_to_bytes(this.ptr, ptr0, len0);
wasm.privatekey_to_bytes(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
out.set(getUint8Memory0().subarray(ptr0 / 1, ptr0 / 1 + len0));

@@ -697,6 +914,17 @@ wasm.__wbindgen_free(ptr0, len0 * 1);

from_bytes(data) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.privatekey_from_bytes(this.ptr, ptr0, len0);
return PrivateKey.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.privatekey_from_bytes(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return PrivateKey.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -709,6 +937,17 @@ /**

from_hex(data) {
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.privatekey_from_hex(this.ptr, ptr0, len0);
return PrivateKey.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.privatekey_from_hex(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return PrivateKey.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -746,6 +985,13 @@ }

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passArray8ToWasm0(out, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.publickey_to_bytes(this.ptr, ptr0, len0);
wasm.publickey_to_bytes(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
if (r1) {
throw takeObject(r0);
}
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
out.set(getUint8Memory0().subarray(ptr0 / 1, ptr0 / 1 + len0));

@@ -777,6 +1023,17 @@ wasm.__wbindgen_free(ptr0, len0 * 1);

from_bytes(data) {
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.publickey_from_bytes(this.ptr, ptr0, len0);
return PublicKey.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
var len0 = WASM_VECTOR_LEN;
wasm.publickey_from_bytes(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return PublicKey.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -789,6 +1046,17 @@ /**

from_hex(data) {
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
var ret = wasm.publickey_from_hex(this.ptr, ptr0, len0);
return PublicKey.__wrap(ret);
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
var ptr0 = passStringToWasm0(data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len0 = WASM_VECTOR_LEN;
wasm.publickey_from_hex(retptr, this.ptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
if (r2) {
throw takeObject(r1);
}
return PublicKey.__wrap(r0);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
}
}

@@ -837,23 +1105,23 @@ }

module.exports.__wbg_debug_f6147a62af5fb117 = function(arg0, arg1, arg2, arg3) {
module.exports.__wbg_debug_6df4b1a327dd2e94 = function(arg0, arg1, arg2, arg3) {
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
};
module.exports.__wbg_error_cc38ce2b4b661e1d = function(arg0) {
module.exports.__wbg_error_ca520cb687b085a1 = function(arg0) {
console.error(getObject(arg0));
};
module.exports.__wbg_error_8b4a1487636c965d = function(arg0, arg1, arg2, arg3) {
module.exports.__wbg_error_644d3bc8c0537e80 = function(arg0, arg1, arg2, arg3) {
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
};
module.exports.__wbg_info_74a03c22e1fa6688 = function(arg0, arg1, arg2, arg3) {
module.exports.__wbg_info_8bed0988e7416289 = function(arg0, arg1, arg2, arg3) {
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
};
module.exports.__wbg_log_ad41dbc3d891c2dc = function(arg0, arg1, arg2, arg3) {
module.exports.__wbg_log_681299aef22afa27 = function(arg0, arg1, arg2, arg3) {
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
};
module.exports.__wbg_warn_c1cc594c33944c11 = function(arg0, arg1, arg2, arg3) {
module.exports.__wbg_warn_ca021eeadd0df9cd = function(arg0, arg1, arg2, arg3) {
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));

@@ -905,3 +1173,3 @@ };

module.exports.__wbg_buffer_397eaa4d72ee94dd = function(arg0) {
module.exports.__wbg_buffer_5e74a88a1424a2e0 = function(arg0) {
var ret = getObject(arg0).buffer;

@@ -911,3 +1179,3 @@ return addHeapObject(ret);

module.exports.__wbg_new_a7ce447f15ff496f = function(arg0) {
module.exports.__wbg_new_e3b800e570795b3c = function(arg0) {
var ret = new Uint8Array(getObject(arg0));

@@ -917,7 +1185,7 @@ return addHeapObject(ret);

module.exports.__wbg_set_969ad0a60e51d320 = function(arg0, arg1, arg2) {
module.exports.__wbg_set_5b8081e9d002f0df = function(arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
};
module.exports.__wbg_length_1eb8fc608a0d4cdb = function(arg0) {
module.exports.__wbg_length_30803400a8f15c59 = function(arg0) {
var ret = getObject(arg0).length;

@@ -927,3 +1195,3 @@ return ret;

module.exports.__wbg_newwithlength_929232475839a482 = function(arg0) {
module.exports.__wbg_newwithlength_5f4ce114a24dfe1e = function(arg0) {
var ret = new Uint8Array(arg0 >>> 0);

@@ -933,3 +1201,3 @@ return addHeapObject(ret);

module.exports.__wbg_subarray_8b658422a224f479 = function(arg0, arg1, arg2) {
module.exports.__wbg_subarray_a68f835ca2af506f = function(arg0, arg1, arg2) {
var ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);

@@ -943,6 +1211,2 @@ return addHeapObject(ret);

module.exports.__wbindgen_rethrow = function(arg0) {
throw takeObject(arg0);
};
module.exports.__wbindgen_memory = function() {

@@ -949,0 +1213,0 @@ var ret = wasm.memory;

{
"name": "@biscuit-auth/biscuit-wasm",
"description": "WebAssembly wrapper for Biscuit authorization tokens",
"version": "0.1.3",
"version": "0.2.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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