@cripty2001/utils 0.0.156 → 0.0.158

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.
@@ -21,7 +21,7 @@ function Button({ onClick, children, className }) {
21
21
  .catch(e => setError(e instanceof Error ? e.message : "Unknown error"))
22
22
  .finally(() => setLoading(false));
23
23
  };
24
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2", children: [(0, jsx_runtime_1.jsx)("div", { onClick: handleClick, className: className, style: {
24
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col h-full w-full gap-2", children: [(0, jsx_runtime_1.jsx)("div", { onClick: handleClick, className: className, style: {
25
25
  display: 'flex',
26
26
  alignItems: 'center',
27
27
  justifyContent: 'center',
@@ -34,10 +34,10 @@ export declare function useWhispr<T>(data: T | Whispr<T>): Whispr<T>;
34
34
  */
35
35
  export declare function useOnWhispr<T>(w: Whispr<T>, unsafe: boolean | undefined, cb: (value: T) => void): void;
36
36
  /**
37
- * Return a reactive current timestamp (ms), updated at the given interval.
37
+ * Return a reactive current timestamp (ms)
38
38
  * @returns The current timestamp
39
39
  */
40
- export declare function useCurrentTimestamp(refresh?: number): number;
40
+ export declare function useCurrentTimestamp(): number;
41
41
  /**
42
42
  * Debounce a reactive value, deep checking for equality, and stopping updates until the value changes.
43
43
  * @param value The value to debounce
@@ -75,10 +75,10 @@ function useOnWhispr(w, unsafe = false, cb) {
75
75
  }, [w, cb]);
76
76
  }
77
77
  /**
78
- * Return a reactive current timestamp (ms), updated at the given interval.
78
+ * Return a reactive current timestamp (ms)
79
79
  * @returns The current timestamp
80
80
  */
81
- function useCurrentTimestamp(refresh = 1000) {
81
+ function useCurrentTimestamp() {
82
82
  return useWhisprValue((0, _1.CURRENT_TS_MS)());
83
83
  }
84
84
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.156",
3
+ "version": "0.0.158",
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": {