@visulima/pail 2.1.20 → 2.1.22
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 +25 -0
- package/README.md +1 -0
- package/dist/index.browser.cjs +3 -3
- package/dist/index.browser.d.cts +1 -1
- package/dist/index.browser.d.mts +1 -1
- package/dist/index.browser.d.ts +3 -3
- package/dist/index.browser.mjs +3 -3
- package/dist/index.server.cjs +11 -11
- package/dist/index.server.d.cts +2 -2
- package/dist/index.server.d.mts +2 -2
- package/dist/index.server.d.ts +3 -3
- package/dist/index.server.mjs +11 -11
- package/dist/packem_shared/{CallerProcessor-CyJFdYGN.mjs → CallerProcessor-CNhuyGAa.mjs} +3 -3
- package/dist/packem_shared/{CallerProcessor-DYrXv6Fp.cjs → CallerProcessor-DJ5euiUK.cjs} +3 -3
- package/dist/packem_shared/{JsonFileReporter-CdHau53i.mjs → JsonFileReporter-BazAMbEI.mjs} +2 -2
- package/dist/packem_shared/{JsonFileReporter-BHaRQMnS.cjs → JsonFileReporter-PNmBNTr1.cjs} +2 -2
- package/dist/packem_shared/{JsonReporter-C05lFJhj.mjs → JsonReporter-CKWF4Ibl.mjs} +1 -1
- package/dist/packem_shared/{JsonReporter-HXYHZuWz.cjs → JsonReporter-CcOVaf3A.cjs} +1 -1
- package/dist/packem_shared/{JsonReporter-DDubAhfJ.cjs → JsonReporter-Cg5R1FXn.cjs} +1 -1
- package/dist/packem_shared/{JsonReporter-DCd8dbfQ.mjs → JsonReporter-DFFyVZyh.mjs} +1 -1
- package/dist/packem_shared/{MessageFormatterProcessor-CFyi7GWt.mjs → MessageFormatterProcessor-Cd4HntPG.mjs} +2 -2
- package/dist/packem_shared/{MessageFormatterProcessor-D_txQ9nO.cjs → MessageFormatterProcessor-t4t6CpzV.cjs} +2 -2
- package/dist/packem_shared/{PrettyReporter-XC0Ix5SW.mjs → PrettyReporter-BhMmZrvE.mjs} +3 -3
- package/dist/packem_shared/{PrettyReporter-LWDDriJ1.cjs → PrettyReporter-K-EU3qWb.cjs} +2 -2
- package/dist/packem_shared/{SimpleReporter-CuNgsGVB.mjs → SimpleReporter-8ZqbQvpc.mjs} +4 -4
- package/dist/packem_shared/{SimpleReporter-DabZGkIs.cjs → SimpleReporter-BB039Qa4.cjs} +3 -3
- package/dist/packem_shared/{abstract-json-reporter-D4MiU6B-.cjs → abstract-json-reporter-okwLqT9k.cjs} +1 -1
- package/dist/packem_shared/{abstract-json-reporter-CG0EXqip.mjs → abstract-json-reporter-sxnmNIlg.mjs} +1 -1
- package/dist/packem_shared/{abstract-pretty-reporter-DxDw4w0Q.d.mjs → abstract-pretty-reporter-Ct4QMQNG.d.ts} +1 -1
- package/dist/packem_shared/{format-label-CQCvMzlF.cjs → format-label-CiYBxDGf.cjs} +6 -6
- package/dist/packem_shared/{format-label-DYMZf3Bg.mjs → format-label-DCVqdv1Z.mjs} +7 -7
- package/dist/packem_shared/{pail.browser-DZLrCtc5.mjs → pail.browser-Bp1fz428.mjs} +9 -9
- package/dist/packem_shared/{pail.browser-Bs5ZMog_.d.mjs → pail.browser-C-ZREoyB.d.ts} +1 -1
- package/dist/packem_shared/{pail.browser-1JCCULUv.d.mts → pail.browser-CFOAjmHW.d.mts} +1 -1
- package/dist/packem_shared/{pail.browser-CXLF6yMo.d.cts → pail.browser-CTdItWYz.d.cts} +1 -1
- package/dist/packem_shared/{pail.browser-B3Bi2uPA.cjs → pail.browser-O53Q_cus.cjs} +9 -9
- package/dist/processor.browser.cjs +1 -1
- package/dist/processor.browser.d.ts +1 -1
- package/dist/processor.browser.mjs +1 -1
- package/dist/processor.server.cjs +2 -2
- package/dist/processor.server.d.ts +1 -1
- package/dist/processor.server.mjs +2 -2
- package/dist/reporter.browser.cjs +1 -1
- package/dist/reporter.browser.d.ts +2 -2
- package/dist/reporter.browser.mjs +1 -1
- package/dist/reporter.server.cjs +4 -4
- package/dist/reporter.server.d.ts +2 -2
- package/dist/reporter.server.mjs +4 -4
- package/package.json +6 -6
- /package/dist/packem_shared/{types-BGWAKixQ.d.mjs → types-BGWAKixQ.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## @visulima/pail [2.1.22](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.21...@visulima/pail@2.1.22) (2025-03-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* updated @visulima/packem and other dev deps, for better bundling size ([e940581](https://github.com/visulima/visulima/commit/e9405812201594e54dd81d17ddb74177df5f3c24))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* updated dev dependencies ([487a976](https://github.com/visulima/visulima/commit/487a976932dc7c39edfc19ffd3968960ff338066))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* **@visulima/colorize:** upgraded to 1.4.21
|
|
15
|
+
* **@visulima/error:** upgraded to 4.4.16
|
|
16
|
+
* **@visulima/fmt:** upgraded to 1.1.15
|
|
17
|
+
* **@visulima/inspector:** upgraded to 1.0.21
|
|
18
|
+
* **@visulima/redact:** upgraded to 1.0.14
|
|
19
|
+
|
|
20
|
+
## @visulima/pail [2.1.21](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.20...@visulima/pail@2.1.21) (2025-01-26)
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **pail:** dont call extra log on the a function ([a272682](https://github.com/visulima/visulima/commit/a27268205556f0b338e0634143b5361b4e345e07))
|
|
25
|
+
|
|
1
26
|
## @visulima/pail [2.1.20](https://github.com/visulima/visulima/compare/@visulima/pail@2.1.19...@visulima/pail@2.1.20) (2025-01-25)
|
|
2
27
|
|
|
3
28
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -414,6 +414,7 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
414
414
|
The visulima pail is open-sourced software licensed under the [MIT][license-url]
|
|
415
415
|
|
|
416
416
|
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
|
|
417
|
+
|
|
417
418
|
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
|
|
418
419
|
[license-image]: https://img.shields.io/npm/l/@visulima/pail?color=blueviolet&style=for-the-badge
|
|
419
420
|
[license-url]: LICENSE.md "license"
|
package/dist/index.browser.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const pail_browser = require('./packem_shared/pail.browser-
|
|
6
|
-
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-
|
|
7
|
-
const JsonReporter = require('./packem_shared/JsonReporter-
|
|
5
|
+
const pail_browser = require('./packem_shared/pail.browser-O53Q_cus.cjs');
|
|
6
|
+
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-t4t6CpzV.cjs');
|
|
7
|
+
const JsonReporter = require('./packem_shared/JsonReporter-Cg5R1FXn.cjs');
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
package/dist/index.browser.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './packem_shared/pail.browser-
|
|
1
|
+
import { P as PailBrowserType } from './packem_shared/pail.browser-CTdItWYz.cjs';
|
|
2
2
|
import { C as ConstructorOptions } from './packem_shared/types-BGWAKixQ.cjs';
|
|
3
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';
|
|
4
4
|
import 'safe-stable-stringify';
|
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './packem_shared/pail.browser-
|
|
1
|
+
import { P as PailBrowserType } from './packem_shared/pail.browser-CFOAjmHW.mjs';
|
|
2
2
|
import { C as ConstructorOptions } from './packem_shared/types-BGWAKixQ.mjs';
|
|
3
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';
|
|
4
4
|
import 'safe-stable-stringify';
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowserType } from './packem_shared/pail.browser-
|
|
2
|
-
import { C as ConstructorOptions } from './packem_shared/types-BGWAKixQ.
|
|
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.
|
|
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';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
|
package/dist/index.browser.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PailBrowser } from './packem_shared/pail.browser-
|
|
2
|
-
import MessageFormatterProcessor from './packem_shared/MessageFormatterProcessor-
|
|
3
|
-
import JsonReporter from './packem_shared/JsonReporter-
|
|
1
|
+
import { P as PailBrowser } from './packem_shared/pail.browser-Bp1fz428.mjs';
|
|
2
|
+
import MessageFormatterProcessor from './packem_shared/MessageFormatterProcessor-Cd4HntPG.mjs';
|
|
3
|
+
import JsonReporter from './packem_shared/JsonReporter-CKWF4Ibl.mjs';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
package/dist/index.server.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
5
|
const process$1 = require('node:process');
|
|
6
|
-
const formatLabel = require('./packem_shared/format-label-
|
|
6
|
+
const formatLabel = require('./packem_shared/format-label-CiYBxDGf.cjs');
|
|
7
7
|
const node_string_decoder = require('node:string_decoder');
|
|
8
|
-
const pail_browser = require('./packem_shared/pail.browser-
|
|
8
|
+
const pail_browser = require('./packem_shared/pail.browser-O53Q_cus.cjs');
|
|
9
9
|
const inspector = require('@visulima/inspector');
|
|
10
10
|
const constants = require('./packem_shared/constants-DHfYGxxG.cjs');
|
|
11
11
|
const writeStream = require('./packem_shared/write-stream-CkNf2Ju8.cjs');
|
|
12
|
-
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-
|
|
13
|
-
const PrettyReporter = require('./packem_shared/PrettyReporter-
|
|
12
|
+
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-t4t6CpzV.cjs');
|
|
13
|
+
const PrettyReporter = require('./packem_shared/PrettyReporter-K-EU3qWb.cjs');
|
|
14
14
|
|
|
15
15
|
var __defProp$5 = Object.defineProperty;
|
|
16
16
|
var __name$5 = (target, value) => __defProp$5(target, "name", { value, configurable: true });
|
|
@@ -60,7 +60,7 @@ class InteractiveManager {
|
|
|
60
60
|
* @param count - lines count to remove
|
|
61
61
|
*/
|
|
62
62
|
erase(stream, count = this.#lastLength) {
|
|
63
|
-
if (this.#stream[stream] ===
|
|
63
|
+
if (this.#stream[stream] === void 0) {
|
|
64
64
|
throw new TypeError(`Stream "${stream}" is not available`);
|
|
65
65
|
}
|
|
66
66
|
this.#stream[stream].erase(count);
|
|
@@ -130,7 +130,7 @@ class InteractiveManager {
|
|
|
130
130
|
*/
|
|
131
131
|
update(stream, rows, from = 0) {
|
|
132
132
|
if (rows.length > 0) {
|
|
133
|
-
if (this.#stream[stream] ===
|
|
133
|
+
if (this.#stream[stream] === void 0) {
|
|
134
134
|
throw new TypeError(`Stream "${stream}" is not available`);
|
|
135
135
|
}
|
|
136
136
|
const hook = this.#stream[stream];
|
|
@@ -217,7 +217,7 @@ class InteractiveStreamHook {
|
|
|
217
217
|
const callback = arguments_.at(-1);
|
|
218
218
|
this.#history.push(
|
|
219
219
|
this.#decoder.write(
|
|
220
|
-
typeof data === "string" ? Buffer.from(data, typeof arguments_[0] === "string" ? arguments_[0] :
|
|
220
|
+
typeof data === "string" ? Buffer.from(data, typeof arguments_[0] === "string" ? arguments_[0] : void 0) : Buffer.from(data)
|
|
221
221
|
)
|
|
222
222
|
);
|
|
223
223
|
if (typeof callback === "function") {
|
|
@@ -302,7 +302,7 @@ class RawReporter {
|
|
|
302
302
|
const streamType = ["error", "trace", "warn"].includes(type.level) ? "stderr" : "stdout";
|
|
303
303
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
304
304
|
const groupSpaces = groups.map(() => " ").join("");
|
|
305
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
305
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
306
306
|
this.#interactiveManager.update(streamType, (groupSpaces + items.join("")).split("\n"), 0);
|
|
307
307
|
} else {
|
|
308
308
|
writeStream.writeStream(groupSpaces + items.join(""), stream);
|
|
@@ -395,7 +395,7 @@ class PailServerImpl extends pail_browser.PailBrowserImpl {
|
|
|
395
395
|
stream.__write = stream.write;
|
|
396
396
|
}
|
|
397
397
|
stream.write = (data) => {
|
|
398
|
-
this[type]
|
|
398
|
+
this[type](String(data).trim());
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -414,7 +414,7 @@ const PailServer = PailServerImpl;
|
|
|
414
414
|
var __defProp = Object.defineProperty;
|
|
415
415
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
416
416
|
const _getDefaultLogLevel = /* @__PURE__ */ __name(() => {
|
|
417
|
-
if (process$1.env.NODE_ENV === "debug" || process$1.env.DEBUG !==
|
|
417
|
+
if (process$1.env.NODE_ENV === "debug" || process$1.env.DEBUG !== void 0) {
|
|
418
418
|
return "debug";
|
|
419
419
|
}
|
|
420
420
|
if (process$1.env.NODE_ENV === "test") {
|
|
@@ -424,7 +424,7 @@ const _getDefaultLogLevel = /* @__PURE__ */ __name(() => {
|
|
|
424
424
|
}, "_getDefaultLogLevel");
|
|
425
425
|
const createPail = /* @__PURE__ */ __name((options) => {
|
|
426
426
|
let logLevel = _getDefaultLogLevel();
|
|
427
|
-
if (process$1.env.PAIL_LOG_LEVEL !==
|
|
427
|
+
if (process$1.env.PAIL_LOG_LEVEL !== void 0) {
|
|
428
428
|
logLevel = process$1.env.PAIL_LOG_LEVEL;
|
|
429
429
|
}
|
|
430
430
|
return new PailServer({
|
package/dist/index.server.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
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-
|
|
3
|
+
import { a as PailBrowserImpl } from './packem_shared/pail.browser-CTdItWYz.cjs';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
6
6
|
|
package/dist/index.server.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
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-
|
|
3
|
+
import { a as PailBrowserImpl } from './packem_shared/pail.browser-CFOAjmHW.mjs';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
6
6
|
|
package/dist/index.server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
3
|
-
import { a as PailBrowserImpl } from './packem_shared/pail.browser-
|
|
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';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
6
6
|
|
package/dist/index.server.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { stdout, stderr, env } from 'node:process';
|
|
2
|
-
import { t as terminalSize, w as wrapAnsi } from './packem_shared/format-label-
|
|
2
|
+
import { t as terminalSize, w as wrapAnsi } from './packem_shared/format-label-DCVqdv1Z.mjs';
|
|
3
3
|
import { StringDecoder } from 'node:string_decoder';
|
|
4
|
-
import { a as PailBrowserImpl } from './packem_shared/pail.browser-
|
|
4
|
+
import { a as PailBrowserImpl } from './packem_shared/pail.browser-Bp1fz428.mjs';
|
|
5
5
|
import { inspect } from '@visulima/inspector';
|
|
6
6
|
import { E as EMPTY_SYMBOL } from './packem_shared/constants-BYYZ5WNW.mjs';
|
|
7
7
|
import { w as writeStream } from './packem_shared/write-stream-BBAF33Zm.mjs';
|
|
8
|
-
import MessageFormatterProcessor from './packem_shared/MessageFormatterProcessor-
|
|
9
|
-
import { PrettyReporter } from './packem_shared/PrettyReporter-
|
|
8
|
+
import MessageFormatterProcessor from './packem_shared/MessageFormatterProcessor-Cd4HntPG.mjs';
|
|
9
|
+
import { PrettyReporter } from './packem_shared/PrettyReporter-BhMmZrvE.mjs';
|
|
10
10
|
|
|
11
11
|
var __defProp$5 = Object.defineProperty;
|
|
12
12
|
var __name$5 = (target, value) => __defProp$5(target, "name", { value, configurable: true });
|
|
@@ -56,7 +56,7 @@ class InteractiveManager {
|
|
|
56
56
|
* @param count - lines count to remove
|
|
57
57
|
*/
|
|
58
58
|
erase(stream, count = this.#lastLength) {
|
|
59
|
-
if (this.#stream[stream] ===
|
|
59
|
+
if (this.#stream[stream] === void 0) {
|
|
60
60
|
throw new TypeError(`Stream "${stream}" is not available`);
|
|
61
61
|
}
|
|
62
62
|
this.#stream[stream].erase(count);
|
|
@@ -126,7 +126,7 @@ class InteractiveManager {
|
|
|
126
126
|
*/
|
|
127
127
|
update(stream, rows, from = 0) {
|
|
128
128
|
if (rows.length > 0) {
|
|
129
|
-
if (this.#stream[stream] ===
|
|
129
|
+
if (this.#stream[stream] === void 0) {
|
|
130
130
|
throw new TypeError(`Stream "${stream}" is not available`);
|
|
131
131
|
}
|
|
132
132
|
const hook = this.#stream[stream];
|
|
@@ -213,7 +213,7 @@ class InteractiveStreamHook {
|
|
|
213
213
|
const callback = arguments_.at(-1);
|
|
214
214
|
this.#history.push(
|
|
215
215
|
this.#decoder.write(
|
|
216
|
-
typeof data === "string" ? Buffer.from(data, typeof arguments_[0] === "string" ? arguments_[0] :
|
|
216
|
+
typeof data === "string" ? Buffer.from(data, typeof arguments_[0] === "string" ? arguments_[0] : void 0) : Buffer.from(data)
|
|
217
217
|
)
|
|
218
218
|
);
|
|
219
219
|
if (typeof callback === "function") {
|
|
@@ -298,7 +298,7 @@ class RawReporter {
|
|
|
298
298
|
const streamType = ["error", "trace", "warn"].includes(type.level) ? "stderr" : "stdout";
|
|
299
299
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
300
300
|
const groupSpaces = groups.map(() => " ").join("");
|
|
301
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
301
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
302
302
|
this.#interactiveManager.update(streamType, (groupSpaces + items.join("")).split("\n"), 0);
|
|
303
303
|
} else {
|
|
304
304
|
writeStream(groupSpaces + items.join(""), stream);
|
|
@@ -391,7 +391,7 @@ class PailServerImpl extends PailBrowserImpl {
|
|
|
391
391
|
stream.__write = stream.write;
|
|
392
392
|
}
|
|
393
393
|
stream.write = (data) => {
|
|
394
|
-
this[type]
|
|
394
|
+
this[type](String(data).trim());
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
397
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -410,7 +410,7 @@ const PailServer = PailServerImpl;
|
|
|
410
410
|
var __defProp = Object.defineProperty;
|
|
411
411
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
412
412
|
const _getDefaultLogLevel = /* @__PURE__ */ __name(() => {
|
|
413
|
-
if (env.NODE_ENV === "debug" || env.DEBUG !==
|
|
413
|
+
if (env.NODE_ENV === "debug" || env.DEBUG !== void 0) {
|
|
414
414
|
return "debug";
|
|
415
415
|
}
|
|
416
416
|
if (env.NODE_ENV === "test") {
|
|
@@ -420,7 +420,7 @@ const _getDefaultLogLevel = /* @__PURE__ */ __name(() => {
|
|
|
420
420
|
}, "_getDefaultLogLevel");
|
|
421
421
|
const createPail = /* @__PURE__ */ __name((options) => {
|
|
422
422
|
let logLevel = _getDefaultLogLevel();
|
|
423
|
-
if (env.PAIL_LOG_LEVEL !==
|
|
423
|
+
if (env.PAIL_LOG_LEVEL !== void 0) {
|
|
424
424
|
logLevel = env.PAIL_LOG_LEVEL;
|
|
425
425
|
}
|
|
426
426
|
return new PailServer({
|
|
@@ -23,14 +23,14 @@ const getCallerFilename = /* @__PURE__ */ __name$1(() => {
|
|
|
23
23
|
const firstExternalFilePath = callers[0];
|
|
24
24
|
if (firstExternalFilePath) {
|
|
25
25
|
return {
|
|
26
|
-
columnNumber: firstExternalFilePath.columnNumber ??
|
|
26
|
+
columnNumber: firstExternalFilePath.columnNumber ?? void 0,
|
|
27
27
|
fileName: firstExternalFilePath.fileName,
|
|
28
|
-
lineNumber: firstExternalFilePath.lineNumber ??
|
|
28
|
+
lineNumber: firstExternalFilePath.lineNumber ?? void 0
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
fileName: "anonymous",
|
|
33
|
-
lineNumber:
|
|
33
|
+
lineNumber: void 0
|
|
34
34
|
};
|
|
35
35
|
} finally {
|
|
36
36
|
Error.prepareStackTrace = errorStack;
|
|
@@ -25,14 +25,14 @@ const getCallerFilename = /* @__PURE__ */ __name$1(() => {
|
|
|
25
25
|
const firstExternalFilePath = callers[0];
|
|
26
26
|
if (firstExternalFilePath) {
|
|
27
27
|
return {
|
|
28
|
-
columnNumber: firstExternalFilePath.columnNumber ??
|
|
28
|
+
columnNumber: firstExternalFilePath.columnNumber ?? void 0,
|
|
29
29
|
fileName: firstExternalFilePath.fileName,
|
|
30
|
-
lineNumber: firstExternalFilePath.lineNumber ??
|
|
30
|
+
lineNumber: firstExternalFilePath.lineNumber ?? void 0
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
fileName: "anonymous",
|
|
35
|
-
lineNumber:
|
|
35
|
+
lineNumber: void 0
|
|
36
36
|
};
|
|
37
37
|
} finally {
|
|
38
38
|
Error.prepareStackTrace = errorStack;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AbstractJsonReporter } from './abstract-json-reporter-
|
|
1
|
+
import { A as AbstractJsonReporter } from './abstract-json-reporter-sxnmNIlg.mjs';
|
|
2
2
|
|
|
3
3
|
import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
4
4
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
@@ -99,7 +99,7 @@ class RotatingFileStream {
|
|
|
99
99
|
* will throw an error.
|
|
100
100
|
*/
|
|
101
101
|
end() {
|
|
102
|
-
if (this.#stream !==
|
|
102
|
+
if (this.#stream !== void 0) {
|
|
103
103
|
this.#stream.end();
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const abstractJsonReporter = require('./abstract-json-reporter-
|
|
5
|
+
const abstractJsonReporter = require('./abstract-json-reporter-okwLqT9k.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp$2 = Object.defineProperty;
|
|
8
8
|
var __name$2 = (target, value) => __defProp$2(target, "name", { value, configurable: true });
|
|
@@ -101,7 +101,7 @@ class RotatingFileStream {
|
|
|
101
101
|
* will throw an error.
|
|
102
102
|
*/
|
|
103
103
|
end() {
|
|
104
|
-
if (this.#stream !==
|
|
104
|
+
if (this.#stream !== void 0) {
|
|
105
105
|
this.#stream.end();
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as writeConsoleLogBasedOnLevel } from './write-console-log-Tptfzg9D.mjs';
|
|
2
|
-
import { A as AbstractJsonReporter } from './abstract-json-reporter-
|
|
2
|
+
import { A as AbstractJsonReporter } from './abstract-json-reporter-sxnmNIlg.mjs';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const process = require('node:process');
|
|
4
4
|
const writeStream = require('./write-stream-CkNf2Ju8.cjs');
|
|
5
|
-
const abstractJsonReporter = require('./abstract-json-reporter-
|
|
5
|
+
const abstractJsonReporter = require('./abstract-json-reporter-okwLqT9k.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const writeConsoleLog = require('./write-console-log-Cu0-IDN-.cjs');
|
|
4
|
-
const abstractJsonReporter = require('./abstract-json-reporter-
|
|
4
|
+
const abstractJsonReporter = require('./abstract-json-reporter-okwLqT9k.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { stdout, stderr } from 'node:process';
|
|
2
2
|
import { w as writeStream } from './write-stream-BBAF33Zm.mjs';
|
|
3
|
-
import { A as AbstractJsonReporter } from './abstract-json-reporter-
|
|
3
|
+
import { A as AbstractJsonReporter } from './abstract-json-reporter-sxnmNIlg.mjs';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -21,14 +21,14 @@ class MessageFormatterProcessor {
|
|
|
21
21
|
formatters: this.#formatters,
|
|
22
22
|
stringify: /* @__PURE__ */ __name((value) => {
|
|
23
23
|
const stringified = this.#stringify(value);
|
|
24
|
-
if (stringified ===
|
|
24
|
+
if (stringified === void 0) {
|
|
25
25
|
console.warn("Unable to stringify value of type " + typeof value, value);
|
|
26
26
|
return "undefined";
|
|
27
27
|
}
|
|
28
28
|
return stringified;
|
|
29
29
|
}, "stringify")
|
|
30
30
|
});
|
|
31
|
-
if (meta.message !==
|
|
31
|
+
if (meta.message !== void 0) {
|
|
32
32
|
meta.message = this._format(formatter, meta.message, meta.context ?? []);
|
|
33
33
|
}
|
|
34
34
|
return meta;
|
|
@@ -23,14 +23,14 @@ class MessageFormatterProcessor {
|
|
|
23
23
|
formatters: this.#formatters,
|
|
24
24
|
stringify: /* @__PURE__ */ __name((value) => {
|
|
25
25
|
const stringified = this.#stringify(value);
|
|
26
|
-
if (stringified ===
|
|
26
|
+
if (stringified === void 0) {
|
|
27
27
|
console.warn("Unable to stringify value of type " + typeof value, value);
|
|
28
28
|
return "undefined";
|
|
29
29
|
}
|
|
30
30
|
return stringified;
|
|
31
31
|
}, "stringify")
|
|
32
32
|
});
|
|
33
|
-
if (meta.message !==
|
|
33
|
+
if (meta.message !== void 0) {
|
|
34
34
|
meta.message = this._format(formatter, meta.message, meta.context ?? []);
|
|
35
35
|
}
|
|
36
36
|
return meta;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { stdout, stderr } from 'node:process';
|
|
2
|
-
import colorize, {
|
|
2
|
+
import colorize, { red, greenBright, cyan, green, grey, white, bgGrey, underline } from '@visulima/colorize';
|
|
3
3
|
import { renderError } from '@visulima/error/error';
|
|
4
4
|
import { inspect } from '@visulima/inspector';
|
|
5
|
-
import { d as defaultInspectorConfig, t as terminalSize, f as formatLabel, s as stringLength, w as wrapAnsi } from './format-label-
|
|
5
|
+
import { d as defaultInspectorConfig, t as terminalSize, f as formatLabel, s as stringLength, w as wrapAnsi } from './format-label-DCVqdv1Z.mjs';
|
|
6
6
|
import { E as EMPTY_SYMBOL } from './constants-BYYZ5WNW.mjs';
|
|
7
7
|
import { A as AbstractPrettyReporter, g as getLongestBadge } from './abstract-pretty-reporter-izJgxoMv.mjs';
|
|
8
8
|
import { g as getLongestLabel } from './get-longest-label-CM8kLFWH.mjs';
|
|
@@ -181,7 +181,7 @@ class PrettyReporter extends AbstractPrettyReporter {
|
|
|
181
181
|
_log(message, logLevel) {
|
|
182
182
|
const streamType = ["error", "trace", "warn"].includes(logLevel) ? "stderr" : "stdout";
|
|
183
183
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
184
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
184
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
185
185
|
this.#interactiveManager.update(streamType, message.split("\n"), 0);
|
|
186
186
|
} else {
|
|
187
187
|
writeStream(message + "\n", stream);
|
|
@@ -6,7 +6,7 @@ const process = require('node:process');
|
|
|
6
6
|
const colorize = require('@visulima/colorize');
|
|
7
7
|
const error = require('@visulima/error/error');
|
|
8
8
|
const inspector = require('@visulima/inspector');
|
|
9
|
-
const formatLabel = require('./format-label-
|
|
9
|
+
const formatLabel = require('./format-label-CiYBxDGf.cjs');
|
|
10
10
|
const constants = require('./constants-DHfYGxxG.cjs');
|
|
11
11
|
const abstractPrettyReporter = require('./abstract-pretty-reporter-BR_6_JVa.cjs');
|
|
12
12
|
const getLongestLabel = require('./get-longest-label-CQ7lRhgD.cjs');
|
|
@@ -189,7 +189,7 @@ class PrettyReporter extends abstractPrettyReporter.AbstractPrettyReporter {
|
|
|
189
189
|
_log(message, logLevel) {
|
|
190
190
|
const streamType = ["error", "trace", "warn"].includes(logLevel) ? "stderr" : "stdout";
|
|
191
191
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
192
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
192
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
193
193
|
this.#interactiveManager.update(streamType, message.split("\n"), 0);
|
|
194
194
|
} else {
|
|
195
195
|
writeStream.writeStream(message + "\n", stream);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { stdout, stderr } from 'node:process';
|
|
2
|
-
import colorize, {
|
|
2
|
+
import colorize, { red, greenBright, cyan, green, grey, bold, white, bgGrey, underline } from '@visulima/colorize';
|
|
3
3
|
import { renderError } from '@visulima/error';
|
|
4
4
|
import { inspect } from '@visulima/inspector';
|
|
5
|
-
import { d as defaultInspectorConfig, t as terminalSize, f as formatLabel, s as stringLength, w as wrapAnsi } from './format-label-
|
|
5
|
+
import { d as defaultInspectorConfig, t as terminalSize, f as formatLabel, s as stringLength, w as wrapAnsi } from './format-label-DCVqdv1Z.mjs';
|
|
6
6
|
import { E as EMPTY_SYMBOL } from './constants-BYYZ5WNW.mjs';
|
|
7
7
|
import { A as AbstractPrettyReporter, g as getLongestBadge } from './abstract-pretty-reporter-izJgxoMv.mjs';
|
|
8
8
|
import { g as getLongestLabel } from './get-longest-label-CM8kLFWH.mjs';
|
|
@@ -30,7 +30,7 @@ class SimpleReporter extends AbstractPrettyReporter {
|
|
|
30
30
|
},
|
|
31
31
|
...rest
|
|
32
32
|
});
|
|
33
|
-
this.#inspectOptions = { ...defaultInspectorConfig, indent:
|
|
33
|
+
this.#inspectOptions = { ...defaultInspectorConfig, indent: void 0, ...inspectOptions };
|
|
34
34
|
this.#errorOptions = {
|
|
35
35
|
...errorOptions,
|
|
36
36
|
color: {
|
|
@@ -167,7 +167,7 @@ class SimpleReporter extends AbstractPrettyReporter {
|
|
|
167
167
|
_log(message, logLevel) {
|
|
168
168
|
const streamType = ["error", "trace", "warn"].includes(logLevel) ? "stderr" : "stdout";
|
|
169
169
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
170
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
170
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
171
171
|
this.#interactiveManager.update(streamType, message.split("\n"), 0);
|
|
172
172
|
} else {
|
|
173
173
|
writeStream(message + "\n", stream);
|
|
@@ -6,7 +6,7 @@ const process = require('node:process');
|
|
|
6
6
|
const colorize = require('@visulima/colorize');
|
|
7
7
|
const error = require('@visulima/error');
|
|
8
8
|
const inspector = require('@visulima/inspector');
|
|
9
|
-
const formatLabel = require('./format-label-
|
|
9
|
+
const formatLabel = require('./format-label-CiYBxDGf.cjs');
|
|
10
10
|
const constants = require('./constants-DHfYGxxG.cjs');
|
|
11
11
|
const abstractPrettyReporter = require('./abstract-pretty-reporter-BR_6_JVa.cjs');
|
|
12
12
|
const getLongestLabel = require('./get-longest-label-CQ7lRhgD.cjs');
|
|
@@ -38,7 +38,7 @@ class SimpleReporter extends abstractPrettyReporter.AbstractPrettyReporter {
|
|
|
38
38
|
},
|
|
39
39
|
...rest
|
|
40
40
|
});
|
|
41
|
-
this.#inspectOptions = { ...formatLabel.defaultInspectorConfig, indent:
|
|
41
|
+
this.#inspectOptions = { ...formatLabel.defaultInspectorConfig, indent: void 0, ...inspectOptions };
|
|
42
42
|
this.#errorOptions = {
|
|
43
43
|
...errorOptions,
|
|
44
44
|
color: {
|
|
@@ -175,7 +175,7 @@ class SimpleReporter extends abstractPrettyReporter.AbstractPrettyReporter {
|
|
|
175
175
|
_log(message, logLevel) {
|
|
176
176
|
const streamType = ["error", "trace", "warn"].includes(logLevel) ? "stderr" : "stdout";
|
|
177
177
|
const stream = streamType === "stderr" ? this.#stderr : this.#stdout;
|
|
178
|
-
if (this.#interactive && this.#interactiveManager !==
|
|
178
|
+
if (this.#interactive && this.#interactiveManager !== void 0 && stream.isTTY) {
|
|
179
179
|
this.#interactiveManager.update(streamType, message.split("\n"), 0);
|
|
180
180
|
} else {
|
|
181
181
|
writeStream.writeStream(message + "\n", stream);
|
|
@@ -29,7 +29,7 @@ class AbstractJsonReporter {
|
|
|
29
29
|
rest.file = file.name + ":" + file.line + (file.column ? ":" + file.column : "");
|
|
30
30
|
}
|
|
31
31
|
if (message === constants.EMPTY_SYMBOL) {
|
|
32
|
-
rest.message =
|
|
32
|
+
rest.message = void 0;
|
|
33
33
|
} else {
|
|
34
34
|
rest.message = message;
|
|
35
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './types-BGWAKixQ.
|
|
2
|
+
import { h as StringifyAwareReporter, g as ReadonlyMeta, e as LiteralUnion, E as ExtendedRfc5424LogLevels, c as LoggerTypesAwareReporter, d as LoggerTypesConfig, a as DefaultLogTypes } from './types-BGWAKixQ.js';
|
|
3
3
|
|
|
4
4
|
type AbstractJsonReporterOptions = {
|
|
5
5
|
error: Partial<{
|
|
@@ -97,7 +97,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
97
97
|
`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
|
|
98
98
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
99
99
|
].join("|");
|
|
100
|
-
return new RegExp(pattern, onlyFirst ?
|
|
100
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
101
101
|
}
|
|
102
102
|
__name$a(ansiRegex, "ansiRegex");
|
|
103
103
|
|
|
@@ -526,11 +526,11 @@ const exec = /* @__PURE__ */ __name$3((string, columns, options = {}) => {
|
|
|
526
526
|
returnValue += character;
|
|
527
527
|
if (ESCAPES.has(character)) {
|
|
528
528
|
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
|
|
529
|
-
if (groups.code !==
|
|
529
|
+
if (groups.code !== void 0) {
|
|
530
530
|
const code2 = Number.parseFloat(groups.code);
|
|
531
|
-
escapeCode = code2 === END_CODE ?
|
|
532
|
-
} else if (groups.uri !==
|
|
533
|
-
escapeUrl = groups.uri.length === 0 ?
|
|
531
|
+
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
532
|
+
} else if (groups.uri !== void 0) {
|
|
533
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
@@ -597,7 +597,7 @@ const defaultInspectorConfig = {
|
|
|
597
597
|
symbol: colorize.green,
|
|
598
598
|
undefined: colorize.grey
|
|
599
599
|
};
|
|
600
|
-
if (styles[style] ===
|
|
600
|
+
if (styles[style] === void 0) {
|
|
601
601
|
return string_;
|
|
602
602
|
}
|
|
603
603
|
return styles[style](string_);
|
|
@@ -2,7 +2,7 @@ import process from 'node:process';
|
|
|
2
2
|
import { execFileSync } from 'node:child_process';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import tty from 'node:tty';
|
|
5
|
-
import {
|
|
5
|
+
import { grey, green, cyan, red, yellow, bold, magenta, underline } from '@visulima/colorize';
|
|
6
6
|
|
|
7
7
|
var __defProp$b = Object.defineProperty;
|
|
8
8
|
var __name$b = (target, value) => __defProp$b(target, "name", { value, configurable: true });
|
|
@@ -89,7 +89,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
89
89
|
`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ST})`,
|
|
90
90
|
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"
|
|
91
91
|
].join("|");
|
|
92
|
-
return new RegExp(pattern, onlyFirst ?
|
|
92
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
93
93
|
}
|
|
94
94
|
__name$a(ansiRegex, "ansiRegex");
|
|
95
95
|
|
|
@@ -518,11 +518,11 @@ const exec = /* @__PURE__ */ __name$3((string, columns, options = {}) => {
|
|
|
518
518
|
returnValue += character;
|
|
519
519
|
if (ESCAPES.has(character)) {
|
|
520
520
|
const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
|
|
521
|
-
if (groups.code !==
|
|
521
|
+
if (groups.code !== void 0) {
|
|
522
522
|
const code2 = Number.parseFloat(groups.code);
|
|
523
|
-
escapeCode = code2 === END_CODE ?
|
|
524
|
-
} else if (groups.uri !==
|
|
525
|
-
escapeUrl = groups.uri.length === 0 ?
|
|
523
|
+
escapeCode = code2 === END_CODE ? void 0 : code2;
|
|
524
|
+
} else if (groups.uri !== void 0) {
|
|
525
|
+
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
const code = ansiStyles.codes.get(Number(escapeCode));
|
|
@@ -589,7 +589,7 @@ const defaultInspectorConfig = {
|
|
|
589
589
|
symbol: green,
|
|
590
590
|
undefined: grey
|
|
591
591
|
};
|
|
592
|
-
if (styles[style] ===
|
|
592
|
+
if (styles[style] === void 0) {
|
|
593
593
|
return string_;
|
|
594
594
|
}
|
|
595
595
|
return styles[style](string_);
|
|
@@ -20,7 +20,7 @@ class RawReporter {
|
|
|
20
20
|
var __defProp$2 = Object.defineProperty;
|
|
21
21
|
var __name$2 = (target, value) => __defProp$2(target, "name", { value, configurable: true });
|
|
22
22
|
const arrayify = /* @__PURE__ */ __name$2((x) => {
|
|
23
|
-
if (x ===
|
|
23
|
+
if (x === void 0) {
|
|
24
24
|
return [];
|
|
25
25
|
}
|
|
26
26
|
return Array.isArray(x) ? x : [x];
|
|
@@ -279,15 +279,15 @@ class PailBrowserImpl {
|
|
|
279
279
|
// eslint-disable-next-line sonarjs/cognitive-complexity,@typescript-eslint/no-explicit-any
|
|
280
280
|
_buildMeta(typeName, type, ...arguments_) {
|
|
281
281
|
const meta = {
|
|
282
|
-
badge:
|
|
283
|
-
context:
|
|
284
|
-
error:
|
|
285
|
-
label:
|
|
282
|
+
badge: void 0,
|
|
283
|
+
context: void 0,
|
|
284
|
+
error: void 0,
|
|
285
|
+
label: void 0,
|
|
286
286
|
message: EMPTY_SYMBOL,
|
|
287
|
-
prefix:
|
|
288
|
-
repeated:
|
|
289
|
-
scope:
|
|
290
|
-
suffix:
|
|
287
|
+
prefix: void 0,
|
|
288
|
+
repeated: void 0,
|
|
289
|
+
scope: void 0,
|
|
290
|
+
suffix: void 0
|
|
291
291
|
};
|
|
292
292
|
meta.type = {
|
|
293
293
|
level: type.logLevel,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import {
|
|
2
|
+
import { M as Meta, d as LoggerTypesConfig, e as LiteralUnion, a as DefaultLogTypes, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter, C as ConstructorOptions, b as LoggerFunction } from './types-BGWAKixQ.js';
|
|
3
3
|
|
|
4
4
|
declare class PailBrowserImpl<T extends string = string, L extends string = string> {
|
|
5
5
|
protected timersMap: Map<string, number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import {
|
|
2
|
+
import { M as Meta, d as LoggerTypesConfig, e as LiteralUnion, a as DefaultLogTypes, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter, C as ConstructorOptions, b as LoggerFunction } from './types-BGWAKixQ.mjs';
|
|
3
3
|
|
|
4
4
|
declare class PailBrowserImpl<T extends string = string, L extends string = string> {
|
|
5
5
|
protected timersMap: Map<string, number>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import {
|
|
2
|
+
import { M as Meta, d as LoggerTypesConfig, e as LiteralUnion, a as DefaultLogTypes, P as Processor, E as ExtendedRfc5424LogLevels, R as Reporter, C as ConstructorOptions, b as LoggerFunction } from './types-BGWAKixQ.cjs';
|
|
3
3
|
|
|
4
4
|
declare class PailBrowserImpl<T extends string = string, L extends string = string> {
|
|
5
5
|
protected timersMap: Map<string, number>;
|
|
@@ -22,7 +22,7 @@ class RawReporter {
|
|
|
22
22
|
var __defProp$2 = Object.defineProperty;
|
|
23
23
|
var __name$2 = (target, value) => __defProp$2(target, "name", { value, configurable: true });
|
|
24
24
|
const arrayify = /* @__PURE__ */ __name$2((x) => {
|
|
25
|
-
if (x ===
|
|
25
|
+
if (x === void 0) {
|
|
26
26
|
return [];
|
|
27
27
|
}
|
|
28
28
|
return Array.isArray(x) ? x : [x];
|
|
@@ -281,15 +281,15 @@ class PailBrowserImpl {
|
|
|
281
281
|
// eslint-disable-next-line sonarjs/cognitive-complexity,@typescript-eslint/no-explicit-any
|
|
282
282
|
_buildMeta(typeName, type, ...arguments_) {
|
|
283
283
|
const meta = {
|
|
284
|
-
badge:
|
|
285
|
-
context:
|
|
286
|
-
error:
|
|
287
|
-
label:
|
|
284
|
+
badge: void 0,
|
|
285
|
+
context: void 0,
|
|
286
|
+
error: void 0,
|
|
287
|
+
label: void 0,
|
|
288
288
|
message: constants.EMPTY_SYMBOL,
|
|
289
|
-
prefix:
|
|
290
|
-
repeated:
|
|
291
|
-
scope:
|
|
292
|
-
suffix:
|
|
289
|
+
prefix: void 0,
|
|
290
|
+
repeated: void 0,
|
|
291
|
+
scope: void 0,
|
|
292
|
+
suffix: void 0
|
|
293
293
|
};
|
|
294
294
|
meta.type = {
|
|
295
295
|
level: type.logLevel,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-
|
|
5
|
+
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-t4t6CpzV.cjs');
|
|
6
6
|
const RedactProcessor = require('./packem_shared/RedactProcessor-DWE5iqAQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormatterFunction } from '@visulima/fmt';
|
|
2
|
-
import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './packem_shared/types-BGWAKixQ.
|
|
2
|
+
import { j as StringifyAwareProcessor, M as Meta, P as Processor } from './packem_shared/types-BGWAKixQ.js';
|
|
3
3
|
import { Rules, RedactOptions } from '@visulima/redact';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as MessageFormatterProcessor } from './packem_shared/MessageFormatterProcessor-
|
|
1
|
+
export { default as MessageFormatterProcessor } from './packem_shared/MessageFormatterProcessor-Cd4HntPG.mjs';
|
|
2
2
|
export { default as RedactProcessor } from './packem_shared/RedactProcessor-CfNkF2lC.mjs';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const CallerProcessor = require('./packem_shared/CallerProcessor-
|
|
6
|
-
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-
|
|
5
|
+
const CallerProcessor = require('./packem_shared/CallerProcessor-DJ5euiUK.cjs');
|
|
6
|
+
const MessageFormatterProcessor = require('./packem_shared/MessageFormatterProcessor-t4t6CpzV.cjs');
|
|
7
7
|
const RedactProcessor = require('./packem_shared/RedactProcessor-DWE5iqAQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Processor, M as Meta } from './packem_shared/types-BGWAKixQ.
|
|
1
|
+
import { P as Processor, M as Meta } from './packem_shared/types-BGWAKixQ.js';
|
|
2
2
|
export { MessageFormatterProcessor, RedactProcessor } from './processor.browser.js';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/fmt';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as CallerProcessor } from './packem_shared/CallerProcessor-
|
|
2
|
-
export { default as MessageFormatterProcessor } from './packem_shared/MessageFormatterProcessor-
|
|
1
|
+
export { default as CallerProcessor } from './packem_shared/CallerProcessor-CNhuyGAa.mjs';
|
|
2
|
+
export { default as MessageFormatterProcessor } from './packem_shared/MessageFormatterProcessor-Cd4HntPG.mjs';
|
|
3
3
|
export { default as RedactProcessor } from './packem_shared/RedactProcessor-CfNkF2lC.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const JsonReporter = require('./packem_shared/JsonReporter-
|
|
5
|
+
const JsonReporter = require('./packem_shared/JsonReporter-Cg5R1FXn.cjs');
|
|
6
6
|
const PrettyReporter = require('./packem_shared/PrettyReporter-mFCjMb0i.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './packem_shared/types-BGWAKixQ.
|
|
2
|
-
import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './packem_shared/abstract-pretty-reporter-
|
|
1
|
+
import { e as LiteralUnion, E as ExtendedRfc5424LogLevels, g as ReadonlyMeta } from './packem_shared/types-BGWAKixQ.js';
|
|
2
|
+
import { A as AbstractJsonReporter, a as AbstractJsonReporterOptions, b as AbstractPrettyReporter, P as PrettyStyleOptions } from './packem_shared/abstract-pretty-reporter-Ct4QMQNG.js';
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import 'safe-stable-stringify';
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as JsonReporter } from './packem_shared/JsonReporter-
|
|
1
|
+
export { default as JsonReporter } from './packem_shared/JsonReporter-CKWF4Ibl.mjs';
|
|
2
2
|
export { default as PrettyReporter } from './packem_shared/PrettyReporter-Bx3QLZrW.mjs';
|
package/dist/reporter.server.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
|
-
const JsonFileReporter = require('./packem_shared/JsonFileReporter-
|
|
6
|
-
const JsonReporter = require('./packem_shared/JsonReporter-
|
|
7
|
-
const PrettyReporter = require('./packem_shared/PrettyReporter-
|
|
8
|
-
const SimpleReporter = require('./packem_shared/SimpleReporter-
|
|
5
|
+
const JsonFileReporter = require('./packem_shared/JsonFileReporter-PNmBNTr1.cjs');
|
|
6
|
+
const JsonReporter = require('./packem_shared/JsonReporter-CcOVaf3A.cjs');
|
|
7
|
+
const PrettyReporter = require('./packem_shared/PrettyReporter-K-EU3qWb.cjs');
|
|
8
|
+
const SimpleReporter = require('./packem_shared/SimpleReporter-BB039Qa4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Options } from 'rotating-file-stream';
|
|
2
|
-
import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './packem_shared/abstract-pretty-reporter-
|
|
3
|
-
import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './packem_shared/types-BGWAKixQ.
|
|
2
|
+
import { a as AbstractJsonReporterOptions, A as AbstractJsonReporter, P as PrettyStyleOptions, b as AbstractPrettyReporter } from './packem_shared/abstract-pretty-reporter-Ct4QMQNG.js';
|
|
3
|
+
import { S as StreamAwareReporter, e as LiteralUnion, E as ExtendedRfc5424LogLevels, i as InteractiveStreamReporter, I as InteractiveManager, g as ReadonlyMeta } from './packem_shared/types-BGWAKixQ.js';
|
|
4
4
|
import { RenderErrorOptions } from '@visulima/error/error';
|
|
5
5
|
import { Options as Options$1 } from '@visulima/inspector';
|
|
6
6
|
import { RenderErrorOptions as RenderErrorOptions$1 } from '@visulima/error';
|
package/dist/reporter.server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { JsonFileReporter } from './packem_shared/JsonFileReporter-
|
|
2
|
-
export { default as JsonReporter } from './packem_shared/JsonReporter-
|
|
3
|
-
export { PrettyReporter } from './packem_shared/PrettyReporter-
|
|
4
|
-
export { SimpleReporter } from './packem_shared/SimpleReporter-
|
|
1
|
+
export { JsonFileReporter } from './packem_shared/JsonFileReporter-BazAMbEI.mjs';
|
|
2
|
+
export { default as JsonReporter } from './packem_shared/JsonReporter-DFFyVZyh.mjs';
|
|
3
|
+
export { PrettyReporter } from './packem_shared/PrettyReporter-BhMmZrvE.mjs';
|
|
4
|
+
export { SimpleReporter } from './packem_shared/SimpleReporter-8ZqbQvpc.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/pail",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.22",
|
|
4
4
|
"description": "Highly configurable Logger for Node.js, Edge and Browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ansi",
|
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
"LICENSE.md"
|
|
226
226
|
],
|
|
227
227
|
"dependencies": {
|
|
228
|
-
"@visulima/colorize": "1.4.
|
|
229
|
-
"@visulima/error": "4.4.
|
|
230
|
-
"@visulima/fmt": "1.1.
|
|
231
|
-
"@visulima/inspector": "1.0.
|
|
228
|
+
"@visulima/colorize": "1.4.21",
|
|
229
|
+
"@visulima/error": "4.4.16",
|
|
230
|
+
"@visulima/fmt": "1.1.15",
|
|
231
|
+
"@visulima/inspector": "1.0.21",
|
|
232
232
|
"safe-stable-stringify": "^2.5.0"
|
|
233
233
|
},
|
|
234
234
|
"peerDependencies": {
|
|
235
|
-
"@visulima/redact": "1.0.
|
|
235
|
+
"@visulima/redact": "1.0.14",
|
|
236
236
|
"rotating-file-stream": "^3.1.1"
|
|
237
237
|
},
|
|
238
238
|
"peerDependenciesMeta": {
|
|
File without changes
|