diff --git a/package.json b/package.json index 9a84b05..f656625 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ } }, "scripts": { - "build": "shx rm -rf dist && tsc -b && shx cp src/lib/phatjs/phatjs_bg.wasm dist/lib/phatjs/", + "build": "shx rm -rf dist && tsc -b && shx cp src/lib/phatjs/phatjs_bg.*.wasm dist/lib/phatjs/", "lint": "tsc --noEmit", "test": "mocha --forbid-only \"test/**/*.test.ts\"" }, diff --git a/src/lib/phatjs/phatjs.js b/src/lib/phatjs/phatjs.js index 9c00ec1..1164c8b 100644 --- a/src/lib/phatjs/phatjs.js +++ b/src/lib/phatjs/phatjs.js @@ -638,7 +638,7 @@ module.exports.__wbindgen_closure_wrapper1483 = function(arg0, arg1, arg2) { }; module.exports.init = function() { - const path = require('upath').join(__dirname, 'phatjs_bg.wasm'); + const path = require('upath').join(__dirname, 'phatjs_bg.0.10.1.wasm'); const bytes = require('fs').readFileSync(path); const wasmModule = new WebAssembly.Module(bytes); const wasmInstance = new WebAssembly.Instance(wasmModule, imports); diff --git a/src/lib/phatjs/phatjs_bg.wasm b/src/lib/phatjs/phatjs_bg.0.10.1.wasm similarity index 100% rename from src/lib/phatjs/phatjs_bg.wasm rename to src/lib/phatjs/phatjs_bg.0.10.1.wasm diff --git a/src/lib/phatjs/phatjs_bg.wasm.d.ts b/src/lib/phatjs/phatjs_bg.wasm.d.ts deleted file mode 100644 index 4eaf22f..0000000 --- a/src/lib/phatjs/phatjs_bg.wasm.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -export const memory: WebAssembly.Memory; -export function start(): void; -export function version(): number; -export function run(a: number, b: number): number; -export function setHook(a: number, b: number, c: number, d: number): void; -export function __main_argc_argv(a: number, b: number): number; -export function __pink_malloc(a: number): number; -export function __pink_free(a: number): void; -export function __pink_realloc(a: number, b: number): number; -export function __pink_clock_time_get(a: number, b: number, c: number): number; -export function __pink_fd_write(a: number, b: number, c: number): number; -export function __pink_getrandom(a: number, b: number): void; -export function __wbindgen_malloc_command_export(a: number, b: number): number; -export function __wbindgen_realloc_command_export(a: number, b: number, c: number, d: number): number; -export const __wbindgen_export_2: WebAssembly.Table; -export function wasm_bindgen__convert__closures__invoke1_mut__hdb3d18d70eb2a205(a: number, b: number, c: number): void; -export function __wbindgen_exn_store_command_export(a: number): void; -export function wasm_bindgen__convert__closures__invoke2_mut__h129b1a7fb2e72e4c(a: number, b: number, c: number, d: number): void; -export function __wbindgen_add_to_stack_pointer(a: number): number; -export function __wbindgen_start(): void;