ripple 0.2.38 → 0.2.40

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is a TypeScript UI framework for the web",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.38",
6
+ "version": "0.2.40",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index.js",
9
9
  "main": "src/runtime/index.js",
@@ -431,6 +431,10 @@ const visitors = {
431
431
  },
432
432
 
433
433
  ForOfStatement(node, context) {
434
+ if (!is_inside_component(context)) {
435
+ return context.next();
436
+ }
437
+
434
438
  node.metadata = {
435
439
  has_template: false,
436
440
  };
@@ -1666,6 +1666,7 @@ function transform_children(children, { visit, state, root }) {
1666
1666
  state.template.push(escape_html(expression.value));
1667
1667
  } else {
1668
1668
  const id = state.flush_node();
1669
+ state.template.push(' ');
1669
1670
  state.init.push(
1670
1671
  b.stmt(b.assignment('=', b.member(id, b.id('textContent')), expression)),
1671
1672
  );