wasm-server.js in prism-cli-0.0.6 vs wasm-server.js in prism-cli-0.0.7

- old
+ new

@@ -1,9 +1,10 @@ const http = require('http'); const fs = require('fs'); const path = require('path'); +const port = parseInt(process.argv[2], 10) || 3042; const proxy = http.createServer((req, res) => { let p = path.join('.', req.url); if (req.url === '/') { p = path.join('.', 'index.html'); @@ -21,7 +22,7 @@ res.write(e.toString()); } res.end(); }); -console.log("Listening on localhost:3042"); -proxy.listen(3042, '127.0.0.1'); +console.log(`Listening on localhost:${port}`); +proxy.listen(port, '127.0.0.1');