@cripty2001/utils 0.0.205 → 0.0.207
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/dist/index.js +1 -3
- package/dist/react-whispr.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -217,9 +217,7 @@ const CURRENT_TS_MS = () => {
|
|
|
217
217
|
};
|
|
218
218
|
exports.CURRENT_TS_MS = CURRENT_TS_MS;
|
|
219
219
|
function getClock(rate) {
|
|
220
|
-
return
|
|
221
|
-
return Math.floor(curr / rate);
|
|
222
|
-
});
|
|
220
|
+
return currentTsMs.transform((curr) => Math.floor(curr / rate));
|
|
223
221
|
}
|
|
224
222
|
function timediff2HumanReadable(diffMs) {
|
|
225
223
|
const { unit, diff } = (() => {
|
package/dist/react-whispr.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare function useCurrentTimestamp(): number;
|
|
|
42
42
|
* @param rate The rate to use for the clock
|
|
43
43
|
* @returns The clock value
|
|
44
44
|
*/
|
|
45
|
-
export declare function useClock(rate: number):
|
|
45
|
+
export declare function useClock(rate: number): number;
|
|
46
46
|
/**
|
|
47
47
|
* Debounce a reactive value, deep checking for equality, and stopping updates until the value changes.
|
|
48
48
|
* @param value The value to debounce
|
package/package.json
CHANGED