@visulima/pail 1.1.13 → 1.2.0
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 +6 -0
- package/LICENSE.md +174 -0
- package/dist/index.browser.cjs +1 -16
- package/dist/index.browser.d.cts +3 -3
- package/dist/index.browser.d.mts +10 -0
- package/dist/index.browser.d.ts +3 -3
- package/dist/index.browser.mjs +1 -0
- package/dist/index.server.cjs +4 -20
- package/dist/index.server.d.cts +3 -3
- package/dist/index.server.d.mts +30 -0
- package/dist/index.server.d.ts +3 -3
- package/dist/index.server.mjs +5 -0
- package/dist/processor.browser.cjs +1 -12
- package/dist/processor.browser.d.cts +1 -1
- package/dist/processor.browser.d.mts +15 -0
- package/dist/processor.browser.d.ts +1 -1
- package/dist/processor.browser.mjs +1 -0
- package/dist/processor.server.cjs +1 -18
- package/dist/processor.server.d.cts +1 -1
- package/dist/processor.server.d.mts +47 -0
- package/dist/processor.server.d.ts +1 -1
- package/dist/processor.server.mjs +1 -0
- package/dist/reporter.browser.cjs +4 -26
- package/dist/reporter.browser.d.cts +2 -2
- package/dist/reporter.browser.d.mts +17 -0
- package/dist/reporter.browser.d.ts +2 -2
- package/dist/reporter.browser.mjs +5 -0
- package/dist/reporter.server.cjs +9 -24
- package/dist/reporter.server.d.cts +21 -14
- package/dist/reporter.server.d.mts +64 -0
- package/dist/reporter.server.d.ts +21 -14
- package/dist/reporter.server.mjs +11 -0
- package/dist/{abstract-pretty-reporter-B-VS5gYX.d.ts → shared/pail.B4CNQvGO.d.cts} +2 -2
- package/dist/shared/pail.B85Cx0UJ.cjs +1 -0
- package/dist/shared/pail.BDMlOMw8.cjs +21 -0
- package/dist/shared/pail.BP9NvmFd.mjs +1 -0
- package/dist/shared/pail.BU1VqUN1.cjs +1 -0
- package/dist/{abstract-pretty-reporter-DwzTRutd.d.cts → shared/pail.Bdbc3_zr.d.ts} +2 -2
- package/dist/shared/pail.Br_AAl-2.mjs +1 -0
- package/dist/shared/pail.BuhpbVGv.mjs +1 -0
- package/dist/shared/pail.C0epjAht.cjs +1 -0
- package/dist/{pail.browser-DuX9zHSz.d.ts → shared/pail.CHPrWCMI.d.ts} +1 -1
- package/dist/shared/pail.CNxJnpWG.mjs +1 -0
- package/dist/{pail.browser-pg1HpChf.d.cts → shared/pail.Cc48XFs7.d.mts} +1 -1
- package/dist/shared/pail.CzAicDBX.mjs +21 -0
- package/dist/shared/pail.D3wUM96H.mjs +1 -0
- package/dist/shared/pail.D9OQPGNq.cjs +1 -0
- package/dist/shared/pail.DF5wQ_KA.mjs +1 -0
- package/dist/shared/pail.DW7tr027.d.cts +58 -0
- package/dist/shared/pail.DrhFTME0.d.ts +123 -0
- package/dist/shared/pail.DvAyNJOC.mjs +1 -0
- package/dist/shared/pail.DwWkopDF.cjs +1 -0
- package/dist/shared/pail.boZRgdP1.cjs +1 -0
- package/dist/shared/pail.nEbRCLhY.mjs +1 -0
- package/dist/shared/pail.qb_TjNJQ.d.mts +36 -0
- package/dist/shared/pail.t5UYgSXE.cjs +1 -0
- package/dist/shared/pail.zBliJm8v.cjs +1 -0
- package/package.json +54 -36
- package/dist/chunk-2I5JHTDY.js +0 -9
- package/dist/chunk-2I5JHTDY.js.map +0 -1
- package/dist/chunk-5MNFJRLM.cjs +0 -10
- package/dist/chunk-5MNFJRLM.cjs.map +0 -1
- package/dist/chunk-AFMDCM5W.js +0 -5
- package/dist/chunk-AFMDCM5W.js.map +0 -1
- package/dist/chunk-F4FJCQ4L.cjs +0 -9
- package/dist/chunk-F4FJCQ4L.cjs.map +0 -1
- package/dist/chunk-KERJDMYV.js +0 -8
- package/dist/chunk-KERJDMYV.js.map +0 -1
- package/dist/chunk-N2UPJYJR.cjs +0 -7
- package/dist/chunk-N2UPJYJR.cjs.map +0 -1
- package/dist/chunk-NF47XQ47.js +0 -5
- package/dist/chunk-NF47XQ47.js.map +0 -1
- package/dist/chunk-QINSQ6TU.cjs +0 -9
- package/dist/chunk-QINSQ6TU.cjs.map +0 -1
- package/dist/chunk-R5F555RP.js +0 -5
- package/dist/chunk-R5F555RP.js.map +0 -1
- package/dist/chunk-S4PFPURC.cjs +0 -45
- package/dist/chunk-S4PFPURC.cjs.map +0 -1
- package/dist/chunk-SR3Q3EUO.js +0 -7
- package/dist/chunk-SR3Q3EUO.js.map +0 -1
- package/dist/chunk-TAH23BHM.js +0 -5
- package/dist/chunk-TAH23BHM.js.map +0 -1
- package/dist/chunk-VWAGNTLB.cjs +0 -7
- package/dist/chunk-VWAGNTLB.cjs.map +0 -1
- package/dist/chunk-WHEIXCFS.js +0 -33
- package/dist/chunk-WHEIXCFS.js.map +0 -1
- package/dist/chunk-YP3U3DTV.cjs +0 -10
- package/dist/chunk-YP3U3DTV.cjs.map +0 -1
- package/dist/chunk-ZB7IIFHO.js +0 -7
- package/dist/chunk-ZB7IIFHO.js.map +0 -1
- package/dist/chunk-ZHHJ42XL.cjs +0 -12
- package/dist/chunk-ZHHJ42XL.cjs.map +0 -1
- package/dist/chunk-ZJMTPHZR.cjs +0 -7
- package/dist/chunk-ZJMTPHZR.cjs.map +0 -1
- package/dist/index.browser.cjs.map +0 -1
- package/dist/index.browser.js +0 -13
- package/dist/index.browser.js.map +0 -1
- package/dist/index.server.cjs.map +0 -1
- package/dist/index.server.js +0 -18
- package/dist/index.server.js.map +0 -1
- package/dist/processor.browser.cjs.map +0 -1
- package/dist/processor.browser.js +0 -3
- package/dist/processor.browser.js.map +0 -1
- package/dist/processor.server.cjs.map +0 -1
- package/dist/processor.server.js +0 -8
- package/dist/processor.server.js.map +0 -1
- package/dist/reporter.browser.cjs.map +0 -1
- package/dist/reporter.browser.js +0 -17
- package/dist/reporter.browser.js.map +0 -1
- package/dist/reporter.server.cjs.map +0 -1
- package/dist/reporter.server.js +0 -15
- package/dist/reporter.server.js.map +0 -1
- /package/dist/{types-DrhFTME0.d.cts → shared/pail.DrhFTME0.d.cts} +0 -0
- /package/dist/{types-DrhFTME0.d.ts → shared/pail.DrhFTME0.d.mts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## @visulima/pail [1.2.0](https://github.com/visulima/visulima/compare/@visulima/pail@1.1.13...@visulima/pail@1.2.0) (2024-06-13)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* added simple reporter, fixed caller return, changed log color ([#418](https://github.com/visulima/visulima/issues/418)) ([e22b954](https://github.com/visulima/visulima/commit/e22b9543dc9eaf118e415414d31b5119e4a2455a))
|
|
6
|
+
|
|
1
7
|
## @visulima/pail [1.1.13](https://github.com/visulima/visulima/compare/@visulima/pail@1.1.12...@visulima/pail@1.1.13) (2024-06-13)
|
|
2
8
|
|
|
3
9
|
### Miscellaneous Chores
|
package/LICENSE.md
CHANGED
|
@@ -19,3 +19,177 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
<!-- DEPENDENCIES -->
|
|
24
|
+
|
|
25
|
+
# Licenses of bundled dependencies
|
|
26
|
+
The published @visulima/pail artifact additionally contains code with the following licenses:
|
|
27
|
+
MIT
|
|
28
|
+
|
|
29
|
+
# Bundled dependencies:
|
|
30
|
+
## ansi-regex
|
|
31
|
+
License: MIT
|
|
32
|
+
By: Sindre Sorhus
|
|
33
|
+
Repository: chalk/ansi-regex
|
|
34
|
+
|
|
35
|
+
> MIT License
|
|
36
|
+
>
|
|
37
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
38
|
+
>
|
|
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
|
+
>
|
|
41
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
42
|
+
>
|
|
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
|
+
|
|
45
|
+
---------------------------------------
|
|
46
|
+
|
|
47
|
+
## ansi-styles
|
|
48
|
+
License: MIT
|
|
49
|
+
By: Sindre Sorhus
|
|
50
|
+
Repository: chalk/ansi-styles
|
|
51
|
+
|
|
52
|
+
> MIT License
|
|
53
|
+
>
|
|
54
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
55
|
+
>
|
|
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
|
+
>
|
|
58
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
59
|
+
>
|
|
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
|
+
|
|
62
|
+
---------------------------------------
|
|
63
|
+
|
|
64
|
+
## emoji-regex
|
|
65
|
+
License: MIT
|
|
66
|
+
By: Mathias Bynens
|
|
67
|
+
Repository: https://github.com/mathiasbynens/emoji-regex.git
|
|
68
|
+
|
|
69
|
+
> Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
70
|
+
>
|
|
71
|
+
> Permission is hereby granted, free of charge, to any person obtaining
|
|
72
|
+
> a copy of this software and associated documentation files (the
|
|
73
|
+
> "Software"), to deal in the Software without restriction, including
|
|
74
|
+
> without limitation the rights to use, copy, modify, merge, publish,
|
|
75
|
+
> distribute, sublicense, and/or sell copies of the Software, and to
|
|
76
|
+
> permit persons to whom the Software is furnished to do so, subject to
|
|
77
|
+
> the following conditions:
|
|
78
|
+
>
|
|
79
|
+
> The above copyright notice and this permission notice shall be
|
|
80
|
+
> included in all copies or substantial portions of the Software.
|
|
81
|
+
>
|
|
82
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
83
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
84
|
+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
85
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
86
|
+
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
87
|
+
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
88
|
+
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
89
|
+
|
|
90
|
+
---------------------------------------
|
|
91
|
+
|
|
92
|
+
## get-east-asian-width
|
|
93
|
+
License: MIT
|
|
94
|
+
By: Sindre Sorhus
|
|
95
|
+
Repository: sindresorhus/get-east-asian-width
|
|
96
|
+
|
|
97
|
+
> MIT License
|
|
98
|
+
>
|
|
99
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
100
|
+
>
|
|
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
|
+
>
|
|
103
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
104
|
+
>
|
|
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
|
+
|
|
107
|
+
---------------------------------------
|
|
108
|
+
|
|
109
|
+
## string-length
|
|
110
|
+
License: MIT
|
|
111
|
+
By: Sindre Sorhus
|
|
112
|
+
Repository: sindresorhus/string-length
|
|
113
|
+
|
|
114
|
+
> MIT License
|
|
115
|
+
>
|
|
116
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
117
|
+
>
|
|
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
|
+
>
|
|
120
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
121
|
+
>
|
|
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
|
+
|
|
124
|
+
---------------------------------------
|
|
125
|
+
|
|
126
|
+
## string-width
|
|
127
|
+
License: MIT
|
|
128
|
+
By: Sindre Sorhus
|
|
129
|
+
Repository: sindresorhus/string-width
|
|
130
|
+
|
|
131
|
+
> MIT License
|
|
132
|
+
>
|
|
133
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
134
|
+
>
|
|
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
|
+
>
|
|
137
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
138
|
+
>
|
|
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
|
+
|
|
141
|
+
---------------------------------------
|
|
142
|
+
|
|
143
|
+
## strip-ansi
|
|
144
|
+
License: MIT
|
|
145
|
+
By: Sindre Sorhus
|
|
146
|
+
Repository: chalk/strip-ansi
|
|
147
|
+
|
|
148
|
+
> MIT License
|
|
149
|
+
>
|
|
150
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
151
|
+
>
|
|
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
|
+
>
|
|
154
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
155
|
+
>
|
|
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
|
+
|
|
158
|
+
---------------------------------------
|
|
159
|
+
|
|
160
|
+
## terminal-size
|
|
161
|
+
License: MIT
|
|
162
|
+
By: Sindre Sorhus
|
|
163
|
+
Repository: sindresorhus/terminal-size
|
|
164
|
+
|
|
165
|
+
> MIT License
|
|
166
|
+
>
|
|
167
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
168
|
+
>
|
|
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
|
+
>
|
|
171
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
172
|
+
>
|
|
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
|
+
|
|
175
|
+
---------------------------------------
|
|
176
|
+
|
|
177
|
+
## wrap-ansi
|
|
178
|
+
License: MIT
|
|
179
|
+
By: Sindre Sorhus
|
|
180
|
+
Repository: chalk/wrap-ansi
|
|
181
|
+
|
|
182
|
+
> MIT License
|
|
183
|
+
>
|
|
184
|
+
> Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
185
|
+
>
|
|
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
|
+
>
|
|
188
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
189
|
+
>
|
|
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
|
+
|
|
192
|
+
<!-- DEPENDENCIES -->
|
|
193
|
+
|
|
194
|
+
<!-- TYPE_DEPENDENCIES -->
|
|
195
|
+
<!-- TYPE_DEPENDENCIES -->
|
package/dist/index.browser.cjs
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkZHHJ42XL_cjs = require('./chunk-ZHHJ42XL.cjs');
|
|
4
|
-
var chunkVWAGNTLB_cjs = require('./chunk-VWAGNTLB.cjs');
|
|
5
|
-
var chunkF4FJCQ4L_cjs = require('./chunk-F4FJCQ4L.cjs');
|
|
6
|
-
var chunk5MNFJRLM_cjs = require('./chunk-5MNFJRLM.cjs');
|
|
7
|
-
require('./chunk-N2UPJYJR.cjs');
|
|
8
|
-
require('./chunk-ZJMTPHZR.cjs');
|
|
9
|
-
require('./chunk-QINSQ6TU.cjs');
|
|
10
|
-
|
|
11
|
-
var p=s=>new chunkZHHJ42XL_cjs.b({processors:[new chunkF4FJCQ4L_cjs.a,...typeof window<"u"?[new chunkVWAGNTLB_cjs.a]:[]],reporters:[new chunk5MNFJRLM_cjs.a],...s}),f=p();
|
|
12
|
-
|
|
13
|
-
exports.createPail = p;
|
|
14
|
-
exports.pail = f;
|
|
15
|
-
//# sourceMappingURL=out.js.map
|
|
16
|
-
//# sourceMappingURL=index.browser.cjs.map
|
|
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 a=require("./shared/pail.boZRgdP1.cjs"),i=require("./shared/pail.C0epjAht.cjs"),n=require("./shared/pail.B85Cx0UJ.cjs"),c=require("./shared/pail.zBliJm8v.cjs");var l=Object.defineProperty,u=o((e,r)=>l(e,"name",{value:r,configurable:!0}),"e");const s=u(e=>new a.PailBrowser({processors:[new n.g,...typeof window<"u"?[new i.L]:[]],reporters:[new c.i],...e}),"createPail"),w=s();exports.createPail=s;exports.pail=w;
|
package/dist/index.browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './pail.
|
|
2
|
-
import { C as ConstructorOptions } from './
|
|
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 './
|
|
1
|
+
import { P as PailBrowserType } from './shared/pail.DW7tr027.cjs';
|
|
2
|
+
import { C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.cjs';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { P as PailBrowserType } from './shared/pail.Cc48XFs7.mjs';
|
|
2
|
+
import { C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.mjs';
|
|
4
|
+
import 'safe-stable-stringify';
|
|
5
|
+
import '@visulima/colorize';
|
|
6
|
+
|
|
7
|
+
declare const createPail: <T extends string = never, L extends string = never>(options?: ConstructorOptions<T, L>) => PailBrowserType<T, L>;
|
|
8
|
+
declare const pail: PailBrowserType<never, never>;
|
|
9
|
+
|
|
10
|
+
export { ConstructorOptions, PailBrowserType as Pail, createPail, pail };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './pail.
|
|
2
|
-
import { C as ConstructorOptions } from './
|
|
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 './
|
|
1
|
+
import { P as PailBrowserType } from './shared/pail.CHPrWCMI.js';
|
|
2
|
+
import { C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.js';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var o=(r,e)=>t(r,"name",{value:e,configurable:!0});import{P as a}from"./shared/pail.DvAyNJOC.mjs";import{L as i}from"./shared/pail.CNxJnpWG.mjs";import{g as p}from"./shared/pail.nEbRCLhY.mjs";import{i as m}from"./shared/pail.BuhpbVGv.mjs";var n=Object.defineProperty,f=o((r,e)=>n(r,"name",{value:e,configurable:!0}),"e");const s=f(r=>new a({processors:[new p,...typeof window<"u"?[new i]:[]],reporters:[new m],...r}),"createPail"),v=s();export{s as createPail,v as pail};
|
package/dist/index.server.cjs
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkZHHJ42XL_cjs = require('./chunk-ZHHJ42XL.cjs');
|
|
4
|
-
var chunkVWAGNTLB_cjs = require('./chunk-VWAGNTLB.cjs');
|
|
5
|
-
var chunkF4FJCQ4L_cjs = require('./chunk-F4FJCQ4L.cjs');
|
|
6
|
-
require('./chunk-N2UPJYJR.cjs');
|
|
7
|
-
var chunkS4PFPURC_cjs = require('./chunk-S4PFPURC.cjs');
|
|
8
|
-
require('./chunk-YP3U3DTV.cjs');
|
|
9
|
-
require('./chunk-QINSQ6TU.cjs');
|
|
10
|
-
var string_decoder = require('string_decoder');
|
|
11
|
-
|
|
12
|
-
var g=class{#e;#t=!1;#i=!1;#r=0;#s=0;constructor(t,e){this.#e={stderr:e,stdout:t};}get lastLength(){return this.#r}get outside(){return this.#s}get isHooked(){return this.#t}get isSuspended(){return this.#i}erase(t,e=this.#r){if(this.#e[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#e[t].erase(e);}hook(){return this.#t||(Object.values(this.#e).forEach(t=>t.active()),this._clear(!0)),this.#t}resume(t,e){this.#i&&(this.#i=!1,e&&this.erase(t,e),this.#r=0,Object.values(this.#e).forEach(r=>r.active()));}suspend(t,e=!0){this.#i||(this.#i=!0,e&&this.erase(t),Object.values(this.#e).forEach(r=>r.renew()));}unhook(t=!0){return this.#t&&(Object.values(this.#e).forEach(e=>e.inactive(t)),this._clear()),!this.#t}update(t,e,r=0){if(e.length>0){if(this.#e[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);let o=this.#e[t],{columns:u,rows:i}=chunkS4PFPURC_cjs.a(),c=r>i?i-1:Math.max(0,Math.min(i-1,r)),n=this.lastLength-c,d=Math.max(n-i,this.outside),p=e.reduce((l,C)=>[...l,chunkS4PFPURC_cjs.b(C,u,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=n?(o.erase(i),c<d&&(p=p.slice(d-c+1))):n&&o.erase(n),o.write(p.join(`
|
|
1
|
+
"use strict";var I=Object.defineProperty;var a=(r,t)=>I(r,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("node:process"),f=require("./shared/pail.BDMlOMw8.cjs"),E=require("node:string_decoder"),P=require("./shared/pail.boZRgdP1.cjs"),$=require("./shared/pail.C0epjAht.cjs"),j=require("./shared/pail.B85Cx0UJ.cjs");var O=Object.defineProperty,M=a((r,t)=>O(r,"name",{value:t,configurable:!0}),"l$1");let A=class{static{a(this,"v")}static{M(this,"InteractiveManager")}#t;#e=!1;#s=!1;#r=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#r}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#s}erase(t,e=this.#r){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.#s&&(this.#s=!1,e&&this.erase(t,e),this.#r=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#s||(this.#s=!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 o=this.#t[t],{columns:p,rows:i}=f.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 c=e.reduce((v,L)=>[...v,f.wrapAnsi(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(o.erase(i),u<d&&(c=c.slice(d-u+1))):l&&o.erase(l),o.write(c.join(`
|
|
13
2
|
`)+`
|
|
14
|
-
`),this.#r=d?d+
|
|
15
|
-
`),this.#
|
|
16
|
-
`),0):
|
|
17
|
-
|
|
18
|
-
exports.createPail = W;
|
|
19
|
-
exports.pail = pe;
|
|
20
|
-
//# sourceMappingURL=out.js.map
|
|
21
|
-
//# sourceMappingURL=index.server.cjs.map
|
|
3
|
+
`),this.#r=d?d+c.length+1:c.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#r=0,this.#i=0}};var R=Object.defineProperty,y=a((r,t)=>R(r,"name",{value:t,configurable:!0}),"n$1");const h="\x1B[",g=h+"2J",x=h+"2K",N=h+"G",T=y((r=1)=>h+r+"A","cursorUp"),w=process.platform==="win32"?`${g}${h}0f`:`${g}${h}3J${h}H`,D=h+"?25l",q=h+"?25h",B=y(r=>{let t="";for(let e=0;e<r;e++)t+=x+(e<r-1?T():"");return r&&(t+=N),t},"eraseLines");var k=Object.defineProperty,G=a((r,t)=>k(r,"name",{value:t,configurable:!0}),"s$1");let m=class S{static{a(this,"t")}static{G(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new E.StringDecoder;#e=[];#s;#r;constructor(t){this.#s=t.write,this.#r=t}active(){this.write(D),this.#r.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(),S.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.#r.write=this.#s,this.write(q)}write(t){this.#s.apply(this.#r,[t])}};var H=Object.defineProperty,V=a((r,t)=>H(r,"name",{value:t,configurable:!0}),"d");class C{static{a(this,"S")}static{V(this,"RawReporter")}#t;#e;#s;#r;#i=!1;constructor(){this.#e=n.stdout,this.#s=n.stderr}setStdout(t){this.#e=t}setStderr(t){this.#s=t}setStringify(t){this.#t=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#i=t}log(t){const{context:e,groups:s,message:o,type:p}=t,i=[],u=typeof o=="string"?o:this.#t(o);i.push(u+""),e&&i.push(...e.map(v=>typeof v=="object"?" "+this.#t(v):" "+v));const l=["error","trace","warn"].includes(p.level)?"stderr":"stdout",d=l==="stderr"?this.#s:this.#e,c=s.map(()=>" ").join("");this.#i&&this.#r!==void 0&&d.isTTY?this.#r.update(l,(c+i.join("")).split(`
|
|
5
|
+
`),0):f.n(c+i.join(""),d)}}var J=Object.defineProperty,U=a((r,t)=>J(r,"name",{value:t,configurable:!0}),"a");let z=class extends P.PailBrowserImpl{static{a(this,"f")}constructor(t={}){const{interactive:e,rawReporter:s,reporters:o,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 A(new m(this.stdout),new m(this.stderr))),Array.isArray(o)&&this.registerReporters(o),this.rawReporter=this.extendReporter(t.rawReporter??new C)}static{U(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(w),this.stderr.write(w)}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 F=z;var K=Object.defineProperty,_=a((r,t)=>K(r,"name",{value:t,configurable:!0}),"t");const W=_(()=>n.env.NODE_ENV==="debug"||n.env.DEBUG!==void 0?"debug":n.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),b=_(r=>{let t=W();return n.env.PAIL_LOG_LEVEL!==void 0&&(t=n.env.PAIL_LOG_LEVEL),new F({logLevel:t,processors:[new j.g,new $.L],reporters:[new f.a],stderr:n.stderr,stdout:n.stdout,...r})},"createPail"),Y=b();exports.createPail=b;exports.pail=Y;
|
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 './
|
|
2
|
-
export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './
|
|
3
|
-
import { a as PailBrowserImpl } from './pail.
|
|
1
|
+
import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.cjs';
|
|
3
|
+
import { a as PailBrowserImpl } from './shared/pail.DW7tr027.cjs';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
6
6
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.mjs';
|
|
3
|
+
import { a as PailBrowserImpl } from './shared/pail.Cc48XFs7.mjs';
|
|
4
|
+
import '@visulima/colorize';
|
|
5
|
+
import 'safe-stable-stringify';
|
|
6
|
+
|
|
7
|
+
declare class PailServerImpl<T extends string = never, L extends string = never> extends PailBrowserImpl<T, L> {
|
|
8
|
+
readonly options: ServerConstructorOptions<T, L>;
|
|
9
|
+
protected readonly stdout: NodeJS.WriteStream;
|
|
10
|
+
protected readonly stderr: NodeJS.WriteStream;
|
|
11
|
+
protected interactiveManager: InteractiveManager | undefined;
|
|
12
|
+
protected readonly interactive: boolean;
|
|
13
|
+
constructor(options?: ServerConstructorOptions<T, L>);
|
|
14
|
+
scope<N extends string = T>(...name: string[]): PailServerType<N, L>;
|
|
15
|
+
getInteractiveManager(): InteractiveManager | undefined;
|
|
16
|
+
wrapStd(): void;
|
|
17
|
+
restoreStd(): void;
|
|
18
|
+
wrapAll(): void;
|
|
19
|
+
restoreAll(): void;
|
|
20
|
+
clear(): void;
|
|
21
|
+
protected extendReporter(reporter: Reporter<L>): Reporter<L>;
|
|
22
|
+
private _wrapStream;
|
|
23
|
+
private _restoreStream;
|
|
24
|
+
}
|
|
25
|
+
type PailServerType<T extends string = never, L extends string = never> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = never, LC extends string = never>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
|
|
26
|
+
|
|
27
|
+
declare const createPail: <T extends string = never, L extends string = never>(options?: ConstructorOptions<T, L>) => PailServerType<T, L>;
|
|
28
|
+
declare const pail: PailServerType<never, never>;
|
|
29
|
+
|
|
30
|
+
export { ConstructorOptions, DefaultLogTypes, LoggerFunction, type PailServerType as Pail, Reporter, createPail, pail };
|
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 './
|
|
2
|
-
export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './
|
|
3
|
-
import { a as PailBrowserImpl } from './pail.
|
|
1
|
+
import { a as DefaultLogTypes, b as LoggerFunction, f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, C as ConstructorOptions } from './shared/pail.DrhFTME0.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.DrhFTME0.js';
|
|
3
|
+
import { a as PailBrowserImpl } from './shared/pail.CHPrWCMI.js';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
6
6
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var $=Object.defineProperty;var a=(r,t)=>$(r,"name",{value:t,configurable:!0});import{stdout as m,stderr as S,env as f}from"node:process";import{t as I,w as E,n as j,a as O}from"./shared/pail.CzAicDBX.mjs";import{StringDecoder as M}from"node:string_decoder";import{a as P}from"./shared/pail.DvAyNJOC.mjs";import{L as A}from"./shared/pail.CNxJnpWG.mjs";import{g as R}from"./shared/pail.nEbRCLhY.mjs";var x=Object.defineProperty,N=a((r,t)=>x(r,"name",{value:t,configurable:!0}),"l$1");let D=class{static{a(this,"v")}static{N(this,"InteractiveManager")}#t;#e=!1;#s=!1;#r=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#r}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#s}erase(t,e=this.#r){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.#s&&(this.#s=!1,e&&this.erase(t,e),this.#r=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#s||(this.#s=!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 o=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 h=e.reduce((d,L)=>[...d,E(L,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=l?(o.erase(i),c<u&&(h=h.slice(u-c+1))):l&&o.erase(l),o.write(h.join(`
|
|
2
|
+
`)+`
|
|
3
|
+
`),this.#r=u?u+h.length+1:h.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#r=0,this.#i=0}};var T=Object.defineProperty,y=a((r,t)=>T(r,"name",{value:t,configurable:!0}),"n$1");const n="\x1B[",v=n+"2J",B=n+"2K",k=n+"G",G=y((r=1)=>n+r+"A","cursorUp"),w=process.platform==="win32"?`${v}${n}0f`:`${v}${n}3J${n}H`,H=n+"?25l",V=n+"?25h",C=y(r=>{let t="";for(let e=0;e<r;e++)t+=B+(e<r-1?G():"");return r&&(t+=k),t},"eraseLines");var J=Object.defineProperty,U=a((r,t)=>J(r,"name",{value:t,configurable:!0}),"s$1");let g=class _{static{a(this,"t")}static{U(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new M;#e=[];#s;#r;constructor(t){this.#s=t.write,this.#r=t}active(){this.write(H),this.#r.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(),_.DRAIN}}erase(t){t>0&&this.write(C(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.#r.write=this.#s,this.write(V)}write(t){this.#s.apply(this.#r,[t])}};var z=Object.defineProperty,K=a((r,t)=>z(r,"name",{value:t,configurable:!0}),"d");class W{static{a(this,"S")}static{K(this,"RawReporter")}#t;#e;#s;#r;#i=!1;constructor(){this.#e=m,this.#s=S}setStdout(t){this.#e=t}setStderr(t){this.#s=t}setStringify(t){this.#t=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#i=t}log(t){const{context:e,groups:s,message:o,type:p}=t,i=[],c=typeof o=="string"?o:this.#t(o);i.push(c+""),e&&i.push(...e.map(d=>typeof d=="object"?" "+this.#t(d):" "+d));const l=["error","trace","warn"].includes(p.level)?"stderr":"stdout",u=l==="stderr"?this.#s:this.#e,h=s.map(()=>" ").join("");this.#i&&this.#r!==void 0&&u.isTTY?this.#r.update(l,(h+i.join("")).split(`
|
|
5
|
+
`),0):j(h+i.join(""),u)}}var Y=Object.defineProperty,q=a((r,t)=>Y(r,"name",{value:t,configurable:!0}),"a");let F=class extends P{static{a(this,"f")}constructor(t={}){const{interactive:e,rawReporter:s,reporters:o,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 D(new g(this.stdout),new g(this.stderr))),Array.isArray(o)&&this.registerReporters(o),this.rawReporter=this.extendReporter(t.rawReporter??new W)}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(w),this.stderr.write(w)}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,b=a((r,t)=>X(r,"name",{value:t,configurable:!0}),"t");const Z=b(()=>f.NODE_ENV==="debug"||f.DEBUG!==void 0?"debug":f.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),tt=b(r=>{let t=Z();return f.PAIL_LOG_LEVEL!==void 0&&(t=f.PAIL_LOG_LEVEL),new Q({logLevel:t,processors:[new R,new A],reporters:[new O],stderr:S,stdout:m,...r})},"createPail"),lt=tt();export{tt as createPail,lt as pail};
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkF4FJCQ4L_cjs = require('./chunk-F4FJCQ4L.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "MessageFormatterProcessor", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkF4FJCQ4L_cjs.a; }
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=out.js.map
|
|
12
|
-
//# sourceMappingURL=processor.browser.cjs.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/pail.B85Cx0UJ.cjs");exports.MessageFormatterProcessor=e.g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta } from './
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DrhFTME0.cjs';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
|
|
5
5
|
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DrhFTME0.mjs';
|
|
3
|
+
import '@visulima/colorize';
|
|
4
|
+
|
|
5
|
+
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
6
|
+
#private;
|
|
7
|
+
constructor(options?: {
|
|
8
|
+
formatters?: Record<string, FormatterFunction>;
|
|
9
|
+
});
|
|
10
|
+
setStringify(function_: any): void;
|
|
11
|
+
process(meta: Meta<L>): Meta<L>;
|
|
12
|
+
private _format;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { MessageFormatterProcessor };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta } from './
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta } from './shared/pail.DrhFTME0.js';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
|
|
5
5
|
declare class MessageFormatterProcessor<L extends string = string> implements StringifyAwareProcessor<L> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as o}from"./shared/pail.nEbRCLhY.mjs";export{o as MessageFormatterProcessor};
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkVWAGNTLB_cjs = require('./chunk-VWAGNTLB.cjs');
|
|
4
|
-
var chunkF4FJCQ4L_cjs = require('./chunk-F4FJCQ4L.cjs');
|
|
5
|
-
|
|
6
|
-
var o=()=>{let i=Error.prepareStackTrace;try{let r=[];Error.prepareStackTrace=(n,l)=>{let u=l.slice(1);return r=u,u},new Error().stack;let e=r.reduce((n,l)=>(n.push({columnNumber:l.getColumnNumber(),fileName:l.getFileName(),lineNumber:l.getLineNumber()}),n),[]).at(-2);return e?{columnNumber:e.columnNumber??void 0,fileName:e.fileName,lineNumber:e.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=i;}};var t=class{process(r){let{columnNumber:m,fileName:e,lineNumber:n}=o();return r.file={column:m,line:n,name:e},r}};
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ErrorProcessor", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkVWAGNTLB_cjs.a; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "MessageFormatterProcessor", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkF4FJCQ4L_cjs.a; }
|
|
15
|
-
});
|
|
16
|
-
exports.CallerProcessor = t;
|
|
17
|
-
//# sourceMappingURL=out.js.map
|
|
18
|
-
//# sourceMappingURL=processor.server.cjs.map
|
|
1
|
+
"use strict";var i=Object.defineProperty;var t=(o,e)=>i(o,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./shared/pail.C0epjAht.cjs"),c=require("./shared/pail.B85Cx0UJ.cjs");var m=Object.defineProperty,u=t((o,e)=>m(o,"name",{value:e,configurable:!0}),"u");const N=u(()=>{const o=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(l,r)=>{const s=r.slice(1);return e=s,s},new Error().stack;const a=e.reduce((l,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||l.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),l),[])[0];return a?{columnNumber:a.columnNumber??void 0,fileName:a.fileName,lineNumber:a.lineNumber??void 0}:{fileName:"anonymous",lineNumber:void 0}}finally{Error.prepareStackTrace=o}},"getCallerFilename");var b=Object.defineProperty,f=t((o,e)=>b(o,"name",{value:e,configurable:!0}),"r");class g{static{t(this,"o")}static{f(this,"CallerProcessor")}process(e){const{columnNumber:a,fileName:l,lineNumber:r}=N();return e.file={column:a,line:r,name:l},e}}const p=g;exports.ErrorProcessor=n.L;exports.MessageFormatterProcessor=c.g;exports.CallerProcessor=p;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { P as Processor, M as Meta } from './shared/pail.DrhFTME0.mjs';
|
|
2
|
+
export { MessageFormatterProcessor } from './processor.browser.mjs';
|
|
3
|
+
import '@visulima/colorize';
|
|
4
|
+
import '@visulima/fmt';
|
|
5
|
+
|
|
6
|
+
declare global {
|
|
7
|
+
namespace VisulimaPail {
|
|
8
|
+
interface CustomMeta<L> {
|
|
9
|
+
file: {
|
|
10
|
+
column: number | undefined;
|
|
11
|
+
line: number | undefined;
|
|
12
|
+
name: string | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare class CallerProcessor<L extends string = never> implements Processor<L> {
|
|
18
|
+
process(meta: Meta<L>): Meta<L>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type SerializedError<ErrorType = Error> = Record<PropertyKey, unknown> & {
|
|
22
|
+
aggregateErrors?: SerializedError<ErrorType>[];
|
|
23
|
+
cause?: unknown;
|
|
24
|
+
code?: string;
|
|
25
|
+
message: string;
|
|
26
|
+
name: string;
|
|
27
|
+
raw?: ErrorType;
|
|
28
|
+
stack?: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare global {
|
|
32
|
+
namespace VisulimaPail {
|
|
33
|
+
interface CustomMeta<L> {
|
|
34
|
+
error: SerializedError | undefined;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
declare class ErrorProcessor<L extends string = never> implements Processor<L> {
|
|
39
|
+
private readonly _options;
|
|
40
|
+
constructor(options?: {
|
|
41
|
+
maxDepth?: number;
|
|
42
|
+
useToJSON?: boolean;
|
|
43
|
+
});
|
|
44
|
+
process(meta: Meta<L>): Meta<L>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { CallerProcessor, ErrorProcessor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var n=(a,e)=>i(a,"name",{value:e,configurable:!0});import{L as d}from"./shared/pail.CNxJnpWG.mjs";import{g as y}from"./shared/pail.nEbRCLhY.mjs";var m=Object.defineProperty,s=n((a,e)=>m(a,"name",{value:e,configurable:!0}),"u");const c=s(()=>{const a=Error.prepareStackTrace;try{let e=[];Error.prepareStackTrace=(l,r)=>{const t=r.slice(1);return e=t,t},new Error().stack;const o=e.reduce((l,r)=>(r.isNative()||r.getFileName()?.includes("pail/dist")||l.push({columnNumber:r.getColumnNumber(),fileName:r.getFileName(),lineNumber:r.getLineNumber()}),l),[])[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 u=Object.defineProperty,N=n((a,e)=>u(a,"name",{value:e,configurable:!0}),"r");class b{static{n(this,"o")}static{N(this,"CallerProcessor")}process(e){const{columnNumber:o,fileName:l,lineNumber:r}=c();return e.file={column:o,line:r,name:l},e}}const f=b;export{f as CallerProcessor,d as ErrorProcessor,y as MessageFormatterProcessor};
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var T=Object.defineProperty;var f=(n,l)=>T(n,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./shared/pail.zBliJm8v.cjs"),o=require("@visulima/colorize/browser"),i=require("@visulima/fmt"),v=require("./shared/pail.t5UYgSXE.cjs"),C=require("./shared/pail.DwWkopDF.cjs"),F=require("./shared/pail.BU1VqUN1.cjs"),M=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),D=M(o);var O=Object.defineProperty,k=f((n,l)=>O(n,"name",{value:l,configurable:!0}),"v");class B extends v.AbstractPrettyReporter{static{f(this,"F")}static{k(this,"PrettyReporter")}constructor(l={}){super({uppercase:{label:!0,...l.uppercase},...l})}log(l){const t=typeof window<"u"&&typeof window.document<"u",_=F.a(l.type.level),{badge:w,context:x,date:u,error:A,groups:g,label:y,message:L,prefix:d,repeated:h,scope:p,suffix:m,type:R}=l,{color:P}=this._loggerTypes[R.name],j=P?D[P]: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=j(w);t?s.push(i.format(e[0],e.slice(1))):s.push([e[0]+" ",...e.slice(1)])}else{const e=v.o(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 q=C.o(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=j(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=q.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(q.length+1));t?s.push(i.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(p)&&p.length>0){const e=o.grey("["+p.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(p)&&p.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(s.push(L),x&&s.push(...x),A&&s.push(A,`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var chunkYP3U3DTV_cjs = require('./chunk-YP3U3DTV.cjs');
|
|
7
|
-
var chunkQINSQ6TU_cjs = require('./chunk-QINSQ6TU.cjs');
|
|
8
|
-
var z = require('@visulima/colorize/browser');
|
|
9
|
-
var fmt = require('@visulima/fmt');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var z__default = /*#__PURE__*/_interopDefault(z);
|
|
14
|
-
|
|
15
|
-
var m=class extends chunkYP3U3DTV_cjs.b{constructor(r={}){super({uppercase:{label:!0,...r.uppercase},...r});}log(r){let t=typeof window<"u"&&typeof window.document<"u",w=chunkN2UPJYJR_cjs.a(r.type.level),{badge:b,context:L,date:x,error:_,groups:p,label:u,message:k,prefix:f,repeated:c,scope:g,suffix:h,type:D}=r,{color:S}=this._loggerTypes[D.name],T=S?z__default.default[S]:z.white,e=[];if(t&&p.length>0){let s=p.map(()=>" ").join(""),n=z.grey("["+p.at(-1)+"]");e.push(fmt.format(s+n[0],n.slice(1)));}if(x){let s=z.grey(this._styles.dateFormatter(new Date(x)));t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0]+" ",...s.slice(1)]);}if(b){let s=T(b);t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0]+" ",...s.slice(1)]);}else {let s=chunkYP3U3DTV_cjs.a(this._loggerTypes);if(s.length>0){let n=z.grey(".".repeat(s.length));t?e.push(fmt.format(n[0]+" ",n.slice(1))):e.push([n[0]+" ",...n.slice(1)]);}}let v=chunkQINSQ6TU_cjs.c(this._loggerTypes),d;if(c){let s=z.white("["+c+"x]");d=t?fmt.format(s[0],s.slice(1)):[s[0],...s.slice(1)];}if(u){let s=T(this._formatLabel(u));t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]),d&&e.push(d);let n=v.length-u.length;if(c?n-=String(c).length+3:n+=1,n>0){let a=z.grey(".".repeat(n));t?e.push(fmt.format(a[0],a.slice(1))):e.push([" "+a[0],...a.slice(1)]);}}else {let s=z.grey(".".repeat(v.length+1));t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]);}if(Array.isArray(g)&&g.length>0){let s=z.grey("["+g.join(" > ")+"]");t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]);}if(f){let s=z.grey((Array.isArray(g)&&g.length>0?". ":" ")+"["+(this._styles.underline.prefix?z.underline(f):f)+"] ");t?e.push(fmt.format(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]);}if(k&&(e.push(k),L&&e.push(...L)),_&&e.push(_,`
|
|
16
|
-
|
|
17
|
-
`),h){let s=z.grey(this._styles.underline.suffix?z.underline(h):h);t?e.push(fmt.format(`
|
|
18
|
-
`+s[0],s.slice(1))):e.push([`
|
|
19
|
-
`+s[0],...s.slice(1)]);}if(t)w(...e);else {let s="",n=[],a=[];for(let l of e)Array.isArray(l)&&l.length>1&&l[0].includes("%c")?(s+=l[0],n.push(...l.slice(1))):a.push(l);w(s+"%c",...n,"",...a);}}_formatLabel(r){let t=this._styles.uppercase.label?r.toUpperCase():r;return t=this._styles.underline.label?z.underline(t):t,this._styles.bold.label&&(t=z.bold(t)),t}};
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "JsonReporter", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return chunk5MNFJRLM_cjs.a; }
|
|
24
|
-
});
|
|
25
|
-
exports.PrettyReporter = m;
|
|
26
|
-
//# sourceMappingURL=out.js.map
|
|
27
|
-
//# sourceMappingURL=reporter.browser.cjs.map
|
|
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 a of s)Array.isArray(a)&&a.length>1&&a[0].includes("%c")?(e+=a[0],r.push(...a.slice(1))):c.push(a);_(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 J=B;exports.JsonReporter=S.i;exports.PrettyReporter=J;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './
|
|
1
|
+
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.DrhFTME0.cjs';
|
|
2
|
+
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.B4CNQvGO.cjs';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.DrhFTME0.mjs';
|
|
2
|
+
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.qb_TjNJQ.mjs';
|
|
3
|
+
import '@visulima/colorize';
|
|
4
|
+
import 'safe-stable-stringify';
|
|
5
|
+
|
|
6
|
+
declare class JsonReporter<L extends string = never> extends AbstractJsonReporter<L> {
|
|
7
|
+
constructor();
|
|
8
|
+
protected _log(message: string, logLevel: LiteralUnion<ExtendedRfc5424LogLevels, L>): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class PrettyReporter<T extends string = never, L extends string = never> extends AbstractPrettyReporter<T, L> {
|
|
12
|
+
constructor(options?: Partial<PrettyStyleOptions>);
|
|
13
|
+
log(meta: ReadonlyMeta<L>): void;
|
|
14
|
+
private _formatLabel;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { JsonReporter, PrettyReporter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './
|
|
1
|
+
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './shared/pail.DrhFTME0.js';
|
|
2
|
+
import { A as AbstractJsonReporter, a as AbstractPrettyReporter, P as PrettyStyleOptions } from './shared/pail.Bdbc3_zr.js';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
|