@vielzeug/toolkit 1.0.14 → 1.1.3

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.
Files changed (71) hide show
  1. package/README.md +546 -0
  2. package/dist/async/attempt.cjs.map +1 -0
  3. package/dist/async/attempt.js.map +1 -0
  4. package/dist/async/defer.cjs +2 -0
  5. package/dist/async/defer.cjs.map +1 -0
  6. package/dist/async/defer.js +10 -0
  7. package/dist/async/defer.js.map +1 -0
  8. package/dist/async/delay.cjs.map +1 -0
  9. package/dist/async/delay.js.map +1 -0
  10. package/dist/async/parallel.cjs.map +1 -0
  11. package/dist/async/parallel.js.map +1 -0
  12. package/dist/async/pool.cjs +2 -0
  13. package/dist/async/pool.cjs.map +1 -0
  14. package/dist/async/pool.js +22 -0
  15. package/dist/async/pool.js.map +1 -0
  16. package/dist/async/predict.cjs.map +1 -0
  17. package/dist/async/predict.js.map +1 -0
  18. package/dist/async/queue.cjs +2 -0
  19. package/dist/async/queue.cjs.map +1 -0
  20. package/dist/async/queue.js +57 -0
  21. package/dist/async/queue.js.map +1 -0
  22. package/dist/async/race.cjs +2 -0
  23. package/dist/async/race.cjs.map +1 -0
  24. package/dist/async/race.js +8 -0
  25. package/dist/async/race.js.map +1 -0
  26. package/dist/async/retry.cjs.map +1 -0
  27. package/dist/{function → async}/retry.js +4 -4
  28. package/dist/async/retry.js.map +1 -0
  29. package/dist/async/sleep.cjs +2 -0
  30. package/dist/async/sleep.cjs.map +1 -0
  31. package/dist/{function → async}/sleep.js +1 -1
  32. package/dist/async/sleep.js.map +1 -0
  33. package/dist/async/waitFor.cjs +2 -0
  34. package/dist/async/waitFor.cjs.map +1 -0
  35. package/dist/async/waitFor.js +37 -0
  36. package/dist/async/waitFor.js.map +1 -0
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.ts +175 -0
  39. package/dist/index.js +242 -230
  40. package/dist/index.js.map +1 -1
  41. package/dist/logit/dist/logit.cjs +1 -1
  42. package/dist/logit/dist/logit.cjs.map +1 -1
  43. package/dist/logit/dist/logit.js +147 -64
  44. package/dist/logit/dist/logit.js.map +1 -1
  45. package/dist/object/cache.cjs +2 -0
  46. package/dist/object/cache.cjs.map +1 -0
  47. package/dist/object/cache.js +63 -0
  48. package/dist/object/cache.js.map +1 -0
  49. package/package.json +1 -1
  50. package/dist/function/attempt.cjs.map +0 -1
  51. package/dist/function/attempt.js.map +0 -1
  52. package/dist/function/delay.cjs.map +0 -1
  53. package/dist/function/delay.js.map +0 -1
  54. package/dist/function/parallel.cjs.map +0 -1
  55. package/dist/function/parallel.js.map +0 -1
  56. package/dist/function/predict.cjs.map +0 -1
  57. package/dist/function/predict.js.map +0 -1
  58. package/dist/function/retry.cjs.map +0 -1
  59. package/dist/function/retry.js.map +0 -1
  60. package/dist/function/sleep.cjs +0 -2
  61. package/dist/function/sleep.cjs.map +0 -1
  62. package/dist/function/sleep.js.map +0 -1
  63. /package/dist/{function → async}/attempt.cjs +0 -0
  64. /package/dist/{function → async}/attempt.js +0 -0
  65. /package/dist/{function → async}/delay.cjs +0 -0
  66. /package/dist/{function → async}/delay.js +0 -0
  67. /package/dist/{function → async}/parallel.cjs +0 -0
  68. /package/dist/{function → async}/parallel.js +0 -0
  69. /package/dist/{function → async}/predict.cjs +0 -0
  70. /package/dist/{function → async}/predict.js +0 -0
  71. /package/dist/{function → async}/retry.cjs +0 -0
package/dist/index.js CHANGED
@@ -1,241 +1,253 @@
1
1
  import { aggregate as e } from "./array/aggregate.js";
2
2
  import { alternate as m } from "./array/alternate.js";
3
- import { chunk as f } from "./array/chunk.js";
4
- import { compact as i } from "./array/compact.js";
5
- import { contains as a } from "./array/contains.js";
6
- import { every as _ } from "./array/every.js";
7
- import { filter as l } from "./array/filter.js";
8
- import { find as c } from "./array/find.js";
9
- import { findIndex as d } from "./array/findIndex.js";
10
- import { findLast as I } from "./array/findLast.js";
11
- import { flatten as M } from "./array/flatten.js";
12
- import { group as y } from "./array/group.js";
13
- import { list as b } from "./array/list.js";
14
- import { map as v } from "./array/map.js";
15
- import { pick as k } from "./array/pick.js";
16
- import { reduce as T } from "./array/reduce.js";
17
- import { remoteList as A } from "./array/remoteList.js";
18
- import { search as D } from "./array/search.js";
19
- import { select as U } from "./array/select.js";
20
- import { shift as w } from "./array/shift.js";
21
- import { some as J } from "./array/some.js";
22
- import { sort as Y } from "./array/sort.js";
23
- import { arrange as H } from "./array/arrange.js";
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";
8
+ import { filter as S } from "./array/filter.js";
9
+ import { find as d } from "./array/find.js";
10
+ import { findIndex as I } from "./array/findIndex.js";
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
24
  import { substitute as V } from "./array/substitute.js";
25
25
  import { uniq as z } from "./array/uniq.js";
26
- import { expires as X } from "./date/expires.js";
27
- import { interval as rr } from "./date/interval.js";
28
- import { timeDiff as er } from "./date/timeDiff.js";
29
- import { assert as mr } from "./function/assert.js";
30
- import { assertParams as fr } from "./function/assertParams.js";
31
- import { attempt as ir } from "./function/attempt.js";
32
- import { compare as ar } from "./function/compare.js";
33
- import { compareBy as _r } from "./function/compareBy.js";
34
- import { compose as lr } from "./function/compose.js";
35
- import { curry as cr } from "./function/curry.js";
36
- import { debounce as dr } from "./function/debounce.js";
37
- import { delay as Ir } from "./function/delay.js";
38
- import { fp as Mr } from "./function/fp.js";
39
- import { memo as yr } from "./function/memo.js";
40
- import { once as br } from "./function/once.js";
41
- import { parallel as vr } from "./function/parallel.js";
42
- import { pipe as kr } from "./function/pipe.js";
43
- import { predict as Tr } from "./function/predict.js";
44
- import { proxy as Ar } from "./function/proxy.js";
45
- import { prune as Dr } from "./function/prune.js";
46
- import { retry as Ur } from "./function/retry.js";
47
- import { sleep as wr } from "./function/sleep.js";
48
- import { throttle as Jr } from "./function/throttle.js";
49
- import { worker as Yr } from "./function/worker.js";
50
- import { abs as Hr } from "./math/abs.js";
51
- import { add as Vr } from "./math/add.js";
52
- import { allocate as zr } from "./math/allocate.js";
53
- import { average as Xr } from "./math/average.js";
54
- import { boil as ro } from "./math/boil.js";
55
- import { clamp as eo } from "./math/clamp.js";
56
- import { distribute as mo } from "./math/distribute.js";
57
- import { divide as fo } from "./math/divide.js";
58
- import { max as io } from "./math/max.js";
59
- import { median as ao } from "./math/median.js";
60
- import { min as _o } from "./math/min.js";
61
- import { multiply as lo } from "./math/multiply.js";
62
- import { range as co } from "./math/range.js";
63
- import { rate as Eo } from "./math/rate.js";
64
- import { round as Oo } from "./math/round.js";
65
- import { subtract as go } from "./math/subtract.js";
66
- import { sum as Go } from "./math/sum.js";
67
- import { currency as No } from "./money/currency.js";
68
- import { exchange as ho } from "./money/exchange.js";
69
- import { clone as Po } from "./object/clone.js";
70
- import { diff as Co } from "./object/diff.js";
71
- import { entries as Bo } from "./object/entries.js";
72
- import { keys as Lo } from "./object/keys.js";
73
- import { merge as qo } from "./object/merge.js";
74
- import { parseJSON as Fo } from "./object/parseJSON.js";
75
- import { path as Wo } from "./object/path.js";
76
- import { seek as jo } from "./object/seek.js";
77
- import { values as Qo } from "./object/values.js";
78
- import { draw as Zo } from "./random/draw.js";
79
- import { random as Ko } from "./random/random.js";
80
- import { shuffle as $o } from "./random/shuffle.js";
81
- import { uuid as oe } from "./random/uuid.js";
82
- import { camelCase as te } from "./string/camelCase.js";
83
- import { kebabCase as pe } from "./string/kebabCase.js";
84
- import { pascalCase as xe } from "./string/pascalCase.js";
85
- import { similarity as se } from "./string/similarity.js";
86
- import { snakeCase as Re } from "./string/snakeCase.js";
87
- import { truncate as ne } from "./string/truncate.js";
88
- import { ge as Se } from "./typed/ge.js";
89
- import { gt as ue } from "./typed/gt.js";
90
- import { is as Ee } from "./typed/is.js";
91
- import { IS_ARRAY_ERROR_MSG as Oe, isArray as Me } from "./typed/isArray.js";
92
- import { isBoolean as ye } from "./typed/isBoolean.js";
93
- import { IS_DATE_ERROR_MSG as be, isDate as Ne } from "./typed/isDate.js";
94
- import { isDefined as he } from "./typed/isDefined.js";
95
- import { IS_EMPTY_ERROR_MSG as Pe, isEmpty as Te } from "./typed/isEmpty.js";
96
- import { IS_EQUAL_ERROR_MSG as Ae, isEqual as Be } from "./typed/isEqual.js";
97
- import { isEven as Le } from "./typed/isEven.js";
98
- import { IS_FUNCTION_ERROR_MSG as qe, isFunction as we } from "./typed/isFunction.js";
99
- import { isNegative as Je } from "./typed/isNegative.js";
100
- import { IS_NIL_ERROR_MSG as Ye, isNil as je } from "./typed/isNil.js";
101
- import { IS_NUMBER_ERROR_MSG as Qe, isNumber as Ve } from "./typed/isNumber.js";
102
- import { IS_OBJECT_ERROR_MSG as ze, isObject as Ke } from "./typed/isObject.js";
103
- import { isOdd as $e } from "./typed/isOdd.js";
104
- import { isPositive as ot } from "./typed/isPositive.js";
105
- import { IS_PRIMITIVE_ERROR_MSG as tt, isPrimitive as mt } from "./typed/isPrimitive.js";
106
- import { IS_PROMISE_ERROR_MSG as ft, isPromise as xt } from "./typed/isPromise.js";
107
- import { isRegex as st } from "./typed/isRegex.js";
108
- import { IS_STRING_ERROR_MSG as Rt, isString as _t } from "./typed/isString.js";
109
- import { IS_WITHIN_ERROR_MSG as lt, isWithin as St } from "./typed/isWithin.js";
110
- import { isZero as ut } from "./typed/isZero.js";
111
- import { le as Et } from "./typed/le.js";
112
- import { lt as Ot } from "./typed/lt.js";
113
- import { typeOf as gt } from "./typed/typeOf.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";
114
120
  export {
115
- Oe as IS_ARRAY_ERROR_MSG,
116
- be as IS_DATE_ERROR_MSG,
117
- Pe as IS_EMPTY_ERROR_MSG,
118
- Ae as IS_EQUAL_ERROR_MSG,
119
- qe as IS_FUNCTION_ERROR_MSG,
120
- Ye as IS_NIL_ERROR_MSG,
121
- Qe as IS_NUMBER_ERROR_MSG,
122
- ze as IS_OBJECT_ERROR_MSG,
123
- tt as IS_PRIMITIVE_ERROR_MSG,
124
- ft as IS_PROMISE_ERROR_MSG,
125
- Rt as IS_STRING_ERROR_MSG,
126
- lt as IS_WITHIN_ERROR_MSG,
127
- Hr as abs,
128
- Vr as add,
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,
129
135
  e as aggregate,
130
- zr as allocate,
136
+ fo as allocate,
131
137
  m as alternate,
132
- H as arrange,
133
- mr as assert,
134
- fr as assertParams,
135
- ir as attempt,
136
- Xr as average,
137
- ro as boil,
138
- te as camelCase,
139
- f as chunk,
140
- eo as clamp,
141
- Po as clone,
142
- i as compact,
143
- ar as compare,
144
- _r as compareBy,
145
- lr as compose,
146
- a as contains,
147
- No as currency,
148
- cr as curry,
149
- dr as debounce,
150
- Ir as delay,
151
- Co as diff,
152
- mo as distribute,
153
- fo as divide,
154
- Zo as draw,
155
- Bo as entries,
156
- _ as every,
157
- ho as exchange,
158
- X as expires,
159
- l as filter,
160
- c as find,
161
- d as findIndex,
162
- I as findLast,
163
- M as flatten,
164
- Mr as fp,
165
- Se as ge,
166
- y as group,
167
- ue as gt,
168
- rr as interval,
169
- Ee as is,
170
- Me as isArray,
171
- ye as isBoolean,
172
- Ne as isDate,
173
- he as isDefined,
174
- Te as isEmpty,
175
- Be as isEqual,
176
- Le as isEven,
177
- we as isFunction,
178
- Je as isNegative,
179
- je as isNil,
180
- Ve as isNumber,
181
- Ke as isObject,
182
- $e as isOdd,
183
- ot as isPositive,
184
- mt as isPrimitive,
185
- xt as isPromise,
186
- st as isRegex,
187
- _t as isString,
188
- St as isWithin,
189
- ut as isZero,
190
- pe as kebabCase,
191
- Lo as keys,
192
- Et as le,
193
- b as list,
194
- Ot as lt,
195
- v as map,
196
- io as max,
197
- ao as median,
198
- yr as memo,
199
- qo as merge,
200
- _o as min,
201
- lo as multiply,
202
- br as once,
203
- vr as parallel,
204
- Fo as parseJSON,
205
- xe as pascalCase,
206
- Wo as path,
207
- k as pick,
208
- kr as pipe,
209
- Tr as predict,
210
- Ar as proxy,
211
- Dr as prune,
212
- Ko as random,
213
- co as range,
214
- Eo as rate,
215
- T as reduce,
216
- A as remoteList,
217
- Ur as retry,
218
- Oo as round,
219
- D as search,
220
- jo as seek,
221
- U as select,
222
- w as shift,
223
- $o as shuffle,
224
- se as similarity,
225
- wr as sleep,
226
- Re as snakeCase,
227
- J as some,
228
- Y as sort,
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,
167
+ S as filter,
168
+ d as find,
169
+ I as findIndex,
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,
229
240
  V as substitute,
230
- go as subtract,
231
- Go as sum,
232
- Jr as throttle,
233
- er as timeDiff,
234
- ne as truncate,
235
- gt as typeOf,
241
+ Co as subtract,
242
+ Bo as sum,
243
+ Xr as throttle,
244
+ yr as timeDiff,
245
+ Ge as truncate,
246
+ Bt as typeOf,
236
247
  z as uniq,
237
- oe as uuid,
238
- Qo as values,
239
- Yr as worker
248
+ ne as uuid,
249
+ pe as values,
250
+ dr as waitFor,
251
+ ro as worker
240
252
  };
241
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 w={},v={debug:"log",success:"log"},y=()=>typeof window<"u"&&w?.NODE_ENV?!1:typeof process<"u"&&process.env?.NODE_ENV?process.env.NODE_ENV==="production":!1,x=y(),L=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:L?{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:"🆆"}},l={debug:0,trace:1,time:2,table:3,info:4,success:5,warn:6,error:7,off:8},r={environment:!0,logLevel:"debug",namespace:"",remote:{handler:void 0,logLevel:"off"},timestamp:!0,variant:"symbol"},i=e=>l[r.logLevel]<=l[e],u=()=>new Date().toISOString().slice(11,23),g=()=>x?"🄿":"🄳",E=(e,o)=>{r.remote.handler&&l[r.remote.logLevel]<=l[e]&&r.remote.handler(e,...o)},m=e=>v[e]||e,d="border: 1px solid",p="border-radius: 4px",$="border-radius: 8px; font: italic small-caps bold 12px; font-weight: lighter",f=(e,o="")=>{const{bg:t,color:c,border:n}=b[e],s=`color: ${t}; ${d} ${n}; ${p}`;switch(r.variant){case"symbol":return`${s}; padding: 1px 1px 0${o}`;case"icon":return`${s}; padding: 0 3px${o}`;default:return`background: ${t}; color: ${c}; ${d} ${n}; ${p}; font-weight: bold; padding: 0 3px${o}`}},h=e=>{const o=b[e],{variant:t}=r;return t==="text"||!o[t]?e.toUpperCase():o[t]};function O(e){const{namespace:o,timestamp:t,environment:c}=r;let n=`%c${h(e)}%c`;const s=[f(e),""];return o&&(n+=` %c${o}%c`,s.push(f("ns",`; ${$}`),"")),c&&(n+=` %c${g()}%c`,s.push("color: darkgray","")),t&&(n+=` %c${u()}%c`,s.push("color: gray","")),{format:n,parts:s}}const a=(e,...o)=>{if(typeof window>"u"){const s=console[m(e)];s(`${h(e)} | ${g()} |`,...o);return}if(!i(e))return;const{format:t,parts:c}=O(e),n=console[m(e)];n(t,...c,...o),E(e,o)},D=e=>{const o=Math.floor(Date.now()-e);return o?`${o}ms`:""},N={assert:(e,o,t)=>console.assert(e,o,t),debug:(...e)=>a("debug",...e),error:(...e)=>a("error",...e),getLevel:()=>r.logLevel,getPrefix:()=>r.namespace,getTimestamp:()=>r.timestamp,groupCollapsed:(e,o="GROUP",t=Date.now())=>{if(!i("success"))return;const c=D(t),n=g(),s=r.timestamp?u():"";console.groupCollapsed(`%c${o}%c${r.namespace}%c${n}%c${s}%c${c}%c${e}`,f("group","; margin-right: 6px; padding: 1px 3px 0"),f("ns",`; ${$}; 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)=>a("info",...e),initialise:e=>{Object.assign(r,e)},setLogLevel:e=>{r.logLevel=e},setPrefix:e=>{r.namespace=e},setRemote:e=>{r.remote=e},setRemoteLogLevel:e=>{r.remote.logLevel=e},setVariant:e=>{r.variant=e},showEnvironment:e=>{r.environment=e},showTimestamp:e=>{r.timestamp=e},success:(...e)=>a("success",...e),table:(...e)=>{i("table")&&console.table(...e)},time:e=>{i("time")&&console.time(e)},timeEnd:e=>{i("time")&&console.timeEnd(e)},trace:(...e)=>a("trace",...e),warn:(...e)=>a("warn",...e)};exports.Logit=N;
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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,IAAI,IAAMA,EAAE,UAAW,GAAG,CAAC,EAIpC,MAAO,IAAI,IAAM,CACfR,EAAE,OAAO,GAAK,QAAQ,MAAM,GAAG,CAAC,CAClC,EAIA,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,CA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