@vielzeug/arsenal 26.11.12 → 26.11.13
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/arsenal.cjs +1 -1
- package/dist/arsenal.cjs.map +1 -1
- package/dist/arsenal.iife.js +1 -1
- package/dist/arsenal.iife.js.map +1 -1
- package/dist/arsenal.js +18 -1
- package/dist/arsenal.js.map +1 -1
- package/dist/async/index.cjs +1 -1
- package/dist/async/index.d.ts +1 -0
- package/dist/async/index.d.ts.map +1 -1
- package/dist/async/index.js +3 -2
- package/dist/async/timer.cjs +2 -0
- package/dist/async/timer.cjs.map +1 -0
- package/dist/async/timer.d.ts +25 -0
- package/dist/async/timer.d.ts.map +1 -0
- package/dist/async/timer.js +20 -0
- package/dist/async/timer.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -28
- package/package.json +1 -1
package/dist/async/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./abortable.cjs"),t=require("./abortError.cjs"),n=require("./attempt.cjs"),r=require("./backoff.cjs"),i=require("./parallel.cjs"),a=require("./retry.cjs"),o=require("./sleep.cjs"),s=require("./taskPool.cjs"),c=require("./waitFor.cjs");exports.abortError=t.abortError,exports.abortable=e.abortable,exports.attempt=n.attempt,exports.backoff=r.backoff,exports.isFail=n.isFail,exports.isOk=n.isOk,exports.parallel=i.parallel,exports.retry=a.retry,exports.sleep=o.sleep,exports.taskPool=s.taskPool,exports.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./abortable.cjs"),t=require("./abortError.cjs"),n=require("./attempt.cjs"),r=require("./backoff.cjs"),i=require("./parallel.cjs"),a=require("./retry.cjs"),o=require("./sleep.cjs"),s=require("./taskPool.cjs"),c=require("./timer.cjs"),l=require("./waitFor.cjs");exports.abortError=t.abortError,exports.abortable=e.abortable,exports.attempt=n.attempt,exports.backoff=r.backoff,exports.isFail=n.isFail,exports.isOk=n.isOk,exports.parallel=i.parallel,exports.retry=a.retry,exports.sleep=o.sleep,exports.taskPool=s.taskPool,exports.timer=c.timer,exports.waitFor=l.waitFor;
|
package/dist/async/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/async/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/async/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/dist/async/index.js
CHANGED
|
@@ -6,5 +6,6 @@ import { parallel as o } from "./parallel.js";
|
|
|
6
6
|
import { retry as s } from "./retry.js";
|
|
7
7
|
import { sleep as c } from "./sleep.js";
|
|
8
8
|
import { taskPool as l } from "./taskPool.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import { timer as u } from "./timer.js";
|
|
10
|
+
import { waitFor as d } from "./waitFor.js";
|
|
11
|
+
export { t as abortError, e as abortable, n as attempt, a as backoff, r as isFail, i as isOk, o as parallel, s as retry, c as sleep, l as taskPool, u as timer, d as waitFor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timer.cjs","names":["id","fn","ms"],"sources":["../../src/async/timer.ts"],"sourcesContent":["export type Timer = {\n /** (Re)starts the timer: any pending run is cancelled first, so at most one run is ever scheduled. */\n arm(ms: number): void;\n /** Cancels the pending run, if any. Safe to call repeatedly. */\n cancel(): void;\n /** `true` while a run is scheduled and has not fired yet. */\n readonly pending: boolean;\n};\n\n/**\n * Creates a single-slot, re-armable timeout around `fn`.\n * Replaces the `let id; clearTimeout(id); id = setTimeout(...)` bookkeeping for one-shot timers\n * such as idle flushes, open timeouts, and wake-ups.\n *\n * @example\n * ```ts\n * const idle = timer(() => flush());\n * idle.arm(500); // schedules\n * idle.arm(500); // reschedules (debounce behavior)\n * idle.cancel(); // nothing runs\n * ```\n *\n * @param fn - Callback to run when the armed delay elapses. `pending` is already `false` inside it.\n */\nexport function timer(fn: () => void): Timer {\n let id: ReturnType<typeof setTimeout> | undefined;\n\n const cancel = (): void => {\n if (id === undefined) return;\n\n clearTimeout(id);\n id = undefined;\n };\n\n return {\n arm(ms) {\n cancel();\n id = setTimeout(() => {\n id = undefined;\n fn();\n }, ms);\n },\n cancel,\n get pending() {\n return id !== undefined;\n },\n };\n}\n"],"mappings":"AAwBA,SAAgB,MAAM,EAAuB,CAC3C,IAAIA,EAEE,WAAqB,CACrBA,IAAO,IAAA,KAEX,aAAaA,CAAE,EACf,EAAK,IAAA,GACP,EAEA,MAAO,CACL,IAAI,EAAI,CACN,OAAO,EACP,EAAK,eAAiB,CACpB,EAAK,IAAA,GACLC,EAAG,CACL,EAAGC,CAAE,CACP,EACA,OACA,IAAI,SAAU,CACZ,OAAOF,IAAO,IAAA,EAChB,CACF,CACF,C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type Timer = {
|
|
2
|
+
/** (Re)starts the timer: any pending run is cancelled first, so at most one run is ever scheduled. */
|
|
3
|
+
arm(ms: number): void;
|
|
4
|
+
/** Cancels the pending run, if any. Safe to call repeatedly. */
|
|
5
|
+
cancel(): void;
|
|
6
|
+
/** `true` while a run is scheduled and has not fired yet. */
|
|
7
|
+
readonly pending: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Creates a single-slot, re-armable timeout around `fn`.
|
|
11
|
+
* Replaces the `let id; clearTimeout(id); id = setTimeout(...)` bookkeeping for one-shot timers
|
|
12
|
+
* such as idle flushes, open timeouts, and wake-ups.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const idle = timer(() => flush());
|
|
17
|
+
* idle.arm(500); // schedules
|
|
18
|
+
* idle.arm(500); // reschedules (debounce behavior)
|
|
19
|
+
* idle.cancel(); // nothing runs
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @param fn - Callback to run when the armed delay elapses. `pending` is already `false` inside it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function timer(fn: () => void): Timer;
|
|
25
|
+
//# sourceMappingURL=timer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/async/timer.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,sGAAsG;IACtG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gEAAgE;IAChE,MAAM,IAAI,IAAI,CAAC;IACf,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,KAAK,CAuB3C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/async/timer.ts
|
|
2
|
+
function timer(e) {
|
|
3
|
+
let t, cancel = () => {
|
|
4
|
+
t !== void 0 && (clearTimeout(t), t = void 0);
|
|
5
|
+
};
|
|
6
|
+
return {
|
|
7
|
+
arm(n) {
|
|
8
|
+
cancel(), t = setTimeout(() => {
|
|
9
|
+
t = void 0, e();
|
|
10
|
+
}, n);
|
|
11
|
+
},
|
|
12
|
+
cancel,
|
|
13
|
+
get pending() {
|
|
14
|
+
return t !== void 0;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export { timer };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=timer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timer.js","names":["id","fn","ms"],"sources":["../../src/async/timer.ts"],"sourcesContent":["export type Timer = {\n /** (Re)starts the timer: any pending run is cancelled first, so at most one run is ever scheduled. */\n arm(ms: number): void;\n /** Cancels the pending run, if any. Safe to call repeatedly. */\n cancel(): void;\n /** `true` while a run is scheduled and has not fired yet. */\n readonly pending: boolean;\n};\n\n/**\n * Creates a single-slot, re-armable timeout around `fn`.\n * Replaces the `let id; clearTimeout(id); id = setTimeout(...)` bookkeeping for one-shot timers\n * such as idle flushes, open timeouts, and wake-ups.\n *\n * @example\n * ```ts\n * const idle = timer(() => flush());\n * idle.arm(500); // schedules\n * idle.arm(500); // reschedules (debounce behavior)\n * idle.cancel(); // nothing runs\n * ```\n *\n * @param fn - Callback to run when the armed delay elapses. `pending` is already `false` inside it.\n */\nexport function timer(fn: () => void): Timer {\n let id: ReturnType<typeof setTimeout> | undefined;\n\n const cancel = (): void => {\n if (id === undefined) return;\n\n clearTimeout(id);\n id = undefined;\n };\n\n return {\n arm(ms) {\n cancel();\n id = setTimeout(() => {\n id = undefined;\n fn();\n }, ms);\n },\n cancel,\n get pending() {\n return id !== undefined;\n },\n };\n}\n"],"mappings":";AAwBA,SAAgB,MAAM,GAAuB;CAC3C,IAAIA,GAEE,eAAqB;EACzB,AAAIA,MAAO,KAAA,MAEX,aAAaA,CAAE,GACf,IAAK,KAAA;CACP;CAEA,OAAO;EACL,IAAI,GAAI;GAEN,AADA,OAAO,GACP,IAAK,iBAAiB;IAEpB,AADA,IAAK,KAAA,GACLC,EAAG;GACL,GAAGC,CAAE;EACP;EACA;EACA,IAAI,UAAU;GACZ,OAAOF,MAAO,KAAA;EAChB;CACF;AACF"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./array/chunk.cjs"),t=require("./array/filterMap.cjs"),n=require("./array/groupBy.cjs"),r=require("./array/indexBy.cjs"),i=require("./array/paginate.cjs"),a=require("./array/partition.cjs"),o=require("./array/sort.cjs"),s=require("./array/uniq.cjs"),c=require("./async/abortable.cjs"),l=require("./async/abortError.cjs"),u=require("./async/attempt.cjs"),d=require("./async/backoff.cjs"),f=require("./async/parallel.cjs"),p=require("./async/retry.cjs"),m=require("./async/sleep.cjs"),h=require("./async/taskPool.cjs"),g=require("./async/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./array/chunk.cjs"),t=require("./array/filterMap.cjs"),n=require("./array/groupBy.cjs"),r=require("./array/indexBy.cjs"),i=require("./array/paginate.cjs"),a=require("./array/partition.cjs"),o=require("./array/sort.cjs"),s=require("./array/uniq.cjs"),c=require("./async/abortable.cjs"),l=require("./async/abortError.cjs"),u=require("./async/attempt.cjs"),d=require("./async/backoff.cjs"),f=require("./async/parallel.cjs"),p=require("./async/retry.cjs"),m=require("./async/sleep.cjs"),h=require("./async/taskPool.cjs"),g=require("./async/timer.cjs"),_=require("./async/waitFor.cjs"),v=require("./cache/cache.cjs"),y=require("./cache/memo.cjs"),b=require("./encoding/base64url.cjs"),x=require("./encoding/compression.cjs"),S=require("./encoding/share-code.cjs"),C=require("./errors.cjs"),w=require("./function/debounce.cjs"),T=require("./function/once.cjs"),E=require("./function/pipe.cjs"),D=require("./function/tapper.cjs"),O=require("./function/throttle.cjs"),k=require("./guards/combinators.cjs"),A=require("./guards/isDefined.cjs"),j=require("./guards/isEqual.cjs"),M=require("./guards/isNil.cjs"),N=require("./guards/isPlainObject.cjs"),P=require("./math/allocate.cjs"),F=require("./math/clamp.cjs"),I=require("./math/range.cjs"),L=require("./object/getPath.cjs"),R=require("./object/hash.cjs"),z=require("./object/omit.cjs"),B=require("./object/pick.cjs"),V=require("./random/random.cjs"),H=require("./random/source.cjs"),U=require("./string/camelCase.cjs");exports.ArsenalError=C.ArsenalError,exports.ArsenalSerializationError=C.ArsenalSerializationError,exports.ShareCodeError=C.ShareCodeError,exports.abortError=l.abortError,exports.abortable=c.abortable,exports.allOf=k.allOf,exports.allocate=P.allocate,exports.anyOf=k.anyOf,exports.attempt=u.attempt,exports.backoff=d.backoff,exports.base64UrlToBytes=b.base64UrlToBytes,exports.base64UrlToText=b.base64UrlToText,exports.bytesToBase64Url=b.bytesToBase64Url,exports.cache=v.cache,exports.camelCase=U.camelCase,exports.chunk=e.chunk,exports.clamp=F.clamp,exports.compressBytes=x.compressBytes,exports.debounce=w.debounce,exports.decompressBytes=x.decompressBytes,exports.filterMap=t.filterMap,exports.getPath=L.getPath,exports.getPathOr=L.getPathOr,exports.groupBy=n.groupBy,exports.hash=R.hash,exports.indexBy=r.indexBy,exports.isDefined=A.isDefined,exports.isEqual=j.isEqual,exports.isFail=u.isFail,exports.isNil=M.isNil,exports.isOk=u.isOk,exports.isPlainObject=N.isPlainObject,exports.memo=y.memo,exports.noneOf=k.noneOf,exports.not=k.not,exports.omit=z.omit,exports.once=T.once,exports.pack=S.pack,exports.paginate=i.paginate,exports.parallel=f.parallel,exports.partition=a.partition,exports.pick=B.pick,exports.pipe=E.pipe,exports.random=V.random,exports.randomFloat=H.randomFloat,exports.range=I.range,exports.requirePath=L.requirePath,exports.retry=p.retry,exports.sleep=m.sleep,exports.sort=o.sort,exports.tapper=D.tapper,exports.taskPool=h.taskPool,exports.textToBase64Url=b.textToBase64Url,exports.throttle=O.throttle,exports.timer=g.timer,exports.uniq=s.uniq,exports.unpack=S.unpack,exports.utf8Bytes=b.utf8Bytes,exports.waitFor=_.waitFor;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './async/parallel';
|
|
|
14
14
|
export * from './async/retry';
|
|
15
15
|
export * from './async/sleep';
|
|
16
16
|
export * from './async/taskPool';
|
|
17
|
+
export * from './async/timer';
|
|
17
18
|
export * from './async/waitFor';
|
|
18
19
|
export * from './cache/cache';
|
|
19
20
|
export * from './cache/memo';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,31 +14,32 @@ import { parallel as m } from "./async/parallel.js";
|
|
|
14
14
|
import { retry as h } from "./async/retry.js";
|
|
15
15
|
import { sleep as g } from "./async/sleep.js";
|
|
16
16
|
import { taskPool as _ } from "./async/taskPool.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
|
|
17
|
+
import { timer as v } from "./async/timer.js";
|
|
18
|
+
import { waitFor as y } from "./async/waitFor.js";
|
|
19
|
+
import { cache as b } from "./cache/cache.js";
|
|
20
|
+
import { memo as x } from "./cache/memo.js";
|
|
21
|
+
import { base64UrlToBytes as S, base64UrlToText as C, bytesToBase64Url as w, textToBase64Url as T, utf8Bytes as E } from "./encoding/base64url.js";
|
|
22
|
+
import { compressBytes as D, decompressBytes as O } from "./encoding/compression.js";
|
|
23
|
+
import { pack as k, unpack as A } from "./encoding/share-code.js";
|
|
24
|
+
import { ArsenalError as j, ArsenalSerializationError as M, ShareCodeError as N } from "./errors.js";
|
|
25
|
+
import { debounce as P } from "./function/debounce.js";
|
|
26
|
+
import { once as F } from "./function/once.js";
|
|
27
|
+
import { pipe as I } from "./function/pipe.js";
|
|
28
|
+
import { tapper as L } from "./function/tapper.js";
|
|
29
|
+
import { throttle as R } from "./function/throttle.js";
|
|
30
|
+
import { allOf as z, anyOf as B, noneOf as V, not as H } from "./guards/combinators.js";
|
|
31
|
+
import { isDefined as U } from "./guards/isDefined.js";
|
|
32
|
+
import { isEqual as W } from "./guards/isEqual.js";
|
|
33
|
+
import { isNil as G } from "./guards/isNil.js";
|
|
34
|
+
import { isPlainObject as K } from "./guards/isPlainObject.js";
|
|
35
|
+
import { allocate as q } from "./math/allocate.js";
|
|
36
|
+
import { clamp as J } from "./math/clamp.js";
|
|
37
|
+
import { range as Y } from "./math/range.js";
|
|
38
|
+
import { getPath as X, getPathOr as Z, requirePath as Q } from "./object/getPath.js";
|
|
39
|
+
import { hash as $ } from "./object/hash.js";
|
|
40
|
+
import { omit as ee } from "./object/omit.js";
|
|
41
|
+
import { pick as te } from "./object/pick.js";
|
|
42
|
+
import { random as ne } from "./random/random.js";
|
|
43
|
+
import { randomFloat as re } from "./random/source.js";
|
|
44
|
+
import { camelCase as ie } from "./string/camelCase.js";
|
|
45
|
+
export { j as ArsenalError, M as ArsenalSerializationError, N as ShareCodeError, l as abortError, c as abortable, z as allOf, q as allocate, B as anyOf, u as attempt, p as backoff, S as base64UrlToBytes, C as base64UrlToText, w as bytesToBase64Url, b as cache, ie as camelCase, e as chunk, J as clamp, D as compressBytes, P as debounce, O as decompressBytes, t as filterMap, X as getPath, Z as getPathOr, n as groupBy, $ as hash, r as indexBy, U as isDefined, W as isEqual, d as isFail, G as isNil, f as isOk, K as isPlainObject, x as memo, V as noneOf, H as not, ee as omit, F as once, k as pack, i as paginate, m as parallel, a as partition, te as pick, I as pipe, ne as random, re as randomFloat, Y as range, Q as requirePath, h as retry, g as sleep, o as sort, L as tapper, _ as taskPool, T as textToBase64Url, R as throttle, v as timer, s as uniq, A as unpack, E as utf8Bytes, y as waitFor };
|
package/package.json
CHANGED