react-attack 1.1.3 → 1.1.5
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/index.tsx +1 -1
- package/package.json +8 -4
package/index.tsx
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import r,{isValidElement as n}from"react";import{createRoot as d}from"react-dom/client";const i=(a,c,e)=>{e||console.error("Pass a children to React Attack");const t=document.createElement("div");t.id=c;const o=document.querySelector(a);if(!o)throw"React Attack need the parent object in the scene";return o.appendChild(t),d(t).render(n(e)?e:r.createElement(r.Fragment,null,e)),!1};export default i;
|
|
1
|
+
"use strict";import r,{isValidElement as n}from"react";import{createRoot as d}from"react-dom/client";const i=(a,c,e)=>{e||console.error("Pass a children to React Attack");const t=document.createElement("div");t.id=c;const o=document.querySelector(a);if(!o)throw"React Attack need the parent object in the scene";return o.appendChild(t),d(t).render(n(e)?e:r.createElement(r.Fragment,null,e)),!1};export default i;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-attack",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Append your component in any part of your html using react-attack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-attack",
|
|
@@ -21,11 +21,15 @@
|
|
|
21
21
|
"main": "./index.tsx",
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"react": "^19.
|
|
25
|
-
"react-dom": "^19.
|
|
24
|
+
"react": "^19.2.0",
|
|
25
|
+
"react-dom": "^19.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"esbuild": "0.25.10",
|
|
29
|
-
"esbuild-plugin-copy": "2.1.1"
|
|
29
|
+
"esbuild-plugin-copy": "2.1.1",
|
|
30
|
+
"ts-node": "^10.9.2",
|
|
31
|
+
"tslib": "^2.8.1",
|
|
32
|
+
"typescript": "^5.9.3",
|
|
33
|
+
"ts-jest": "29.4.4"
|
|
30
34
|
}
|
|
31
35
|
}
|