@kubb/renderer-jsx 5.0.0-beta.93 → 5.0.0-beta.94
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -510,7 +510,7 @@ function collectFileChildren(element) {
|
|
|
510
510
|
const exports = [];
|
|
511
511
|
const imports = [];
|
|
512
512
|
walkElement(element, (text) => {
|
|
513
|
-
if (text.trim()) throw new Error(`[
|
|
513
|
+
if (text.trim()) throw new Error(`[jsx] '${text}' should be part of <File.Source> component when using the <File/> component`);
|
|
514
514
|
}, (type, props) => {
|
|
515
515
|
if (type === "kubb-source") {
|
|
516
516
|
sources.push(_kubb_ast.ast.factory.createSource({
|
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ function collectFileChildren(element) {
|
|
|
509
509
|
const exports = [];
|
|
510
510
|
const imports = [];
|
|
511
511
|
walkElement(element, (text) => {
|
|
512
|
-
if (text.trim()) throw new Error(`[
|
|
512
|
+
if (text.trim()) throw new Error(`[jsx] '${text}' should be part of <File.Source> component when using the <File/> component`);
|
|
513
513
|
}, (type, props) => {
|
|
514
514
|
if (type === "kubb-source") {
|
|
515
515
|
sources.push(ast.factory.createSource({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/renderer-jsx",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.94",
|
|
4
4
|
"description": "Self-contained synchronous JSX renderer for Kubb. Turns JSX into FileNodes with built-in components (File, Function, Type, Const). An alternative for the ast.factory syntax.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"yaml": "^2.9.0",
|
|
72
|
-
"@kubb/ast": "5.0.0-beta.
|
|
72
|
+
"@kubb/ast": "5.0.0-beta.94"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=22"
|