@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 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 whispr_1.Whispr.from({ curr: currentTsMs }, ({ curr }) => {
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 } = (() => {
@@ -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): Whispr<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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.205",
3
+ "version": "0.0.207",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {