watr 1.4.0 → 1.4.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/print.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watr",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Ligth & fast WAT compiler",
5
5
  "main": "watr.js",
6
6
  "type": "module",
package/src/print.js CHANGED
@@ -8,9 +8,7 @@ export default function print(tree, options = {}) {
8
8
  ({ indent=' ', newline='\n' } = options);
9
9
  indent ||= '', newline ||= '';
10
10
 
11
- let out = typeof tree[0] === 'string' ? printNode(tree) : tree.map(node => printNode(node)).join(newline)
12
- console.log(out)
13
- return out
11
+ return typeof tree[0] === 'string' ? printNode(tree) : tree.map(node => printNode(node)).join(newline)
14
12
  }
15
13
 
16
14
  const INLINE = [