@biscuit-auth/biscuit-wasm-support
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -7,2 +7,7 @@ /* tslint:disable */ | ||
*/ | ||
export function attenuate_token(query: any): any; | ||
/** | ||
* @param {any} query | ||
* @returns {any} | ||
*/ | ||
export function execute(query: any): any; | ||
@@ -31,2 +36,3 @@ /** | ||
readonly memory: WebAssembly.Memory; | ||
readonly attenuate_token: (a: number) => number; | ||
readonly execute: (a: number) => number; | ||
@@ -33,0 +39,0 @@ readonly generate_keypair: () => number; |
@@ -1,2 +0,2 @@ | ||
import * as __wbg_star0 from './snippets/biscuit-auth-21b789ded65f3814/inline0.js'; | ||
import * as __wbg_star0 from './snippets/biscuit-auth-4fe94bace268e023/inline0.js'; | ||
@@ -124,2 +124,15 @@ let wasm; | ||
*/ | ||
export function attenuate_token(query) { | ||
try { | ||
var ret = wasm.attenuate_token(addBorrowedObject(query)); | ||
return takeObject(ret); | ||
} finally { | ||
heap[stack_pointer++] = undefined; | ||
} | ||
} | ||
/** | ||
* @param {any} query | ||
* @returns {any} | ||
*/ | ||
export function execute(query) { | ||
@@ -228,5 +241,2 @@ try { | ||
imports.wbg = {}; | ||
imports.wbg.__wbg_log_0be15e10466650a4 = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) { | ||
@@ -244,2 +254,5 @@ var ret = JSON.parse(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_log_0fc7f9ce45cb3d65 = function(arg0, arg1) { | ||
console.log(getStringFromWasm0(arg0, arg1)); | ||
}; | ||
imports.wbg.__wbg_new_693216e109162396 = function() { | ||
@@ -355,3 +368,3 @@ var ret = new Error(); | ||
}; | ||
imports['./snippets/biscuit-auth-21b789ded65f3814/inline0.js'] = __wbg_star0; | ||
imports['./snippets/biscuit-auth-4fe94bace268e023/inline0.js'] = __wbg_star0; | ||
@@ -358,0 +371,0 @@ if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) { |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"license": "Apache-2.0", | ||
@@ -9,0 +9,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
388
1
1086160