@visulima/pail 2.1.4 → 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.
- package/CHANGELOG.md +22 -0
- package/LICENSE.md +35 -35
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.d.cts +3 -3
- package/dist/index.browser.d.mts +3 -3
- package/dist/index.browser.d.ts +3 -3
- package/dist/index.browser.mjs +1 -1
- package/dist/index.server.cjs +4 -4
- package/dist/index.server.d.cts +3 -3
- package/dist/index.server.d.mts +3 -3
- package/dist/index.server.d.ts +3 -3
- package/dist/index.server.mjs +4 -4
- package/dist/processor.browser.cjs +1 -1
- package/dist/processor.browser.d.cts +1 -1
- package/dist/processor.browser.d.mts +1 -1
- package/dist/processor.browser.d.ts +1 -1
- package/dist/processor.browser.mjs +1 -1
- package/dist/processor.server.cjs +1 -1
- package/dist/processor.server.d.cts +1 -1
- package/dist/processor.server.d.mts +1 -1
- package/dist/processor.server.d.ts +1 -1
- package/dist/processor.server.mjs +1 -1
- package/dist/reporter.browser.cjs +1 -5
- package/dist/reporter.browser.d.cts +2 -2
- package/dist/reporter.browser.d.mts +2 -2
- package/dist/reporter.browser.d.ts +2 -2
- package/dist/reporter.browser.mjs +1 -5
- package/dist/reporter.server.cjs +1 -13
- package/dist/reporter.server.d.cts +2 -2
- package/dist/reporter.server.d.mts +2 -2
- package/dist/reporter.server.d.ts +2 -2
- package/dist/reporter.server.mjs +1 -21
- package/dist/shared/CallerProcessor-D_s5ROBz.cjs +1 -0
- package/dist/shared/CallerProcessor-J88C1dmW.mjs +1 -0
- package/dist/shared/JsonFileReporter-CMXak2Df.cjs +2 -0
- package/dist/shared/JsonFileReporter-DtB8t5gN.mjs +4 -0
- package/dist/shared/JsonReporter-Bk9Kz_71.mjs +2 -0
- package/dist/shared/JsonReporter-DnAmJFFq.cjs +1 -0
- package/dist/shared/JsonReporter-LiqNJsVA.cjs +2 -0
- package/dist/shared/JsonReporter-lK2QQvDy.mjs +1 -0
- package/dist/shared/MessageFormatterProcessor-B7I6pajc.mjs +1 -0
- package/dist/shared/MessageFormatterProcessor-CkFZxc3_.cjs +1 -0
- package/dist/shared/PrettyReporter-BSjUlCUF.cjs +5 -0
- package/dist/shared/PrettyReporter-BqWOG8Uu.mjs +13 -0
- package/dist/shared/PrettyReporter-DgJa7P23.cjs +13 -0
- package/dist/shared/PrettyReporter-ZJDqqbAw.mjs +5 -0
- package/dist/shared/RedactProcessor-0DHFdHI9.mjs +3 -0
- package/dist/shared/RedactProcessor-D8o1iuQT.cjs +1 -0
- package/dist/shared/SimpleReporter-BLkHsEAo.mjs +11 -0
- package/dist/shared/SimpleReporter-rMcYaUVZ.cjs +11 -0
- package/dist/shared/abstract-json-reporter-29d4dwOH.mjs +1 -0
- package/dist/shared/abstract-json-reporter-CjTo97r_.cjs +1 -0
- package/dist/shared/abstract-pretty-reporter-B14XYOWC.cjs +1 -0
- package/dist/shared/{pail.5D809X_A.d.cts → abstract-pretty-reporter-BCpBhS2D.d.mts} +1 -1
- package/dist/shared/{pail.B3zJX3TP.d.mts → abstract-pretty-reporter-Che3NKVZ.d.cts} +1 -1
- package/dist/shared/abstract-pretty-reporter-DgXRHEj-.mjs +1 -0
- package/dist/shared/{pail.COeqT45B.d.ts → abstract-pretty-reporter-DxDw4w0Q.d.mjs} +1 -1
- package/dist/shared/constants-BBH2bwRB.cjs +1 -0
- package/dist/shared/constants-BMS51p6Y.mjs +1 -0
- package/dist/shared/format-label-CAW3vDTf.mjs +8 -0
- package/dist/shared/format-label-D6ofFldh.cjs +8 -0
- package/dist/shared/get-longest-label-4ISUsE2q.mjs +1 -0
- package/dist/shared/get-longest-label-DXpzhu5N.cjs +1 -0
- package/dist/shared/{pail.Bn2Vxj-9.d.cts → pail.browser-1JCCULUv.d.mts} +1 -1
- package/dist/shared/{pail.Bk25qk8U.mjs → pail.browser-BDLzjsVP.mjs} +1 -1
- package/dist/shared/{pail.D6DRfVG8.d.ts → pail.browser-Bs5ZMog_.d.mjs} +1 -1
- package/dist/shared/{pail.CSVyVF2j.d.mts → pail.browser-CXLF6yMo.d.cts} +1 -1
- package/dist/shared/{pail.CqyBdtm7.cjs → pail.browser-i0kgt9fE.cjs} +1 -1
- package/dist/shared/write-stream-Bgxqp0HI.cjs +1 -0
- package/dist/shared/write-stream-C17GXSxA.mjs +1 -0
- package/package.json +10 -10
- package/dist/shared/pail.BhNeTL0H.cjs +0 -1
- package/dist/shared/pail.Bj_SDK4w.mjs +0 -1
- package/dist/shared/pail.BjvkVeLq.cjs +0 -1
- package/dist/shared/pail.BtheZKQt.cjs +0 -1
- package/dist/shared/pail.C1VNf0a-.mjs +0 -1
- package/dist/shared/pail.C2dcjpQV.mjs +0 -20
- package/dist/shared/pail.CeGWBihI.mjs +0 -1
- package/dist/shared/pail.DacemLQD.mjs +0 -1
- package/dist/shared/pail.DumOHFo9.cjs +0 -1
- package/dist/shared/pail.DzwLG-N9.mjs +0 -1
- package/dist/shared/pail._czpAR0Z.mjs +0 -9
- package/dist/shared/pail.akgEzola.cjs +0 -20
- package/dist/shared/pail.rUW_oLpx.cjs +0 -1
- package/dist/shared/pail.zsOZqsvh.cjs +0 -1
- /package/dist/shared/{pail.BGWAKixQ.d.cts → types-BGWAKixQ.d.cts} +0 -0
- /package/dist/shared/{pail.BGWAKixQ.d.mts → types-BGWAKixQ.d.mjs} +0 -0
- /package/dist/shared/{pail.BGWAKixQ.d.ts → types-BGWAKixQ.d.mts} +0 -0
- /package/dist/shared/{pail.3G15muTS.cjs → write-console-log-3G15muTS.cjs} +0 -0
- /package/dist/shared/{pail.BP95fgQZ.mjs → write-console-log-BP95fgQZ.mjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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
|
+
|
|
1
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)
|
|
2
24
|
|
|
3
25
|
### Miscellaneous Chores
|
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 -->
|
package/dist/index.browser.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
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;
|
package/dist/index.browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './shared/pail.
|
|
2
|
-
import { C as ConstructorOptions } from './shared/
|
|
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/
|
|
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
|
|
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './shared/pail.
|
|
2
|
-
import { C as ConstructorOptions } from './shared/
|
|
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/
|
|
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
|
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './shared/pail.
|
|
2
|
-
import { C as ConstructorOptions } from './shared/
|
|
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/
|
|
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
|
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{P as
|
|
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};
|
package/dist/index.server.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var
|
|
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
|
|
4
|
-
`),this.#e.forEach(e=>{this.write(e)}),this.#e=[]),this.renew()}renew(){this.#s.write=this.#r,this.write(
|
|
5
|
-
`),0):
|
|
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;
|
package/dist/index.server.d.cts
CHANGED
|
@@ -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/
|
|
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/
|
|
3
|
-
import { a as PailBrowserImpl } from './shared/pail.
|
|
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
|
|
package/dist/index.server.d.mts
CHANGED
|
@@ -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/
|
|
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/
|
|
3
|
-
import { a as PailBrowserImpl } from './shared/pail.
|
|
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
|
|
package/dist/index.server.d.ts
CHANGED
|
@@ -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/
|
|
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/
|
|
3
|
-
import { a as PailBrowserImpl } from './shared/pail.
|
|
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
|
|
package/dist/index.server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
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=
|
|
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:
|
|
5
|
-
`),0):
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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{
|
|
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";
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
-
|
|
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";
|
|
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/
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/
|
|
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/
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/
|
|
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/
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/
|
|
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
|
-
|
|
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};
|
package/dist/reporter.server.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
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/
|
|
3
|
-
import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/
|
|
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/
|
|
3
|
-
import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/
|
|
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/
|
|
3
|
-
import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './shared/
|
|
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';
|
package/dist/reporter.server.mjs
CHANGED
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// -- pack CommonJS Shims --
|
|
3
|
-
import __cjs_url__ from "node:url";
|
|
4
|
-
import __cjs_path__ from "node:path";
|
|
5
|
-
import __cjs_mod__ from "node:module";
|
|
6
|
-
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = __cjs_path__.dirname(__filename);
|
|
8
|
-
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
9
|
-
var rt=Object.defineProperty,st=a((e,t)=>rt(e,"name",{value:t,configurable:!0}),"e$1");class it{static{a(this,"n")}static{st(this,"SafeStreamHandler")}#t=!0;#e;#r;constructor(t,r){this.#e=t,this.#r=r}write(t){this.writeStream(t)}end(...t){this.#e.end(...t)}get isReady(){return this.#t}writeStream(t){if(!this.#t){console.warn("Stream busy: "+this.#r+'. Write will be dropped: "'+t+'"');return}this.#t=!1,this.#e.on("error",r=>{throw r}),this.#e.on("drain",()=>{this.#t=!0}),this.#e.on("finish",()=>{this.#t=!0}),this.#t=this.#e.write(t,()=>{})}}var at=Object.defineProperty,ot=a((e,t)=>at(e,"name",{value:t,configurable:!0}),"r$1");class nt{static{a(this,"o")}static{ot(this,"RotatingFileStream")}#t;#e;#r;#i;#s;constructor(t,r=!1,s={}){if(this.#t=t,this.#e=r,this.#i=s,!this.#e){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.#t,s)}}write(t){let r=this.#r;this.#e&&(r=this.#s(this.#t,this.#i));const s=new it(r,this.#t);s.write(t),this.#e&&s.end()}end(){this.#r!==void 0&&this.#r.end()}}var ht=Object.defineProperty,lt=a((e,t)=>ht(e,"name",{value:t,configurable:!0}),"r");class xt extends T{static{a(this,"JsonFileReporter")}static{lt(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:r,writeImmediately:s=!1,...o}=t;this.stream=new nt(r,s,{compress:"gzip",interval:"1d",size:"10M",...o})}_log(t){this.stream.write(t+`
|
|
10
|
-
`)}}var pt=Object.defineProperty,ct=a((e,t)=>pt(e,"name",{value:t,configurable:!0}),"e");class ut extends T{static{a(this,"d")}static{ct(this,"JsonReporter")}#t;#e;constructor(t={}){super(t),this.#t=F,this.#e=L}setStdout(t){this.#t=t}setStderr(t){this.#e=t}_log(t,r){const s=["error","warn"].includes(r)?this.#e:this.#t;C(t+`
|
|
11
|
-
`,s)}}const Rt=ut;var dt=Object.defineProperty,I=a((e,t)=>dt(e,"name",{value:t,configurable:!0}),"L");const S=I(e=>!/[\\/]pail[\\/]dist/.test(e),"pailFileFilter");class jt extends tt{static{a(this,"SimpleReporter")}static{I(this,"SimpleReporter")}#t;#e;#r;#i=!1;#s;#a;constructor(t={}){const{error:r,inspect:s,...o}=t;super({uppercase:{label:!0,...o.uppercase},...o}),this.#s={...W,indent:void 0,...s},this.#a={...r,color:{fileLine:H,hint:K,marker:v,message:v,method:N,title:v}},this.#t=F,this.#e=L}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#i=t}log(t){this._log(this._formatMessage(t),t.type.level)}_formatMessage(t){const{columns:r}=Y();let s=r;typeof this._styles.messageLength=="number"&&(s=this._styles.messageLength);const{badge:o,context:_,date:c,error:x,file:u,groups:m,label:f,message:d,prefix:g,repeated:R,scope:y,suffix:w,traceError:j,type:J}=t,{color:E}=this._loggerTypes[J.name],P=E?G[E]:Q,l=m.map(()=>" ").join(""),i=[];if(m.length>0&&i.push(l+h("["+m.at(-1)+"]")+" "),c&&i.push(h(this._styles.dateFormatter(typeof c=="string"?new Date(c):c))+" "),o)i.push(k(P(o)));else{const n=et(this._loggerTypes);n.length>0&&i.push(h(" ".repeat(n.length)))}const M=X(this._loggerTypes);f?i.push(k(P(q(f,this._styles)))+" "," ".repeat(M.length-$(f))):i.push(" ".repeat(M.length+1)),R&&i.push(U.white("["+R+"x]")+" "),Array.isArray(y)&&y.length>0&&i.push(h("["+y.join(" > ")+"]")+" "),g&&i.push(h("["+(this._styles.underline.prefix?A(g):g)+"]")+" ");const z=$(i.join(""));if(d!==Z){const n=typeof d=="string"?d:O(d,this.#s);i.push(l+D(n,s-3,{hard:!0,trim:!1,wordWrap:!0}))}if(_){let n=!1;i.push(..._.map(p=>{if(p instanceof Error)return n=!0,`
|
|
12
|
-
|
|
13
|
-
`+b(p,{...this.#a,filterStacktrace:S,prefix:l});if(typeof p=="object")return" "+O(p,this.#s);const B=(n?`
|
|
14
|
-
|
|
15
|
-
`:" ")+p;return n=!1,B}))}if(x&&i.push(b(x,{...this.#a,filterStacktrace:S,prefix:l})),j&&i.push(`
|
|
16
|
-
|
|
17
|
-
`+b(j,{...this.#a,filterStacktrace:S,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:l})),w&&i.push(" "+l+h(this._styles.underline.suffix?A(w):w)),u){const n=u.name+(u.line?":"+u.line:"");i.push(`
|
|
18
|
-
`,h("Caller: ")," ".repeat(z-8),n,`
|
|
19
|
-
`)}return i.join("")}_log(t,r){const s=["error","trace","warn"].includes(r)?"stderr":"stdout",o=s==="stderr"?this.#e:this.#t;this.#i&&this.#r!==void 0&&o.isTTY?this.#r.update(s,t.split(`
|
|
20
|
-
`),0):C(t+`
|
|
21
|
-
`,o)}}export{xt as JsonFileReporter,Rt as JsonReporter,Mt as PrettyReporter,jt as SimpleReporter};
|
|
1
|
+
import{J as o}from"./shared/JsonFileReporter-DtB8t5gN.mjs";import{d as p}from"./shared/JsonReporter-Bk9Kz_71.mjs";import{P as m}from"./shared/PrettyReporter-BqWOG8Uu.mjs";import{S as f}from"./shared/SimpleReporter-BLkHsEAo.mjs";export{o as JsonFileReporter,p as JsonReporter,m as PrettyReporter,f as SimpleReporter};
|