@oneplatformdev/hooks
Advanced tools
+4
-0
@@ -0,1 +1,5 @@ | ||
| ## 0.1.99-beta.264 (2026-05-06) | ||
| This was a version bump only for @oneplatformdev/hooks to align it with other projects, there were no code changes. | ||
| ## 0.1.99-beta.263 (2026-04-28) | ||
@@ -2,0 +6,0 @@ |
+1
-1
| { | ||
| "name": "@oneplatformdev/hooks", | ||
| "version": "0.1.99-beta.263", | ||
| "version": "0.1.99-beta.265", | ||
| "description": "React hook library", | ||
@@ -5,0 +5,0 @@ "author": "One Platform Development Team", |
| import { useCallback as l } from "react"; | ||
| import { useBoolean as d } from "../useBoolean/useBoolean.js"; | ||
| import { useCounter as w } from "../useCounter/useCounter.js"; | ||
| import { useCounter as d } from "../useCounter/useCounter.js"; | ||
| import { useBoolean as w } from "../useBoolean/useBoolean.js"; | ||
| import { useInterval as p } from "../useInterval/useInterval.js"; | ||
@@ -16,7 +16,7 @@ function x({ | ||
| reset: u | ||
| } = w(a), { | ||
| } = d(a), { | ||
| value: f, | ||
| setTrue: i, | ||
| setFalse: e | ||
| } = d(!1), m = l(() => { | ||
| } = w(!1), m = l(() => { | ||
| e(), u(); | ||
@@ -23,0 +23,0 @@ }, [e, u]), C = l(() => { |
@@ -1,4 +0,4 @@ | ||
| import { useIsomorphicLayoutEffect as l } from "../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js"; | ||
| import { useMediaQuery as l } from "../useMediaQuery/useMediaQuery.js"; | ||
| import { useLocalStorage as c } from "../useLocalStorage/useLocalStorage.js"; | ||
| import { useMediaQuery as f } from "../useMediaQuery/useMediaQuery.js"; | ||
| import { useIsomorphicLayoutEffect as f } from "../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js"; | ||
| const n = "(prefers-color-scheme: dark)", d = "usehooks-ts-dark-mode"; | ||
@@ -10,3 +10,3 @@ function E(i = {}) { | ||
| initializeWithValue: s = !0 | ||
| } = i, o = f(n, { | ||
| } = i, o = l(n, { | ||
| initializeWithValue: s, | ||
@@ -19,3 +19,3 @@ defaultValue: t | ||
| ); | ||
| return l(() => { | ||
| return f(() => { | ||
| o !== a && e(o); | ||
@@ -22,0 +22,0 @@ }, [o]), { |
@@ -1,3 +0,3 @@ | ||
| import { useLocalStorage as c } from "../useLocalStorage/useLocalStorage.js"; | ||
| import { useMediaQuery as m } from "../useMediaQuery/useMediaQuery.js"; | ||
| import { useMediaQuery as c } from "../useMediaQuery/useMediaQuery.js"; | ||
| import { useLocalStorage as m } from "../useLocalStorage/useLocalStorage.js"; | ||
| const y = "(prefers-color-scheme: dark)", M = "usehooks-ts-ternary-dark-mode"; | ||
@@ -9,3 +9,3 @@ function f({ | ||
| } = {}) { | ||
| const a = m(y, { initializeWithValue: o }), [e, s] = c(n, t, { | ||
| const a = c(y, { initializeWithValue: o }), [e, s] = m(n, t, { | ||
| initializeWithValue: o | ||
@@ -12,0 +12,0 @@ }); |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
153561
0.98%