Skip to content

Commit 381c421

Browse files
authored
Update Binaryen and other dependencies (#1328)
1 parent c1556c1 commit 381c421

File tree

9 files changed

+434
-171
lines changed

9 files changed

+434
-171
lines changed

lib/parse/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ export { Type, SectionId, ExternalKind };
55
var compiled: WebAssembly.Module | null = null;
66

77
declare var WASM_DATA: string; // injected by webpack
8-
if (typeof WASM_DATA !== "string") WASM_DATA = require("fs").readFileSync(__dirname + "/../build/index.wasm", "base64");
8+
if (typeof WASM_DATA !== "string") {
9+
// eslint-disable-next-line @typescript-eslint/no-var-requires
10+
WASM_DATA = require("fs").readFileSync(__dirname + "/../build/index.wasm", "base64");
11+
}
912

1013
/** Options specified to the parser. The `onSection` callback determines the sections being evaluated in detail. */
1114
export interface ParseOptions {

package-lock.json

+74-83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@
2121
"url": "https://github.com/AssemblyScript/assemblyscript/issues"
2222
},
2323
"dependencies": {
24-
"binaryen": "93.0.0-nightly.20200514",
24+
"binaryen": "93.0.0-nightly.20200609",
2525
"long": "^4.0.0",
2626
"source-map-support": "^0.5.19",
2727
"ts-node": "^6.2.0"
2828
},
2929
"devDependencies": {
30-
"@types/node": "^14.0.5",
31-
"@typescript-eslint/eslint-plugin": "^3.0.1",
32-
"@typescript-eslint/parser": "^3.0.1",
30+
"@types/node": "^14.0.13",
31+
"@typescript-eslint/eslint-plugin": "^3.2.0",
32+
"@typescript-eslint/parser": "^3.2.0",
3333
"browser-process-hrtime": "^1.0.0",
3434
"diff": "^4.0.2",
35-
"eslint": "^7.1.0",
35+
"eslint": "^7.2.0",
3636
"glob": "^7.1.6",
3737
"physical-cpu-count": "^2.0.0",
3838
"source-map-support": "^0.5.19",
3939
"ts-loader": "^7.0.5",
4040
"ts-node": "^6.2.0",
41-
"typescript": "^3.9.3",
41+
"typescript": "^3.9.5",
4242
"webpack": "^4.43.0",
4343
"webpack-cli": "^3.3.11"
4444
},

scripts/update-constants.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ binaryen.ready.then(() => {
1313
var match = val.match(/\b(_(?:Binaryen|Relooper|ExpressionRunner)\w+)\b/);
1414
if (match) {
1515
let fn = match[1];
16-
if (typeof binaryen[fn] !== "function") throw Error("API mismatch: Is Binaryen up to date?");
16+
if (typeof binaryen[fn] !== "function") throw Error("API mismatch on '" + fn + "': Is Binaryen up to date?");
1717
let id = binaryen[fn]();
1818
console.log(fn + " = " + id);
1919
return key + " = " + id + " /* " + fn + " */";

0 commit comments

Comments
 (0)