@visulima/pail 4.0.0-alpha.14 → 4.0.0-alpha.16
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 +21 -0
- package/dist/middleware/elysia.d.ts +3 -3
- package/dist/middleware/express.d.ts +3 -3
- package/dist/middleware/fastify.d.ts +3 -3
- package/dist/middleware/hono.d.ts +3 -3
- package/dist/middleware/next/handler.d.ts +5 -5
- package/dist/middleware/sveltekit.d.ts +3 -3
- package/dist/packem_shared/{abstract-json-reporter.d-Boj5w068.d.ts → abstract-json-reporter.d-BAgznjyU.d.ts} +1 -1
- package/dist/packem_shared/{create-middleware-logger.d-CMQdVeVE.d.ts → create-middleware-logger.d-DheMh8q4.d.ts} +2 -2
- package/dist/packem_shared/{types.d-Ck_RSjLg.d.ts → types.d-BeLumqgD.d.ts} +1 -1
- package/dist/packem_shared/{wide-event.d-DA-6dTPc.d.ts → wide-event.d-B-t8ZnhI.d.ts} +1 -1
- package/dist/processor/caller/caller-processor.d.ts +1 -1
- package/dist/processor/environment-processor.d.ts +1 -1
- package/dist/processor/message-formatter-processor.d.ts +1 -1
- package/dist/processor/opentelemetry-processor.d.ts +1 -1
- package/dist/processor/redact-processor.d.ts +1 -1
- package/dist/processor/sampling-processor.d.ts +1 -1
- package/dist/reporter/file/json-file-reporter.d.ts +2 -2
- package/dist/reporter/http/abstract-http-reporter.d.ts +2 -2
- package/dist/reporter/http/http-reporter.d.ts +2 -2
- package/dist/reporter/json/index.d.ts +2 -2
- package/dist/reporter/pretty/index.d.ts +3 -36
- package/dist/wide-event.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/pail [4.0.0-alpha.16](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.15...@visulima/pail@4.0.0-alpha.16) (2026-05-14)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* **error:** apply prettier and eslint formatting sweep ([25c5eaf](https://github.com/visulima/visulima/commit/25c5eaf4989bddfe860b52aea113b3e229fea84f))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/colorize:** upgraded to 2.0.0-alpha.11
|
|
11
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.24
|
|
12
|
+
|
|
13
|
+
## @visulima/pail [4.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.14...@visulima/pail@4.0.0-alpha.15) (2026-05-07)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.19
|
|
19
|
+
* **@visulima/redact:** upgraded to 3.0.0-alpha.11
|
|
20
|
+
* **@visulima/string:** upgraded to 3.0.0-alpha.12
|
|
21
|
+
|
|
1
22
|
## @visulima/pail [4.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/pail@4.0.0-alpha.13...@visulima/pail@4.0.0-alpha.14) (2026-05-06)
|
|
2
23
|
|
|
3
24
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WideEvent } from "../packem_shared/wide-event.d-
|
|
2
|
-
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-
|
|
1
|
+
import { W as WideEvent } from "../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../packem_shared/types.d-
|
|
4
|
+
import "../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WideEvent } from "../packem_shared/wide-event.d-
|
|
2
|
-
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-
|
|
1
|
+
import { W as WideEvent } from "../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../packem_shared/types.d-
|
|
4
|
+
import "../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WideEvent } from "../packem_shared/wide-event.d-
|
|
2
|
-
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-
|
|
1
|
+
import { W as WideEvent } from "../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../packem_shared/types.d-
|
|
4
|
+
import "../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WideEvent } from "../packem_shared/wide-event.d-
|
|
2
|
-
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-
|
|
1
|
+
import { W as WideEvent } from "../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../packem_shared/types.d-
|
|
4
|
+
import "../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as PailMiddlewareOptions } from "../../packem_shared/create-middleware-logger.d-
|
|
2
|
-
import { W as WideEvent } from "../../packem_shared/wide-event.d-
|
|
1
|
+
import { P as PailMiddlewareOptions } from "../../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
2
|
+
import { W as WideEvent } from "../../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
3
3
|
import 'node:async_hooks';
|
|
4
|
-
import "../../packem_shared/types.d-
|
|
4
|
+
import "../../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
import 'safe-stable-stringify';
|
|
@@ -62,7 +62,7 @@ interface PailNextMiddlewareOptions {
|
|
|
62
62
|
* export default middleware;
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
declare const pailMiddleware: (NextResponseClass: NextResponseConstructor, options?: PailNextMiddlewareOptions) => (
|
|
65
|
+
declare const pailMiddleware: (NextResponseClass: NextResponseConstructor, options?: PailNextMiddlewareOptions) => (request: NextRequest) => NextResponse;
|
|
66
66
|
/**
|
|
67
67
|
* Retrieve the request-scoped WideEvent logger from AsyncLocalStorage.
|
|
68
68
|
* Must be called within a `withPail()` wrapped handler or server action.
|
|
@@ -99,5 +99,5 @@ type NextPailOptions<T extends string = string> = PailMiddlewareOptions<T>;
|
|
|
99
99
|
* });
|
|
100
100
|
* ```
|
|
101
101
|
*/
|
|
102
|
-
declare const createWithPail: <T extends string = string>(options: NextPailOptions<T>) => <TArgs extends unknown[], TReturn>(handler: (...args: TArgs) => Promise<TReturn> | TReturn) => (
|
|
102
|
+
declare const createWithPail: <T extends string = string>(options: NextPailOptions<T>) => <TArgs extends unknown[], TReturn>(handler: (...args: TArgs) => Promise<TReturn> | TReturn) => (...args: TArgs) => Promise<TReturn>;
|
|
103
103
|
export { type NextPailOptions, type PailNextMiddlewareOptions, type WideEvent, createWithPail, pailMiddleware, useLogger };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WideEvent } from "../packem_shared/wide-event.d-
|
|
2
|
-
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-
|
|
1
|
+
import { W as WideEvent } from "../packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { P as PailMiddlewareOptions } from "../packem_shared/create-middleware-logger.d-DheMh8q4.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../packem_shared/types.d-
|
|
4
|
+
import "../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import { R as ReadonlyMeta, E as ExtendedRfc5424LogLevels, L as LiteralUnion,
|
|
2
|
+
import { R as ReadonlyMeta, E as ExtendedRfc5424LogLevels, L as LiteralUnion, S as StringifyAwareReporter } from "./types.d-BeLumqgD.js";
|
|
3
3
|
/**
|
|
4
4
|
* Options for configuring JSON reporters.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PailBrowserImpl } from "./wide-event.d-
|
|
2
|
-
import { D as DefaultLogTypes, e as LoggerFunction } from "./types.d-
|
|
1
|
+
import { P as PailBrowserImpl } from "./wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import { D as DefaultLogTypes, e as LoggerFunction } from "./types.d-BeLumqgD.js";
|
|
3
3
|
/**
|
|
4
4
|
* Route configuration for a specific path pattern.
|
|
5
5
|
*/
|
|
@@ -243,4 +243,4 @@ type Message = {
|
|
|
243
243
|
prefix?: string;
|
|
244
244
|
suffix?: string;
|
|
245
245
|
};
|
|
246
|
-
export { ConstructorOptions as C, DefaultLogTypes as D, ExtendedRfc5424LogLevels as E, InteractiveStreamReporter as I, LiteralUnion as L, Meta as M, Processor as P, ReadonlyMeta as R,
|
|
246
|
+
export { ConstructorOptions as C, DefaultLogTypes as D, ExtendedRfc5424LogLevels as E, InteractiveStreamReporter as I, LiteralUnion as L, Meta as M, Processor as P, ReadonlyMeta as R, StringifyAwareReporter as S, StreamAwareReporter as a, StringifyAwareProcessor as b, LoggerTypesConfig as c, Reporter as d, LoggerFunction as e, LoggerTypesAwareReporter as f };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringify } from 'safe-stable-stringify';
|
|
2
|
-
import { M as Meta, D as DefaultLogTypes, L as LiteralUnion, c as LoggerTypesConfig, P as Processor, E as ExtendedRfc5424LogLevels, d as Reporter, e as LoggerFunction, C as ConstructorOptions } from "./types.d-
|
|
2
|
+
import { M as Meta, D as DefaultLogTypes, L as LiteralUnion, c as LoggerTypesConfig, P as Processor, E as ExtendedRfc5424LogLevels, d as Reporter, e as LoggerFunction, C as ConstructorOptions } from "./types.d-BeLumqgD.js";
|
|
3
3
|
/**
|
|
4
4
|
* Pail Browser Implementation.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Meta, b as StringifyAwareProcessor } from "../packem_shared/types.d-
|
|
1
|
+
import { M as Meta, b as StringifyAwareProcessor } from "../packem_shared/types.d-BeLumqgD.js";
|
|
2
2
|
import '@visulima/colorize';
|
|
3
3
|
import '@visulima/interactive-manager';
|
|
4
4
|
type FormatterFunction = (argument: any) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Options } from 'rotating-file-stream';
|
|
2
|
-
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-
|
|
2
|
+
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-BAgznjyU.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
|
-
import "../../packem_shared/types.d-
|
|
4
|
+
import "../../packem_shared/types.d-BeLumqgD.js";
|
|
5
5
|
import '@visulima/colorize';
|
|
6
6
|
import '@visulima/interactive-manager';
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as ExtendedRfc5424LogLevels, L as LiteralUnion,
|
|
2
|
-
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-
|
|
1
|
+
import { E as ExtendedRfc5424LogLevels, L as LiteralUnion, S as StringifyAwareReporter } from "../../packem_shared/types.d-BeLumqgD.js";
|
|
2
|
+
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-BAgznjyU.js";
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/interactive-manager';
|
|
5
5
|
import 'safe-stable-stringify';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbstractHttpReporterOptions, AbstractHttpReporter } from "./abstract-http-reporter.js";
|
|
2
|
-
import "../../packem_shared/types.d-
|
|
2
|
+
import "../../packem_shared/types.d-BeLumqgD.js";
|
|
3
3
|
import '@visulima/colorize';
|
|
4
4
|
import '@visulima/interactive-manager';
|
|
5
|
-
import "../../packem_shared/abstract-json-reporter.d-
|
|
5
|
+
import "../../packem_shared/abstract-json-reporter.d-BAgznjyU.js";
|
|
6
6
|
import 'safe-stable-stringify';
|
|
7
7
|
/**
|
|
8
8
|
* HTTP Reporter.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-
|
|
2
|
-
import { E as ExtendedRfc5424LogLevels, L as LiteralUnion,
|
|
1
|
+
import { A as AbstractJsonReporterOptions, a as AbstractJsonReporter } from "../../packem_shared/abstract-json-reporter.d-BAgznjyU.js";
|
|
2
|
+
import { E as ExtendedRfc5424LogLevels, L as LiteralUnion, a as StreamAwareReporter } from "../../packem_shared/types.d-BeLumqgD.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import '@visulima/interactive-manager';
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
+
import { RenderErrorOptions } from '@visulima/error/error';
|
|
1
2
|
import { InteractiveManager } from '@visulima/interactive-manager';
|
|
2
|
-
import { D as DefaultLogTypes, L as LiteralUnion$1, c as LoggerTypesConfig, R as ReadonlyMeta, f as LoggerTypesAwareReporter, E as ExtendedRfc5424LogLevels, I as InteractiveStreamReporter } from "../../packem_shared/types.d-
|
|
3
|
+
import { D as DefaultLogTypes, L as LiteralUnion$1, c as LoggerTypesConfig, R as ReadonlyMeta, f as LoggerTypesAwareReporter, E as ExtendedRfc5424LogLevels, I as InteractiveStreamReporter } from "../../packem_shared/types.d-BeLumqgD.js";
|
|
3
4
|
import '@visulima/colorize';
|
|
4
|
-
type ColorizeMethod = (value: string) => string;
|
|
5
|
-
type CodeFrameOptions = {
|
|
6
|
-
color?: {
|
|
7
|
-
gutter?: ColorizeMethod;
|
|
8
|
-
marker?: ColorizeMethod;
|
|
9
|
-
message?: ColorizeMethod;
|
|
10
|
-
};
|
|
11
|
-
linesAbove?: number;
|
|
12
|
-
linesBelow?: number;
|
|
13
|
-
message?: string;
|
|
14
|
-
prefix?: string;
|
|
15
|
-
showGutter?: boolean;
|
|
16
|
-
showLineNumbers?: boolean;
|
|
17
|
-
tabWidth?: number | false;
|
|
18
|
-
};
|
|
19
|
-
type Options$1 = Omit<CodeFrameOptions, "message | prefix"> & {
|
|
20
|
-
color: CodeFrameOptions["color"] & {
|
|
21
|
-
fileLine: ColorizeMethod;
|
|
22
|
-
hint: ColorizeMethod;
|
|
23
|
-
method: ColorizeMethod;
|
|
24
|
-
title: ColorizeMethod;
|
|
25
|
-
};
|
|
26
|
-
cwd: string;
|
|
27
|
-
displayShortPath: boolean;
|
|
28
|
-
filterStacktrace: ((line: string) => boolean) | undefined;
|
|
29
|
-
framesMaxLimit: number;
|
|
30
|
-
hideErrorCauseCodeView: boolean;
|
|
31
|
-
hideErrorCodeView: boolean;
|
|
32
|
-
hideErrorErrorsCodeView: boolean;
|
|
33
|
-
hideErrorTitle: boolean;
|
|
34
|
-
hideMessage: boolean;
|
|
35
|
-
indentation: number | " ";
|
|
36
|
-
prefix: string;
|
|
37
|
-
};
|
|
38
5
|
/**
|
|
39
6
|
Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
40
7
|
|
|
@@ -158,7 +125,7 @@ type PrettyStyleOptions = {
|
|
|
158
125
|
*/
|
|
159
126
|
type PrettyReporterOptions = PrettyStyleOptions & {
|
|
160
127
|
/** Error rendering options */
|
|
161
|
-
error: Partial<Omit<
|
|
128
|
+
error: Partial<Omit<RenderErrorOptions, "color" | "prefix" | "indentation">>;
|
|
162
129
|
/** Object inspection options */
|
|
163
130
|
inspect: Partial<Options>;
|
|
164
131
|
};
|
package/dist/wide-event.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { R as RequestLogEntry, S as SerializedError, W as WideEvent, a as WideEventFinishOptions, b as WideEventLevel, c as WideEventOptions, d as createWideEvent } from "./packem_shared/wide-event.d-
|
|
2
|
-
import "./packem_shared/types.d-
|
|
1
|
+
export { R as RequestLogEntry, S as SerializedError, W as WideEvent, a as WideEventFinishOptions, b as WideEventLevel, c as WideEventOptions, d as createWideEvent } from "./packem_shared/wide-event.d-B-t8ZnhI.js";
|
|
2
|
+
import "./packem_shared/types.d-BeLumqgD.js";
|
|
3
3
|
import 'safe-stable-stringify';
|
|
4
4
|
import '@visulima/colorize';
|
|
5
5
|
import '@visulima/interactive-manager';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/pail",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.16",
|
|
4
4
|
"description": "Highly configurable Logger for Node.js, Edge and Browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -240,13 +240,13 @@
|
|
|
240
240
|
"provenance": true
|
|
241
241
|
},
|
|
242
242
|
"dependencies": {
|
|
243
|
-
"@visulima/colorize": "2.0.0-alpha.
|
|
243
|
+
"@visulima/colorize": "2.0.0-alpha.11",
|
|
244
244
|
"@visulima/interactive-manager": "1.0.0-alpha.2"
|
|
245
245
|
},
|
|
246
246
|
"peerDependencies": {
|
|
247
|
-
"@opentelemetry/api": "^1.9.
|
|
247
|
+
"@opentelemetry/api": "^1.9.1",
|
|
248
248
|
"@sveltejs/kit": ">=2.0",
|
|
249
|
-
"@visulima/redact": "3.0.0-alpha.
|
|
249
|
+
"@visulima/redact": "3.0.0-alpha.11",
|
|
250
250
|
"elysia": ">=1.0",
|
|
251
251
|
"express": ">=4.0",
|
|
252
252
|
"fastify": ">=4.0",
|