@viewfly/core 0.0.1-alpha.0 → 0.0.1-alpha.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.
@@ -72,6 +72,9 @@ function flatChildren(jsxNodes) {
72
72
  else if (typeof node === 'string' && node.length) {
73
73
  children.push(new JSXText(node));
74
74
  }
75
+ else if (Array.isArray(node)) {
76
+ children.push(...flatChildren(node));
77
+ }
75
78
  else if (node !== null && typeof node !== 'undefined') {
76
79
  children.push(new JSXText(String(node)));
77
80
  }
package/bundles/index.js CHANGED
@@ -73,6 +73,9 @@ function flatChildren(jsxNodes) {
73
73
  else if (typeof node === 'string' && node.length) {
74
74
  children.push(new JSXText(node));
75
75
  }
76
+ else if (Array.isArray(node)) {
77
+ children.push(...flatChildren(node));
78
+ }
76
79
  else if (node !== null && typeof node !== 'undefined') {
77
80
  children.push(new JSXText(String(node)));
78
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/core",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-alpha.1",
4
4
  "description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -35,5 +35,6 @@
35
35
  },
36
36
  "bugs": {
37
37
  "url": "https://github.com/viewfly/viewfly.git/issues"
38
- }
38
+ },
39
+ "gitHead": "abca65615d81e3a6617d5fe588cdf38142a3523a"
39
40
  }