@biscuit-auth/biscuit-wasm-support
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -9,3 +9,8 @@ /* tslint:disable */ | ||
/** | ||
* @param {any} query | ||
* @returns {string} | ||
*/ | ||
export function generate_token(query: any): string; | ||
/** | ||
*/ | ||
export function run_app(): void; | ||
@@ -23,2 +28,3 @@ /** | ||
readonly execute: (a: number) => number; | ||
readonly generate_token: (a: number, b: number) => void; | ||
readonly run_app: () => void; | ||
@@ -28,2 +34,3 @@ readonly parse_token: (a: number) => number; | ||
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number; | ||
readonly __wbindgen_add_to_stack_pointer: (a: number) => number; | ||
readonly __wbindgen_free: (a: number, b: number) => void; | ||
@@ -30,0 +37,0 @@ readonly __wbindgen_start: () => void; |
@@ -134,3 +134,21 @@ import * as __wbg_star0 from './snippets/biscuit-auth-8c59d769b0d67ace/inline0.js'; | ||
/** | ||
* @param {any} query | ||
* @returns {string} | ||
*/ | ||
export function generate_token(query) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.generate_token(retptr, addBorrowedObject(query)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
return getStringFromWasm0(r0, r1); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
heap[stack_pointer++] = undefined; | ||
wasm.__wbindgen_free(r0, r1); | ||
} | ||
} | ||
/** | ||
*/ | ||
export function run_app() { | ||
@@ -202,5 +220,9 @@ wasm.run_app(); | ||
}; | ||
imports.wbg.__wbg_log_5c52caa857e0c0fc = function(arg0, arg1) { | ||
imports.wbg.__wbg_log_7cd78735d8a14a72 = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_new_693216e109162396 = function() { | ||
@@ -227,6 +249,2 @@ var ret = new Error(); | ||
}; | ||
imports.wbg.__wbindgen_string_new = function(arg0, arg1) { | ||
var ret = getStringFromWasm0(arg0, arg1); | ||
return addHeapObject(ret); | ||
}; | ||
imports.wbg.__wbg_debug_f6147a62af5fb117 = function(arg0, arg1, arg2, arg3) { | ||
@@ -253,2 +271,5 @@ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3)); | ||
}; | ||
imports.wbg.__wbindgen_rethrow = function(arg0) { | ||
throw takeObject(arg0); | ||
}; | ||
imports['./snippets/biscuit-auth-8c59d769b0d67ace/inline0.js'] = __wbg_star0; | ||
@@ -255,0 +276,0 @@ |
@@ -6,14 +6,8 @@ { | ||
], | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/biscuit-auth/biscuit-component-wasm", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/biscuit-auth/biscuit-component-wasm" | ||
}, | ||
"files": [ | ||
"biscuit_bg.wasm", | ||
"biscuit.js", | ||
"biscuit.d.ts", | ||
"snippets" | ||
"biscuit.d.ts" | ||
], | ||
@@ -23,2 +17,2 @@ "module": "biscuit.js", | ||
"sideEffects": false | ||
} | ||
} |
@@ -9,3 +9,3 @@ # Biscuit playground | ||
``` | ||
wasm-pack build --target web --out-dir static --out-name biscuit | ||
wasm-pack build --scope biscuit-auth --target web --out-dir static --out-name biscuit | ||
``` | ||
@@ -16,3 +16,3 @@ | ||
``` | ||
wasm-pack build --target web --out-dir web --out-name biscuit | ||
wasm-pack build --scope biscuit-auth --target web --out-dir web --out-name biscuit | ||
cd web | ||
@@ -19,0 +19,0 @@ npm pack |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1092316
284
6
2
1