@vielzeug/toolkit 1.0.13 → 1.1.2
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/array/{sortBy.cjs → arrange.cjs} +2 -2
- package/dist/array/arrange.cjs.map +1 -0
- package/dist/array/arrange.js +6 -0
- package/dist/array/arrange.js.map +1 -0
- package/dist/array/chunk.cjs.map +1 -1
- package/dist/array/chunk.js.map +1 -1
- package/dist/array/list.cjs +1 -1
- package/dist/array/list.cjs.map +1 -1
- package/dist/array/list.js +86 -53
- package/dist/array/list.js.map +1 -1
- package/dist/array/remoteList.cjs +2 -0
- package/dist/array/remoteList.cjs.map +1 -0
- package/dist/array/remoteList.js +123 -0
- package/dist/array/remoteList.js.map +1 -0
- package/dist/async/attempt.cjs.map +1 -0
- package/dist/async/attempt.js.map +1 -0
- package/dist/async/defer.cjs +2 -0
- package/dist/async/defer.cjs.map +1 -0
- package/dist/async/defer.js +10 -0
- package/dist/async/defer.js.map +1 -0
- package/dist/async/delay.cjs.map +1 -0
- package/dist/async/delay.js.map +1 -0
- package/dist/async/parallel.cjs +2 -0
- package/dist/async/parallel.cjs.map +1 -0
- package/dist/async/parallel.js +28 -0
- package/dist/async/parallel.js.map +1 -0
- package/dist/async/pool.cjs +2 -0
- package/dist/async/pool.cjs.map +1 -0
- package/dist/async/pool.js +22 -0
- package/dist/async/pool.js.map +1 -0
- package/dist/async/predict.cjs.map +1 -0
- package/dist/async/predict.js.map +1 -0
- package/dist/async/queue.cjs +2 -0
- package/dist/async/queue.cjs.map +1 -0
- package/dist/async/queue.js +57 -0
- package/dist/async/queue.js.map +1 -0
- package/dist/async/race.cjs +2 -0
- package/dist/async/race.cjs.map +1 -0
- package/dist/async/race.js +8 -0
- package/dist/async/race.js.map +1 -0
- package/dist/async/retry.cjs.map +1 -0
- package/dist/{function → async}/retry.js +4 -4
- package/dist/async/retry.js.map +1 -0
- package/dist/async/sleep.cjs +2 -0
- package/dist/async/sleep.cjs.map +1 -0
- package/dist/{function → async}/sleep.js +1 -1
- package/dist/async/sleep.js.map +1 -0
- package/dist/async/waitFor.cjs +2 -0
- package/dist/async/waitFor.cjs.map +1 -0
- package/dist/async/waitFor.js +37 -0
- package/dist/async/waitFor.js.map +1 -0
- package/dist/date/expires.cjs.map +1 -1
- package/dist/date/expires.js.map +1 -1
- package/dist/date/interval.cjs.map +1 -1
- package/dist/date/interval.js.map +1 -1
- package/dist/date/timeDiff.cjs.map +1 -1
- package/dist/date/timeDiff.js.map +1 -1
- package/dist/function/memo.cjs.map +1 -1
- package/dist/function/memo.js.map +1 -1
- package/dist/function/proxy.cjs.map +1 -1
- package/dist/function/proxy.js.map +1 -1
- package/dist/function/prune.cjs +2 -0
- package/dist/function/prune.cjs.map +1 -0
- package/dist/function/prune.js +30 -0
- package/dist/function/prune.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +575 -51
- package/dist/index.js +242 -206
- package/dist/index.js.map +1 -1
- package/dist/logit/dist/logit.cjs +1 -1
- package/dist/logit/dist/logit.cjs.map +1 -1
- package/dist/logit/dist/logit.js +147 -64
- package/dist/logit/dist/logit.js.map +1 -1
- package/dist/math/abs.cjs +2 -0
- package/dist/math/abs.cjs.map +1 -0
- package/dist/math/abs.js +7 -0
- package/dist/math/abs.js.map +1 -0
- package/dist/math/add.cjs +2 -0
- package/dist/math/add.cjs.map +1 -0
- package/dist/math/add.js +9 -0
- package/dist/math/add.js.map +1 -0
- package/dist/math/allocate.cjs +2 -0
- package/dist/math/allocate.cjs.map +1 -0
- package/dist/math/allocate.js +29 -0
- package/dist/math/allocate.js.map +1 -0
- package/dist/math/distribute.cjs +2 -0
- package/dist/math/distribute.cjs.map +1 -0
- package/dist/math/distribute.js +18 -0
- package/dist/math/distribute.js.map +1 -0
- package/dist/math/divide.cjs +2 -0
- package/dist/math/divide.cjs.map +1 -0
- package/dist/math/divide.js +11 -0
- package/dist/math/divide.js.map +1 -0
- package/dist/math/multiply.cjs +2 -0
- package/dist/math/multiply.cjs.map +1 -0
- package/dist/math/multiply.js +9 -0
- package/dist/math/multiply.js.map +1 -0
- package/dist/math/subtract.cjs +2 -0
- package/dist/math/subtract.cjs.map +1 -0
- package/dist/math/subtract.js +9 -0
- package/dist/math/subtract.js.map +1 -0
- package/dist/money/currency.cjs +2 -0
- package/dist/money/currency.cjs.map +1 -0
- package/dist/money/currency.js +49 -0
- package/dist/money/currency.js.map +1 -0
- package/dist/money/exchange.cjs +2 -0
- package/dist/money/exchange.cjs.map +1 -0
- package/dist/money/exchange.js +13 -0
- package/dist/money/exchange.js.map +1 -0
- package/dist/object/cache.cjs +2 -0
- package/dist/object/cache.cjs.map +1 -0
- package/dist/object/cache.js +63 -0
- package/dist/object/cache.js.map +1 -0
- package/dist/object/merge.cjs.map +1 -1
- package/dist/object/merge.js.map +1 -1
- package/dist/object/parseJSON.cjs.map +1 -1
- package/dist/object/parseJSON.js.map +1 -1
- package/dist/object/path.cjs.map +1 -1
- package/dist/object/path.js.map +1 -1
- package/package.json +1 -1
- package/dist/array/sortBy.cjs.map +0 -1
- package/dist/array/sortBy.js +0 -6
- package/dist/array/sortBy.js.map +0 -1
- package/dist/function/attempt.cjs.map +0 -1
- package/dist/function/attempt.js.map +0 -1
- package/dist/function/delay.cjs.map +0 -1
- package/dist/function/delay.js.map +0 -1
- package/dist/function/predict.cjs.map +0 -1
- package/dist/function/predict.js.map +0 -1
- package/dist/function/retry.cjs.map +0 -1
- package/dist/function/retry.js.map +0 -1
- package/dist/function/sleep.cjs +0 -2
- package/dist/function/sleep.cjs.map +0 -1
- package/dist/function/sleep.js.map +0 -1
- /package/dist/{function → async}/attempt.cjs +0 -0
- /package/dist/{function → async}/attempt.js +0 -0
- /package/dist/{function → async}/delay.cjs +0 -0
- /package/dist/{function → async}/delay.js +0 -0
- /package/dist/{function → async}/predict.cjs +0 -0
- /package/dist/{function → async}/predict.js +0 -0
- /package/dist/{function → async}/retry.cjs +0 -0
package/dist/index.js
CHANGED
|
@@ -1,217 +1,253 @@
|
|
|
1
1
|
import { aggregate as e } from "./array/aggregate.js";
|
|
2
2
|
import { alternate as m } from "./array/alternate.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { arrange as f } from "./array/arrange.js";
|
|
4
|
+
import { chunk as i } from "./array/chunk.js";
|
|
5
|
+
import { compact as s } from "./array/compact.js";
|
|
6
|
+
import { contains as _ } from "./array/contains.js";
|
|
7
|
+
import { every as c } from "./array/every.js";
|
|
7
8
|
import { filter as S } from "./array/filter.js";
|
|
8
|
-
import { find as
|
|
9
|
+
import { find as d } from "./array/find.js";
|
|
9
10
|
import { findIndex as I } from "./array/findIndex.js";
|
|
10
|
-
import { findLast as
|
|
11
|
-
import { flatten as
|
|
12
|
-
import { group as
|
|
13
|
-
import { list as
|
|
14
|
-
import { map as
|
|
15
|
-
import { pick as
|
|
16
|
-
import { reduce as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { substitute as
|
|
24
|
-
import { uniq as
|
|
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
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
11
|
+
import { findLast as M } from "./array/findLast.js";
|
|
12
|
+
import { flatten as y } from "./array/flatten.js";
|
|
13
|
+
import { group as b } from "./array/group.js";
|
|
14
|
+
import { list as h } from "./array/list.js";
|
|
15
|
+
import { map as k } from "./array/map.js";
|
|
16
|
+
import { pick as T } from "./array/pick.js";
|
|
17
|
+
import { reduce as A } from "./array/reduce.js";
|
|
18
|
+
import { remoteList as D } from "./array/remoteList.js";
|
|
19
|
+
import { search as q } from "./array/search.js";
|
|
20
|
+
import { select as F } from "./array/select.js";
|
|
21
|
+
import { shift as J } from "./array/shift.js";
|
|
22
|
+
import { some as Y } from "./array/some.js";
|
|
23
|
+
import { sort as H } from "./array/sort.js";
|
|
24
|
+
import { substitute as V } from "./array/substitute.js";
|
|
25
|
+
import { uniq as z } from "./array/uniq.js";
|
|
26
|
+
import { attempt as X } from "./async/attempt.js";
|
|
27
|
+
import { defer as rr } from "./async/defer.js";
|
|
28
|
+
import { delay as er } from "./async/delay.js";
|
|
29
|
+
import { parallel as mr } from "./async/parallel.js";
|
|
30
|
+
import { pool as fr } from "./async/pool.js";
|
|
31
|
+
import { predict as ir } from "./async/predict.js";
|
|
32
|
+
import { queue as sr } from "./async/queue.js";
|
|
33
|
+
import { race as _r } from "./async/race.js";
|
|
34
|
+
import { retry as cr } from "./async/retry.js";
|
|
35
|
+
import { sleep as Sr } from "./async/sleep.js";
|
|
36
|
+
import { waitFor as dr } from "./async/waitFor.js";
|
|
37
|
+
import { expires as Ir } from "./date/expires.js";
|
|
38
|
+
import { interval as Mr } from "./date/interval.js";
|
|
39
|
+
import { timeDiff as yr } from "./date/timeDiff.js";
|
|
40
|
+
import { assert as br } from "./function/assert.js";
|
|
41
|
+
import { assertParams as hr } from "./function/assertParams.js";
|
|
42
|
+
import { compare as kr } from "./function/compare.js";
|
|
43
|
+
import { compareBy as Tr } from "./function/compareBy.js";
|
|
44
|
+
import { compose as Ar } from "./function/compose.js";
|
|
45
|
+
import { curry as Dr } from "./function/curry.js";
|
|
46
|
+
import { debounce as qr } from "./function/debounce.js";
|
|
47
|
+
import { fp as Fr } from "./function/fp.js";
|
|
48
|
+
import { memo as Jr } from "./function/memo.js";
|
|
49
|
+
import { once as Yr } from "./function/once.js";
|
|
50
|
+
import { pipe as Hr } from "./function/pipe.js";
|
|
51
|
+
import { proxy as Vr } from "./function/proxy.js";
|
|
52
|
+
import { prune as zr } from "./function/prune.js";
|
|
53
|
+
import { throttle as Xr } from "./function/throttle.js";
|
|
54
|
+
import { worker as ro } from "./function/worker.js";
|
|
55
|
+
import { abs as eo } from "./math/abs.js";
|
|
56
|
+
import { add as mo } from "./math/add.js";
|
|
57
|
+
import { allocate as fo } from "./math/allocate.js";
|
|
58
|
+
import { average as io } from "./math/average.js";
|
|
59
|
+
import { boil as so } from "./math/boil.js";
|
|
60
|
+
import { clamp as _o } from "./math/clamp.js";
|
|
61
|
+
import { distribute as co } from "./math/distribute.js";
|
|
62
|
+
import { divide as So } from "./math/divide.js";
|
|
63
|
+
import { max as Eo } from "./math/max.js";
|
|
64
|
+
import { median as Oo } from "./math/median.js";
|
|
65
|
+
import { min as go } from "./math/min.js";
|
|
66
|
+
import { multiply as Go } from "./math/multiply.js";
|
|
67
|
+
import { range as No } from "./math/range.js";
|
|
68
|
+
import { rate as vo } from "./math/rate.js";
|
|
69
|
+
import { round as Po } from "./math/round.js";
|
|
70
|
+
import { subtract as Co } from "./math/subtract.js";
|
|
71
|
+
import { sum as Bo } from "./math/sum.js";
|
|
72
|
+
import { currency as Lo } from "./money/currency.js";
|
|
73
|
+
import { exchange as wo } from "./money/exchange.js";
|
|
74
|
+
import { cache as Uo } from "./object/cache.js";
|
|
75
|
+
import { clone as Wo } from "./object/clone.js";
|
|
76
|
+
import { diff as jo } from "./object/diff.js";
|
|
77
|
+
import { entries as Qo } from "./object/entries.js";
|
|
78
|
+
import { keys as Zo } from "./object/keys.js";
|
|
79
|
+
import { merge as Ko } from "./object/merge.js";
|
|
80
|
+
import { parseJSON as $o } from "./object/parseJSON.js";
|
|
81
|
+
import { path as oe } from "./object/path.js";
|
|
82
|
+
import { seek as te } from "./object/seek.js";
|
|
83
|
+
import { values as pe } from "./object/values.js";
|
|
84
|
+
import { draw as xe } from "./random/draw.js";
|
|
85
|
+
import { random as ae } from "./random/random.js";
|
|
86
|
+
import { shuffle as Re } from "./random/shuffle.js";
|
|
87
|
+
import { uuid as ne } from "./random/uuid.js";
|
|
88
|
+
import { camelCase as le } from "./string/camelCase.js";
|
|
89
|
+
import { kebabCase as ue } from "./string/kebabCase.js";
|
|
90
|
+
import { pascalCase as Ee } from "./string/pascalCase.js";
|
|
91
|
+
import { similarity as Oe } from "./string/similarity.js";
|
|
92
|
+
import { snakeCase as ge } from "./string/snakeCase.js";
|
|
93
|
+
import { truncate as Ge } from "./string/truncate.js";
|
|
94
|
+
import { ge as Ne } from "./typed/ge.js";
|
|
95
|
+
import { gt as ve } from "./typed/gt.js";
|
|
96
|
+
import { is as Pe } from "./typed/is.js";
|
|
97
|
+
import { IS_ARRAY_ERROR_MSG as Ce, isArray as Ae } from "./typed/isArray.js";
|
|
98
|
+
import { isBoolean as De } from "./typed/isBoolean.js";
|
|
99
|
+
import { IS_DATE_ERROR_MSG as qe, isDate as we } from "./typed/isDate.js";
|
|
100
|
+
import { isDefined as Ue } from "./typed/isDefined.js";
|
|
101
|
+
import { IS_EMPTY_ERROR_MSG as We, isEmpty as Ye } from "./typed/isEmpty.js";
|
|
102
|
+
import { IS_EQUAL_ERROR_MSG as He, isEqual as Qe } from "./typed/isEqual.js";
|
|
103
|
+
import { isEven as Ze } from "./typed/isEven.js";
|
|
104
|
+
import { IS_FUNCTION_ERROR_MSG as Ke, isFunction as Xe } from "./typed/isFunction.js";
|
|
105
|
+
import { isNegative as rt } from "./typed/isNegative.js";
|
|
106
|
+
import { IS_NIL_ERROR_MSG as et, isNil as tt } from "./typed/isNil.js";
|
|
107
|
+
import { IS_NUMBER_ERROR_MSG as pt, isNumber as ft } from "./typed/isNumber.js";
|
|
108
|
+
import { IS_OBJECT_ERROR_MSG as it, isObject as at } from "./typed/isObject.js";
|
|
109
|
+
import { isOdd as Rt } from "./typed/isOdd.js";
|
|
110
|
+
import { isPositive as nt } from "./typed/isPositive.js";
|
|
111
|
+
import { IS_PRIMITIVE_ERROR_MSG as lt, isPrimitive as St } from "./typed/isPrimitive.js";
|
|
112
|
+
import { IS_PROMISE_ERROR_MSG as dt, isPromise as Et } from "./typed/isPromise.js";
|
|
113
|
+
import { isRegex as Ot } from "./typed/isRegex.js";
|
|
114
|
+
import { IS_STRING_ERROR_MSG as gt, isString as yt } from "./typed/isString.js";
|
|
115
|
+
import { IS_WITHIN_ERROR_MSG as bt, isWithin as Nt } from "./typed/isWithin.js";
|
|
116
|
+
import { isZero as vt } from "./typed/isZero.js";
|
|
117
|
+
import { le as Pt } from "./typed/le.js";
|
|
118
|
+
import { lt as Ct } from "./typed/lt.js";
|
|
119
|
+
import { typeOf as Bt } from "./typed/typeOf.js";
|
|
102
120
|
export {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
121
|
+
Ce as IS_ARRAY_ERROR_MSG,
|
|
122
|
+
qe as IS_DATE_ERROR_MSG,
|
|
123
|
+
We as IS_EMPTY_ERROR_MSG,
|
|
124
|
+
He as IS_EQUAL_ERROR_MSG,
|
|
125
|
+
Ke as IS_FUNCTION_ERROR_MSG,
|
|
126
|
+
et as IS_NIL_ERROR_MSG,
|
|
127
|
+
pt as IS_NUMBER_ERROR_MSG,
|
|
128
|
+
it as IS_OBJECT_ERROR_MSG,
|
|
129
|
+
lt as IS_PRIMITIVE_ERROR_MSG,
|
|
130
|
+
dt as IS_PROMISE_ERROR_MSG,
|
|
131
|
+
gt as IS_STRING_ERROR_MSG,
|
|
132
|
+
bt as IS_WITHIN_ERROR_MSG,
|
|
133
|
+
eo as abs,
|
|
134
|
+
mo as add,
|
|
115
135
|
e as aggregate,
|
|
136
|
+
fo as allocate,
|
|
116
137
|
m as alternate,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
f as arrange,
|
|
139
|
+
br as assert,
|
|
140
|
+
hr as assertParams,
|
|
141
|
+
X as attempt,
|
|
142
|
+
io as average,
|
|
143
|
+
so as boil,
|
|
144
|
+
Uo as cache,
|
|
145
|
+
le as camelCase,
|
|
146
|
+
i as chunk,
|
|
147
|
+
_o as clamp,
|
|
148
|
+
Wo as clone,
|
|
149
|
+
s as compact,
|
|
150
|
+
kr as compare,
|
|
151
|
+
Tr as compareBy,
|
|
152
|
+
Ar as compose,
|
|
153
|
+
_ as contains,
|
|
154
|
+
Lo as currency,
|
|
155
|
+
Dr as curry,
|
|
156
|
+
qr as debounce,
|
|
157
|
+
rr as defer,
|
|
158
|
+
er as delay,
|
|
159
|
+
jo as diff,
|
|
160
|
+
co as distribute,
|
|
161
|
+
So as divide,
|
|
162
|
+
xe as draw,
|
|
163
|
+
Qo as entries,
|
|
164
|
+
c as every,
|
|
165
|
+
wo as exchange,
|
|
166
|
+
Ir as expires,
|
|
139
167
|
S as filter,
|
|
140
|
-
|
|
168
|
+
d as find,
|
|
141
169
|
I as findIndex,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
V as
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
170
|
+
M as findLast,
|
|
171
|
+
y as flatten,
|
|
172
|
+
Fr as fp,
|
|
173
|
+
Ne as ge,
|
|
174
|
+
b as group,
|
|
175
|
+
ve as gt,
|
|
176
|
+
Mr as interval,
|
|
177
|
+
Pe as is,
|
|
178
|
+
Ae as isArray,
|
|
179
|
+
De as isBoolean,
|
|
180
|
+
we as isDate,
|
|
181
|
+
Ue as isDefined,
|
|
182
|
+
Ye as isEmpty,
|
|
183
|
+
Qe as isEqual,
|
|
184
|
+
Ze as isEven,
|
|
185
|
+
Xe as isFunction,
|
|
186
|
+
rt as isNegative,
|
|
187
|
+
tt as isNil,
|
|
188
|
+
ft as isNumber,
|
|
189
|
+
at as isObject,
|
|
190
|
+
Rt as isOdd,
|
|
191
|
+
nt as isPositive,
|
|
192
|
+
St as isPrimitive,
|
|
193
|
+
Et as isPromise,
|
|
194
|
+
Ot as isRegex,
|
|
195
|
+
yt as isString,
|
|
196
|
+
Nt as isWithin,
|
|
197
|
+
vt as isZero,
|
|
198
|
+
ue as kebabCase,
|
|
199
|
+
Zo as keys,
|
|
200
|
+
Pt as le,
|
|
201
|
+
h as list,
|
|
202
|
+
Ct as lt,
|
|
203
|
+
k as map,
|
|
204
|
+
Eo as max,
|
|
205
|
+
Oo as median,
|
|
206
|
+
Jr as memo,
|
|
207
|
+
Ko as merge,
|
|
208
|
+
go as min,
|
|
209
|
+
Go as multiply,
|
|
210
|
+
Yr as once,
|
|
211
|
+
mr as parallel,
|
|
212
|
+
$o as parseJSON,
|
|
213
|
+
Ee as pascalCase,
|
|
214
|
+
oe as path,
|
|
215
|
+
T as pick,
|
|
216
|
+
Hr as pipe,
|
|
217
|
+
fr as pool,
|
|
218
|
+
ir as predict,
|
|
219
|
+
Vr as proxy,
|
|
220
|
+
zr as prune,
|
|
221
|
+
sr as queue,
|
|
222
|
+
_r as race,
|
|
223
|
+
ae as random,
|
|
224
|
+
No as range,
|
|
225
|
+
vo as rate,
|
|
226
|
+
A as reduce,
|
|
227
|
+
D as remoteList,
|
|
228
|
+
cr as retry,
|
|
229
|
+
Po as round,
|
|
230
|
+
q as search,
|
|
231
|
+
te as seek,
|
|
232
|
+
F as select,
|
|
233
|
+
J as shift,
|
|
234
|
+
Re as shuffle,
|
|
235
|
+
Oe as similarity,
|
|
236
|
+
Sr as sleep,
|
|
237
|
+
ge as snakeCase,
|
|
238
|
+
Y as some,
|
|
239
|
+
H as sort,
|
|
240
|
+
V as substitute,
|
|
241
|
+
Co as subtract,
|
|
242
|
+
Bo as sum,
|
|
243
|
+
Xr as throttle,
|
|
244
|
+
yr as timeDiff,
|
|
245
|
+
Ge as truncate,
|
|
246
|
+
Bt as typeOf,
|
|
247
|
+
z as uniq,
|
|
248
|
+
ne as uuid,
|
|
249
|
+
pe as values,
|
|
250
|
+
dr as waitFor,
|
|
251
|
+
ro as worker
|
|
216
252
|
};
|
|
217
253
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $={},h={debug:"log",success:"log"},w=()=>typeof window<"u"&&$?.NODE_ENV?!1:typeof process<"u"&&process.env?.NODE_ENV?process.env.NODE_ENV==="production":!1,d=w(),y=typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)").matches,b={debug:{bg:"#616161",border:"#424242",color:"#fff",icon:"☕",symbol:"🅳"},error:{bg:"#d32f2f",border:"#c62828",color:"#fff",icon:"✘",symbol:"🅴"},group:{bg:"#546e7a",border:"#455a64",color:"#fff",icon:"⚭",symbol:"🅶"},info:{bg:"#1976d2",border:"#1565c0",color:"#fff",icon:"ℹ",symbol:"🅸"},ns:y?{bg:"#fafafa",border:"#c7c7c7",color:"#000"}:{bg:"#424242",border:"#212121",color:"#fff"},success:{bg:"#689f38",border:"#558b2f",color:"#fff",icon:"✔",symbol:"🆂"},time:{bg:"#0097a7",border:"#00838f",color:"#fff",icon:"⏲",symbol:"🆃"},trace:{bg:"#d81b60",border:"#c2185b",color:"#fff",icon:"⛢",symbol:"🆃"},warn:{bg:"#ffb300",border:"#ffa000",color:"#fff",icon:"⚠",symbol:"🆆"}},m={debug:0,trace:1,time:2,table:3,info:4,success:5,warn:6,error:7,off:8},o={environment:!0,logLevel:"debug",namespace:"",remote:{handler:void 0,logLevel:"off"},timestamp:!0,variant:"symbol"},i=e=>m[o.logLevel]<=m[e],p=()=>new Date().toISOString().slice(11,23),g=()=>d?"🄿":"🄳",x=(e,r)=>{o.remote.handler&&m[o.remote.logLevel]<=m[e]&&Promise.resolve().then(()=>{o.remote.handler?.(e,{args:r,environment:d?"production":"development",namespace:o.namespace||void 0,timestamp:o.timestamp?p():void 0})})},f=e=>h[e]||e,L="border: 1px solid",E="border-radius: 4px",u="border-radius: 8px; font: italic small-caps bold 12px; font-weight: lighter; padding: 0 4px;",l=(e,r="")=>{const{bg:t,color:s,border:n}=b[e],a=`${L} ${n}; ${E}`;switch(o.variant){case"symbol":return`color: ${t}; ${a}; padding: 1px 1px 0${r}`;case"icon":return`color: ${t}; ${a}; padding: 0 3px${r}`;default:return`background: ${t}; color: ${s}; ${a}; font-weight: bold; padding: 0 3px${r}`}},v=e=>{const r=b[e],{variant:t}=o;return t==="text"||!r||!r[t]?e.toUpperCase():r[t]};function O(e){const{namespace:r,timestamp:t,environment:s}=o;let n=`%c${v(e)}%c`;const a=[l(e),""];return r&&(n+=` %c${r}%c`,a.push(l("ns",`; ${u}`),"")),s&&(n+=` %c${g()}%c`,a.push("color: darkgray","")),t&&(n+=` %c${p()}%c`,a.push("color: gray","")),{format:n,parts:a}}const c=(e,...r)=>{if(typeof window>"u"){const a=console[f(e)];a(`${v(e)} | ${g()} |`,...r);return}if(!i(e))return;const{format:t,parts:s}=O(e),n=console[f(e)];n(t,...s,...r),x(e,r)},D=e=>{const r=Math.floor(Date.now()-e);return r?`${r}ms`:""},N={assert:(e,r,t)=>console.assert(e,r,t),debug:(...e)=>c("debug",...e),error:(...e)=>c("error",...e),getEnvironment:()=>o.environment,getLevel:()=>o.logLevel,getPrefix:()=>o.namespace,getTimestamp:()=>o.timestamp,getVariant:()=>o.variant,groupCollapsed:(e,r="GROUP",t=Date.now())=>{if(!i("success"))return;const s=D(t),n=g(),a=o.timestamp?p():"";console.groupCollapsed(`%c${r}%c${o.namespace}%c${n}%c${a}%c${s}%c${e}`,l("group","; margin-right: 6px; padding: 1px 3px 0"),l("ns",`; ${u}; margin-right: 6px`),"color: darkgray; margin-right: 6px","color: gray; font-weight: lighter; margin-right: 6px","color: gray; font-weight: lighter; margin-right: 6px","color: inherit; font-weight: lighter")},groupEnd:()=>{i("success")&&console.groupEnd()},info:(...e)=>c("info",...e),scope:e=>{const r=o.namespace,t=r?`${r}.${e}`:e;return{debug:(...s)=>{const n=o.namespace;o.namespace=t,c("debug",...s),o.namespace=n},error:(...s)=>{const n=o.namespace;o.namespace=t,c("error",...s),o.namespace=n},info:(...s)=>{const n=o.namespace;o.namespace=t,c("info",...s),o.namespace=n},success:(...s)=>{const n=o.namespace;o.namespace=t,c("success",...s),o.namespace=n},trace:(...s)=>{const n=o.namespace;o.namespace=t,c("trace",...s),o.namespace=n},warn:(...s)=>{const n=o.namespace;o.namespace=t,c("warn",...s),o.namespace=n}}},setLogLevel:e=>{o.logLevel=e},setPrefix:e=>{o.namespace=e},setRemote:e=>{o.remote=e},setRemoteLogLevel:e=>{o.remote.logLevel=e},setup:e=>{e.remote&&(o.remote={...o.remote,...e.remote},delete e.remote),Object.assign(o,e)},setVariant:e=>{o.variant=e},success:(...e)=>c("success",...e),table:(...e)=>{i("table")&&console.table(...e)},time:e=>{i("time")&&console.time(e)},timeEnd:e=>{i("time")&&console.timeEnd(e)},toggleEnvironment:e=>{o.environment=e??!o.environment},toggleTimestamp:e=>{o.timestamp=e??!o.timestamp},trace:(...e)=>c("trace",...e),warn:(...e)=>c("warn",...e)};exports.Logit=N;
|
|
2
2
|
//# sourceMappingURL=logit.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logit.cjs","sources":["../../../../logit/dist/logit.js"],"sourcesContent":["const $ = {};\nconst v = {\n debug: \"log\",\n success: \"log\"\n}, w = () => typeof window < \"u\" && $?.NODE_ENV ? !1 : typeof process < \"u\" && process.env?.NODE_ENV ? process.env.NODE_ENV === \"production\" : !1, _ = w(), L = typeof window < \"u\" && window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches, b = {\n debug: { bg: \"#616161\", border: \"#424242\", color: \"#fff\", icon: \"☕\", symbol: \"🅳\" },\n error: { bg: \"#d32f2f\", border: \"#c62828\", color: \"#fff\", icon: \"✘\", symbol: \"🅴\" },\n group: { bg: \"#546e7a\", border: \"#455a64\", color: \"#fff\", icon: \"⚭\", symbol: \"🅶\" },\n info: { bg: \"#1976d2\", border: \"#1565c0\", color: \"#fff\", icon: \"ℹ\", symbol: \"🅸\" },\n ns: L ? { bg: \"#fafafa\", border: \"#c7c7c7\", color: \"#000\" } : { bg: \"#424242\", border: \"#212121\", color: \"#fff\" },\n success: { bg: \"#689f38\", border: \"#558b2f\", color: \"#fff\", icon: \"✔\", symbol: \"🆂\" },\n time: { bg: \"#0097a7\", border: \"#00838f\", color: \"#fff\", icon: \"⏲\", symbol: \"🆃\" },\n trace: { bg: \"#d81b60\", border: \"#c2185b\", color: \"#fff\", icon: \"⛢\", symbol: \"🆃\" },\n warn: { bg: \"#ffb300\", border: \"#ffa000\", color: \"#fff\", icon: \"⚠\", symbol: \"🆆\" }\n}, l = {\n debug: 0,\n trace: 1,\n time: 2,\n table: 3,\n info: 4,\n success: 5,\n warn: 6,\n error: 7,\n off: 8\n}, r = {\n environment: !0,\n logLevel: \"debug\",\n namespace: \"\",\n remote: { handler: void 0, logLevel: \"off\" },\n timestamp: !0,\n variant: \"symbol\"\n}, a = (e) => l[r.logLevel] <= l[e], u = () => (/* @__PURE__ */ new Date()).toISOString().slice(11, 23), d = () => _ ? \"🄿\" : \"🄳\", x = (e, o) => {\n r.remote.handler && l[r.remote.logLevel] <= l[e] && r.remote.handler(e, ...o);\n}, g = (e) => v[e] || e, m = \"border: 1px solid\", p = \"border-radius: 4px\", h = \"border-radius: 8px; font: italic small-caps bold 12px; font-weight: lighter\", f = (e, o = \"\") => {\n const { bg: t, color: c, border: n } = b[e], s = `color: ${t}; ${m} ${n}; ${p}`;\n switch (r.variant) {\n case \"symbol\":\n return `${s}; padding: 1px 1px 0${o}`;\n case \"icon\":\n return `${s}; padding: 0 3px${o}`;\n default:\n return `background: ${t}; color: ${c}; ${m} ${n}; ${p}; font-weight: bold; padding: 0 3px${o}`;\n }\n}, E = (e) => {\n const o = b[e], { variant: t } = r;\n return t === \"text\" || !o[t] ? e.toUpperCase() : o[t];\n};\nfunction D(e) {\n const { namespace: o, timestamp: t, environment: c } = r;\n let n = `%c${E(e)}%c`;\n const s = [f(e), \"\"];\n return o && (n += ` %c${o}%c`, s.push(f(\"ns\", `; ${h}`), \"\")), c && (n += ` %c${d()}%c`, s.push(\"color: darkgray\", \"\")), t && (n += ` %c${u()}%c`, s.push(\"color: gray\", \"\")), { format: n, parts: s };\n}\nconst i = (e, ...o) => {\n if (typeof window > \"u\") {\n const s = console[g(e)];\n s(`${E(e)} | ${d()} |`, ...o);\n return;\n }\n if (!a(e)) return;\n const { format: t, parts: c } = D(e), n = console[g(e)];\n n(t, ...c, ...o), x(e, o);\n}, O = (e) => {\n const o = Math.floor(Date.now() - e);\n return o ? `${o}ms` : \"\";\n}, y = {\n /**\n * Asserts a condition and logs an error if it's false.\n */\n assert: (e, o, t) => console.assert(e, o, t),\n debug: (...e) => i(\"debug\", ...e),\n error: (...e) => i(\"error\", ...e),\n /**\n * Gets the current log level.\n */\n getLevel: () => r.logLevel,\n /**\n * Gets the current namespace prefix.\n */\n getPrefix: () => r.namespace,\n /**\n * Gets whether timestamps are shown.\n */\n getTimestamp: () => r.timestamp,\n /**\n * Creates a collapsed group in the console.\n */\n groupCollapsed: (e, o = \"GROUP\", t = Date.now()) => {\n if (!a(\"success\")) return;\n const c = O(t), n = d(), s = r.timestamp ? u() : \"\";\n console.groupCollapsed(\n `%c${o}%c${r.namespace}%c${n}%c${s}%c${c}%c${e}`,\n f(\"group\", \"; margin-right: 6px; padding: 1px 3px 0\"),\n f(\"ns\", `; ${h}; margin-right: 6px`),\n \"color: darkgray; margin-right: 6px\",\n \"color: gray; font-weight: lighter; margin-right: 6px\",\n \"color: gray; font-weight: lighter; margin-right: 6px\",\n \"color: inherit; font-weight: lighter\"\n );\n },\n /**\n * Ends the current console group.\n */\n groupEnd: () => {\n a(\"success\") && console.groupEnd();\n },\n info: (...e) => i(\"info\", ...e),\n /**\n * Initializes Logit with custom options.\n */\n initialise: (e) => {\n Object.assign(r, e);\n },\n /**\n * Sets the minimum log level to display.\n */\n setLogLevel: (e) => {\n r.logLevel = e;\n },\n /**\n * Sets the namespace prefix for all logs.\n */\n setPrefix: (e) => {\n r.namespace = e;\n },\n /**\n * Configures remote logging options.\n */\n setRemote: (e) => {\n r.remote = e;\n },\n /**\n * Sets the log level for remote logging.\n */\n setRemoteLogLevel: (e) => {\n r.remote.logLevel = e;\n },\n /**\n * Sets the display variant (text, icon, or symbol).\n */\n setVariant: (e) => {\n r.variant = e;\n },\n /**\n * Shows or hides the environment indicator.\n */\n showEnvironment: (e) => {\n r.environment = e;\n },\n /**\n * Shows or hides timestamps in logs.\n */\n showTimestamp: (e) => {\n r.timestamp = e;\n },\n success: (...e) => i(\"success\", ...e),\n /**\n * Displays data in a table format.\n */\n table: (...e) => {\n a(\"table\") && console.table(...e);\n },\n /**\n * Starts a timer with the given label.\n */\n time: (e) => {\n a(\"time\") && console.time(e);\n },\n /**\n * Ends a timer with the given label.\n */\n timeEnd: (e) => {\n a(\"time\") && console.timeEnd(e);\n },\n trace: (...e) => i(\"trace\", ...e),\n warn: (...e) => i(\"warn\", ...e)\n};\nexport {\n y as Logit\n};\n//# sourceMappingURL=logit.js.map\n"],"names":["$","w","_","a","d","x","g","m","h","E","D","i","O","y"],"mappings":"gFAAA,MAAMA,EAAI,CAAA,EACJ,EAAI,CACR,MAAO,MACP,QAAS,KACX,EAAGC,EAAI,IAAM,OAAO,OAAS,KAAOD,GAAG,SAAW,GAAK,OAAO,QAAU,KAAO,QAAQ,KAAK,SAAW,QAAQ,IAAI,WAAa,aAAe,GAAIE,EAAID,EAAC,EAAI,EAAI,OAAO,OAAS,KAAO,OAAO,aAAa,8BAA8B,EAAE,QAAS,EAAI,CACtP,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,KAAM,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EAChF,GAAI,EAAI,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,MAAM,EAAK,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,MAAM,EAC/G,QAAS,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KAAO,GAAM,CACXA,EAAE,MAAM,GAAK,QAAQ,KAAK,CAAC,CAC7B,EAIA,QAAU,GAAM,CACdA,EAAE,MAAM,GAAK,QAAQ,QAAQ,CAAC,CAChC,EACA,MAAO,IAAI,IAAMQ,EAAE,QAAS,GAAG,CAAC,EAChC,KAAM,IAAI,IAAMA,EAAE,OAAQ,GAAG,CAAC,CAChC"}
|
|
1
|
+
{"version":3,"file":"logit.cjs","sources":["../../../../logit/dist/logit.js"],"sourcesContent":["const h = {};\nconst E = {\n debug: \"log\",\n success: \"log\"\n}, $ = () => typeof window < \"u\" && h?.NODE_ENV ? !1 : typeof process < \"u\" && process.env?.NODE_ENV ? process.env.NODE_ENV === \"production\" : !1, g = $(), w = typeof window < \"u\" && window.matchMedia?.(\"(prefers-color-scheme: dark)\").matches, u = {\n debug: { bg: \"#616161\", border: \"#424242\", color: \"#fff\", icon: \"☕\", symbol: \"🅳\" },\n error: { bg: \"#d32f2f\", border: \"#c62828\", color: \"#fff\", icon: \"✘\", symbol: \"🅴\" },\n group: { bg: \"#546e7a\", border: \"#455a64\", color: \"#fff\", icon: \"⚭\", symbol: \"🅶\" },\n info: { bg: \"#1976d2\", border: \"#1565c0\", color: \"#fff\", icon: \"ℹ\", symbol: \"🅸\" },\n ns: w ? { bg: \"#fafafa\", border: \"#c7c7c7\", color: \"#000\" } : { bg: \"#424242\", border: \"#212121\", color: \"#fff\" },\n success: { bg: \"#689f38\", border: \"#558b2f\", color: \"#fff\", icon: \"✔\", symbol: \"🆂\" },\n time: { bg: \"#0097a7\", border: \"#00838f\", color: \"#fff\", icon: \"⏲\", symbol: \"🆃\" },\n trace: { bg: \"#d81b60\", border: \"#c2185b\", color: \"#fff\", icon: \"⛢\", symbol: \"🆃\" },\n warn: { bg: \"#ffb300\", border: \"#ffa000\", color: \"#fff\", icon: \"⚠\", symbol: \"🆆\" }\n}, m = {\n debug: 0,\n trace: 1,\n time: 2,\n table: 3,\n info: 4,\n success: 5,\n warn: 6,\n error: 7,\n off: 8\n}, o = {\n environment: !0,\n logLevel: \"debug\",\n namespace: \"\",\n remote: { handler: void 0, logLevel: \"off\" },\n timestamp: !0,\n variant: \"symbol\"\n}, i = (e) => m[o.logLevel] <= m[e], p = () => (/* @__PURE__ */ new Date()).toISOString().slice(11, 23), d = () => g ? \"🄿\" : \"🄳\", _ = (e, n) => {\n o.remote.handler && m[o.remote.logLevel] <= m[e] && Promise.resolve().then(() => {\n o.remote.handler?.(e, {\n args: n,\n environment: g ? \"production\" : \"development\",\n namespace: o.namespace || void 0,\n timestamp: o.timestamp ? p() : void 0\n });\n });\n}, f = (e) => E[e] || e, L = \"border: 1px solid\", x = \"border-radius: 4px\", b = \"border-radius: 8px; font: italic small-caps bold 12px; font-weight: lighter; padding: 0 4px;\", l = (e, n = \"\") => {\n const { bg: r, color: s, border: t } = u[e], c = `${L} ${t}; ${x}`;\n switch (o.variant) {\n case \"symbol\":\n return `color: ${r}; ${c}; padding: 1px 1px 0${n}`;\n case \"icon\":\n return `color: ${r}; ${c}; padding: 0 3px${n}`;\n default:\n return `background: ${r}; color: ${s}; ${c}; font-weight: bold; padding: 0 3px${n}`;\n }\n}, v = (e) => {\n const n = u[e], { variant: r } = o;\n return r === \"text\" || !n || !n[r] ? e.toUpperCase() : n[r];\n};\nfunction D(e) {\n const { namespace: n, timestamp: r, environment: s } = o;\n let t = `%c${v(e)}%c`;\n const c = [l(e), \"\"];\n return n && (t += ` %c${n}%c`, c.push(l(\"ns\", `; ${b}`), \"\")), s && (t += ` %c${d()}%c`, c.push(\"color: darkgray\", \"\")), r && (t += ` %c${p()}%c`, c.push(\"color: gray\", \"\")), { format: t, parts: c };\n}\nconst a = (e, ...n) => {\n if (typeof window > \"u\") {\n const c = console[f(e)];\n c(`${v(e)} | ${d()} |`, ...n);\n return;\n }\n if (!i(e)) return;\n const { format: r, parts: s } = D(e), t = console[f(e)];\n t(r, ...s, ...n), _(e, n);\n}, N = (e) => {\n const n = Math.floor(Date.now() - e);\n return n ? `${n}ms` : \"\";\n}, O = {\n /**\n * Asserts a condition and logs an error if it's false.\n */\n assert: (e, n, r) => console.assert(e, n, r),\n debug: (...e) => a(\"debug\", ...e),\n error: (...e) => a(\"error\", ...e),\n /**\n * Gets whether the environment indicator is shown.\n */\n getEnvironment: () => o.environment,\n /**\n * Gets the current log level.\n */\n getLevel: () => o.logLevel,\n /**\n * Gets the current namespace prefix.\n */\n getPrefix: () => o.namespace,\n /**\n * Gets whether timestamps are shown.\n */\n getTimestamp: () => o.timestamp,\n /**\n * Gets the current display variant.\n */\n getVariant: () => o.variant,\n /**\n * Creates a collapsed group in the console.\n */\n groupCollapsed: (e, n = \"GROUP\", r = Date.now()) => {\n if (!i(\"success\")) return;\n const s = N(r), t = d(), c = o.timestamp ? p() : \"\";\n console.groupCollapsed(\n `%c${n}%c${o.namespace}%c${t}%c${c}%c${s}%c${e}`,\n l(\"group\", \"; margin-right: 6px; padding: 1px 3px 0\"),\n l(\"ns\", `; ${b}; margin-right: 6px`),\n \"color: darkgray; margin-right: 6px\",\n \"color: gray; font-weight: lighter; margin-right: 6px\",\n \"color: gray; font-weight: lighter; margin-right: 6px\",\n \"color: inherit; font-weight: lighter\"\n );\n },\n /**\n * Ends the current console group.\n */\n groupEnd: () => {\n i(\"success\") && console.groupEnd();\n },\n info: (...e) => a(\"info\", ...e),\n /**\n * Creates a scoped logger with a namespaced prefix.\n * Does not mutate global state - returns an isolated logger instance.\n *\n * @param namespace - The namespace to prepend to all log messages\n * @returns A scoped logger with all logging methods\n *\n * @example\n * ```ts\n * const apiLogger = Logit.scope('api');\n * apiLogger.info('Request received'); // [API] Request received\n *\n * const dbLogger = Logit.scope('database');\n * dbLogger.error('Connection failed'); // [DATABASE] Connection failed\n * ```\n */\n scope: (e) => {\n const n = o.namespace, r = n ? `${n}.${e}` : e;\n return {\n debug: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"debug\", ...s), o.namespace = t;\n },\n error: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"error\", ...s), o.namespace = t;\n },\n info: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"info\", ...s), o.namespace = t;\n },\n success: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"success\", ...s), o.namespace = t;\n },\n trace: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"trace\", ...s), o.namespace = t;\n },\n warn: (...s) => {\n const t = o.namespace;\n o.namespace = r, a(\"warn\", ...s), o.namespace = t;\n }\n };\n },\n /**\n * Sets the minimum log level to display.\n */\n setLogLevel: (e) => {\n o.logLevel = e;\n },\n /**\n * Sets the namespace prefix for all logs.\n */\n setPrefix: (e) => {\n o.namespace = e;\n },\n /**\n * Configures remote logging options.\n */\n setRemote: (e) => {\n o.remote = e;\n },\n /**\n * Sets the log level for remote logging.\n */\n setRemoteLogLevel: (e) => {\n o.remote.logLevel = e;\n },\n /**\n * Configures Logit with custom options.\n *\n * Note: The remote option will be merged with existing remote config,\n * not replaced entirely. To clear a remote handler, set remote.handler to undefined.\n */\n setup: (e) => {\n e.remote && (o.remote = { ...o.remote, ...e.remote }, delete e.remote), Object.assign(o, e);\n },\n /**\n * Sets the display variant (text, icon, or symbol).\n */\n setVariant: (e) => {\n o.variant = e;\n },\n success: (...e) => a(\"success\", ...e),\n /**\n * Displays data in a table format.\n */\n table: (...e) => {\n i(\"table\") && console.table(...e);\n },\n /**\n * Starts a timer with the given label.\n */\n time: (e) => {\n i(\"time\") && console.time(e);\n },\n /**\n * Ends a timer with the given label.\n */\n timeEnd: (e) => {\n i(\"time\") && console.timeEnd(e);\n },\n /**\n * Toggles or sets the environment indicator visibility.\n * When called without arguments, toggles the current state.\n *\n * @param value - Optional boolean to explicitly set the state\n *\n * @example\n * ```ts\n * Logit.toggleEnvironment(); // Toggles current state\n * Logit.toggleEnvironment(true); // Shows environment indicator\n * Logit.toggleEnvironment(false); // Hides environment indicator\n * ```\n */\n toggleEnvironment: (e) => {\n o.environment = e ?? !o.environment;\n },\n /**\n * Toggles or sets timestamp visibility in logs.\n * When called without arguments, toggles the current state.\n *\n * @param value - Optional boolean to explicitly set the state\n *\n * @example\n * ```ts\n * Logit.toggleTimestamp(); // Toggles current state\n * Logit.toggleTimestamp(true); // Shows timestamps\n * Logit.toggleTimestamp(false); // Hides timestamps\n * ```\n */\n toggleTimestamp: (e) => {\n o.timestamp = e ?? !o.timestamp;\n },\n trace: (...e) => a(\"trace\", ...e),\n warn: (...e) => a(\"warn\", ...e)\n};\nexport {\n O as Logit\n};\n//# sourceMappingURL=logit.js.map\n"],"names":["h","E","$","g","w","u","d","_","n","x","b","r","t","c","D","a","N","O"],"mappings":"gFAAA,MAAMA,EAAI,CAAA,EACJC,EAAI,CACR,MAAO,MACP,QAAS,KACX,EAAGC,EAAI,IAAM,OAAO,OAAS,KAAOF,GAAG,SAAW,GAAK,OAAO,QAAU,KAAO,QAAQ,KAAK,SAAW,QAAQ,IAAI,WAAa,aAAe,GAAIG,EAAID,EAAC,EAAIE,EAAI,OAAO,OAAS,KAAO,OAAO,aAAa,8BAA8B,EAAE,QAASC,EAAI,CACtP,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,MAAO,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACjF,KAAM,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EAChF,GAAID,EAAI,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,MAAM,EAAK,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,MAAM,EAC/G,QAAS,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,OAAQ,KAAM,IAAK,OAAQ,IAAI,EACnF,KAAM,CAAE,GAAI,UAAW,OAAQ,UAAW,MAAO,O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