react-attack 1.1.4 → 1.1.6
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.js +1 -0
- package/package.json +9 -5
- package/index.tsx +0 -1
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
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.6",
|
|
4
4
|
"description": "Append your component in any part of your html using react-attack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-attack",
|
|
@@ -18,14 +18,18 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"author": "Dario Passariello",
|
|
20
20
|
"type": "module",
|
|
21
|
-
"main": "./index.
|
|
21
|
+
"main": "./index.js",
|
|
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
|
}
|
package/index.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|