wat4wasm 1.1.3 → 1.1.4

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.
Files changed (3) hide show
  1. package/lib/cli.js +4 -4
  2. package/package.json +1 -1
  3. package/wat4wasm +4 -4
package/lib/cli.js CHANGED
@@ -212,8 +212,8 @@ export async function processCLI(compileCallback, PROCESS = process) {
212
212
  }
213
213
 
214
214
  extension = "js";
215
- filecontent = String(
216
- `const view = ${wasmGenerator};
215
+ filecontent = String(`
216
+ const view = ${wasmGenerator};
217
217
  export let wasm = view.buffer;
218
218
 
219
219
  wasm.module = null;
@@ -240,8 +240,8 @@ export async function processCLI(compileCallback, PROCESS = process) {
240
240
  export default wasm;`);
241
241
 
242
242
  filecontent = filecontent.replaceAll(
243
- String(" ").repeat(filecontent.search(/\w/) - 1)
244
- , "");
243
+ String(" ").repeat(filecontent.search(/\w/) - 1), ""
244
+ );
245
245
  }
246
246
  else {
247
247
  extension = "html";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wat4wasm",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/central-network/wat4wasm#readme",
6
6
  "bugs": {
package/wat4wasm CHANGED
@@ -1982,8 +1982,8 @@ async function processCLI(compileCallback, PROCESS = process) {
1982
1982
  wasmGenerator = `Uint8Array.of(${wasmhex.toString().match(/[a-f0-9]{2}/g).map(h => parseInt(h, 16))})`;
1983
1983
  }
1984
1984
  extension = "js";
1985
- filecontent = String(
1986
- `const view = ${wasmGenerator};
1985
+ filecontent = String(`
1986
+ const view = ${wasmGenerator};
1987
1987
  export let wasm = view.buffer;
1988
1988
 
1989
1989
  wasm.module = null;
@@ -2009,8 +2009,8 @@ async function processCLI(compileCallback, PROCESS = process) {
2009
2009
 
2010
2010
  export default wasm;`);
2011
2011
  filecontent = filecontent.replaceAll(
2012
- String(" ").repeat(filecontent.search(/\w/) - 1)
2013
- , "");
2012
+ String(" ").repeat(filecontent.search(/\w/) - 1), ""
2013
+ );
2014
2014
  }
2015
2015
  else {
2016
2016
  extension = "html";