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
|
@@ -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
|
|
254
|
+
function u(e) {
|
|
252
255
|
return i.has(e);
|
|
253
256
|
}
|
|
254
|
-
async function
|
|
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
|
|
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
|
|
265
|
+
for (let [n, r] of i) t.some((t) => t(r, e)) && await d(n);
|
|
263
266
|
}, e)?.unref?.();
|
|
264
267
|
}
|
|
265
|
-
return
|
|
268
|
+
return f(r), {
|
|
266
269
|
add: a,
|
|
267
270
|
get: s,
|
|
268
|
-
|
|
271
|
+
size: c,
|
|
272
|
+
entries: l,
|
|
269
273
|
update: o,
|
|
270
|
-
has:
|
|
271
|
-
remove:
|
|
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-
|
|
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-
|
|
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";
|