@vitus-labs/core 2.0.0-alpha.2 → 2.0.0-alpha.20
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/lib/index.js +2 -6
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -439,12 +439,8 @@ const HTML_TEXT_TAGS = [
|
|
|
439
439
|
const render = (content, attachProps) => {
|
|
440
440
|
if (!content) return null;
|
|
441
441
|
const render = (child) => attachProps ? createElement(child, attachProps) : createElement(child);
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
"boolean",
|
|
445
|
-
"bigint",
|
|
446
|
-
"string"
|
|
447
|
-
].includes(typeof content)) return content;
|
|
442
|
+
const t = typeof content;
|
|
443
|
+
if (t === "string" || t === "number" || t === "boolean" || t === "bigint") return content;
|
|
448
444
|
if (Array.isArray(content) || isFragment(content)) return content;
|
|
449
445
|
if (isValidElementType(content)) return render(content);
|
|
450
446
|
if (isValidElement(content)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitus-labs/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@vitus-labs/tools-rolldown": "^1.6.0",
|
|
62
62
|
"@vitus-labs/tools-typescript": "^1.6.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "4159928108bd65c6d0756ecf21430908c8b6804d"
|
|
65
65
|
}
|