malinajs 0.6.56 → 0.6.57

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/compile.js +1 -1
  2. package/malina.js +2 -2
  3. package/package.json +1 -1
package/compile.js CHANGED
@@ -1247,7 +1247,7 @@ function transform() {
1247
1247
  function walk(node, parent, fn) {
1248
1248
  if(typeof node !== 'object') return;
1249
1249
 
1250
- if(node._apply) return;
1250
+ if(node._apply && node.type == 'ExpressionStatement') return;
1251
1251
  node._parent = parent;
1252
1252
  let forParent = parent;
1253
1253
  if(node.type) {
package/malina.js CHANGED
@@ -1248,7 +1248,7 @@
1248
1248
  function walk(node, parent, fn) {
1249
1249
  if(typeof node !== 'object') return;
1250
1250
 
1251
- if(node._apply) return;
1251
+ if(node._apply && node.type == 'ExpressionStatement') return;
1252
1252
  node._parent = parent;
1253
1253
  let forParent = parent;
1254
1254
  if(node.type) {
@@ -5917,7 +5917,7 @@
5917
5917
  return {event, fn};
5918
5918
  }
5919
5919
 
5920
- const version = '0.6.56';
5920
+ const version = '0.6.57';
5921
5921
 
5922
5922
 
5923
5923
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.6.56",
3
+ "version": "0.6.57",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",