@ttoss/react-hooks 1.25.9 → 1.25.10

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.
Files changed (2) hide show
  1. package/package.json +4 -3
  2. package/src/useScript.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-hooks",
3
- "version": "1.25.9",
3
+ "version": "1.25.10",
4
4
  "description": "React hooks.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -26,11 +26,12 @@
26
26
  "react": ">=16.8.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/react": "^18.2.79",
29
+ "@types/react": "^18.3.3",
30
30
  "jest": "^29.7.0",
31
+ "react": "^18.3.1",
31
32
  "tsup": "^8.0.2",
32
33
  "@ttoss/config": "^1.32.4",
33
- "@ttoss/test-utils": "^2.1.7"
34
+ "@ttoss/test-utils": "^2.1.8"
34
35
  },
35
36
  "keywords": [
36
37
  "React",
package/src/useScript.ts CHANGED
@@ -53,6 +53,7 @@ export const useScript = (src: string) => {
53
53
  * Store status in attribute on script.
54
54
  * This can be read by other instances of this hook.
55
55
  */
56
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
56
57
  const setAttributeFromEvent = (event: any) => {
57
58
  if (script) {
58
59
  script.setAttribute(
@@ -77,6 +78,7 @@ export const useScript = (src: string) => {
77
78
  * Note: Even if the script already exists we still need to add
78
79
  * event handlers to update the state for *this* hook instance.
79
80
  */
81
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
80
82
  const setStateFromEvent = (event: any) => {
81
83
  setStatus(event.type === 'load' ? 'ready' : 'error');
82
84
  };