@visulima/pail 2.1.3 → 2.1.5

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 (90) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE.md +35 -35
  3. package/dist/index.browser.cjs +1 -1
  4. package/dist/index.browser.d.cts +3 -3
  5. package/dist/index.browser.d.mts +3 -3
  6. package/dist/index.browser.d.ts +3 -3
  7. package/dist/index.browser.mjs +1 -1
  8. package/dist/index.server.cjs +4 -4
  9. package/dist/index.server.d.cts +3 -3
  10. package/dist/index.server.d.mts +3 -3
  11. package/dist/index.server.d.ts +3 -3
  12. package/dist/index.server.mjs +4 -4
  13. package/dist/processor.browser.cjs +1 -1
  14. package/dist/processor.browser.d.cts +1 -1
  15. package/dist/processor.browser.d.mts +1 -1
  16. package/dist/processor.browser.d.ts +1 -1
  17. package/dist/processor.browser.mjs +1 -1
  18. package/dist/processor.server.cjs +1 -1
  19. package/dist/processor.server.d.cts +1 -1
  20. package/dist/processor.server.d.mts +1 -1
  21. package/dist/processor.server.d.ts +1 -1
  22. package/dist/processor.server.mjs +1 -1
  23. package/dist/reporter.browser.cjs +1 -5
  24. package/dist/reporter.browser.d.cts +2 -2
  25. package/dist/reporter.browser.d.mts +2 -2
  26. package/dist/reporter.browser.d.ts +2 -2
  27. package/dist/reporter.browser.mjs +1 -5
  28. package/dist/reporter.server.cjs +1 -13
  29. package/dist/reporter.server.d.cts +2 -2
  30. package/dist/reporter.server.d.mts +2 -2
  31. package/dist/reporter.server.d.ts +2 -2
  32. package/dist/reporter.server.mjs +1 -21
  33. package/dist/shared/CallerProcessor-D_s5ROBz.cjs +1 -0
  34. package/dist/shared/CallerProcessor-J88C1dmW.mjs +1 -0
  35. package/dist/shared/JsonFileReporter-CMXak2Df.cjs +2 -0
  36. package/dist/shared/JsonFileReporter-DtB8t5gN.mjs +4 -0
  37. package/dist/shared/JsonReporter-Bk9Kz_71.mjs +2 -0
  38. package/dist/shared/JsonReporter-DnAmJFFq.cjs +1 -0
  39. package/dist/shared/JsonReporter-LiqNJsVA.cjs +2 -0
  40. package/dist/shared/JsonReporter-lK2QQvDy.mjs +1 -0
  41. package/dist/shared/MessageFormatterProcessor-B7I6pajc.mjs +1 -0
  42. package/dist/shared/MessageFormatterProcessor-CkFZxc3_.cjs +1 -0
  43. package/dist/shared/PrettyReporter-BSjUlCUF.cjs +5 -0
  44. package/dist/shared/PrettyReporter-BqWOG8Uu.mjs +13 -0
  45. package/dist/shared/PrettyReporter-DgJa7P23.cjs +13 -0
  46. package/dist/shared/PrettyReporter-ZJDqqbAw.mjs +5 -0
  47. package/dist/shared/RedactProcessor-0DHFdHI9.mjs +3 -0
  48. package/dist/shared/RedactProcessor-D8o1iuQT.cjs +1 -0
  49. package/dist/shared/SimpleReporter-BLkHsEAo.mjs +11 -0
  50. package/dist/shared/SimpleReporter-rMcYaUVZ.cjs +11 -0
  51. package/dist/shared/abstract-json-reporter-29d4dwOH.mjs +1 -0
  52. package/dist/shared/abstract-json-reporter-CjTo97r_.cjs +1 -0
  53. package/dist/shared/abstract-pretty-reporter-B14XYOWC.cjs +1 -0
  54. package/dist/shared/{pail.5D809X_A.d.cts → abstract-pretty-reporter-BCpBhS2D.d.mts} +1 -1
  55. package/dist/shared/{pail.B3zJX3TP.d.mts → abstract-pretty-reporter-Che3NKVZ.d.cts} +1 -1
  56. package/dist/shared/abstract-pretty-reporter-DgXRHEj-.mjs +1 -0
  57. package/dist/shared/{pail.COeqT45B.d.ts → abstract-pretty-reporter-DxDw4w0Q.d.mjs} +1 -1
  58. package/dist/shared/constants-BBH2bwRB.cjs +1 -0
  59. package/dist/shared/constants-BMS51p6Y.mjs +1 -0
  60. package/dist/shared/format-label-CAW3vDTf.mjs +8 -0
  61. package/dist/shared/format-label-D6ofFldh.cjs +8 -0
  62. package/dist/shared/get-longest-label-4ISUsE2q.mjs +1 -0
  63. package/dist/shared/get-longest-label-DXpzhu5N.cjs +1 -0
  64. package/dist/shared/{pail.Bn2Vxj-9.d.cts → pail.browser-1JCCULUv.d.mts} +1 -1
  65. package/dist/shared/{pail.Bk25qk8U.mjs → pail.browser-BDLzjsVP.mjs} +1 -1
  66. package/dist/shared/{pail.D6DRfVG8.d.ts → pail.browser-Bs5ZMog_.d.mjs} +1 -1
  67. package/dist/shared/{pail.CSVyVF2j.d.mts → pail.browser-CXLF6yMo.d.cts} +1 -1
  68. package/dist/shared/{pail.CqyBdtm7.cjs → pail.browser-i0kgt9fE.cjs} +1 -1
  69. package/dist/shared/write-stream-Bgxqp0HI.cjs +1 -0
  70. package/dist/shared/write-stream-C17GXSxA.mjs +1 -0
  71. package/package.json +10 -10
  72. package/dist/shared/pail.BhNeTL0H.cjs +0 -1
  73. package/dist/shared/pail.Bj_SDK4w.mjs +0 -1
  74. package/dist/shared/pail.BjvkVeLq.cjs +0 -1
  75. package/dist/shared/pail.BtheZKQt.cjs +0 -1
  76. package/dist/shared/pail.C1VNf0a-.mjs +0 -1
  77. package/dist/shared/pail.C2dcjpQV.mjs +0 -20
  78. package/dist/shared/pail.CeGWBihI.mjs +0 -1
  79. package/dist/shared/pail.DacemLQD.mjs +0 -1
  80. package/dist/shared/pail.DumOHFo9.cjs +0 -1
  81. package/dist/shared/pail.DzwLG-N9.mjs +0 -1
  82. package/dist/shared/pail._czpAR0Z.mjs +0 -9
  83. package/dist/shared/pail.akgEzola.cjs +0 -20
  84. package/dist/shared/pail.rUW_oLpx.cjs +0 -1
  85. package/dist/shared/pail.zsOZqsvh.cjs +0 -1
  86. /package/dist/shared/{pail.BGWAKixQ.d.cts → types-BGWAKixQ.d.cts} +0 -0
  87. /package/dist/shared/{pail.BGWAKixQ.d.mts → types-BGWAKixQ.d.mjs} +0 -0
  88. /package/dist/shared/{pail.BGWAKixQ.d.ts → types-BGWAKixQ.d.mts} +0 -0
  89. /package/dist/shared/{pail.3G15muTS.cjs → write-console-log-3G15muTS.cjs} +0 -0
  90. /package/dist/shared/{pail.BP95fgQZ.mjs → write-console-log-BP95fgQZ.mjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,36 @@
1
+ ## @visulima/pail [2.1.5](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.4...@visulima/pail@2.1.5) (2024-08-30)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **pail:** update safe-stable-stringify package to version 2.5.0 ([e463964](https://github.com/visulima/visulima/commit/e4639641231b73f3928cbef1753017b532378389))
6
+
7
+ ### Styles
8
+
9
+ * **pail:** cs fix ([06b3af0](https://github.com/visulima/visulima/commit/06b3af06029421be64130ce591344a659f111275))
10
+
11
+ ### Miscellaneous Chores
12
+
13
+ * updated dev dependencies ([45c2a76](https://github.com/visulima/visulima/commit/45c2a76bc974ecb2c6b172c3af03373d4cc6a5ce))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * **@visulima/colorize:** upgraded to 1.4.6
19
+ * **@visulima/error:** upgraded to 4.4.1
20
+ * **@visulima/inspector:** upgraded to 1.0.6
21
+ * **@visulima/redact:** upgraded to 1.0.4
22
+
23
+ ## @visulima/pail [2.1.4](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.3...@visulima/pail@2.1.4) (2024-08-08)
24
+
25
+ ### Miscellaneous Chores
26
+
27
+ * updated dev dependencies ([da46d8e](https://github.com/visulima/visulima/commit/da46d8ef8a964c086060944172f1bd931b7bde9a))
28
+
29
+
30
+ ### Dependencies
31
+
32
+ * **@visulima/error:** upgraded to 4.4.0
33
+
1
34
  ## @visulima/pail [2.1.3](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.2...@visulima/pail@2.1.3) (2024-08-04)
2
35
 
3
36
 
package/LICENSE.md CHANGED
@@ -33,13 +33,13 @@ By: Sindre Sorhus
33
33
  Repository: chalk/ansi-regex
34
34
 
35
35
  > MIT License
36
- >
36
+ >
37
37
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
38
- >
38
+ >
39
39
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
40
- >
40
+ >
41
41
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
42
- >
42
+ >
43
43
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44
44
 
45
45
  ---------------------------------------
@@ -50,13 +50,13 @@ By: Sindre Sorhus
50
50
  Repository: chalk/ansi-styles
51
51
 
52
52
  > MIT License
53
- >
53
+ >
54
54
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
55
- >
55
+ >
56
56
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
57
- >
57
+ >
58
58
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
59
- >
59
+ >
60
60
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
61
61
 
62
62
  ---------------------------------------
@@ -67,7 +67,7 @@ By: Mathias Bynens
67
67
  Repository: https://github.com/mathiasbynens/emoji-regex.git
68
68
 
69
69
  > Copyright Mathias Bynens <https://mathiasbynens.be/>
70
- >
70
+ >
71
71
  > Permission is hereby granted, free of charge, to any person obtaining
72
72
  > a copy of this software and associated documentation files (the
73
73
  > "Software"), to deal in the Software without restriction, including
@@ -75,10 +75,10 @@ Repository: https://github.com/mathiasbynens/emoji-regex.git
75
75
  > distribute, sublicense, and/or sell copies of the Software, and to
76
76
  > permit persons to whom the Software is furnished to do so, subject to
77
77
  > the following conditions:
78
- >
78
+ >
79
79
  > The above copyright notice and this permission notice shall be
80
80
  > included in all copies or substantial portions of the Software.
81
- >
81
+ >
82
82
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
83
83
  > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
84
84
  > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@@ -95,13 +95,13 @@ By: Sindre Sorhus
95
95
  Repository: sindresorhus/get-east-asian-width
96
96
 
97
97
  > MIT License
98
- >
98
+ >
99
99
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
100
- >
100
+ >
101
101
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
102
- >
102
+ >
103
103
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
104
- >
104
+ >
105
105
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
106
106
 
107
107
  ---------------------------------------
@@ -112,13 +112,13 @@ By: Sindre Sorhus
112
112
  Repository: sindresorhus/string-length
113
113
 
114
114
  > MIT License
115
- >
115
+ >
116
116
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
117
- >
117
+ >
118
118
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
119
- >
119
+ >
120
120
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
121
- >
121
+ >
122
122
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
123
123
 
124
124
  ---------------------------------------
@@ -129,13 +129,13 @@ By: Sindre Sorhus
129
129
  Repository: sindresorhus/string-width
130
130
 
131
131
  > MIT License
132
- >
132
+ >
133
133
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
134
- >
134
+ >
135
135
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
136
- >
136
+ >
137
137
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
138
- >
138
+ >
139
139
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
140
140
 
141
141
  ---------------------------------------
@@ -146,13 +146,13 @@ By: Sindre Sorhus
146
146
  Repository: chalk/strip-ansi
147
147
 
148
148
  > MIT License
149
- >
149
+ >
150
150
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
151
- >
151
+ >
152
152
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
153
- >
153
+ >
154
154
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
155
- >
155
+ >
156
156
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
157
157
 
158
158
  ---------------------------------------
@@ -163,13 +163,13 @@ By: Sindre Sorhus
163
163
  Repository: sindresorhus/terminal-size
164
164
 
165
165
  > MIT License
166
- >
166
+ >
167
167
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
168
- >
168
+ >
169
169
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
170
- >
170
+ >
171
171
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
172
- >
172
+ >
173
173
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
174
174
 
175
175
  ---------------------------------------
@@ -180,13 +180,13 @@ By: Sindre Sorhus
180
180
  Repository: chalk/wrap-ansi
181
181
 
182
182
  > MIT License
183
- >
183
+ >
184
184
  > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
185
- >
185
+ >
186
186
  > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
187
- >
187
+ >
188
188
  > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
189
- >
189
+ >
190
190
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
191
191
 
192
192
  <!-- DEPENDENCIES -->
@@ -1 +1 @@
1
- "use strict";var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./shared/pail.CqyBdtm7.cjs"),i=require("./shared/pail.rUW_oLpx.cjs"),c=require("./shared/pail.BhNeTL0H.cjs");var n=Object.defineProperty,l=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"e");const a=l(e=>new s.PailBrowser({processors:[new i.L],reporters:[new c.i],...e}),"createPail"),u=a();exports.createPail=a;exports.pail=u;
1
+ "use strict";var a=Object.defineProperty;var o=(e,r)=>a(e,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./shared/pail.browser-i0kgt9fE.cjs"),i=require("./shared/MessageFormatterProcessor-CkFZxc3_.cjs"),c=require("./shared/JsonReporter-DnAmJFFq.cjs");var n=Object.defineProperty,l=o((e,r)=>n(e,"name",{value:r,configurable:!0}),"e");const t=l(e=>new s.PailBrowser({processors:[new i.p],reporters:[new c.p],...e}),"createPail"),p=t();exports.createPail=t;exports.pail=p;
@@ -1,6 +1,6 @@
1
- import { P as PailBrowserType } from './shared/pail.Bn2Vxj-9.cjs';
2
- import { C as ConstructorOptions } from './shared/pail.BGWAKixQ.cjs';
3
- export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.cjs';
1
+ import { P as PailBrowserType } from './shared/pail.browser-CXLF6yMo.cjs';
2
+ import { C as ConstructorOptions } from './shared/types-BGWAKixQ.cjs';
3
+ export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/types-BGWAKixQ.cjs';
4
4
  import 'safe-stable-stringify';
5
5
  import '@visulima/colorize';
6
6
 
@@ -1,6 +1,6 @@
1
- import { P as PailBrowserType } from './shared/pail.CSVyVF2j.mjs';
2
- import { C as ConstructorOptions } from './shared/pail.BGWAKixQ.mjs';
3
- export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.mjs';
1
+ import { P as PailBrowserType } from './shared/pail.browser-1JCCULUv.mjs';
2
+ import { C as ConstructorOptions } from './shared/types-BGWAKixQ.mjs';
3
+ export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/types-BGWAKixQ.mjs';
4
4
  import 'safe-stable-stringify';
5
5
  import '@visulima/colorize';
6
6
 
@@ -1,6 +1,6 @@
1
- import { P as PailBrowserType } from './shared/pail.D6DRfVG8.js';
2
- import { C as ConstructorOptions } from './shared/pail.BGWAKixQ.js';
3
- export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.js';
1
+ import { P as PailBrowserType } from './shared/pail.browser-Bs5ZMog_.d.mjs';
2
+ import { C as ConstructorOptions } from './shared/types-BGWAKixQ.d.mjs';
3
+ export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './shared/types-BGWAKixQ.d.mjs';
4
4
  import 'safe-stable-stringify';
5
5
  import '@visulima/colorize';
6
6
 
@@ -1 +1 @@
1
- var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{P as t}from"./shared/pail.Bk25qk8U.mjs";import{L as i}from"./shared/pail.Bj_SDK4w.mjs";import{i as p}from"./shared/pail.DacemLQD.mjs";var m=Object.defineProperty,n=o((r,e)=>m(r,"name",{value:e,configurable:!0}),"e");const s=n(r=>new t({processors:[new i],reporters:[new p],...r}),"createPail"),w=s();export{s as createPail,w as pail};
1
+ var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{P as p}from"./shared/pail.browser-BDLzjsVP.mjs";import{p as t}from"./shared/MessageFormatterProcessor-B7I6pajc.mjs";import{p as i}from"./shared/JsonReporter-lK2QQvDy.mjs";var s=Object.defineProperty,m=o((r,e)=>s(r,"name",{value:e,configurable:!0}),"e");const n=m(r=>new p({processors:[new t],reporters:[new i],...r}),"createPail"),w=n();export{n as createPail,w as pail};
@@ -1,5 +1,5 @@
1
- "use strict";var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("node:process"),v=require("./shared/pail.akgEzola.cjs"),I=require("node:string_decoder"),P=require("./shared/pail.CqyBdtm7.cjs"),w=require("@visulima/inspector"),$=require("./shared/pail.BjvkVeLq.cjs"),j=require("./shared/pail.rUW_oLpx.cjs");var M=Object.defineProperty,O=n((r,t)=>M(r,"name",{value:t,configurable:!0}),"l$1");let R=class{static{n(this,"v")}static{O(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=v.terminalSize(),u=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-u,d=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,v.wrapAnsi(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),u<d&&(o=o.slice(d-u+1))):l&&a.erase(l),a.write(o.join(`
1
+ "use strict";var P=Object.defineProperty;var n=(r,t)=>P(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("node:process"),w=require("./shared/format-label-D6ofFldh.cjs"),E=require("node:string_decoder"),I=require("./shared/pail.browser-i0kgt9fE.cjs"),f=require("@visulima/inspector"),$=require("./shared/constants-BBH2bwRB.cjs"),M=require("./shared/write-stream-Bgxqp0HI.cjs"),j=require("./shared/MessageFormatterProcessor-CkFZxc3_.cjs"),O=require("./shared/PrettyReporter-DgJa7P23.cjs");var R=Object.defineProperty,A=n((r,t)=>R(r,"name",{value:t,configurable:!0}),"l$1");let q=class{static{n(this,"v")}static{A(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=w.terminalSize(),u=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-u,d=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,w.wrapAnsi(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),u<d&&(o=o.slice(d-u+1))):l&&a.erase(l),a.write(o.join(`
2
2
  `)+`
3
- `),this.#s=d?d+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var A=Object.defineProperty,y=n((r,t)=>A(r,"name",{value:t,configurable:!0}),"n$1");const c="\x1B[",f=c+"2J",T=c+"2K",x=c+"G",N=y((r=1)=>c+r+"A","cursorUp"),m=process.platform==="win32"?`${f}${c}0f`:`${f}${c}3J${c}H`,q=c+"?25l",D=c+"?25h",B=y(r=>{let t="";for(let e=0;e<r;e++)t+=T+(e<r-1?N():"");return r&&(t+=x),t},"eraseLines");var k=Object.defineProperty,G=n((r,t)=>k(r,"name",{value:t,configurable:!0}),"s$1");class g{static{n(this,"t")}static{G(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new I.StringDecoder;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(q),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),g.DRAIN}}erase(t){t>0&&this.write(B(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
4
- `),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(D)}write(t){this.#r.apply(this.#s,[t])}}var H=Object.defineProperty,V=n((r,t)=>H(r,"name",{value:t,configurable:!0}),"c");let Y=class{static{n(this,"v")}static{V(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=h.stdout,this.#e=h.stderr,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==$.EMPTY_SYMBOL){const o=typeof a=="string"?a:w.inspect(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+w.inspect(o,this.#i):" "+o));const u=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=u==="stderr"?this.#e:this.#t,d=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(u,(d+i.join("")).split(`
5
- `),0):v.n(d+i.join(""),l)}};var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"a$1");class U extends P.PailBrowserImpl{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...u}=t;super(u),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new R(new g(this.stdout),new g(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new Y)}static{J(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(m),this.stderr.write(m)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const z=U;var F=Object.defineProperty,S=n((r,t)=>F(r,"name",{value:t,configurable:!0}),"o");const K=S(()=>h.env.NODE_ENV==="debug"||h.env.DEBUG!==void 0?"debug":h.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),_=S(r=>{let t=K();return h.env.PAIL_LOG_LEVEL!==void 0&&(t=h.env.PAIL_LOG_LEVEL),new z({logLevel:t,processors:[new j.L],reporters:[new v.PrettyReporter],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),W=_();exports.createPail=_;exports.pail=W;
3
+ `),this.#s=d?d+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var T=Object.defineProperty,y=n((r,t)=>T(r,"name",{value:t,configurable:!0}),"n$1");const c="\x1B[",g=c+"2J",x=c+"2K",N=c+"G",D=y((r=1)=>c+r+"A","cursorUp"),m=process.platform==="win32"?`${g}${c}0f`:`${g}${c}3J${c}H`,B=c+"?25l",k=c+"?25h",G=y(r=>{let t="";for(let e=0;e<r;e++)t+=x+(e<r-1?D():"");return r&&(t+=N),t},"eraseLines");var H=Object.defineProperty,V=n((r,t)=>H(r,"name",{value:t,configurable:!0}),"s$1");class v{static{n(this,"t")}static{V(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new E.StringDecoder;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(B),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),v.DRAIN}}erase(t){t>0&&this.write(G(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
4
+ `),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(k)}write(t){this.#r.apply(this.#s,[t])}}var Y=Object.defineProperty,C=n((r,t)=>Y(r,"name",{value:t,configurable:!0}),"c");let J=class{static{n(this,"v")}static{C(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=h.stdout,this.#e=h.stderr,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==$.EMPTY_SYMBOL){const o=typeof a=="string"?a:f.inspect(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+f.inspect(o,this.#i):" "+o));const u=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=u==="stderr"?this.#e:this.#t,d=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(u,(d+i.join("")).split(`
5
+ `),0):M.n(d+i.join(""),l)}};var U=Object.defineProperty,z=n((r,t)=>U(r,"name",{value:t,configurable:!0}),"a$1");class F extends I.PailBrowserImpl{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...u}=t;super(u),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new q(new v(this.stdout),new v(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new J)}static{z(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(m),this.stderr.write(m)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const K=F;var W=Object.defineProperty,S=n((r,t)=>W(r,"name",{value:t,configurable:!0}),"o");const Q=S(()=>h.env.NODE_ENV==="debug"||h.env.DEBUG!==void 0?"debug":h.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),_=S(r=>{let t=Q();return h.env.PAIL_LOG_LEVEL!==void 0&&(t=h.env.PAIL_LOG_LEVEL),new K({logLevel:t,processors:[new j.p],reporters:[new O.PrettyReporter],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),X=_();exports.createPail=_;exports.pail=X;
@@ -1,6 +1,6 @@
1
- import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.BGWAKixQ.cjs';
2
- export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.cjs';
3
- import { a as PailBrowserImpl } from './shared/pail.Bn2Vxj-9.cjs';
1
+ import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/types-BGWAKixQ.cjs';
2
+ export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/types-BGWAKixQ.cjs';
3
+ import { a as PailBrowserImpl } from './shared/pail.browser-CXLF6yMo.cjs';
4
4
  import '@visulima/colorize';
5
5
  import 'safe-stable-stringify';
6
6
 
@@ -1,6 +1,6 @@
1
- import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.BGWAKixQ.mjs';
2
- export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.mjs';
3
- import { a as PailBrowserImpl } from './shared/pail.CSVyVF2j.mjs';
1
+ import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/types-BGWAKixQ.mjs';
2
+ export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/types-BGWAKixQ.mjs';
3
+ import { a as PailBrowserImpl } from './shared/pail.browser-1JCCULUv.mjs';
4
4
  import '@visulima/colorize';
5
5
  import 'safe-stable-stringify';
6
6
 
@@ -1,6 +1,6 @@
1
- import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.BGWAKixQ.js';
2
- export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/pail.BGWAKixQ.js';
3
- import { a as PailBrowserImpl } from './shared/pail.D6DRfVG8.js';
1
+ import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/types-BGWAKixQ.d.mjs';
2
+ export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './shared/types-BGWAKixQ.d.mjs';
3
+ import { a as PailBrowserImpl } from './shared/pail.browser-Bs5ZMog_.d.mjs';
4
4
  import '@visulima/colorize';
5
5
  import 'safe-stable-stringify';
6
6
 
@@ -1,5 +1,5 @@
1
- var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});import{stdout as m,stderr as y,env as d}from"node:process";import{t as I,w as $,n as P,P as j}from"./shared/pail.C2dcjpQV.mjs";import{StringDecoder as M}from"node:string_decoder";import{a as O}from"./shared/pail.Bk25qk8U.mjs";import{inspect as f}from"@visulima/inspector";import{E as R}from"./shared/pail.C1VNf0a-.mjs";import{L as A}from"./shared/pail.Bj_SDK4w.mjs";var x=Object.defineProperty,N=n((r,t)=>x(r,"name",{value:t,configurable:!0}),"l$1");let T=class{static{n(this,"v")}static{N(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=I(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-c,u=Math.max(l-i,this.outside);let o=e.reduce((b,L)=>[...b,$(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),c<u&&(o=o.slice(u-c+1))):l&&a.erase(l),a.write(o.join(`
1
+ var L=Object.defineProperty;var n=(r,t)=>L(r,"name",{value:t,configurable:!0});import{stdout as m,stderr as y,env as d}from"node:process";import{t as I,w as $}from"./shared/format-label-CAW3vDTf.mjs";import{StringDecoder as P}from"node:string_decoder";import{a as j}from"./shared/pail.browser-BDLzjsVP.mjs";import{inspect as v}from"@visulima/inspector";import{E as M}from"./shared/constants-BMS51p6Y.mjs";import{n as O}from"./shared/write-stream-C17GXSxA.mjs";import{p as R}from"./shared/MessageFormatterProcessor-B7I6pajc.mjs";import{P as A}from"./shared/PrettyReporter-BqWOG8Uu.mjs";var x=Object.defineProperty,N=n((r,t)=>x(r,"name",{value:t,configurable:!0}),"l$1");let T=class{static{n(this,"v")}static{N(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:u,rows:i}=I(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),l=this.lastLength-c,p=Math.max(l-i,this.outside);let o=e.reduce((b,E)=>[...b,$(E,u,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(a.erase(i),c<p&&(o=o.slice(p-c+1))):l&&a.erase(l),a.write(o.join(`
2
2
  `)+`
3
- `),this.#s=u?u+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var D=Object.defineProperty,S=n((r,t)=>D(r,"name",{value:t,configurable:!0}),"n$1");const h="\x1B[",w=h+"2J",B=h+"2K",k=h+"G",G=S((r=1)=>h+r+"A","cursorUp"),g=process.platform==="win32"?`${w}${h}0f`:`${w}${h}3J${h}H`,H=h+"?25l",V=h+"?25h",Y=S(r=>{let t="";for(let e=0;e<r;e++)t+=B+(e<r-1?G():"");return r&&(t+=k),t},"eraseLines");var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"s$1");class v{static{n(this,"t")}static{J(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new M;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(H),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),v.DRAIN}}erase(t){t>0&&this.write(Y(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
4
- `),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(V)}write(t){this.#r.apply(this.#s,[t])}}var U=Object.defineProperty,z=n((r,t)=>U(r,"name",{value:t,configurable:!0}),"c");let K=class{static{n(this,"v")}static{z(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=m,this.#e=y,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==R){const o=typeof a=="string"?a:f(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+f(o,this.#i):" "+o));const c=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=c==="stderr"?this.#e:this.#t,u=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(c,(u+i.join("")).split(`
5
- `),0):P(u+i.join(""),l)}};var W=Object.defineProperty,q=n((r,t)=>W(r,"name",{value:t,configurable:!0}),"a$1");class F extends O{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...c}=t;super(c),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new T(new v(this.stdout),new v(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new K)}static{q(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(g),this.stderr.write(g)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Q=F;var X=Object.defineProperty,_=n((r,t)=>X(r,"name",{value:t,configurable:!0}),"o");const Z=_(()=>d.NODE_ENV==="debug"||d.DEBUG!==void 0?"debug":d.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),tt=_(r=>{let t=Z();return d.PAIL_LOG_LEVEL!==void 0&&(t=d.PAIL_LOG_LEVEL),new Q({logLevel:t,processors:[new A],reporters:[new j],stderr:y,stdout:m,...r})},"createPail"),ut=tt();export{tt as createPail,ut as pail};
3
+ `),this.#s=p?p+o.length+1:o.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var D=Object.defineProperty,S=n((r,t)=>D(r,"name",{value:t,configurable:!0}),"n$1");const h="\x1B[",w=h+"2J",B=h+"2K",k=h+"G",G=S((r=1)=>h+r+"A","cursorUp"),g=process.platform==="win32"?`${w}${h}0f`:`${w}${h}3J${h}H`,H=h+"?25l",V=h+"?25h",Y=S(r=>{let t="";for(let e=0;e<r;e++)t+=B+(e<r-1?G():"");return r&&(t+=k),t},"eraseLines");var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"s$1");class f{static{n(this,"t")}static{J(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new P;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(H),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),f.DRAIN}}erase(t){t>0&&this.write(Y(t+1))}inactive(t=!1){this.#e.length>0&&(t&&this.write(`
4
+ `),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(V)}write(t){this.#r.apply(this.#s,[t])}}var U=Object.defineProperty,z=n((r,t)=>U(r,"name",{value:t,configurable:!0}),"c");let K=class{static{n(this,"v")}static{z(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=m,this.#e=y,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:u}=t,i=[];if(a!==M){const o=typeof a=="string"?a:v(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+v(o,this.#i):" "+o));const c=["error","trace","warn"].includes(u.level)?"stderr":"stdout",l=c==="stderr"?this.#e:this.#t,p=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(c,(p+i.join("")).split(`
5
+ `),0):O(p+i.join(""),l)}};var W=Object.defineProperty,q=n((r,t)=>W(r,"name",{value:t,configurable:!0}),"a$1");class F extends j{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:u,stdout:i,...c}=t;super(c),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=u,this.interactive&&(this.interactiveManager=new T(new f(this.stdout),new f(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new K)}static{q(this,"PailServerImpl")}stdout;stderr;interactiveManager;interactive;scope(...t){if(t.length===0)throw new Error("No scope name was defined.");return this.scopeName=t.flat(),this}getInteractiveManager(){return this.interactiveManager}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}clear(){this.stdout.write(g),this.stderr.write(g)}extendReporter(t){return typeof t.setStdout=="function"&&t.setStdout(this.stdout),typeof t.setStderr=="function"&&t.setStderr(this.stderr),typeof t.setLoggerTypes=="function"&&t.setLoggerTypes(this.types),typeof t.setStringify=="function"&&t.setStringify(this.stringify),typeof t.setIsInteractive=="function"&&t.setIsInteractive(this.interactive),this.interactive&&typeof t.setInteractiveManager=="function"&&t.setInteractiveManager(this.interactiveManager),t}_wrapStream(t,e){t&&(t.__write||(t.__write=t.write),t.write=s=>{this[e].log(String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Q=F;var X=Object.defineProperty,_=n((r,t)=>X(r,"name",{value:t,configurable:!0}),"o");const Z=_(()=>d.NODE_ENV==="debug"||d.DEBUG!==void 0?"debug":d.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),tt=_(r=>{let t=Z();return d.PAIL_LOG_LEVEL!==void 0&&(t=d.PAIL_LOG_LEVEL),new Q({logLevel:t,processors:[new R],reporters:[new A],stderr:y,stdout:m,...r})},"createPail"),dt=tt();export{tt as createPail,dt as pail};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/pail.rUW_oLpx.cjs"),r=require("./shared/pail.zsOZqsvh.cjs");exports.MessageFormatterProcessor=e.L;exports.RedactProcessor=r.n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/MessageFormatterProcessor-CkFZxc3_.cjs"),r=require("./shared/RedactProcessor-D8o1iuQT.cjs");exports.MessageFormatterProcessor=e.p;exports.RedactProcessor=r.n;
@@ -1,5 +1,5 @@
1
1
  import { FormatterFunction } from '@visulima/fmt';
2
- import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.BGWAKixQ.cjs';
2
+ import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/types-BGWAKixQ.cjs';
3
3
  import { Rules, RedactOptions } from '@visulima/redact';
4
4
  import '@visulima/colorize';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { FormatterFunction } from '@visulima/fmt';
2
- import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.BGWAKixQ.mjs';
2
+ import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/types-BGWAKixQ.mjs';
3
3
  import { Rules, RedactOptions } from '@visulima/redact';
4
4
  import '@visulima/colorize';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { FormatterFunction } from '@visulima/fmt';
2
- import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/pail.BGWAKixQ.js';
2
+ import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './shared/types-BGWAKixQ.d.mjs';
3
3
  import { Rules, RedactOptions } from '@visulima/redact';
4
4
  import '@visulima/colorize';
5
5
 
@@ -1 +1 @@
1
- import{L as e}from"./shared/pail.Bj_SDK4w.mjs";import{n as a}from"./shared/pail._czpAR0Z.mjs";export{e as MessageFormatterProcessor,a as RedactProcessor};
1
+ import{p as e}from"./shared/MessageFormatterProcessor-B7I6pajc.mjs";import{n as a}from"./shared/RedactProcessor-0DHFdHI9.mjs";export{e as MessageFormatterProcessor,a as RedactProcessor};
@@ -1 +1 @@
1
- "use strict";var n=Object.defineProperty;var l=(a,e)=>n(a,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./shared/pail.rUW_oLpx.cjs"),i=require("./shared/pail.zsOZqsvh.cjs");var m=Object.defineProperty,u=l((a,e)=>m(a,"name",{value:e,configurable:!0}),"u");const N=u(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(t,r)=>{const c=r.slice(1);return e=c,c},new Error().stack;const o=e.reduce((t,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||t.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),t),[])[0];return o?{columnNumber:o.columnNumber??void 0,fileName:o.fileName,lineNumber:o.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var b=Object.defineProperty,d=l((a,e)=>b(a,"name",{value:e,configurable:!0}),"r");class f{static{l(this,"a")}static{d(this,"CallerProcessor")}process(e){const{columnNumber:o,fileName:t,lineNumber:r}=N();return e.file={column:o,line:r,name:t},e}}const p=f;exports.MessageFormatterProcessor=s.L;exports.RedactProcessor=i.n;exports.CallerProcessor=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/CallerProcessor-D_s5ROBz.cjs"),r=require("./shared/MessageFormatterProcessor-CkFZxc3_.cjs"),o=require("./shared/RedactProcessor-D8o1iuQT.cjs");exports.CallerProcessor=e.a;exports.MessageFormatterProcessor=r.p;exports.RedactProcessor=o.n;
@@ -1,4 +1,4 @@
1
- import { P as Processor, M as Meta } from './shared/pail.BGWAKixQ.cjs';
1
+ import { P as Processor, M as Meta } from './shared/types-BGWAKixQ.cjs';
2
2
  export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.cjs';
3
3
  import '@visulima/colorize';
4
4
  import '@visulima/fmt';
@@ -1,4 +1,4 @@
1
- import { P as Processor, M as Meta } from './shared/pail.BGWAKixQ.mjs';
1
+ import { P as Processor, M as Meta } from './shared/types-BGWAKixQ.mjs';
2
2
  export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.mjs';
3
3
  import '@visulima/colorize';
4
4
  import '@visulima/fmt';
@@ -1,4 +1,4 @@
1
- import { P as Processor, M as Meta } from './shared/pail.BGWAKixQ.js';
1
+ import { P as Processor, M as Meta } from './shared/types-BGWAKixQ.d.mjs';
2
2
  export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.js';
3
3
  import '@visulima/colorize';
4
4
  import '@visulima/fmt';
@@ -1 +1 @@
1
- var i=Object.defineProperty;var n=(a,e)=>i(a,"name",{value:e,configurable:!0});import{L as g}from"./shared/pail.Bj_SDK4w.mjs";import{n as y}from"./shared/pail._czpAR0Z.mjs";var m=Object.defineProperty,c=n((a,e)=>m(a,"name",{value:e,configurable:!0}),"u");const s=c(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(o,r)=>{const t=r.slice(1);return e=t,t},new Error().stack;const l=e.reduce((o,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||o.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),o),[])[0];return l?{columnNumber:l.columnNumber??void 0,fileName:l.fileName,lineNumber:l.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=a}},"getCallerFilename");var u=Object.defineProperty,N=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"r");class b{static{n(this,"a")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:l,fileName:o,lineNumber:r}=s();return e.file={column:l,line:r,name:o},e}}const f=b;export{f as CallerProcessor,g as MessageFormatterProcessor,y as RedactProcessor};
1
+ import{a as e}from"./shared/CallerProcessor-J88C1dmW.mjs";import{p as a}from"./shared/MessageFormatterProcessor-B7I6pajc.mjs";import{n as c}from"./shared/RedactProcessor-0DHFdHI9.mjs";export{e as CallerProcessor,a as MessageFormatterProcessor,c as RedactProcessor};
@@ -1,5 +1 @@
1
- "use strict";var S=Object.defineProperty;var f=(n,l)=>S(n,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./shared/pail.BhNeTL0H.cjs"),o=require("@visulima/colorize/browser"),i=require("@visulima/fmt"),q=require("./shared/pail.BjvkVeLq.cjs"),v=require("./shared/pail.BtheZKQt.cjs"),Y=require("./shared/pail.3G15muTS.cjs"),C=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),O=C(o);var D=Object.defineProperty,k=f((n,l)=>D(n,"name",{value:l,configurable:!0}),"A");class B extends v.AbstractPrettyReporter{static{f(this,"Y")}static{k(this,"PrettyReporter")}constructor(l={}){super({uppercase:{label:!0,...l.uppercase},...l})}log(l){const t=typeof window<"u"&&typeof window.document<"u",_=Y.t(l.type.level),{badge:w,context:x,date:u,error:A,groups:g,label:y,message:P,prefix:d,repeated:h,scope:a,suffix:m,type:T}=l,{color:L}=this._loggerTypes[T.name],R=L?O[L]:o.white,s=[];if(t&&g.length>0){const e=g.map(()=>" ").join(""),r=o.grey("["+g.at(-1)+"]");s.push(i.format(e+r[0],r.slice(1)))}if(u){const e=o.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(w){const e=R(w);t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=v.s(this._loggerTypes);if(e.length>0){const r=o.grey(".".repeat(e.length));t?s.push(i.format(r[0]+" ",r.slice(1))):s.push([r[0]+" ",...r.slice(1)])}}const j=q.s(this._loggerTypes);let b;if(h){const e=o.white("["+h+"x]");b=t?i.format(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=R(this._formatLabel(y));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),b&&s.push(b);let r=j.length-y.length;if(h?r-=String(h).length+3:r+=1,r>0){const c=o.grey(".".repeat(r));t?s.push(i.format(c[0],c.slice(1))):s.push([" "+c[0],...c.slice(1)])}}else{const e=o.grey(".".repeat(j.length+1));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(a)&&a.length>0){const e=o.grey("["+a.join(" > ")+"]");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(d){const e=o.grey((Array.isArray(a)&&a.length>0?". ":" ")+"["+(this._styles.underline.prefix?o.underline(d):d)+"] ");t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(P!==q.EMPTY_SYMBOL&&s.push(P),x&&s.push(...x),A&&s.push(A,`
2
-
3
- `),m){const e=o.grey(this._styles.underline.suffix?o.underline(m):m);t?s.push(i.format(`
4
- `+e[0],e.slice(1))):s.push([`
5
- `+e[0],...e.slice(1)])}if(t)_(...s);else{let e="";const r=[],c=[];for(const p of s)Array.isArray(p)&&p.length>1&&p[0].includes("%c")?(e+=p[0],r.push(...p.slice(1))):c.push(p);_(e+"%c",...r,"",...c)}}_formatLabel(l){let t=this._styles.uppercase.label?l.toUpperCase():l;return t=this._styles.underline.label?o.underline(t):t,this._styles.bold.label&&(t=o.bold(t)),t}}const E=B;exports.JsonReporter=M.i;exports.PrettyReporter=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/JsonReporter-DnAmJFFq.cjs"),r=require("./shared/PrettyReporter-BSjUlCUF.cjs");exports.JsonReporter=e.p;exports.PrettyReporter=r.Y;
@@ -1,5 +1,5 @@
1
- import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.cjs';
2
- import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.5D809X_A.cjs';
1
+ import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/types-BGWAKixQ.cjs';
2
+ import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/abstract-pretty-reporter-Che3NKVZ.cjs';
3
3
  import '@visulima/colorize';
4
4
  import 'safe-stable-stringify';
5
5
 
@@ -1,5 +1,5 @@
1
- import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.mjs';
2
- import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.B3zJX3TP.mjs';
1
+ import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/types-BGWAKixQ.mjs';
2
+ import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/abstract-pretty-reporter-BCpBhS2D.mjs';
3
3
  import '@visulima/colorize';
4
4
  import 'safe-stable-stringify';
5
5
 
@@ -1,5 +1,5 @@
1
- import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.js';
2
- import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.COeqT45B.js';
1
+ import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/types-BGWAKixQ.d.mjs';
2
+ import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/abstract-pretty-reporter-DxDw4w0Q.d.mjs';
3
3
  import '@visulima/colorize';
4
4
  import 'safe-stable-stringify';
5
5
 
@@ -1,5 +1 @@
1
- var j=Object.defineProperty;var b=(h,r)=>j(h,"name",{value:r,configurable:!0});import{i as V}from"./shared/pail.DacemLQD.mjs";import M,{white as Y,grey as o,underline as _,bold as S}from"@visulima/colorize/browser";import{format as i}from"@visulima/fmt";import{s as E,E as O}from"./shared/pail.C1VNf0a-.mjs";import{A as k,s as B}from"./shared/pail.CeGWBihI.mjs";import{t as C}from"./shared/pail.BP95fgQZ.mjs";var D=Object.defineProperty,F=b((h,r)=>D(h,"name",{value:r,configurable:!0}),"A");class J extends k{static{b(this,"Y")}static{F(this,"PrettyReporter")}constructor(r={}){super({uppercase:{label:!0,...r.uppercase},...r})}log(r){const t=typeof window<"u"&&typeof window.document<"u",x=C(r.type.level),{badge:A,context:w,date:a,error:P,groups:f,label:y,message:v,prefix:g,repeated:u,scope:n,suffix:m,type:$}=r,{color:R}=this._loggerTypes[$.name],T=R?M[R]:Y,s=[];if(t&&f.length>0){const e=f.map(()=>" ").join(""),l=o("["+f.at(-1)+"]");s.push(i(e+l[0],l.slice(1)))}if(a){const e=o(this._styles.dateFormatter(typeof a=="string"?new Date(a):a));t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}if(A){const e=T(A);t?s.push(i(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=B(this._loggerTypes);if(e.length>0){const l=o(".".repeat(e.length));t?s.push(i(l[0]+" ",l.slice(1))):s.push([l[0]+" ",...l.slice(1)])}}const L=E(this._loggerTypes);let d;if(u){const e=Y("["+u+"x]");d=t?i(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=T(this._formatLabel(y));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),d&&s.push(d);let l=L.length-y.length;if(u?l-=String(u).length+3:l+=1,l>0){const p=o(".".repeat(l));t?s.push(i(p[0],p.slice(1))):s.push([" "+p[0],...p.slice(1)])}}else{const e=o(".".repeat(L.length+1));t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(n)&&n.length>0){const e=o("["+n.join(" > ")+"]");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(g){const e=o((Array.isArray(n)&&n.length>0?". ":" ")+"["+(this._styles.underline.prefix?_(g):g)+"] ");t?s.push(i(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(v!==O&&s.push(v),w&&s.push(...w),P&&s.push(P,`
2
-
3
- `),m){const e=o(this._styles.underline.suffix?_(m):m);t?s.push(i(`
4
- `+e[0],e.slice(1))):s.push([`
5
- `+e[0],...e.slice(1)])}if(t)x(...s);else{let e="";const l=[],p=[];for(const c of s)Array.isArray(c)&&c.length>1&&c[0].includes("%c")?(e+=c[0],l.push(...c.slice(1))):p.push(c);x(e+"%c",...l,"",...p)}}_formatLabel(r){let t=this._styles.uppercase.label?r.toUpperCase():r;return t=this._styles.underline.label?_(t):t,this._styles.bold.label&&(t=S(t)),t}}const K=J;export{V as JsonReporter,K as PrettyReporter};
1
+ import{p as o}from"./shared/JsonReporter-lK2QQvDy.mjs";import{Y as p}from"./shared/PrettyReporter-ZJDqqbAw.mjs";export{o as JsonReporter,p as PrettyReporter};
@@ -1,13 +1 @@
1
- "use strict";var $=Object.defineProperty;var n=(t,e)=>$(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./shared/pail.DumOHFo9.cjs"),f=require("node:process"),c=require("./shared/pail.akgEzola.cjs"),r=require("@visulima/colorize"),S=require("@visulima/error"),L=require("@visulima/inspector"),k=require("./shared/pail.BjvkVeLq.cjs"),J=require("./shared/pail.BtheZKQt.cjs"),I=n(t=>t&&typeof t=="object"&&"default"in t?t.default:t,"_interopDefaultCompat"),z=I(r);var B=Object.defineProperty,V=n((t,e)=>B(t,"name",{value:e,configurable:!0}),"e$1");class W{static{n(this,"n")}static{V(this,"SafeStreamHandler")}#e=!0;#t;#r;constructor(e,s){this.#t=e,this.#r=s}write(e){this.writeStream(e)}end(...e){this.#t.end(...e)}get isReady(){return this.#e}writeStream(e){if(!this.#e){console.warn("Stream busy: "+this.#r+'. Write will be dropped: "'+e+'"');return}this.#e=!1,this.#t.on("error",s=>{throw s}),this.#t.on("drain",()=>{this.#e=!0}),this.#t.on("finish",()=>{this.#e=!0}),this.#e=this.#t.write(e,()=>{})}}var Y=Object.defineProperty,D=n((t,e)=>Y(t,"name",{value:e,configurable:!0}),"r$1");class G{static{n(this,"o")}static{D(this,"RotatingFileStream")}#e;#t;#r;#i;#s;constructor(e,s=!1,i={}){if(this.#e=e,this.#t=s,this.#i=i,!this.#t){try{this.#s=require("rotating-file-stream").createStream}catch{throw new Error("The 'rotating-file-stream' package is missing. Make sure to install the 'rotating-file-stream' package.")}this.#r=this.#s(this.#e,i)}}write(e){let s=this.#r;this.#t&&(s=this.#s(this.#e,this.#i));const i=new W(s,this.#e);i.write(e),this.#t&&i.end()}end(){this.#r!==void 0&&this.#r.end()}}var H=Object.defineProperty,K=n((t,e)=>H(t,"name",{value:e,configurable:!0}),"r");class N extends O.AbstractJsonReporter{static{n(this,"JsonFileReporter")}static{K(this,"JsonFileReporter")}stream;constructor(e){super();const{filePath:s,writeImmediately:i=!1,...a}=e;this.stream=new G(s,i,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(e){this.stream.write(e+`
2
- `)}}var Q=Object.defineProperty,U=n((t,e)=>Q(t,"name",{value:e,configurable:!0}),"e");class X extends O.AbstractJsonReporter{static{n(this,"d")}static{U(this,"JsonReporter")}#e;#t;constructor(e={}){super(e),this.#e=f.stdout,this.#t=f.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}_log(e,s){const i=["error","warn"].includes(s)?this.#t:this.#e;c.n(e+`
3
- `,i)}}const Z=X;var ee=Object.defineProperty,T=n((t,e)=>ee(t,"name",{value:e,configurable:!0}),"L");const _=T(t=>!/[\\/]pail[\\/]dist/.test(t),"pailFileFilter");class te extends J.AbstractPrettyReporter{static{n(this,"SimpleReporter")}static{T(this,"SimpleReporter")}#e;#t;#r;#i=!1;#s;#o;constructor(e={}){const{error:s,inspect:i,...a}=e;super({uppercase:{label:!0,...a.uppercase},...a}),this.#s={...c.u,indent:void 0,...i},this.#o={...s,color:{fileLine:r.green,hint:r.cyan,marker:r.red,message:r.red,method:r.greenBright,title:r.red}},this.#e=f.stdout,this.#t=f.stderr}setStdout(e){this.#e=e}setStderr(e){this.#t=e}setInteractiveManager(e){this.#r=e}setIsInteractive(e){this.#i=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:s}=c.terminalSize();let i=s;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:a,context:R,date:u,error:j,file:d,groups:y,label:m,message:g,prefix:b,repeated:x,scope:v,suffix:w,traceError:E,type:F}=e,{color:P}=this._loggerTypes[F.name],M=P?z[P]:r.white,l=y.map(()=>" ").join(""),o=[];if(y.length>0&&o.push(l+r.grey("["+y.at(-1)+"]")+" "),u&&o.push(r.grey(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))+" "),a)o.push(r.bold(M(a)));else{const h=J.s(this._loggerTypes);h.length>0&&o.push(r.grey(" ".repeat(h.length)))}const q=k.s(this._loggerTypes);m?o.push(r.bold(M(c.n$1(m,this._styles)))+" "," ".repeat(q.length-c.stringLength(m))):o.push(" ".repeat(q.length+1)),x&&o.push(r.bgGrey.white("["+x+"x]")+" "),Array.isArray(v)&&v.length>0&&o.push(r.grey("["+v.join(" > ")+"]")+" "),b&&o.push(r.grey("["+(this._styles.underline.prefix?r.underline(b):b)+"]")+" ");const A=c.stringLength(o.join(""));if(g!==k.EMPTY_SYMBOL){const h=typeof g=="string"?g:L.inspect(g,this.#s);o.push(l+c.wrapAnsi(h,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(R){let h=!1;o.push(...R.map(p=>{if(p instanceof Error)return h=!0,`
4
-
5
- `+S.renderError(p,{...this.#o,filterStacktrace:_,prefix:l});if(typeof p=="object")return" "+L.inspect(p,this.#s);const C=(h?`
6
-
7
- `:" ")+p;return h=!1,C}))}if(j&&o.push(S.renderError(j,{...this.#o,filterStacktrace:_,prefix:l})),E&&o.push(`
8
-
9
- `+S.renderError(E,{...this.#o,filterStacktrace:_,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:l})),w&&o.push(" "+l+r.grey(this._styles.underline.suffix?r.underline(w):w)),d){const h=d.name+(d.line?":"+d.line:"");o.push(`
10
- `,r.grey("Caller: ")," ".repeat(A-8),h,`
11
- `)}return o.join("")}_log(e,s){const i=["error","trace","warn"].includes(s)?"stderr":"stdout",a=i==="stderr"?this.#t:this.#e;this.#i&&this.#r!==void 0&&a.isTTY?this.#r.update(i,e.split(`
12
- `),0):c.n(e+`
13
- `,a)}}exports.PrettyReporter=c.PrettyReporter;exports.JsonFileReporter=N;exports.JsonReporter=Z;exports.SimpleReporter=te;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/JsonFileReporter-CMXak2Df.cjs"),r=require("./shared/JsonReporter-LiqNJsVA.cjs"),t=require("./shared/PrettyReporter-DgJa7P23.cjs"),o=require("./shared/SimpleReporter-rMcYaUVZ.cjs");exports.JsonFileReporter=e.JsonFileReporter;exports.JsonReporter=r.d;exports.PrettyReporter=t.PrettyReporter;exports.SimpleReporter=o.SimpleReporter;
@@ -1,6 +1,6 @@
1
1
  import { Options } from 'rotating-file-stream';
2
- import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/pail.5D809X_A.cjs';
3
- import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.cjs';
2
+ import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/abstract-pretty-reporter-Che3NKVZ.cjs';
3
+ import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/types-BGWAKixQ.cjs';
4
4
  import { RenderErrorOptions } from '@visulima/error/error';
5
5
  import { Options as Options$1 } from '@visulima/inspector';
6
6
  import { RenderErrorOptions as RenderErrorOptions$1 } from '@visulima/error';
@@ -1,6 +1,6 @@
1
1
  import { Options } from 'rotating-file-stream';
2
- import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/pail.B3zJX3TP.mjs';
3
- import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.mjs';
2
+ import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/abstract-pretty-reporter-BCpBhS2D.mjs';
3
+ import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/types-BGWAKixQ.mjs';
4
4
  import { RenderErrorOptions } from '@visulima/error/error';
5
5
  import { Options as Options$1 } from '@visulima/inspector';
6
6
  import { RenderErrorOptions as RenderErrorOptions$1 } from '@visulima/error';
@@ -1,6 +1,6 @@
1
1
  import { Options } from 'rotating-file-stream';
2
- import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/pail.COeqT45B.js';
3
- import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/pail.BGWAKixQ.js';
2
+ import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './shared/abstract-pretty-reporter-DxDw4w0Q.d.mjs';
3
+ import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/types-BGWAKixQ.d.mjs';
4
4
  import { RenderErrorOptions } from '@visulima/error/error';
5
5
  import { Options as Options$1 } from '@visulima/inspector';
6
6
  import { RenderErrorOptions as RenderErrorOptions$1 } from '@visulima/error';