@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.
Files changed (141) hide show
  1. package/dist/array/{sortBy.cjs → arrange.cjs} +2 -2
  2. package/dist/array/arrange.cjs.map +1 -0
  3. package/dist/array/arrange.js +6 -0
  4. package/dist/array/arrange.js.map +1 -0
  5. package/dist/array/chunk.cjs.map +1 -1
  6. package/dist/array/chunk.js.map +1 -1
  7. package/dist/array/list.cjs +1 -1
  8. package/dist/array/list.cjs.map +1 -1
  9. package/dist/array/list.js +86 -53
  10. package/dist/array/list.js.map +1 -1
  11. package/dist/array/remoteList.cjs +2 -0
  12. package/dist/array/remoteList.cjs.map +1 -0
  13. package/dist/array/remoteList.js +123 -0
  14. package/dist/array/remoteList.js.map +1 -0
  15. package/dist/async/attempt.cjs.map +1 -0
  16. package/dist/async/attempt.js.map +1 -0
  17. package/dist/async/defer.cjs +2 -0
  18. package/dist/async/defer.cjs.map +1 -0
  19. package/dist/async/defer.js +10 -0
  20. package/dist/async/defer.js.map +1 -0
  21. package/dist/async/delay.cjs.map +1 -0
  22. package/dist/async/delay.js.map +1 -0
  23. package/dist/async/parallel.cjs +2 -0
  24. package/dist/async/parallel.cjs.map +1 -0
  25. package/dist/async/parallel.js +28 -0
  26. package/dist/async/parallel.js.map +1 -0
  27. package/dist/async/pool.cjs +2 -0
  28. package/dist/async/pool.cjs.map +1 -0
  29. package/dist/async/pool.js +22 -0
  30. package/dist/async/pool.js.map +1 -0
  31. package/dist/async/predict.cjs.map +1 -0
  32. package/dist/async/predict.js.map +1 -0
  33. package/dist/async/queue.cjs +2 -0
  34. package/dist/async/queue.cjs.map +1 -0
  35. package/dist/async/queue.js +57 -0
  36. package/dist/async/queue.js.map +1 -0
  37. package/dist/async/race.cjs +2 -0
  38. package/dist/async/race.cjs.map +1 -0
  39. package/dist/async/race.js +8 -0
  40. package/dist/async/race.js.map +1 -0
  41. package/dist/async/retry.cjs.map +1 -0
  42. package/dist/{function → async}/retry.js +4 -4
  43. package/dist/async/retry.js.map +1 -0
  44. package/dist/async/sleep.cjs +2 -0
  45. package/dist/async/sleep.cjs.map +1 -0
  46. package/dist/{function → async}/sleep.js +1 -1
  47. package/dist/async/sleep.js.map +1 -0
  48. package/dist/async/waitFor.cjs +2 -0
  49. package/dist/async/waitFor.cjs.map +1 -0
  50. package/dist/async/waitFor.js +37 -0
  51. package/dist/async/waitFor.js.map +1 -0
  52. package/dist/date/expires.cjs.map +1 -1
  53. package/dist/date/expires.js.map +1 -1
  54. package/dist/date/interval.cjs.map +1 -1
  55. package/dist/date/interval.js.map +1 -1
  56. package/dist/date/timeDiff.cjs.map +1 -1
  57. package/dist/date/timeDiff.js.map +1 -1
  58. package/dist/function/memo.cjs.map +1 -1
  59. package/dist/function/memo.js.map +1 -1
  60. package/dist/function/proxy.cjs.map +1 -1
  61. package/dist/function/proxy.js.map +1 -1
  62. package/dist/function/prune.cjs +2 -0
  63. package/dist/function/prune.cjs.map +1 -0
  64. package/dist/function/prune.js +30 -0
  65. package/dist/function/prune.js.map +1 -0
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.ts +575 -51
  68. package/dist/index.js +242 -206
  69. package/dist/index.js.map +1 -1
  70. package/dist/logit/dist/logit.cjs +1 -1
  71. package/dist/logit/dist/logit.cjs.map +1 -1
  72. package/dist/logit/dist/logit.js +147 -64
  73. package/dist/logit/dist/logit.js.map +1 -1
  74. package/dist/math/abs.cjs +2 -0
  75. package/dist/math/abs.cjs.map +1 -0
  76. package/dist/math/abs.js +7 -0
  77. package/dist/math/abs.js.map +1 -0
  78. package/dist/math/add.cjs +2 -0
  79. package/dist/math/add.cjs.map +1 -0
  80. package/dist/math/add.js +9 -0
  81. package/dist/math/add.js.map +1 -0
  82. package/dist/math/allocate.cjs +2 -0
  83. package/dist/math/allocate.cjs.map +1 -0
  84. package/dist/math/allocate.js +29 -0
  85. package/dist/math/allocate.js.map +1 -0
  86. package/dist/math/distribute.cjs +2 -0
  87. package/dist/math/distribute.cjs.map +1 -0
  88. package/dist/math/distribute.js +18 -0
  89. package/dist/math/distribute.js.map +1 -0
  90. package/dist/math/divide.cjs +2 -0
  91. package/dist/math/divide.cjs.map +1 -0
  92. package/dist/math/divide.js +11 -0
  93. package/dist/math/divide.js.map +1 -0
  94. package/dist/math/multiply.cjs +2 -0
  95. package/dist/math/multiply.cjs.map +1 -0
  96. package/dist/math/multiply.js +9 -0
  97. package/dist/math/multiply.js.map +1 -0
  98. package/dist/math/subtract.cjs +2 -0
  99. package/dist/math/subtract.cjs.map +1 -0
  100. package/dist/math/subtract.js +9 -0
  101. package/dist/math/subtract.js.map +1 -0
  102. package/dist/money/currency.cjs +2 -0
  103. package/dist/money/currency.cjs.map +1 -0
  104. package/dist/money/currency.js +49 -0
  105. package/dist/money/currency.js.map +1 -0
  106. package/dist/money/exchange.cjs +2 -0
  107. package/dist/money/exchange.cjs.map +1 -0
  108. package/dist/money/exchange.js +13 -0
  109. package/dist/money/exchange.js.map +1 -0
  110. package/dist/object/cache.cjs +2 -0
  111. package/dist/object/cache.cjs.map +1 -0
  112. package/dist/object/cache.js +63 -0
  113. package/dist/object/cache.js.map +1 -0
  114. package/dist/object/merge.cjs.map +1 -1
  115. package/dist/object/merge.js.map +1 -1
  116. package/dist/object/parseJSON.cjs.map +1 -1
  117. package/dist/object/parseJSON.js.map +1 -1
  118. package/dist/object/path.cjs.map +1 -1
  119. package/dist/object/path.js.map +1 -1
  120. package/package.json +1 -1
  121. package/dist/array/sortBy.cjs.map +0 -1
  122. package/dist/array/sortBy.js +0 -6
  123. package/dist/array/sortBy.js.map +0 -1
  124. package/dist/function/attempt.cjs.map +0 -1
  125. package/dist/function/attempt.js.map +0 -1
  126. package/dist/function/delay.cjs.map +0 -1
  127. package/dist/function/delay.js.map +0 -1
  128. package/dist/function/predict.cjs.map +0 -1
  129. package/dist/function/predict.js.map +0 -1
  130. package/dist/function/retry.cjs.map +0 -1
  131. package/dist/function/retry.js.map +0 -1
  132. package/dist/function/sleep.cjs +0 -2
  133. package/dist/function/sleep.cjs.map +0 -1
  134. package/dist/function/sleep.js.map +0 -1
  135. /package/dist/{function → async}/attempt.cjs +0 -0
  136. /package/dist/{function → async}/attempt.js +0 -0
  137. /package/dist/{function → async}/delay.cjs +0 -0
  138. /package/dist/{function → async}/delay.js +0 -0
  139. /package/dist/{function → async}/predict.cjs +0 -0
  140. /package/dist/{function → async}/predict.js +0 -0
  141. /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 { 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";
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 l } from "./array/find.js";
9
+ import { find as d } from "./array/find.js";
9
10
  import { findIndex as I } from "./array/findIndex.js";
10
- import { findLast as u } from "./array/findLast.js";
11
- import { flatten as M } from "./array/flatten.js";
12
- import { group as g } from "./array/group.js";
13
- import { list as N } from "./array/list.js";
14
- import { map as b } from "./array/map.js";
15
- import { pick as k } from "./array/pick.js";
16
- import { reduce as T } from "./array/reduce.js";
17
- import { search as A } from "./array/search.js";
18
- import { select as D } from "./array/select.js";
19
- import { shift as U } from "./array/shift.js";
20
- import { some as w } from "./array/some.js";
21
- import { sort as J } from "./array/sort.js";
22
- import { sortBy as Y } from "./array/sortBy.js";
23
- import { substitute as H } from "./array/substitute.js";
24
- import { uniq as V } from "./array/uniq.js";
25
- import { expires as z } from "./date/expires.js";
26
- import { interval as X } from "./date/interval.js";
27
- import { timeDiff as rr } from "./date/timeDiff.js";
28
- import { assert as er } from "./function/assert.js";
29
- import { assertParams as mr } from "./function/assertParams.js";
30
- import { attempt as fr } from "./function/attempt.js";
31
- import { compare as ir } from "./function/compare.js";
32
- import { compareBy as ar } from "./function/compareBy.js";
33
- import { compose as _r } from "./function/compose.js";
34
- import { curry as Sr } from "./function/curry.js";
35
- import { debounce as lr } from "./function/debounce.js";
36
- import { delay as Ir } from "./function/delay.js";
37
- import { fp as ur } from "./function/fp.js";
38
- import { memo as Mr } from "./function/memo.js";
39
- import { once as gr } from "./function/once.js";
40
- import { pipe as Nr } from "./function/pipe.js";
41
- import { predict as br } from "./function/predict.js";
42
- import { proxy as kr } from "./function/proxy.js";
43
- import { retry as Tr } from "./function/retry.js";
44
- import { sleep as Ar } from "./function/sleep.js";
45
- import { throttle as Dr } from "./function/throttle.js";
46
- import { worker as Ur } from "./function/worker.js";
47
- import { average as wr } from "./math/average.js";
48
- import { boil as Jr } from "./math/boil.js";
49
- import { clamp as Yr } from "./math/clamp.js";
50
- import { max as Hr } from "./math/max.js";
51
- import { median as Vr } from "./math/median.js";
52
- import { min as zr } from "./math/min.js";
53
- import { range as Xr } from "./math/range.js";
54
- import { rate as ro } from "./math/rate.js";
55
- import { round as eo } from "./math/round.js";
56
- import { sum as mo } from "./math/sum.js";
57
- import { clone as fo } from "./object/clone.js";
58
- import { diff as io } from "./object/diff.js";
59
- import { entries as ao } from "./object/entries.js";
60
- import { keys as _o } from "./object/keys.js";
61
- import { merge as So } from "./object/merge.js";
62
- import { parseJSON as lo } from "./object/parseJSON.js";
63
- import { path as Io } from "./object/path.js";
64
- import { seek as uo } from "./object/seek.js";
65
- import { values as Go } from "./object/values.js";
66
- import { draw as yo } from "./random/draw.js";
67
- import { random as vo } from "./random/random.js";
68
- import { shuffle as ho } from "./random/shuffle.js";
69
- import { uuid as Po } from "./random/uuid.js";
70
- import { camelCase as Co } from "./string/camelCase.js";
71
- import { kebabCase as Bo } from "./string/kebabCase.js";
72
- import { pascalCase as Lo } from "./string/pascalCase.js";
73
- import { similarity as qo } from "./string/similarity.js";
74
- import { snakeCase as Fo } from "./string/snakeCase.js";
75
- import { truncate as Wo } from "./string/truncate.js";
76
- import { ge as jo } from "./typed/ge.js";
77
- import { gt as Qo } from "./typed/gt.js";
78
- import { is as Zo } from "./typed/is.js";
79
- import { IS_ARRAY_ERROR_MSG as Ko, isArray as Xo } from "./typed/isArray.js";
80
- import { isBoolean as re } from "./typed/isBoolean.js";
81
- import { IS_DATE_ERROR_MSG as ee, isDate as te } from "./typed/isDate.js";
82
- import { isDefined as pe } from "./typed/isDefined.js";
83
- import { IS_EMPTY_ERROR_MSG as xe, isEmpty as ie } from "./typed/isEmpty.js";
84
- import { IS_EQUAL_ERROR_MSG as ae, isEqual as Re } from "./typed/isEqual.js";
85
- import { isEven as ne } from "./typed/isEven.js";
86
- import { IS_FUNCTION_ERROR_MSG as ce, isFunction as le } from "./typed/isFunction.js";
87
- import { isNegative as Ie } from "./typed/isNegative.js";
88
- import { IS_NIL_ERROR_MSG as ue, isNil as de } from "./typed/isNil.js";
89
- import { IS_NUMBER_ERROR_MSG as Ge, isNumber as ge } from "./typed/isNumber.js";
90
- import { IS_OBJECT_ERROR_MSG as Ne, isObject as ve } from "./typed/isObject.js";
91
- import { isOdd as he } from "./typed/isOdd.js";
92
- import { isPositive as Pe } from "./typed/isPositive.js";
93
- import { IS_PRIMITIVE_ERROR_MSG as Ce, isPrimitive as Ae } from "./typed/isPrimitive.js";
94
- import { IS_PROMISE_ERROR_MSG as De, isPromise as Le } from "./typed/isPromise.js";
95
- import { isRegex as qe } from "./typed/isRegex.js";
96
- import { IS_STRING_ERROR_MSG as Fe, isString as Je } from "./typed/isString.js";
97
- import { IS_WITHIN_ERROR_MSG as Ye, isWithin as je } from "./typed/isWithin.js";
98
- import { isZero as Qe } from "./typed/isZero.js";
99
- import { le as Ze } from "./typed/le.js";
100
- import { lt as Ke } from "./typed/lt.js";
101
- import { typeOf as $e } from "./typed/typeOf.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
+ 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
- Ko as IS_ARRAY_ERROR_MSG,
104
- ee as IS_DATE_ERROR_MSG,
105
- xe as IS_EMPTY_ERROR_MSG,
106
- ae as IS_EQUAL_ERROR_MSG,
107
- ce as IS_FUNCTION_ERROR_MSG,
108
- ue as IS_NIL_ERROR_MSG,
109
- Ge as IS_NUMBER_ERROR_MSG,
110
- Ne as IS_OBJECT_ERROR_MSG,
111
- Ce as IS_PRIMITIVE_ERROR_MSG,
112
- De as IS_PROMISE_ERROR_MSG,
113
- Fe as IS_STRING_ERROR_MSG,
114
- Ye as IS_WITHIN_ERROR_MSG,
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
- er as assert,
118
- mr as assertParams,
119
- fr as attempt,
120
- wr as average,
121
- Jr as boil,
122
- Co as camelCase,
123
- f as chunk,
124
- Yr as clamp,
125
- fo as clone,
126
- i as compact,
127
- ir as compare,
128
- ar as compareBy,
129
- _r as compose,
130
- a as contains,
131
- Sr as curry,
132
- lr as debounce,
133
- Ir as delay,
134
- io as diff,
135
- yo as draw,
136
- ao as entries,
137
- _ as every,
138
- z as expires,
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
- l as find,
168
+ d as find,
141
169
  I as findIndex,
142
- u as findLast,
143
- M as flatten,
144
- ur as fp,
145
- jo as ge,
146
- g as group,
147
- Qo as gt,
148
- X as interval,
149
- Zo as is,
150
- Xo as isArray,
151
- re as isBoolean,
152
- te as isDate,
153
- pe as isDefined,
154
- ie as isEmpty,
155
- Re as isEqual,
156
- ne as isEven,
157
- le as isFunction,
158
- Ie as isNegative,
159
- de as isNil,
160
- ge as isNumber,
161
- ve as isObject,
162
- he as isOdd,
163
- Pe as isPositive,
164
- Ae as isPrimitive,
165
- Le as isPromise,
166
- qe as isRegex,
167
- Je as isString,
168
- je as isWithin,
169
- Qe as isZero,
170
- Bo as kebabCase,
171
- _o as keys,
172
- Ze as le,
173
- N as list,
174
- Ke as lt,
175
- b as map,
176
- Hr as max,
177
- Vr as median,
178
- Mr as memo,
179
- So as merge,
180
- zr as min,
181
- gr as once,
182
- lo as parseJSON,
183
- Lo as pascalCase,
184
- Io as path,
185
- k as pick,
186
- Nr as pipe,
187
- br as predict,
188
- kr as proxy,
189
- vo as random,
190
- Xr as range,
191
- ro as rate,
192
- T as reduce,
193
- Tr as retry,
194
- eo as round,
195
- A as search,
196
- uo as seek,
197
- D as select,
198
- U as shift,
199
- ho as shuffle,
200
- qo as similarity,
201
- Ar as sleep,
202
- Fo as snakeCase,
203
- w as some,
204
- J as sort,
205
- Y as sortBy,
206
- H as substitute,
207
- mo as sum,
208
- Dr as throttle,
209
- rr as timeDiff,
210
- Wo as truncate,
211
- $e as typeOf,
212
- V as uniq,
213
- Po as uuid,
214
- Go as values,
215
- Ur as worker
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 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,O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,CAChB,EAAE,OAAS,CACb,EAIA,kBAAoB,GAAM,CACxB,EAAE,OAAO,SAAW,CACtB,EAIA,WAAa,GAAM,CACjB,EAAE,QAAU,CACd,EAIA,gBAAkB,GAAM,CACtB,EAAE,YAAc,CAClB,EAIA,cAAgB,GAAM,CACpB,EAAE,UAAY,CAChB,EACA,QAAS,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,I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