mercury-engine 1.0.4 → 1.0.5

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.
@@ -75,7 +75,10 @@
75
75
 
76
76
  // evaluate the code on the click of a button
77
77
  let b1 = document.getElementById('b1');
78
- b1.onclick = () => Engine.code(mercuryCode);
78
+ b1.onclick = () => {
79
+ let tree = Engine.code(mercuryCode);
80
+ console.log(tree.errors);
81
+ }
79
82
 
80
83
  // stop the code on the click of a button
81
84
  let b2 = document.getElementById('b2');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-engine",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "The mercury engine generates web audio output from mercury code input",
5
5
  "main": "./dist/mercury.js",
6
6
  "scripts": {