melonykit 0.15.6 → 0.15.7

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/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e } from "./functions-BOOnIVPG.js";
1
+ import { h as e } from "./functions-CexzzAfY.js";
2
2
  import { signal as t } from "@preact/signals";
3
3
  import { useEffect as n, useMemo as r } from "preact/hooks";
4
4
  //#region src/browser/_route-to.js
@@ -246,29 +246,33 @@ function C({ onCreate: e, onUpdate: t, onDelete: n, autoCleanup: r } = {}) {
246
246
  return i.get(e) ?? null;
247
247
  }
248
248
  function c() {
249
+ return i.size;
250
+ }
251
+ function l() {
249
252
  return i.entries();
250
253
  }
251
- function l(e) {
254
+ function u(e) {
252
255
  return i.has(e);
253
256
  }
254
- async function u(e) {
257
+ async function d(e) {
255
258
  if (!i.has(e)) return !1;
256
259
  let t = i.get(e);
257
260
  return i.delete(e), b(n) && await n(e, t), !0;
258
261
  }
259
- function d({ interval: e, checks: t, now: n = Date.now, setIntervalFn: r = setInterval } = {}) {
262
+ function f({ interval: e, checks: t, now: n = Date.now, setIntervalFn: r = setInterval } = {}) {
260
263
  S(e) && v(t) && !y(t) && t.every((e) => b(e)) && b(n) && b(r) && r(async () => {
261
264
  let e = n();
262
- for (let [n, r] of i) t.some((t) => t(r, e)) && await u(n);
265
+ for (let [n, r] of i) t.some((t) => t(r, e)) && await d(n);
263
266
  }, e)?.unref?.();
264
267
  }
265
- return d(r), {
268
+ return f(r), {
266
269
  add: a,
267
270
  get: s,
268
- entries: c,
271
+ size: c,
272
+ entries: l,
269
273
  update: o,
270
- has: l,
271
- remove: u
274
+ has: u,
275
+ remove: d
272
276
  };
273
277
  }
274
278
  //#endregion
package/dist/functions.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./functions-BOOnIVPG.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./functions-CexzzAfY.js";
2
2
  export { v as convertHexToRgba, m as createCache, _ as darkenHexColor, a as formatDate, i as isArray, u as isEmpty, r as isEmptyArray, s as isEmptyObject, p as isEmptyString, g as isFunction, h as isNegativeNumber, d as isNil, c as isNumber, t as isObject, n as isPositiveNumber, e as isString, o as request, l as size, f as toNumber };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as e, v as t } from "./functions-BOOnIVPG.js";
1
+ import { r as e, v as t } from "./functions-CexzzAfY.js";
2
2
  import { useSignal as n } from "@preact/signals";
3
3
  import { useEffect as r, useId as i, useRef as a } from "preact/hooks";
4
4
  import { Fragment as o, jsx as s, jsxs as c } from "preact/jsx-runtime";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Vadim Hermann",
3
3
  "name": "melonykit",
4
- "version": "0.15.6",
4
+ "version": "0.15.7",
5
5
  "type": "module",
6
6
  "description": "Preact based ui and utility functions toolkit",
7
7
  "main": "./dist/index.js",