@rawnodes/logger 2.11.0 → 2.12.1

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.
@@ -1,5 +1,5 @@
1
1
  import { Writable } from 'node:stream';
2
- import { R as RelayConfig } from '../types-lfJLhC8J.mjs';
2
+ import { R as RelayConfig } from '../types-CD5hHXR4.mjs';
3
3
 
4
4
  /**
5
5
  * Returns true iff `wsUrl`'s origin matches `apiUrl`'s origin OR its hostname
@@ -1,5 +1,5 @@
1
1
  import { Writable } from 'node:stream';
2
- import { R as RelayConfig } from '../types-lfJLhC8J.js';
2
+ import { R as RelayConfig } from '../types-CD5hHXR4.js';
3
3
 
4
4
  /**
5
5
  * Returns true iff `wsUrl`'s origin matches `apiUrl`'s origin OR its hostname
@@ -71,6 +71,7 @@ interface FileConfig {
71
71
  zippedArchive?: boolean;
72
72
  maxSize?: string;
73
73
  maxFiles?: string;
74
+ onError?: (error: Error) => void;
74
75
  }
75
76
  interface HttpTransportBaseConfig {
76
77
  level?: LogLevel;
@@ -71,6 +71,7 @@ interface FileConfig {
71
71
  zippedArchive?: boolean;
72
72
  maxSize?: string;
73
73
  maxFiles?: string;
74
+ onError?: (error: Error) => void;
74
75
  }
75
76
  interface HttpTransportBaseConfig {
76
77
  level?: LogLevel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rawnodes/logger",
3
- "version": "2.11.0",
3
+ "version": "2.12.1",
4
4
  "description": "High-performance Pino-based logger with AsyncLocalStorage context, O(1) level rules, and timing utilities",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",