react-component-instance 0.0.126 → 0.0.158
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/husky.mjs +16 -0
- package/package.json +19 -19
package/husky.mjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
Promise.resolve(import('husky'))
|
|
5
|
+
.then(({ default: husky }) => { husky() })
|
|
6
|
+
.catch((e) => {
|
|
7
|
+
if (e instanceof Error) {
|
|
8
|
+
if ('code' in e) {
|
|
9
|
+
const { code } = e
|
|
10
|
+
if (code === 'ERR_MODULE_NOT_FOUND') return
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { message } = e
|
|
14
|
+
if (message) console.error(`💥 ${message}`)
|
|
15
|
+
}
|
|
16
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-component-instance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.158",
|
|
4
4
|
"description": "Get a React class component instance from its DOM Element",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -27,31 +27,31 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"lint": "eslint",
|
|
29
29
|
"lint:fix": "npm run lint -- --fix",
|
|
30
|
-
"prepare": "husky",
|
|
30
|
+
"prepare": "node husky.mjs",
|
|
31
31
|
"test": "NODE_ENV=test jest"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "
|
|
35
|
-
"@babel/eslint-parser": "
|
|
36
|
-
"@babel/preset-env": "
|
|
37
|
-
"@babel/preset-react": "
|
|
38
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
39
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
40
|
-
"@testing-library/jest-dom": "^
|
|
41
|
-
"@testing-library/react": "^16.3.
|
|
42
|
-
"@types/debug": "^4.1.
|
|
34
|
+
"@babel/core": "7.29.7",
|
|
35
|
+
"@babel/eslint-parser": "7.29.7",
|
|
36
|
+
"@babel/preset-env": "7.29.7",
|
|
37
|
+
"@babel/preset-react": "7.29.7",
|
|
38
|
+
"@sequencemedia/eslint-config-standard": "^0.2.125",
|
|
39
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.216",
|
|
40
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
41
|
+
"@testing-library/react": "^16.3.3",
|
|
42
|
+
"@types/debug": "^4.1.13",
|
|
43
43
|
"@types/jest": "^30.0.0",
|
|
44
|
-
"@types/react": "^19.2.
|
|
45
|
-
"@types/react-dom": "^19.2.
|
|
46
|
-
"core-js": "^3.
|
|
44
|
+
"@types/react": "^19.2.18",
|
|
45
|
+
"@types/react-dom": "^19.2.7",
|
|
46
|
+
"core-js": "^3.50.0",
|
|
47
47
|
"eslint": "9.38.0",
|
|
48
48
|
"eslint-plugin-react": "^7.37.5",
|
|
49
|
-
"globals": "^
|
|
49
|
+
"globals": "^17.12.0",
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
|
-
"jest": "^30.
|
|
52
|
-
"jest-environment-jsdom": "^30.
|
|
53
|
-
"react": "^19.2.
|
|
54
|
-
"react-dom": "^19.2.
|
|
51
|
+
"jest": "^30.5.1",
|
|
52
|
+
"jest-environment-jsdom": "^30.5.1",
|
|
53
|
+
"react": "^19.2.8",
|
|
54
|
+
"react-dom": "^19.2.8"
|
|
55
55
|
},
|
|
56
56
|
"imports": {
|
|
57
57
|
"#react-component-instance": "./src/index.mjs",
|