@ai-matrx/kit 0.5.1 → 0.5.2
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/CHANGELOG.md +10 -0
- package/dist/confirm.cjs +2 -1
- package/dist/confirm.cjs.map +1 -1
- package/dist/confirm.js +2 -1
- package/dist/confirm.js.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/react-tree.cjs +2 -1
- package/dist/react-tree.cjs.map +1 -1
- package/dist/react-tree.js +2 -1
- package/dist/react-tree.js.map +1 -1
- package/dist/short-link.cjs +55 -0
- package/dist/short-link.cjs.map +1 -0
- package/dist/short-link.d.cts +52 -0
- package/dist/short-link.d.ts +52 -0
- package/dist/short-link.js +34 -0
- package/dist/short-link.js.map +1 -0
- package/package.json +13 -2
package/dist/index.js
CHANGED
|
@@ -868,7 +868,8 @@ function treeContainsComponent(node, Component) {
|
|
|
868
868
|
(child) => treeContainsComponent(child, Component)
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
|
-
|
|
871
|
+
const runtimeProcess = globalThis.process;
|
|
872
|
+
if (runtimeProcess?.env?.NODE_ENV !== "production") {
|
|
872
873
|
const keys = typeof node === "object" ? ` with keys {${Object.keys(node).join(", ")}}` : "";
|
|
873
874
|
console.error(
|
|
874
875
|
`[treeContainsComponent] A non-renderable value${keys} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,
|