react-component-name 0.0.7 → 0.0.9
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/package.json +4 -4
- package/src/index.d.mts +3 -3
- package/.publish/README.md +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-component-name",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Get a React component name from Fiber",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@babel/eslint-parser": "^7.27.0",
|
|
38
38
|
"@babel/preset-env": "^7.26.9",
|
|
39
39
|
"@babel/preset-react": "^7.26.3",
|
|
40
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
41
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
40
|
+
"@sequencemedia/eslint-config-standard": "^0.2.47",
|
|
41
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.69",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
43
|
"@testing-library/react": "^16.2.0",
|
|
44
44
|
"@types/debug": "^4.1.12",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"husky": "^9.1.7",
|
|
54
54
|
"jest": "^29.7.0",
|
|
55
55
|
"jest-environment-jsdom": "^29.7.0",
|
|
56
|
-
"react": "^19.
|
|
56
|
+
"react": "^19.1.0"
|
|
57
57
|
},
|
|
58
58
|
"imports": {
|
|
59
59
|
"#react-component-name": "./src/index.mjs"
|
package/src/index.d.mts
CHANGED
|
@@ -12,15 +12,15 @@ declare function getElementFromContainerElement (containerElement: Element): Ele
|
|
|
12
12
|
|
|
13
13
|
export function isReactFiberKey (key: PropertyKey): boolean
|
|
14
14
|
|
|
15
|
-
export function isReactContainerFiberKey (key: PropertyKey)
|
|
15
|
+
export function isReactContainerFiberKey (key: PropertyKey): boolean
|
|
16
16
|
|
|
17
17
|
export function getReactFiberKey (element: Element): string | undefined
|
|
18
18
|
|
|
19
|
-
export function getReactContainerFiberKey (containerElement: Element)
|
|
19
|
+
export function getReactContainerFiberKey (containerElement: Element): string | undefined
|
|
20
20
|
|
|
21
21
|
export function getFiberFromRender (render: RenderType): FiberNode | null
|
|
22
22
|
|
|
23
|
-
export function getFiberFromElement (element: Element)
|
|
23
|
+
export function getFiberFromElement (element: Element): FiberNode | null
|
|
24
24
|
|
|
25
25
|
export function getContainerFiberFromContainerElement (containerElement: Element): FiberNode | null
|
|
26
26
|
|
package/.publish/README.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Publish to NPM
|
|
2
|
-
|
|
3
|
-
For CircleCI or the shell
|
|
4
|
-
|
|
5
|
-
If you need an _authentication token_ to publish then you should resolve that before executing this script
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
echo ".publish/publish.sh" >> .npmignore
|
|
9
|
-
git clone https://github.com/modernpoacher/publish.git .publish
|
|
10
|
-
.publish/publish.sh
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
A Gist with the same content as `publish.sh` may need an additional step
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
echo ".publish/publish.sh" >> .npmignore
|
|
17
|
-
git clone https://gist.github.com/efd85e2b8da1ee830dd637f134994a9d.git .publish
|
|
18
|
-
chmod +x .publish/publish.sh
|
|
19
|
-
.publish/publish.sh
|
|
20
|
-
```
|