@visulima/pail 2.1.29 → 2.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE.md +74 -73
  3. package/dist/index.browser.cjs +1 -1
  4. package/dist/index.browser.d.cts +4 -3
  5. package/dist/index.browser.d.mts +4 -3
  6. package/dist/index.browser.d.ts +4 -3
  7. package/dist/index.browser.mjs +1 -1
  8. package/dist/index.server.cjs +5 -5
  9. package/dist/index.server.d.cts +7 -5
  10. package/dist/index.server.d.mts +7 -5
  11. package/dist/index.server.d.ts +7 -5
  12. package/dist/index.server.mjs +5 -5
  13. package/dist/packem_shared/JsonFileReporter-B7cJWaL5.cjs +2 -0
  14. package/dist/packem_shared/JsonFileReporter-raQZY3Ci.mjs +4 -0
  15. package/dist/packem_shared/JsonReporter-0IxBO0rl.mjs +2 -0
  16. package/dist/packem_shared/{JsonReporter-BdExg5gk.mjs → JsonReporter-CRzHu5q7.mjs} +1 -1
  17. package/dist/packem_shared/{JsonReporter-DuF0Ho5i.cjs → JsonReporter-DZvKFDz6.cjs} +1 -1
  18. package/dist/packem_shared/{JsonReporter-CjvkrXUp.cjs → JsonReporter-U9kk2_gT.cjs} +1 -1
  19. package/dist/packem_shared/{MessageFormatterProcessor-CCRIUIdT.cjs → MessageFormatterProcessor-D_s8r8ot.cjs} +1 -1
  20. package/dist/packem_shared/{MessageFormatterProcessor-BjBZzL2D.mjs → MessageFormatterProcessor-rkvAy05-.mjs} +1 -1
  21. package/dist/packem_shared/PrettyReporter-1aoZvU3r.mjs +5 -0
  22. package/dist/packem_shared/PrettyReporter-BSm1ACaz.cjs +13 -0
  23. package/dist/packem_shared/PrettyReporter-C0Qa7g8i.mjs +13 -0
  24. package/dist/packem_shared/PrettyReporter-CklpEjI1.cjs +5 -0
  25. package/dist/packem_shared/SimpleReporter-BajPeBDy.mjs +11 -0
  26. package/dist/packem_shared/SimpleReporter-DiFOEIps.cjs +11 -0
  27. package/dist/packem_shared/{abstract-json-reporter-tFmKAzRZ.mjs → abstract-json-reporter-B_QC6gt7.mjs} +1 -1
  28. package/dist/packem_shared/{abstract-json-reporter-Z6bVrpPK.cjs → abstract-json-reporter-C1jqd5bO.cjs} +1 -1
  29. package/dist/packem_shared/{abstract-pretty-reporter-Che3NKVZ.d.cts → abstract-pretty-reporter-C5UVAUaP.d.cts} +4 -2
  30. package/dist/packem_shared/{abstract-pretty-reporter-BCpBhS2D.d.mts → abstract-pretty-reporter-CDuO-IFk.d.ts} +4 -2
  31. package/dist/packem_shared/{abstract-pretty-reporter-Ct4QMQNG.d.ts → abstract-pretty-reporter-Ckmv6CnU.d.mts} +4 -2
  32. package/dist/packem_shared/format-label-B496HVjo.mjs +8 -0
  33. package/dist/packem_shared/format-label-BkRisUmO.cjs +8 -0
  34. package/dist/packem_shared/{pail.browser-C-ZREoyB.d.ts → pail.browser-2KlA4DJS.d.cts} +5 -3
  35. package/dist/packem_shared/{pail.browser-CTdItWYz.d.cts → pail.browser-B9eJPHAe.d.mts} +5 -3
  36. package/dist/packem_shared/{pail.browser-CFOAjmHW.d.mts → pail.browser-CaPhlNua.d.ts} +5 -3
  37. package/dist/packem_shared/pail.browser-Di9_5Zcq.mjs +1 -0
  38. package/dist/packem_shared/pail.browser-vVxBu_Xl.cjs +1 -0
  39. package/dist/packem_shared/{types-BGWAKixQ.d.cts → types-CMdBdNgA.d.cts} +3 -56
  40. package/dist/packem_shared/{types-BGWAKixQ.d.mts → types-CMdBdNgA.d.mts} +3 -56
  41. package/dist/packem_shared/{types-BGWAKixQ.d.ts → types-CMdBdNgA.d.ts} +3 -56
  42. package/dist/processor.browser.cjs +1 -1
  43. package/dist/processor.browser.d.cts +2 -1
  44. package/dist/processor.browser.d.mts +2 -1
  45. package/dist/processor.browser.d.ts +2 -1
  46. package/dist/processor.browser.mjs +1 -1
  47. package/dist/processor.server.cjs +1 -1
  48. package/dist/processor.server.d.cts +2 -1
  49. package/dist/processor.server.d.mts +2 -1
  50. package/dist/processor.server.d.ts +2 -1
  51. package/dist/processor.server.mjs +1 -1
  52. package/dist/reporter.browser.cjs +1 -1
  53. package/dist/reporter.browser.d.cts +3 -2
  54. package/dist/reporter.browser.d.mts +3 -2
  55. package/dist/reporter.browser.d.ts +3 -2
  56. package/dist/reporter.browser.mjs +1 -1
  57. package/dist/reporter.server.cjs +1 -1
  58. package/dist/reporter.server.d.cts +5 -3
  59. package/dist/reporter.server.d.mts +5 -3
  60. package/dist/reporter.server.d.ts +5 -3
  61. package/dist/reporter.server.mjs +1 -1
  62. package/package.json +45 -44
  63. package/dist/packem_shared/JsonFileReporter-BnxuhH4o.cjs +0 -2
  64. package/dist/packem_shared/JsonFileReporter-Og8hyKfg.mjs +0 -4
  65. package/dist/packem_shared/JsonReporter-DRGJgjAO.mjs +0 -2
  66. package/dist/packem_shared/PrettyReporter-BRFlkORc.mjs +0 -5
  67. package/dist/packem_shared/PrettyReporter-BuKPqA5T.cjs +0 -5
  68. package/dist/packem_shared/PrettyReporter-DDsX0vlT.mjs +0 -13
  69. package/dist/packem_shared/PrettyReporter-Dx1OfdGj.cjs +0 -13
  70. package/dist/packem_shared/SimpleReporter-BV0taliz.mjs +0 -11
  71. package/dist/packem_shared/SimpleReporter-YuzZZabX.cjs +0 -11
  72. package/dist/packem_shared/format-label-CKRxcWAQ.cjs +0 -8
  73. package/dist/packem_shared/format-label-D2xt_3df.mjs +0 -8
  74. package/dist/packem_shared/pail.browser-DC6QwLTj.cjs +0 -1
  75. package/dist/packem_shared/pail.browser-DkNIDzgk.mjs +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## @visulima/pail [2.1.30](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.29...@visulima/pail@2.1.30) (2025-10-15)
2
+
3
+ ### Bug Fixes
4
+
5
+ * consolidate ESLint configuration and remove obsolete files for improved maintainability ([5b3e825](https://github.com/visulima/visulima/commit/5b3e825f3f2f428c9fb0950c300de10b42b657f9))
6
+ * update @visulima/packem to 2.0.0-alpha.30 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * update package dependencies across multiple packages for improved compatibility and performance ([9567591](https://github.com/visulima/visulima/commit/9567591c415da3002f3a4fe08f8caf7ce01ca5f7))
11
+
12
+
13
+ ### Dependencies
14
+
15
+ * **@visulima/colorize:** upgraded to 1.4.24
16
+ * **@visulima/error:** upgraded to 5.0.0
17
+ * **@visulima/fmt:** upgraded to 1.1.16
18
+ * **@visulima/inspector:** upgraded to 1.0.25
19
+ * **@visulima/redact:** upgraded to 2.0.0
20
+
1
21
  ## @visulima/pail [2.1.29](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.28...@visulima/pail@2.1.29) (2025-09-23)
2
22
 
3
23
  ### Miscellaneous Chores
package/LICENSE.md CHANGED
@@ -194,11 +194,14 @@ Repository: chalk/wrap-ansi
194
194
  <!-- TYPE_DEPENDENCIES -->
195
195
 
196
196
  # Licenses of bundled types
197
+
197
198
  The published @visulima/pail artifact additionally contains code with the following licenses:
198
199
  (MIT OR CC0-1.0)
199
200
 
200
201
  # Bundled types:
202
+
201
203
  ## type-fest
204
+
202
205
  License: (MIT OR CC0-1.0)
203
206
  By: Sindre Sorhus
204
207
  Repository: sindresorhus/type-fest
@@ -243,86 +246,84 @@ Repository: sindresorhus/type-fest
243
246
  > Work and the meaning and intended legal effect of CC0 on those rights.
244
247
  >
245
248
  > 1. Copyright and Related Rights. A Work made available under CC0 may be
246
- > protected by copyright and related or neighboring rights ("Copyright and
247
- > Related Rights"). Copyright and Related Rights include, but are not
248
- > limited to, the following:
249
+ > protected by copyright and related or neighboring rights ("Copyright and
250
+ > Related Rights"). Copyright and Related Rights include, but are not
251
+ > limited to, the following:
249
252
  >
250
- > i. the right to reproduce, adapt, distribute, perform, display,
251
- > communicate, and translate a Work;
252
- > ii. moral rights retained by the original author(s) and/or performer(s);
253
+ > i. the right to reproduce, adapt, distribute, perform, display,
254
+ > communicate, and translate a Work;
255
+ > ii. moral rights retained by the original author(s) and/or performer(s);
253
256
  > iii. publicity and privacy rights pertaining to a person's image or
254
- > likeness depicted in a Work;
255
- > iv. rights protecting against unfair competition in regards to a Work,
256
- > subject to the limitations in paragraph 4(a), below;
257
- > v. rights protecting the extraction, dissemination, use and reuse of data
258
- > in a Work;
259
- > vi. database rights (such as those arising under Directive 96/9/EC of the
260
- > European Parliament and of the Council of 11 March 1996 on the legal
261
- > protection of databases, and under any national implementation
262
- > thereof, including any amended or successor version of such
263
- > directive); and
257
+ > likeness depicted in a Work;
258
+ > iv. rights protecting against unfair competition in regards to a Work,
259
+ > subject to the limitations in paragraph 4(a), below;
260
+ > v. rights protecting the extraction, dissemination, use and reuse of data
261
+ > in a Work;
262
+ > vi. database rights (such as those arising under Directive 96/9/EC of the
263
+ > European Parliament and of the Council of 11 March 1996 on the legal
264
+ > protection of databases, and under any national implementation
265
+ > thereof, including any amended or successor version of such
266
+ > directive); and
264
267
  > vii. other similar, equivalent or corresponding rights throughout the
265
- > world based on applicable law or treaty, and any national
266
- > implementations thereof.
268
+ > world based on applicable law or treaty, and any national
269
+ > implementations thereof.
267
270
  >
268
271
  > 2. Waiver. To the greatest extent permitted by, but not in contravention
269
- > of, applicable law, Affirmer hereby overtly, fully, permanently,
270
- > irrevocably and unconditionally waives, abandons, and surrenders all of
271
- > Affirmer's Copyright and Related Rights and associated claims and causes
272
- > of action, whether now known or unknown (including existing as well as
273
- > future claims and causes of action), in the Work (i) in all territories
274
- > worldwide, (ii) for the maximum duration provided by applicable law or
275
- > treaty (including future time extensions), (iii) in any current or future
276
- > medium and for any number of copies, and (iv) for any purpose whatsoever,
277
- > including without limitation commercial, advertising or promotional
278
- > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
279
- > member of the public at large and to the detriment of Affirmer's heirs and
280
- > successors, fully intending that such Waiver shall not be subject to
281
- > revocation, rescission, cancellation, termination, or any other legal or
282
- > equitable action to disrupt the quiet enjoyment of the Work by the public
283
- > as contemplated by Affirmer's express Statement of Purpose.
284
- >
272
+ > of, applicable law, Affirmer hereby overtly, fully, permanently,
273
+ > irrevocably and unconditionally waives, abandons, and surrenders all of
274
+ > Affirmer's Copyright and Related Rights and associated claims and causes
275
+ > of action, whether now known or unknown (including existing as well as
276
+ > future claims and causes of action), in the Work (i) in all territories
277
+ > worldwide, (ii) for the maximum duration provided by applicable law or
278
+ > treaty (including future time extensions), (iii) in any current or future
279
+ > medium and for any number of copies, and (iv) for any purpose whatsoever,
280
+ > including without limitation commercial, advertising or promotional
281
+ > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
282
+ > member of the public at large and to the detriment of Affirmer's heirs and
283
+ > successors, fully intending that such Waiver shall not be subject to
284
+ > revocation, rescission, cancellation, termination, or any other legal or
285
+ > equitable action to disrupt the quiet enjoyment of the Work by the public
286
+ > as contemplated by Affirmer's express Statement of Purpose.
285
287
  > 3. Public License Fallback. Should any part of the Waiver for any reason
286
- > be judged legally invalid or ineffective under applicable law, then the
287
- > Waiver shall be preserved to the maximum extent permitted taking into
288
- > account Affirmer's express Statement of Purpose. In addition, to the
289
- > extent the Waiver is so judged Affirmer hereby grants to each affected
290
- > person a royalty-free, non transferable, non sublicensable, non exclusive,
291
- > irrevocable and unconditional license to exercise Affirmer's Copyright and
292
- > Related Rights in the Work (i) in all territories worldwide, (ii) for the
293
- > maximum duration provided by applicable law or treaty (including future
294
- > time extensions), (iii) in any current or future medium and for any number
295
- > of copies, and (iv) for any purpose whatsoever, including without
296
- > limitation commercial, advertising or promotional purposes (the
297
- > "License"). The License shall be deemed effective as of the date CC0 was
298
- > applied by Affirmer to the Work. Should any part of the License for any
299
- > reason be judged legally invalid or ineffective under applicable law, such
300
- > partial invalidity or ineffectiveness shall not invalidate the remainder
301
- > of the License, and in such case Affirmer hereby affirms that he or she
302
- > will not (i) exercise any of his or her remaining Copyright and Related
303
- > Rights in the Work or (ii) assert any associated claims and causes of
304
- > action with respect to the Work, in either case contrary to Affirmer's
305
- > express Statement of Purpose.
306
- >
288
+ > be judged legally invalid or ineffective under applicable law, then the
289
+ > Waiver shall be preserved to the maximum extent permitted taking into
290
+ > account Affirmer's express Statement of Purpose. In addition, to the
291
+ > extent the Waiver is so judged Affirmer hereby grants to each affected
292
+ > person a royalty-free, non transferable, non sublicensable, non exclusive,
293
+ > irrevocable and unconditional license to exercise Affirmer's Copyright and
294
+ > Related Rights in the Work (i) in all territories worldwide, (ii) for the
295
+ > maximum duration provided by applicable law or treaty (including future
296
+ > time extensions), (iii) in any current or future medium and for any number
297
+ > of copies, and (iv) for any purpose whatsoever, including without
298
+ > limitation commercial, advertising or promotional purposes (the
299
+ > "License"). The License shall be deemed effective as of the date CC0 was
300
+ > applied by Affirmer to the Work. Should any part of the License for any
301
+ > reason be judged legally invalid or ineffective under applicable law, such
302
+ > partial invalidity or ineffectiveness shall not invalidate the remainder
303
+ > of the License, and in such case Affirmer hereby affirms that he or she
304
+ > will not (i) exercise any of his or her remaining Copyright and Related
305
+ > Rights in the Work or (ii) assert any associated claims and causes of
306
+ > action with respect to the Work, in either case contrary to Affirmer's
307
+ > express Statement of Purpose.
307
308
  > 4. Limitations and Disclaimers.
308
309
  >
309
- > a. No trademark or patent rights held by Affirmer are waived, abandoned,
310
- > surrendered, licensed or otherwise affected by this document.
311
- > b. Affirmer offers the Work as-is and makes no representations or
312
- > warranties of any kind concerning the Work, express, implied,
313
- > statutory or otherwise, including without limitation warranties of
314
- > title, merchantability, fitness for a particular purpose, non
315
- > infringement, or the absence of latent or other defects, accuracy, or
316
- > the present or absence of errors, whether or not discoverable, all to
317
- > the greatest extent permissible under applicable law.
318
- > c. Affirmer disclaims responsibility for clearing rights of other persons
319
- > that may apply to the Work or any use thereof, including without
320
- > limitation any person's Copyright and Related Rights in the Work.
321
- > Further, Affirmer disclaims responsibility for obtaining any necessary
322
- > consents, permissions or other rights required for any use of the
323
- > Work.
324
- > d. Affirmer understands and acknowledges that Creative Commons is not a
325
- > party to this document and has no duty or obligation with respect to
326
- > this CC0 or use of the Work.
310
+ > a. No trademark or patent rights held by Affirmer are waived, abandoned,
311
+ > surrendered, licensed or otherwise affected by this document.
312
+ > b. Affirmer offers the Work as-is and makes no representations or
313
+ > warranties of any kind concerning the Work, express, implied,
314
+ > statutory or otherwise, including without limitation warranties of
315
+ > title, merchantability, fitness for a particular purpose, non
316
+ > infringement, or the absence of latent or other defects, accuracy, or
317
+ > the present or absence of errors, whether or not discoverable, all to
318
+ > the greatest extent permissible under applicable law.
319
+ > c. Affirmer disclaims responsibility for clearing rights of other persons
320
+ > that may apply to the Work or any use thereof, including without
321
+ > limitation any person's Copyright and Related Rights in the Work.
322
+ > Further, Affirmer disclaims responsibility for obtaining any necessary
323
+ > consents, permissions or other rights required for any use of the
324
+ > Work.
325
+ > d. Affirmer understands and acknowledges that Creative Commons is not a
326
+ > party to this document and has no duty or obligation with respect to
327
+ > this CC0 or use of the Work.
327
328
 
328
329
  <!-- /TYPE_DEPENDENCIES -->
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./packem_shared/pail.browser-DC6QwLTj.cjs"),i=require("./packem_shared/MessageFormatterProcessor-CCRIUIdT.cjs"),l=require("./packem_shared/JsonReporter-CjvkrXUp.cjs");var u=Object.defineProperty,c=t((e,r)=>u(e,"name",{value:r,configurable:!0}),"e");const a=c(e=>new s.P({processors:[new i],reporters:[new l],...e}),"createPail"),n=a();exports.createPail=a;exports.pail=n;
1
+ "use strict";var o=Object.defineProperty;var t=(e,r)=>o(e,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./packem_shared/pail.browser-vVxBu_Xl.cjs"),i=require("./packem_shared/MessageFormatterProcessor-D_s8r8ot.cjs"),l=require("./packem_shared/JsonReporter-U9kk2_gT.cjs");var u=Object.defineProperty,c=t((e,r)=>u(e,"name",{value:r,configurable:!0}),"e");const a=c(e=>new s.P({processors:[new i],reporters:[new l],...e}),"createPail"),n=a();exports.createPail=a;exports.pail=n;
@@ -1,7 +1,8 @@
1
- import { P as PailBrowserType } from './packem_shared/pail.browser-CTdItWYz.cjs';
2
- import { C as ConstructorOptions } from './packem_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 './packem_shared/types-BGWAKixQ.cjs';
1
+ import { P as PailBrowserType } from './packem_shared/pail.browser-2KlA4DJS.cjs';
2
+ import { C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.cjs';
4
4
  import 'safe-stable-stringify';
5
+ import 'type-fest';
5
6
  import '@visulima/colorize';
6
7
 
7
8
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailBrowserType<T, L>;
@@ -1,7 +1,8 @@
1
- import { P as PailBrowserType } from './packem_shared/pail.browser-CFOAjmHW.mjs';
2
- import { C as ConstructorOptions } from './packem_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 './packem_shared/types-BGWAKixQ.mjs';
1
+ import { P as PailBrowserType } from './packem_shared/pail.browser-B9eJPHAe.mjs';
2
+ import { C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.mjs';
4
4
  import 'safe-stable-stringify';
5
+ import 'type-fest';
5
6
  import '@visulima/colorize';
6
7
 
7
8
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailBrowserType<T, L>;
@@ -1,7 +1,8 @@
1
- import { P as PailBrowserType } from './packem_shared/pail.browser-C-ZREoyB.js';
2
- import { C as ConstructorOptions } from './packem_shared/types-BGWAKixQ.js';
3
- export { a as DefaultLogTypes, D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, b as LoggerFunction, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, R as Reporter, S as StreamAwareReporter } from './packem_shared/types-BGWAKixQ.js';
1
+ import { P as PailBrowserType } from './packem_shared/pail.browser-CaPhlNua.js';
2
+ import { C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.js';
4
4
  import 'safe-stable-stringify';
5
+ import 'type-fest';
5
6
  import '@visulima/colorize';
6
7
 
7
8
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailBrowserType<T, L>;
@@ -1 +1 @@
1
- var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{P as t}from"./packem_shared/pail.browser-DkNIDzgk.mjs";import p from"./packem_shared/MessageFormatterProcessor-BjBZzL2D.mjs";import i from"./packem_shared/JsonReporter-BdExg5gk.mjs";var m=Object.defineProperty,n=o((r,e)=>m(r,"name",{value:e,configurable:!0}),"e");const s=n(r=>new t({processors:[new p],reporters:[new i],...r}),"createPail"),w=s();export{s as createPail,w as pail};
1
+ var a=Object.defineProperty;var o=(r,e)=>a(r,"name",{value:e,configurable:!0});import{P as t}from"./packem_shared/pail.browser-Di9_5Zcq.mjs";import p from"./packem_shared/MessageFormatterProcessor-rkvAy05-.mjs";import i from"./packem_shared/JsonReporter-CRzHu5q7.mjs";var m=Object.defineProperty,n=o((r,e)=>m(r,"name",{value:e,configurable:!0}),"e");const s=n(r=>new t({processors:[new p],reporters:[new i],...r}),"createPail"),w=s();export{s as createPail,w as pail};
@@ -1,5 +1,5 @@
1
- "use strict";var E=Object.defineProperty;var n=(r,t)=>E(r,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("node:process"),f=require("./packem_shared/format-label-CKRxcWAQ.cjs"),$=require("node:string_decoder"),I=require("./packem_shared/pail.browser-DC6QwLTj.cjs"),w=require("@visulima/inspector"),P=require("./packem_shared/constants-BFrKdBPm.cjs"),j=require("./packem_shared/write-stream-Dl-usQqh.cjs"),M=require("./packem_shared/MessageFormatterProcessor-CCRIUIdT.cjs"),O=require("./packem_shared/PrettyReporter-Dx1OfdGj.cjs");var R=Object.defineProperty,q=n((r,t)=>R(r,"name",{value:t,configurable:!0}),"l$1");let A=class{static{n(this,"v")}static{q(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}=f.O(),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,f.T(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
- `)+`
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`,k=c+"?25l",B=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 $.StringDecoder;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(k),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(B)}write(t){this.#r.apply(this.#s,[t])}}var C=Object.defineProperty,J=n((r,t)=>C(r,"name",{value:t,configurable:!0}),"c");let U=class{static{n(this,"v")}static{J(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!==P.E){const o=typeof a=="string"?a:w.inspect(a,this.#i);i.push(o)}e&&i.push(...e.map(o=>typeof o=="object"?" "+w.inspect(o,this.#i):" "+o));const u=["error","trace","warn"].includes(p.level)?"stderr":"stdout",l=u==="stderr"?this.#e:this.#t,d=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&l.isTTY?this.#r.update(u,(d+i.join("")).split(`
5
- `),0):j.n(d+i.join(""),l)}};var F=Object.defineProperty,K=n((r,t)=>F(r,"name",{value:t,configurable:!0}),"a$1");class W extends I.a{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 A(new v(this.stdout),new v(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new U)}static{K(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](String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Y=W;var z=Object.defineProperty,S=n((r,t)=>z(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 Y({logLevel:t,processors:[new M],reporters:[new O.PrettyReporter],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),X=_();exports.createPail=_;exports.pail=X;
1
+ "use strict";var L=Object.defineProperty;var n=(r,t)=>L(r,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("node:process"),v=require("./packem_shared/format-label-BkRisUmO.cjs"),$=require("node:string_decoder"),E=require("./packem_shared/pail.browser-vVxBu_Xl.cjs"),f=require("@visulima/inspector"),I=require("./packem_shared/constants-BFrKdBPm.cjs"),P=require("./packem_shared/write-stream-Dl-usQqh.cjs"),j=require("./packem_shared/MessageFormatterProcessor-D_s8r8ot.cjs"),x=require("./packem_shared/PrettyReporter-BSm1ACaz.cjs");var M=Object.defineProperty,O=n((r,t)=>M(r,"name",{value:t,configurable:!0}),"l");let B=class{static{n(this,"v")}static{O(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:d,rows:i}=v.O(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),u=this.lastLength-c,l=Math.max(u-i,this.outside);let o=e.reduce((_,b)=>[..._,v.T(b,d,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=u?(a.erase(i),c<l&&(o=o.slice(l-c+1))):u&&a.erase(u),a.write(`${o.join(`
2
+ `)}
3
+ `),this.#s=l?l+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 R=Object.defineProperty,m=n((r,t)=>R(r,"name",{value:t,configurable:!0}),"t$1");const w="\x1B[2J",q="\x1B[2K",A=m((r=1)=>`${"\x1B["+r}A`,"cursorUp"),g=process.platform==="win32"?`${w}\x1B[0f`:`${w}\x1B[3J\x1B[H`,T="\x1B[?25l",N="\x1B[?25h",D=m(r=>{let t="";for(let e=0;e<r;e++)t+=q+(e<r-1?A():"");return r&&(t+="\x1B[G"),t},"eraseLines");var k=Object.defineProperty,G=n((r,t)=>k(r,"name",{value:t,configurable:!0}),"o$1");class p{static{n(this,"t")}static{G(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new $.StringDecoder;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(T),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(),p.DRAIN}}erase(t){t>0&&this.write(D(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(N)}write(t){this.#r.apply(this.#s,[t])}}var H=Object.defineProperty,V=n((r,t)=>H(r,"name",{value:t,configurable:!0}),"c");let C=class{static{n(this,"v")}static{V(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=h.stdout,this.#e=h.stderr,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:d}=t,i=[];if(a!==I.E){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 c=["error","trace","warn"].includes(d.level)?"stderr":"stdout",u=c==="stderr"?this.#e:this.#t,l=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&u.isTTY?this.#r.update(c,(l+i.join("")).split(`
5
+ `),0):P.n(l+i.join(""),u)}};var J=Object.defineProperty,U=n((r,t)=>J(r,"name",{value:t,configurable:!0}),"a$1");class F extends E.a{static{n(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:d,stdout:i,...c}=t;super(c),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=d,this.interactive&&(this.interactiveManager=new B(new p(this.stdout),new p(this.stderr))),Array.isArray(a)&&this.registerReporters(a),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(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](String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const K=F;var W=Object.defineProperty,y=n((r,t)=>W(r,"name",{value:t,configurable:!0}),"o");const Y=y(()=>h.env.NODE_ENV==="debug"||h.env.DEBUG!==void 0?"debug":h.env.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),S=y(r=>{let t=Y();return h.env.PAIL_LOG_LEVEL!==void 0&&(t=h.env.PAIL_LOG_LEVEL),new K({logLevel:t,processors:[new j],reporters:[new x.PrettyReporter],stderr:h.stderr,stdout:h.stdout,...r})},"createPail"),z=S();exports.createPail=S;exports.pail=z;
@@ -1,7 +1,8 @@
1
- import { f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_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 './packem_shared/types-BGWAKixQ.cjs';
3
- import { a as PailBrowserImpl } from './packem_shared/pail.browser-CTdItWYz.cjs';
1
+ import { e as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.cjs';
3
+ import { a as PailBrowserImpl } from './packem_shared/pail.browser-2KlA4DJS.cjs';
4
4
  import '@visulima/colorize';
5
+ import 'type-fest';
5
6
  import 'safe-stable-stringify';
6
7
 
7
8
  declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
@@ -22,9 +23,10 @@ declare class PailServerImpl<T extends string = string, L extends string = strin
22
23
  private _wrapStream;
23
24
  private _restoreStream;
24
25
  }
25
- type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
26
+ type PailServerType<T extends string = string, L extends string = string> = (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>) & PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction>;
26
27
 
27
28
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailServerType<T, L>;
28
29
  declare const pail: PailServerType<string, string>;
29
30
 
30
- export { ConstructorOptions, DefaultLogTypes, LoggerFunction, type PailServerType as Pail, Reporter, createPail, pail };
31
+ export { ConstructorOptions, DefaultLogTypes, LoggerFunction, Reporter, createPail, pail };
32
+ export type { PailServerType as Pail };
@@ -1,7 +1,8 @@
1
- import { f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_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 './packem_shared/types-BGWAKixQ.mjs';
3
- import { a as PailBrowserImpl } from './packem_shared/pail.browser-CFOAjmHW.mjs';
1
+ import { e as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.mjs';
3
+ import { a as PailBrowserImpl } from './packem_shared/pail.browser-B9eJPHAe.mjs';
4
4
  import '@visulima/colorize';
5
+ import 'type-fest';
5
6
  import 'safe-stable-stringify';
6
7
 
7
8
  declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
@@ -22,9 +23,10 @@ declare class PailServerImpl<T extends string = string, L extends string = strin
22
23
  private _wrapStream;
23
24
  private _restoreStream;
24
25
  }
25
- type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
26
+ type PailServerType<T extends string = string, L extends string = string> = (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>) & PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction>;
26
27
 
27
28
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailServerType<T, L>;
28
29
  declare const pail: PailServerType<string, string>;
29
30
 
30
- export { ConstructorOptions, DefaultLogTypes, LoggerFunction, type PailServerType as Pail, Reporter, createPail, pail };
31
+ export { ConstructorOptions, DefaultLogTypes, LoggerFunction, Reporter, createPail, pail };
32
+ export type { PailServerType as Pail };
@@ -1,7 +1,8 @@
1
- import { f as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_shared/types-BGWAKixQ.js';
2
- export { D as DefaultLoggerTypes, E as ExtendedRfc5424LogLevels, L as LoggerConfiguration, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, P as Processor, S as StreamAwareReporter } from './packem_shared/types-BGWAKixQ.js';
3
- import { a as PailBrowserImpl } from './packem_shared/pail.browser-C-ZREoyB.js';
1
+ import { e as ServerConstructorOptions, I as InteractiveManager, R as Reporter, a as DefaultLogTypes, b as LoggerFunction, C as ConstructorOptions } from './packem_shared/types-CMdBdNgA.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 './packem_shared/types-CMdBdNgA.js';
3
+ import { a as PailBrowserImpl } from './packem_shared/pail.browser-CaPhlNua.js';
4
4
  import '@visulima/colorize';
5
+ import 'type-fest';
5
6
  import 'safe-stable-stringify';
6
7
 
7
8
  declare class PailServerImpl<T extends string = string, L extends string = string> extends PailBrowserImpl<T, L> {
@@ -22,9 +23,10 @@ declare class PailServerImpl<T extends string = string, L extends string = strin
22
23
  private _wrapStream;
23
24
  private _restoreStream;
24
25
  }
25
- type PailServerType<T extends string = string, L extends string = string> = PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction> & (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>);
26
+ type PailServerType<T extends string = string, L extends string = string> = (new <TC extends string = string, LC extends string = string>(options?: ServerConstructorOptions<TC, LC>) => PailServerType<TC, LC>) & PailServerImpl<T, L> & Record<DefaultLogTypes, LoggerFunction> & Record<T, LoggerFunction>;
26
27
 
27
28
  declare const createPail: <T extends string = string, L extends string = string>(options?: ConstructorOptions<T, L>) => PailServerType<T, L>;
28
29
  declare const pail: PailServerType<string, string>;
29
30
 
30
- export { ConstructorOptions, DefaultLogTypes, LoggerFunction, type PailServerType as Pail, Reporter, createPail, pail };
31
+ export { ConstructorOptions, DefaultLogTypes, LoggerFunction, Reporter, createPail, pail };
32
+ export type { PailServerType as Pail };
@@ -1,5 +1,5 @@
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 f}from"node:process";import{O as I,T as $}from"./packem_shared/format-label-D2xt_3df.mjs";import{StringDecoder as O}from"node:string_decoder";import{a as j}from"./packem_shared/pail.browser-DkNIDzgk.mjs";import{inspect as v}from"@visulima/inspector";import{E as M}from"./packem_shared/constants-BMS51p6Y.mjs";import{n as P}from"./packem_shared/write-stream-CD8XFv1L.mjs";import R from"./packem_shared/MessageFormatterProcessor-BjBZzL2D.mjs";import{PrettyReporter as x}from"./packem_shared/PrettyReporter-DDsX0vlT.mjs";var A=Object.defineProperty,T=n((r,t)=>A(r,"name",{value:t,configurable:!0}),"l$1");let N=class{static{n(this,"v")}static{T(this,"InteractiveManager")}#t;#e=!1;#r=!1;#s=0;#i=0;constructor(t,e){this.#t={stderr:e,stdout:t}}get lastLength(){return this.#s}get outside(){return this.#i}get isHooked(){return this.#e}get isSuspended(){return this.#r}erase(t,e=this.#s){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);this.#t[t].erase(e)}hook(){return this.#e||(Object.values(this.#t).forEach(t=>t.active()),this._clear(!0)),this.#e}resume(t,e){this.#r&&(this.#r=!1,e&&this.erase(t,e),this.#s=0,Object.values(this.#t).forEach(s=>s.active()))}suspend(t,e=!0){this.#r||(this.#r=!0,e&&this.erase(t),Object.values(this.#t).forEach(s=>s.renew()))}unhook(t=!0){return this.#e&&(Object.values(this.#t).forEach(e=>e.inactive(t)),this._clear()),!this.#e}update(t,e,s=0){if(e.length>0){if(this.#t[t]===void 0)throw new TypeError(`Stream "${t}" is not available`);const a=this.#t[t],{columns:p,rows:i}=I(),c=s>i?i-1:Math.max(0,Math.min(i-1,s)),u=this.lastLength-c,l=Math.max(u-i,this.outside);let o=e.reduce((b,E)=>[...b,$(E,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=u?(a.erase(i),c<l&&(o=o.slice(l-c+1))):u&&a.erase(u),a.write(o.join(`
2
- `)+`
3
- `),this.#s=l?l+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 d{static{n(this,"t")}static{J(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new O;#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(),d.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,K=n((r,t)=>U(r,"name",{value:t,configurable:!0}),"c");let W=class{static{n(this,"v")}static{K(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=m,this.#e=y,this.#i=t}setStdout(t){this.#t=t}setStderr(t){this.#e=t}setInteractiveManager(t){this.#r=t}setIsInteractive(t){this.#s=t}log(t){const{context:e,groups:s,message:a,type:p}=t,i=[];if(a!==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(p.level)?"stderr":"stdout",u=c==="stderr"?this.#e:this.#t,l=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&u.isTTY?this.#r.update(c,(l+i.join("")).split(`
5
- `),0):P(l+i.join(""),u)}};var q=Object.defineProperty,z=n((r,t)=>q(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: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 N(new d(this.stdout),new d(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new W)}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(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](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=_(()=>f.NODE_ENV==="debug"||f.DEBUG!==void 0?"debug":f.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),tt=_(r=>{let t=Z();return f.PAIL_LOG_LEVEL!==void 0&&(t=f.PAIL_LOG_LEVEL),new Q({logLevel:t,processors:[new R],reporters:[new x],stderr:y,stdout:m,...r})},"createPail"),ft=tt();export{tt as createPail,ft as pail};
1
+ var E=Object.defineProperty;var o=(r,t)=>E(r,"name",{value:t,configurable:!0});import{createRequire as L}from"node:module";import{O as x,T as M}from"./packem_shared/format-label-B496HVjo.mjs";import{a as O}from"./packem_shared/pail.browser-Di9_5Zcq.mjs";import{inspect as v}from"@visulima/inspector";import{E as P}from"./packem_shared/constants-BMS51p6Y.mjs";import{n as R}from"./packem_shared/write-stream-CD8XFv1L.mjs";import T from"./packem_shared/MessageFormatterProcessor-rkvAy05-.mjs";import{PrettyReporter as A}from"./packem_shared/PrettyReporter-C0Qa7g8i.mjs";const $=L(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,I=o(r=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[t,e]=l.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return l.getBuiltinModule(r)}return $(r)},"__cjs_getBuiltinModule"),{stdout:m,stderr:_,env:d}=l,{StringDecoder:B}=I("node:string_decoder");var N=Object.defineProperty,D=o((r,t)=>N(r,"name",{value:t,configurable:!0}),"l");let k=class{static{o(this,"v")}static{D(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}=x(),h=s>i?i-1:Math.max(0,Math.min(i-1,s)),c=this.lastLength-h,u=Math.max(c-i,this.outside);let n=e.reduce((b,j)=>[...b,M(j,p,{hard:!0,trim:!1,wordWrap:!0})],[]);i<=c?(a.erase(i),h<u&&(n=n.slice(u-h+1))):c&&a.erase(c),a.write(`${n.join(`
2
+ `)}
3
+ `),this.#s=u?u+n.length+1:n.length,this.#i=Math.max(this.lastLength-i,this.outside)}}_clear(t=!1){this.#e=t,this.#s=0,this.#i=0}};var G=Object.defineProperty,y=o((r,t)=>G(r,"name",{value:t,configurable:!0}),"t$1");const g="\x1B[2J",H="\x1B[2K",V=y((r=1)=>`${"\x1B["+r}A`,"cursorUp"),w=process.platform==="win32"?`${g}\x1B[0f`:`${g}\x1B[3J\x1B[H`,q="\x1B[?25l",Y="\x1B[?25h",C=y(r=>{let t="";for(let e=0;e<r;e++)t+=H+(e<r-1?V():"");return r&&(t+="\x1B[G"),t},"eraseLines");var J=Object.defineProperty,U=o((r,t)=>J(r,"name",{value:t,configurable:!0}),"o$1");class f{static{o(this,"t")}static{U(this,"InteractiveStreamHook")}static DRAIN=!0;#t=new B;#e=[];#r;#s;constructor(t){this.#r=t.write,this.#s=t}active(){this.write(q),this.#s.write=(t,...e)=>{const s=e.at(-1);return this.#e.push(this.#t.write(typeof t=="string"?Buffer.from(t,typeof e[0]=="string"?e[0]:void 0):Buffer.from(t))),typeof s=="function"&&s(),f.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.#s.write=this.#r,this.write(Y)}write(t){this.#r.apply(this.#s,[t])}}var K=Object.defineProperty,W=o((r,t)=>K(r,"name",{value:t,configurable:!0}),"c");let z=class{static{o(this,"v")}static{W(this,"RawReporter")}#t;#e;#r;#s=!1;#i;constructor(t={}){this.#t=m,this.#e=_,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!==P){const n=typeof a=="string"?a:v(a,this.#i);i.push(n)}e&&i.push(...e.map(n=>typeof n=="object"?` ${v(n,this.#i)}`:` ${n}`));const h=["error","trace","warn"].includes(p.level)?"stderr":"stdout",c=h==="stderr"?this.#e:this.#t,u=s.map(()=>" ").join("");this.#s&&this.#r!==void 0&&c.isTTY?this.#r.update(h,(u+i.join("")).split(`
5
+ `),0):R(u+i.join(""),c)}};var F=Object.defineProperty,Q=o((r,t)=>F(r,"name",{value:t,configurable:!0}),"a$1");class X extends O{static{o(this,"v")}constructor(t){const{interactive:e,rawReporter:s,reporters:a,stderr:p,stdout:i,...h}=t;super(h),this.options=t,this.interactive=e??!1,this.stdout=i,this.stderr=p,this.interactive&&(this.interactiveManager=new k(new f(this.stdout),new f(this.stderr))),Array.isArray(a)&&this.registerReporters(a),this.rawReporter=this.extendReporter(t.rawReporter??new z)}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](String(s).trim())})}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}}const Z=X;var tt=Object.defineProperty,S=o((r,t)=>tt(r,"name",{value:t,configurable:!0}),"o");const et=S(()=>d.NODE_ENV==="debug"||d.DEBUG!==void 0?"debug":d.NODE_ENV==="test"?"warning":"informational","_getDefaultLogLevel"),rt=S(r=>{let t=et();return d.PAIL_LOG_LEVEL!==void 0&&(t=d.PAIL_LOG_LEVEL),new Z({logLevel:t,processors:[new T],reporters:[new A],stderr:_,stdout:m,...r})},"createPail"),ft=rt();export{rt as createPail,ft as pail};
@@ -0,0 +1,2 @@
1
+ "use strict";var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./abstract-json-reporter-C1jqd5bO.cjs");var h=Object.defineProperty,l=s((e,t)=>h(e,"name",{value:t,configurable:!0}),"e");class c{static{s(this,"n")}static{l(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 u=Object.defineProperty,d=s((e,t)=>u(e,"name",{value:t,configurable:!0}),"r$1");class m{static{s(this,"o")}static{d(this,"RotatingFileStream")}#t;#e;#r;#s;#i;constructor(t,r=!1,i={}){if(this.#t=t,this.#e=r,this.#s=i,!this.#e){try{this.#i=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.#i(this.#t,i)}}write(t){let r=this.#r;this.#e&&(r=this.#i(this.#t,this.#s));const i=new c(r,this.#t);i.write(t),this.#e&&i.end()}end(){this.#r!==void 0&&this.#r.end()}}var f=Object.defineProperty,p=s((e,t)=>f(e,"name",{value:t,configurable:!0}),"r");class w extends o.A{static{s(this,"JsonFileReporter")}static{p(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:r,writeImmediately:i=!1,...a}=t;this.stream=new m(r,i,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(t){this.stream.write(`${t}
2
+ `)}}exports.JsonFileReporter=w;
@@ -0,0 +1,4 @@
1
+ var h=Object.defineProperty;var s=(e,t)=>h(e,"name",{value:t,configurable:!0});import{A as n}from"./abstract-json-reporter-B_QC6gt7.mjs";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
2
+ const require = __cjs_mod__.createRequire(import.meta.url);
3
+ var o=Object.defineProperty,c=s((e,t)=>o(e,"name",{value:t,configurable:!0}),"e");class l{static{s(this,"n")}static{c(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 u=Object.defineProperty,m=s((e,t)=>u(e,"name",{value:t,configurable:!0}),"r$1");class d{static{s(this,"o")}static{m(this,"RotatingFileStream")}#t;#e;#r;#s;#i;constructor(t,r=!1,i={}){if(this.#t=t,this.#e=r,this.#s=i,!this.#e){try{this.#i=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.#i(this.#t,i)}}write(t){let r=this.#r;this.#e&&(r=this.#i(this.#t,this.#s));const i=new l(r,this.#t);i.write(t),this.#e&&i.end()}end(){this.#r!==void 0&&this.#r.end()}}var f=Object.defineProperty,p=s((e,t)=>f(e,"name",{value:t,configurable:!0}),"r");class v extends n{static{s(this,"JsonFileReporter")}static{p(this,"JsonFileReporter")}stream;constructor(t){super();const{filePath:r,writeImmediately:i=!1,...a}=t;this.stream=new d(r,i,{compress:"gzip",interval:"1d",size:"10M",...a})}_log(t){this.stream.write(`${t}
4
+ `)}}export{v as JsonFileReporter};
@@ -0,0 +1,2 @@
1
+ var i=Object.defineProperty;var s=(t,e)=>i(t,"name",{value:e,configurable:!0});import{createRequire as n}from"node:module";import{n as d}from"./write-stream-CD8XFv1L.mjs";import{A as l}from"./abstract-json-reporter-B_QC6gt7.mjs";const h=n(import.meta.url),c=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{stdout:u,stderr:a}=c;var p=Object.defineProperty,f=s((t,e)=>p(t,"name",{value:e,configurable:!0}),"e");class j extends l{static{s(this,"d")}static{f(this,"JsonReporter")}#e;#t;constructor(e={}){super(e),this.#e=u,this.#t=a}setStdout(e){this.#e=e}setStderr(e){this.#t=e}_log(e,r){const o=["error","warn"].includes(r)?this.#t:this.#e;d(`${e}
2
+ `,o)}}export{j as default};
@@ -1 +1 @@
1
- var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});import{t as a}from"./write-console-log-BP95fgQZ.mjs";import{A as p}from"./abstract-json-reporter-tFmKAzRZ.mjs";var c=Object.defineProperty,n=t((e,r)=>c(e,"name",{value:r,configurable:!0}),"e");class l extends p{static{t(this,"p")}static{n(this,"JsonReporter")}constructor(r={}){super(r)}_log(r,o){a(o)(r)}}export{l as default};
1
+ var s=Object.defineProperty;var t=(e,r)=>s(e,"name",{value:r,configurable:!0});import{t as a}from"./write-console-log-BP95fgQZ.mjs";import{A as p}from"./abstract-json-reporter-B_QC6gt7.mjs";var c=Object.defineProperty,n=t((e,r)=>c(e,"name",{value:r,configurable:!0}),"e");class l extends p{static{t(this,"p")}static{n(this,"JsonReporter")}constructor(r={}){super(r)}_log(r,o){a(o)(r)}}export{l as default};
@@ -1,2 +1,2 @@
1
- "use strict";var n=Object.defineProperty;var e=(r,t)=>n(r,"name",{value:t,configurable:!0});const s=require("node:process"),u=require("./write-stream-Dl-usQqh.cjs"),a=require("./abstract-json-reporter-Z6bVrpPK.cjs");var c=Object.defineProperty,d=e((r,t)=>c(r,"name",{value:t,configurable:!0}),"e");class h extends a.A{static{e(this,"d")}static{d(this,"JsonReporter")}#t;#r;constructor(t={}){super(t),this.#t=s.stdout,this.#r=s.stderr}setStdout(t){this.#t=t}setStderr(t){this.#r=t}_log(t,i){const o=["error","warn"].includes(i)?this.#r:this.#t;u.n(t+`
1
+ "use strict";var n=Object.defineProperty;var e=(r,t)=>n(r,"name",{value:t,configurable:!0});const s=require("node:process"),u=require("./write-stream-Dl-usQqh.cjs"),a=require("./abstract-json-reporter-C1jqd5bO.cjs");var c=Object.defineProperty,d=e((r,t)=>c(r,"name",{value:t,configurable:!0}),"e");class h extends a.A{static{e(this,"d")}static{d(this,"JsonReporter")}#t;#r;constructor(t={}){super(t),this.#t=s.stdout,this.#r=s.stderr}setStdout(t){this.#t=t}setStderr(t){this.#r=t}_log(t,i){const o=["error","warn"].includes(i)?this.#r:this.#t;u.n(`${t}
2
2
  `,o)}}module.exports=h;
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});const a=require("./write-console-log-3G15muTS.cjs"),c=require("./abstract-json-reporter-Z6bVrpPK.cjs");var n=Object.defineProperty,i=t((r,e)=>n(r,"name",{value:e,configurable:!0}),"e");class u extends c.A{static{t(this,"p")}static{i(this,"JsonReporter")}constructor(e={}){super(e)}_log(e,s){a.t(s)(e)}}module.exports=u;
1
+ "use strict";var o=Object.defineProperty;var t=(r,e)=>o(r,"name",{value:e,configurable:!0});const a=require("./write-console-log-3G15muTS.cjs"),c=require("./abstract-json-reporter-C1jqd5bO.cjs");var n=Object.defineProperty,i=t((r,e)=>n(r,"name",{value:e,configurable:!0}),"e");class u extends c.A{static{t(this,"p")}static{i(this,"JsonReporter")}constructor(e={}){super(e)}_log(e,s){a.t(s)(e)}}module.exports=u;
@@ -1 +1 @@
1
- "use strict";var a=Object.defineProperty;var n=(o,t)=>a(o,"name",{value:t,configurable:!0});const c=require("@visulima/fmt");var u=Object.defineProperty,f=n((o,t)=>u(o,"name",{value:t,configurable:!0}),"o");class y{static{n(this,"p")}static{f(this,"MessageFormatterProcessor")}#t;#e;constructor(t={}){this.#e=t.formatters}setStringify(t){this.#t=t}process(t){const e=c.build({formatters:this.#e,stringify:f(s=>{const r=this.#t(s);return r===void 0?(console.warn("Unable to stringify value of type "+typeof s,s),"undefined"):r},"stringify")});return t.message!==void 0&&(t.message=this._format(e,t.message,t.context??[])),t}_format(t,e,s=[]){if(typeof e=="string")return t(e,s);if(typeof e=="object"&&e!==null)for(const r in e){const i=e[r];(typeof i=="string"||Array.isArray(i)||typeof i=="object")&&(e[r]=this._format(t,i,s))}return e}}module.exports=y;
1
+ "use strict";var a=Object.defineProperty;var n=(o,t)=>a(o,"name",{value:t,configurable:!0});const c=require("@visulima/fmt");var u=Object.defineProperty,f=n((o,t)=>u(o,"name",{value:t,configurable:!0}),"o");class y{static{n(this,"p")}static{f(this,"MessageFormatterProcessor")}#t;#e;constructor(t={}){this.#e=t.formatters}setStringify(t){this.#t=t}process(t){const e=c.build({formatters:this.#e,stringify:f(s=>{const r=this.#t(s);return r===void 0?(console.warn(`Unable to stringify value of type ${typeof s}`,s),"undefined"):r},"stringify")});return t.message!==void 0&&(t.message=this._format(e,t.message,t.context??[])),t}_format(t,e,s=[]){if(typeof e=="string")return t(e,s);if(typeof e=="object"&&e!==null)for(const r in e){const i=e[r];(typeof i=="string"||Array.isArray(i)||typeof i=="object")&&(e[r]=this._format(t,i,s))}return e}}module.exports=y;
@@ -1 +1 @@
1
- var n=Object.defineProperty;var a=(o,t)=>n(o,"name",{value:t,configurable:!0});import{build as c}from"@visulima/fmt";var u=Object.defineProperty,f=a((o,t)=>u(o,"name",{value:t,configurable:!0}),"o");class g{static{a(this,"p")}static{f(this,"MessageFormatterProcessor")}#t;#e;constructor(t={}){this.#e=t.formatters}setStringify(t){this.#t=t}process(t){const e=c({formatters:this.#e,stringify:f(r=>{const s=this.#t(r);return s===void 0?(console.warn("Unable to stringify value of type "+typeof r,r),"undefined"):s},"stringify")});return t.message!==void 0&&(t.message=this._format(e,t.message,t.context??[])),t}_format(t,e,r=[]){if(typeof e=="string")return t(e,r);if(typeof e=="object"&&e!==null)for(const s in e){const i=e[s];(typeof i=="string"||Array.isArray(i)||typeof i=="object")&&(e[s]=this._format(t,i,r))}return e}}export{g as default};
1
+ var n=Object.defineProperty;var a=(o,t)=>n(o,"name",{value:t,configurable:!0});import{build as c}from"@visulima/fmt";var u=Object.defineProperty,f=a((o,t)=>u(o,"name",{value:t,configurable:!0}),"o");class g{static{a(this,"p")}static{f(this,"MessageFormatterProcessor")}#t;#e;constructor(t={}){this.#e=t.formatters}setStringify(t){this.#t=t}process(t){const e=c({formatters:this.#e,stringify:f(r=>{const s=this.#t(r);return s===void 0?(console.warn(`Unable to stringify value of type ${typeof r}`,r),"undefined"):s},"stringify")});return t.message!==void 0&&(t.message=this._format(e,t.message,t.context??[])),t}_format(t,e,r=[]){if(typeof e=="string")return t(e,r);if(typeof e=="object"&&e!==null)for(const s in e){const i=e[s];(typeof i=="string"||Array.isArray(i)||typeof i=="object")&&(e[s]=this._format(t,i,r))}return e}}export{g as default};
@@ -0,0 +1,5 @@
1
+ var S=Object.defineProperty;var $=(h,i)=>S(h,"name",{value:i,configurable:!0});import B,{grey as o,white as j,underline as b,bold as E}from"@visulima/colorize/browser";import{format as r}from"@visulima/fmt";import{E as F}from"./constants-BMS51p6Y.mjs";import{A as O,s as R}from"./abstract-pretty-reporter-CRcf4WZd.mjs";import{s as Y}from"./get-longest-label-B0NrI-o2.mjs";import{t as k}from"./write-console-log-BP95fgQZ.mjs";var C=Object.defineProperty,D=$((h,i)=>C(h,"name",{value:i,configurable:!0}),"P");class K extends O{static{$(this,"F")}static{D(this,"PrettyReporter")}constructor(i={}){super({uppercase:{label:!0,...i.uppercase},...i})}log(i){const t=typeof globalThis.window<"u"&&typeof globalThis.document<"u",_=k(i.type.level),{badge:x,context:A,date:a,error:T,groups:f,label:g,message:v,prefix:y,repeated:u,scope:n,suffix:m,type:M}=i,{color:w}=this._loggerTypes[M.name],P=w?B[w]:j,e=[];if(t&&f.length>0){const s=f.map(()=>" ").join(""),l=o(`[${f.at(-1)}]`);e.push(r(s+l[0],l.slice(1)))}if(a){const s=o(this._styles.dateFormatter(typeof a=="string"?new Date(a):a));t?e.push(r(s[0],s.slice(1))):e.push([`${s[0]} `,...s.slice(1)])}if(x){const s=P(x);t?e.push(r(s[0],s.slice(1))):e.push([`${s[0]} `,...s.slice(1)])}else{const s=R(this._loggerTypes);if(s.length>0){const l=o(".".repeat(s.length));t?e.push(r(`${l[0]} `,l.slice(1))):e.push([`${l[0]} `,...l.slice(1)])}}const L=Y(this._loggerTypes);let d;if(u){const s=j(`[${u}x]`);d=t?r(s[0],s.slice(1)):[s[0],...s.slice(1)]}if(g){const s=P(this._formatLabel(g));t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)]),d&&e.push(d);let l=L.length-g.length;if(u?l-=String(u).length+3:l+=1,l>0){const p=o(".".repeat(l));t?e.push(r(p[0],p.slice(1))):e.push([` ${p[0]}`,...p.slice(1)])}}else{const s=o(".".repeat(L.length+1));t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(Array.isArray(n)&&n.length>0){const s=o(`[${n.join(" > ")}]`);t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(y){const s=o(`${Array.isArray(n)&&n.length>0?". ":" "}[${this._styles.underline.prefix?b(y):y}] `);t?e.push(r(s[0],s.slice(1))):e.push([s[0],...s.slice(1)])}if(v!==F&&e.push(v),A&&e.push(...A),T&&e.push(T,`
2
+
3
+ `),m){const s=o(this._styles.underline.suffix?b(m):m);t?e.push(r(`
4
+ ${s[0]}`,s.slice(1))):e.push([`
5
+ ${s[0]}`,...s.slice(1)])}if(t)_(...e);else{let s="";const l=[],p=[];for(const c of e)Array.isArray(c)&&c.length>1&&c[0].includes("%c")?(s+=c[0],l.push(...c.slice(1))):p.push(c);_(`${s}%c`,...l,"",...p)}}_formatLabel(i){let t=this._styles.uppercase.label?i.toUpperCase():i;return t=this._styles.underline.label?b(t):t,this._styles.bold.label&&(t=E(t)),t}}export{K as default};
@@ -0,0 +1,13 @@
1
+ "use strict";var I=Object.defineProperty;var f=(s,r)=>I(s,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const P=require("node:process"),e=require("@visulima/colorize"),x=require("@visulima/error/error"),T=require("@visulima/inspector"),u=require("./format-label-BkRisUmO.cjs"),O=require("./constants-BFrKdBPm.cjs"),A=require("./abstract-pretty-reporter-C2vDqWAQ.cjs"),F=require("./get-longest-label-7LkwzzHo.cjs"),V=require("./write-stream-Dl-usQqh.cjs"),W=f(s=>s&&typeof s=="object"&&"default"in s?s.default:s,"_interopDefaultCompat"),D=W(e);var z=Object.defineProperty,C=f((s,r)=>z(s,"name",{value:r,configurable:!0}),"S");const E=C(s=>!/[\\/]pail[\\/]dist/.test(s),"pailFileFilter");class B extends A.A{static{f(this,"PrettyReporter")}static{C(this,"PrettyReporter")}#r;#t;#s;#o=!1;#i;#e;constructor(r={}){const{error:h,inspect:o,...a}=r;super({uppercase:{label:!0,...a.uppercase},...a}),this.#i={...u.u,...o},this.#e={...h,color:{fileLine:e.green,hint:e.cyan,marker:e.red,message:e.red,method:e.greenBright,title:e.red}},this.#r=P.stdout,this.#t=P.stderr}setStdout(r){this.#r=r}setStderr(r){this.#t=r}setInteractiveManager(r){this.#s=r}setIsInteractive(r){this.#o=r}log(r){this._log(this._formatMessage(r),r.type.level)}_formatMessage(r){const{columns:h}=u.O();let o=h;typeof this._styles.messageLength=="number"&&(o=this._styles.messageLength);const{badge:a,context:j,date:g,error:q,file:c,groups:y,label:m,message:d,prefix:$,repeated:v,scope:p,suffix:_,traceError:w,type:R}=r,{color:S}=this._loggerTypes[R.name],L=S?D[S]:e.white,l=y.map(()=>" ").join(""),t=[];if(y.length>0&&t.push(`${l+e.grey(`[${y.at(-1)}]`)} `),g&&t.push(`${e.grey(this._styles.dateFormatter(typeof g=="string"?new Date(g):g))} `),a)t.push(L(a));else{const i=A.s(this._loggerTypes);i.length>0&&t.push(`${e.grey(".".repeat(i.length))} `)}const M=F.s(this._loggerTypes);m?t.push(`${L(u.n(m,this._styles))} `,e.grey(".".repeat(M.length-u.m(m)))):t.push(e.grey(".".repeat(M.length+2))),v&&t.push(`${e.bgGrey.white(`[${v}x]`)} `),Array.isArray(p)&&p.length>0&&t.push(` ${e.grey(`[${p.join(" > ")}]`)} `),$&&t.push(`${e.grey(`${Array.isArray(p)&&p.length>0?". ":" "}[${this._styles.underline.prefix?e.underline($):$}]`)} `);const b=u.m(t.join(" "));if(c){const i=c.name+(c.line?`:${c.line}`:""),n=u.m(i);n+b+2>o?t.push(e.grey(` ${i}`)):t.push(e.grey(`${".".repeat(o-b-n-2)} ${i}`))}else t.push(e.grey(".".repeat(o-b-1)));if(t.length>0&&t.push(`
2
+
3
+ `),d!==O.E){const i=typeof d=="string"?d:T.inspect(d,this.#i);t.push(l+u.T(i,o-3,{hard:!0,trim:!1,wordWrap:!0}))}if(j){let i=!1;t.push(...j.map(n=>{if(n instanceof Error)return i=!0,`
4
+
5
+ ${x.renderError(n,{...this.#e,filterStacktrace:E,prefix:l})}`;if(typeof n=="object")return` ${T.inspect(n,this.#i)}`;const k=(i?`
6
+
7
+ `:" ")+n;return i=!1,k}))}return q&&t.push(x.renderError(q,{...this.#e,filterStacktrace:E,prefix:l})),w&&t.push(`
8
+
9
+ ${x.renderError(w,{...this.#e,filterStacktrace:E,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:l})}`),_&&t.push(`
10
+ `,l+e.grey(this._styles.underline.suffix?e.underline(_):_)),`${t.join("")}
11
+ `}_log(r,h){const o=["error","trace","warn"].includes(h)?"stderr":"stdout",a=o==="stderr"?this.#t:this.#r;this.#o&&this.#s!==void 0&&a.isTTY?this.#s.update(o,r.split(`
12
+ `),0):V.n(`${r}
13
+ `,a)}}exports.PrettyReporter=B;
@@ -0,0 +1,13 @@
1
+ var I=Object.defineProperty;var $=(a,e)=>I(a,"name",{value:e,configurable:!0});import{createRequire as O}from"node:module";import Y,{red as b,greenBright as W,cyan as z,green as D,grey as s,white as G,bgGrey as N,underline as R}from"@visulima/colorize";import{renderError as j}from"@visulima/error/error";import{inspect as L}from"@visulima/inspector";import{u as H,O as J,n as K,m as x,T as Q}from"./format-label-B496HVjo.mjs";import{E as U}from"./constants-BMS51p6Y.mjs";import{A as X,s as Z}from"./abstract-pretty-reporter-CRcf4WZd.mjs";import{s as ee}from"./get-longest-label-B0NrI-o2.mjs";import{n as te}from"./write-stream-CD8XFv1L.mjs";const oe=O(import.meta.url),q=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{stdout:F,stderr:V}=q;var re=Object.defineProperty,k=$((a,e)=>re(a,"name",{value:e,configurable:!0}),"S");const v=k(a=>!/[\\/]pail[\\/]dist/.test(a),"pailFileFilter");class ge extends X{static{$(this,"PrettyReporter")}static{k(this,"PrettyReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:h,inspect:i,...o}=e;super({uppercase:{label:!0,...o.uppercase},...o}),this.#i={...H,...i},this.#e={...h,color:{fileLine:D,hint:z,marker:b,message:b,method:W,title:b}},this.#t=F,this.#r=V}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:h}=J();let i=h;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:o,context:E,date:u,error:T,file:c,groups:g,label:d,message:f,prefix:m,repeated:M,scope:l,suffix:y,traceError:w,type:B}=e,{color:A}=this._loggerTypes[B.name],P=A?Y[A]:G,p=g.map(()=>" ").join(""),t=[];if(g.length>0&&t.push(`${p+s(`[${g.at(-1)}]`)} `),u&&t.push(`${s(this._styles.dateFormatter(typeof u=="string"?new Date(u):u))} `),o)t.push(P(o));else{const r=Z(this._loggerTypes);r.length>0&&t.push(`${s(".".repeat(r.length))} `)}const S=ee(this._loggerTypes);d?t.push(`${P(K(d,this._styles))} `,s(".".repeat(S.length-x(d)))):t.push(s(".".repeat(S.length+2))),M&&t.push(`${N.white(`[${M}x]`)} `),Array.isArray(l)&&l.length>0&&t.push(` ${s(`[${l.join(" > ")}]`)} `),m&&t.push(`${s(`${Array.isArray(l)&&l.length>0?". ":" "}[${this._styles.underline.prefix?R(m):m}]`)} `);const _=x(t.join(" "));if(c){const r=c.name+(c.line?`:${c.line}`:""),n=x(r);n+_+2>i?t.push(s(` ${r}`)):t.push(s(`${".".repeat(i-_-n-2)} ${r}`))}else t.push(s(".".repeat(i-_-1)));if(t.length>0&&t.push(`
2
+
3
+ `),f!==U){const r=typeof f=="string"?f:L(f,this.#i);t.push(p+Q(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(E){let r=!1;t.push(...E.map(n=>{if(n instanceof Error)return r=!0,`
4
+
5
+ ${j(n,{...this.#e,filterStacktrace:v,prefix:p})}`;if(typeof n=="object")return` ${L(n,this.#i)}`;const C=(r?`
6
+
7
+ `:" ")+n;return r=!1,C}))}return T&&t.push(j(T,{...this.#e,filterStacktrace:v,prefix:p})),w&&t.push(`
8
+
9
+ ${j(w,{...this.#e,filterStacktrace:v,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:p})}`),y&&t.push(`
10
+ `,p+s(this._styles.underline.suffix?R(y):y)),`${t.join("")}
11
+ `}_log(e,h){const i=["error","trace","warn"].includes(h)?"stderr":"stdout",o=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&o.isTTY?this.#s.update(i,e.split(`
12
+ `),0):te(`${e}
13
+ `,o)}}export{ge as PrettyReporter};
@@ -0,0 +1,5 @@
1
+ "use strict";var P=Object.defineProperty;var f=(n,i)=>P(n,"name",{value:i,configurable:!0});const l=require("@visulima/colorize/browser"),o=require("@visulima/fmt"),C=require("./constants-BFrKdBPm.cjs"),T=require("./abstract-pretty-reporter-C2vDqWAQ.cjs"),D=require("./get-longest-label-7LkwzzHo.cjs"),F=require("./write-console-log-3G15muTS.cjs"),R=f(n=>n&&typeof n=="object"&&"default"in n?n.default:n,"_interopDefaultCompat"),S=R(l);var k=Object.defineProperty,B=f((n,i)=>k(n,"name",{value:i,configurable:!0}),"P");class E extends T.A{static{f(this,"F")}static{B(this,"PrettyReporter")}constructor(i={}){super({uppercase:{label:!0,...i.uppercase},...i})}log(i){const t=typeof globalThis.window<"u"&&typeof globalThis.document<"u",_=F.t(i.type.level),{badge:$,context:x,date:p,error:w,groups:g,label:y,message:A,prefix:d,repeated:h,scope:u,suffix:m,type:j}=i,{color:q}=this._loggerTypes[j.name],v=q?S[q]:l.white,s=[];if(t&&g.length>0){const e=g.map(()=>" ").join(""),r=l.grey(`[${g.at(-1)}]`);s.push(o.format(e+r[0],r.slice(1)))}if(p){const e=l.grey(this._styles.dateFormatter(typeof p=="string"?new Date(p):p));t?s.push(o.format(e[0],e.slice(1))):s.push([`${e[0]} `,...e.slice(1)])}if($){const e=v($);t?s.push(o.format(e[0],e.slice(1))):s.push([`${e[0]} `,...e.slice(1)])}else{const e=T.s(this._loggerTypes);if(e.length>0){const r=l.grey(".".repeat(e.length));t?s.push(o.format(`${r[0]} `,r.slice(1))):s.push([`${r[0]} `,...r.slice(1)])}}const L=D.s(this._loggerTypes);let b;if(h){const e=l.white(`[${h}x]`);b=t?o.format(e[0],e.slice(1)):[e[0],...e.slice(1)]}if(y){const e=v(this._formatLabel(y));t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)]),b&&s.push(b);let r=L.length-y.length;if(h?r-=String(h).length+3:r+=1,r>0){const c=l.grey(".".repeat(r));t?s.push(o.format(c[0],c.slice(1))):s.push([` ${c[0]}`,...c.slice(1)])}}else{const e=l.grey(".".repeat(L.length+1));t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(Array.isArray(u)&&u.length>0){const e=l.grey(`[${u.join(" > ")}]`);t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(d){const e=l.grey(`${Array.isArray(u)&&u.length>0?". ":" "}[${this._styles.underline.prefix?l.underline(d):d}] `);t?s.push(o.format(e[0],e.slice(1))):s.push([e[0],...e.slice(1)])}if(A!==C.E&&s.push(A),x&&s.push(...x),w&&s.push(w,`
2
+
3
+ `),m){const e=l.grey(this._styles.underline.suffix?l.underline(m):m);t?s.push(o.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(i){let t=this._styles.uppercase.label?i.toUpperCase():i;return t=this._styles.underline.label?l.underline(t):t,this._styles.bold.label&&(t=l.bold(t)),t}}module.exports=E;
@@ -0,0 +1,11 @@
1
+ var q=Object.defineProperty;var y=(n,e)=>q(n,"name",{value:e,configurable:!0});import{createRequire as F}from"node:module";import W,{red as $,greenBright as z,cyan as D,green as G,grey as o,bold as C,white as N,bgGrey as H,underline as R}from"@visulima/colorize";import{renderError as b}from"@visulima/error";import{inspect as k}from"@visulima/inspector";import{u as J,O as K,n as Q,m as L,T as U}from"./format-label-B496HVjo.mjs";import{E as X}from"./constants-BMS51p6Y.mjs";import{A as Z,s as ee}from"./abstract-pretty-reporter-CRcf4WZd.mjs";import{s as te}from"./get-longest-label-B0NrI-o2.mjs";import{n as re}from"./write-stream-CD8XFv1L.mjs";const ne=F(import.meta.url),I=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{stdout:V,stderr:Y}=I;var se=Object.defineProperty,A=y((n,e)=>se(n,"name",{value:e,configurable:!0}),"L");const j=A(n=>!/[\\/]pail[\\/]dist/.test(n),"pailFileFilter");class me extends Z{static{y(this,"SimpleReporter")}static{A(this,"SimpleReporter")}#t;#r;#s;#o=!1;#i;#e;constructor(e={}){const{error:p,inspect:i,...s}=e;super({uppercase:{label:!0,...s.uppercase},...s}),this.#i={...J,indent:void 0,...i},this.#e={...p,color:{fileLine:G,hint:D,marker:$,message:$,method:z,title:$}},this.#t=V,this.#r=Y}setStdout(e){this.#t=e}setStderr(e){this.#r=e}setInteractiveManager(e){this.#s=e}setIsInteractive(e){this.#o=e}log(e){this._log(this._formatMessage(e),e.type.level)}_formatMessage(e){const{columns:p}=K();let i=p;typeof this._styles.messageLength=="number"&&(i=this._styles.messageLength);const{badge:s,context:v,date:h,error:x,file:u,groups:f,label:d,message:c,prefix:m,repeated:E,scope:g,suffix:_,traceError:T,type:B}=e,{color:M}=this._loggerTypes[B.name],w=M?W[M]:N,a=f.map(()=>" ").join(""),t=[];if(f.length>0&&t.push(`${a+o(`[${f.at(-1)}]`)} `),h&&t.push(`${o(this._styles.dateFormatter(typeof h=="string"?new Date(h):h))} `),s)t.push(C(w(s)));else{const r=ee(this._loggerTypes);r.length>0&&t.push(o(" ".repeat(r.length)))}const S=te(this._loggerTypes);d?t.push(`${C(w(Q(d,this._styles)))} `," ".repeat(S.length-L(d))):t.push(" ".repeat(S.length+1)),E&&t.push(`${H.white(`[${E}x]`)} `),Array.isArray(g)&&g.length>0&&t.push(`${o(`[${g.join(" > ")}]`)} `),m&&t.push(`${o(`[${this._styles.underline.prefix?R(m):m}]`)} `);const O=L(t.join(""));if(c!==X){const r=typeof c=="string"?c:k(c,this.#i);t.push(a+U(r,i-3,{hard:!0,trim:!1,wordWrap:!0}))}if(v){let r=!1;t.push(...v.map(l=>{if(l instanceof Error)return r=!0,`
2
+
3
+ ${b(l,{...this.#e,filterStacktrace:j,prefix:a})}`;if(typeof l=="object")return` ${k(l,this.#i)}`;const P=(r?`
4
+
5
+ `:" ")+l;return r=!1,P}))}if(x&&t.push(b(x,{...this.#e,filterStacktrace:j,prefix:a})),T&&t.push(`
6
+
7
+ ${b(T,{...this.#e,filterStacktrace:j,hideErrorCauseCodeView:!0,hideErrorCodeView:!0,hideErrorErrorsCodeView:!0,hideMessage:!0,prefix:a})}`),_&&t.push(` ${a}${o(this._styles.underline.suffix?R(_):_)}`),u){const r=u.name+(u.line?`:${u.line}`:"");t.push(`
8
+ `,o("Caller: ")," ".repeat(O-8),r,`
9
+ `)}return t.join("")}_log(e,p){const i=["error","trace","warn"].includes(p)?"stderr":"stdout",s=i==="stderr"?this.#r:this.#t;this.#o&&this.#s!==void 0&&s.isTTY?this.#s.update(i,e.split(`
10
+ `),0):re(`${e}
11
+ `,s)}}export{me as SimpleReporter};