@ferscloud/fers-calculation 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fers_calculations.js
CHANGED
|
@@ -59,8 +59,7 @@ function __wbg_get_imports() {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
function getStringFromWasm0(ptr, len) {
|
|
62
|
-
|
|
63
|
-
return decodeText(ptr, len);
|
|
62
|
+
return decodeText(ptr >>> 0, len);
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -132,5 +131,6 @@ let WASM_VECTOR_LEN = 0;
|
|
|
132
131
|
const wasmPath = `${__dirname}/fers_calculations_bg.wasm`;
|
|
133
132
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
134
133
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
135
|
-
let
|
|
134
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
135
|
+
let wasm = wasmInstance.exports;
|
|
136
136
|
wasm.__wbindgen_start();
|
|
Binary file
|