@logtape/logtape 0.4.2 → 0.4.3

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/esm/config.js CHANGED
@@ -112,6 +112,7 @@ export async function configure(config) {
112
112
  disposables.add(filter);
113
113
  }
114
114
  if ("process" in dntShim.dntGlobalThis) { // @ts-ignore: It's fine to use process in Node
115
+ // deno-lint-ignore no-node-globals
115
116
  process.on("exit", dispose);
116
117
  }
117
118
  else { // @ts-ignore: It's fine to addEventListener() on the browser/Deno
package/esm/sink.js CHANGED
@@ -124,7 +124,14 @@ export function getRotatingFileSink(path, options) {
124
124
  const encoder = options.encoder ?? new TextEncoder();
125
125
  const maxSize = options.maxSize ?? 1024 * 1024;
126
126
  const maxFiles = options.maxFiles ?? 5;
127
- let { size: offset } = options.statSync(path);
127
+ let offset = 0;
128
+ try {
129
+ const stat = options.statSync(path);
130
+ offset = stat.size;
131
+ }
132
+ catch {
133
+ // Continue as the offset is already 0.
134
+ }
128
135
  let fd = options.openSync(path);
129
136
  function shouldRollover(bytes) {
130
137
  return offset + bytes.length > maxSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logtape/logtape",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers",
5
5
  "keywords": [
6
6
  "logging",
package/script/config.js CHANGED
@@ -23,7 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.ConfigError = exports.dispose = exports.reset = exports.getConfig = exports.configure = void 0;
26
+ exports.ConfigError = void 0;
27
+ exports.configure = configure;
28
+ exports.getConfig = getConfig;
29
+ exports.reset = reset;
30
+ exports.dispose = dispose;
27
31
  const dntShim = __importStar(require("./_dnt.shims.js"));
28
32
  const filter_js_1 = require("./filter.js");
29
33
  const logger_js_1 = require("./logger.js");
@@ -138,6 +142,7 @@ async function configure(config) {
138
142
  disposables.add(filter);
139
143
  }
140
144
  if ("process" in dntShim.dntGlobalThis) { // @ts-ignore: It's fine to use process in Node
145
+ // deno-lint-ignore no-node-globals
141
146
  process.on("exit", dispose);
142
147
  }
143
148
  else { // @ts-ignore: It's fine to addEventListener() on the browser/Deno
@@ -156,7 +161,6 @@ async function configure(config) {
156
161
  "misconfigured. To turn off this message, configure the meta logger " +
157
162
  "with higher log levels than {dismissLevel}.", { metaLoggerCategory: ["logtape", "meta"], dismissLevel: "info" });
158
163
  }
159
- exports.configure = configure;
160
164
  /**
161
165
  * Get the current configuration, if any. Otherwise, `null`.
162
166
  * @returns The current configuration, if any. Otherwise, `null`.
@@ -164,7 +168,6 @@ exports.configure = configure;
164
168
  function getConfig() {
165
169
  return currentConfig;
166
170
  }
167
- exports.getConfig = getConfig;
168
171
  /**
169
172
  * Reset the configuration. Mostly for testing purposes.
170
173
  */
@@ -174,7 +177,6 @@ async function reset() {
174
177
  strongRefs.clear();
175
178
  currentConfig = null;
176
179
  }
177
- exports.reset = reset;
178
180
  /**
179
181
  * Dispose of the disposables.
180
182
  */
@@ -189,7 +191,6 @@ async function dispose() {
189
191
  }
190
192
  await Promise.all(promises);
191
193
  }
192
- exports.dispose = dispose;
193
194
  /**
194
195
  * A configuration error.
195
196
  */
@@ -26,7 +26,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.getRotatingFileSink = exports.getFileSink = exports.nodeDriver = void 0;
29
+ exports.nodeDriver = void 0;
30
+ exports.getFileSink = getFileSink;
31
+ exports.getRotatingFileSink = getRotatingFileSink;
30
32
  const dntShim = __importStar(require("./_dnt.shims.js"));
31
33
  // @ts-ignore: a trick to avoid module resolution error on non-Node.js environ
32
34
  const fs_js_1 = __importDefault(require("./fs.js"));
@@ -65,7 +67,6 @@ function getFileSink(path, options = {}) {
65
67
  }
66
68
  return (0, sink_js_1.getFileSink)(path, { ...options, ...exports.nodeDriver });
67
69
  }
68
- exports.getFileSink = getFileSink;
69
70
  /**
70
71
  * Get a rotating file sink.
71
72
  *
@@ -87,5 +88,4 @@ function getRotatingFileSink(path, options = {}) {
87
88
  }
88
89
  return (0, sink_js_1.getRotatingFileSink)(path, { ...options, ...exports.nodeDriver });
89
90
  }
90
- exports.getRotatingFileSink = getRotatingFileSink;
91
91
  // cSpell: ignore filesink
package/script/filter.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLevelFilter = exports.toFilter = void 0;
3
+ exports.toFilter = toFilter;
4
+ exports.getLevelFilter = getLevelFilter;
4
5
  /**
5
6
  * Converts a {@link FilterLike} value to an actual {@link Filter}.
6
7
  *
@@ -12,7 +13,6 @@ function toFilter(filter) {
12
13
  return filter;
13
14
  return getLevelFilter(filter);
14
15
  }
15
- exports.toFilter = toFilter;
16
16
  /**
17
17
  * Returns a filter that accepts log records with the specified level.
18
18
  *
@@ -44,4 +44,3 @@ function getLevelFilter(level) {
44
44
  return () => true;
45
45
  throw new TypeError(`Invalid log level: ${level}.`);
46
46
  }
47
- exports.getLevelFilter = getLevelFilter;
@@ -23,7 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.defaultConsoleFormatter = exports.defaultTextFormatter = void 0;
26
+ exports.defaultTextFormatter = defaultTextFormatter;
27
+ exports.defaultConsoleFormatter = defaultConsoleFormatter;
27
28
  const dntShim = __importStar(require("./_dnt.shims.js"));
28
29
  /**
29
30
  * The severity level abbreviations.
@@ -79,7 +80,6 @@ function defaultTextFormatter(record) {
79
80
  const category = record.category.join("\xb7");
80
81
  return `${ts.toISOString().replace("T", " ").replace("Z", " +00:00")} [${levelAbbreviations[record.level]}] ${category}: ${msg}\n`;
81
82
  }
82
- exports.defaultTextFormatter = defaultTextFormatter;
83
83
  /**
84
84
  * The styles for the log level in the console.
85
85
  */
@@ -120,4 +120,3 @@ function defaultConsoleFormatter(record) {
120
120
  ...values,
121
121
  ];
122
122
  }
123
- exports.defaultConsoleFormatter = defaultConsoleFormatter;
package/script/level.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLogLevel = exports.parseLogLevel = void 0;
3
+ exports.parseLogLevel = parseLogLevel;
4
+ exports.isLogLevel = isLogLevel;
4
5
  /**
5
6
  * Parses a log level from a string.
6
7
  *
@@ -21,7 +22,6 @@ function parseLogLevel(level) {
21
22
  throw new TypeError(`Invalid log level: ${level}.`);
22
23
  }
23
24
  }
24
- exports.parseLogLevel = parseLogLevel;
25
25
  /**
26
26
  * Checks if a string is a valid log level. This function can be used as
27
27
  * as a type guard to narrow the type of a string to a {@link LogLevel}.
@@ -41,4 +41,3 @@ function isLogLevel(level) {
41
41
  return false;
42
42
  }
43
43
  }
44
- exports.isLogLevel = isLogLevel;
package/script/logger.js CHANGED
@@ -23,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.renderMessage = exports.parseMessageTemplate = exports.LoggerImpl = exports.getLogger = void 0;
26
+ exports.LoggerImpl = void 0;
27
+ exports.getLogger = getLogger;
28
+ exports.parseMessageTemplate = parseMessageTemplate;
29
+ exports.renderMessage = renderMessage;
27
30
  const dntShim = __importStar(require("./_dnt.shims.js"));
28
31
  /**
29
32
  * Get a logger with the given category.
@@ -40,7 +43,6 @@ const dntShim = __importStar(require("./_dnt.shims.js"));
40
43
  function getLogger(category = []) {
41
44
  return LoggerImpl.getLogger(category);
42
45
  }
43
- exports.getLogger = getLogger;
44
46
  /**
45
47
  * The symbol for the global root logger.
46
48
  */
@@ -323,7 +325,6 @@ function parseMessageTemplate(template, properties) {
323
325
  message.push(part);
324
326
  return message;
325
327
  }
326
- exports.parseMessageTemplate = parseMessageTemplate;
327
328
  /**
328
329
  * Render a message template with values.
329
330
  * @param template The message template.
@@ -340,4 +341,3 @@ function renderMessage(template, values) {
340
341
  }
341
342
  return args;
342
343
  }
343
- exports.renderMessage = renderMessage;
package/script/sink.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRotatingFileSink = exports.getFileSink = exports.getConsoleSink = exports.getStreamSink = exports.withFilter = void 0;
3
+ exports.withFilter = withFilter;
4
+ exports.getStreamSink = getStreamSink;
5
+ exports.getConsoleSink = getConsoleSink;
6
+ exports.getFileSink = getFileSink;
7
+ exports.getRotatingFileSink = getRotatingFileSink;
4
8
  const filter_js_1 = require("./filter.js");
5
9
  const formatter_js_1 = require("./formatter.js");
6
10
  /**
@@ -24,7 +28,6 @@ function withFilter(sink, filter) {
24
28
  sink(record);
25
29
  };
26
30
  }
27
- exports.withFilter = withFilter;
28
31
  /**
29
32
  * A factory that returns a sink that writes to a {@link WritableStream}.
30
33
  *
@@ -66,7 +69,6 @@ function getStreamSink(stream, options = {}) {
66
69
  };
67
70
  return sink;
68
71
  }
69
- exports.getStreamSink = getStreamSink;
70
72
  /**
71
73
  * A console sink factory that returns a sink that logs to the console.
72
74
  *
@@ -91,7 +93,6 @@ function getConsoleSink(options = {}) {
91
93
  throw new TypeError(`Invalid log level: ${record.level}.`);
92
94
  };
93
95
  }
94
- exports.getConsoleSink = getConsoleSink;
95
96
  /**
96
97
  * Get a platform-independent file sink.
97
98
  *
@@ -112,7 +113,6 @@ function getFileSink(path, options) {
112
113
  sink[Symbol.dispose] = () => options.closeSync(fd);
113
114
  return sink;
114
115
  }
115
- exports.getFileSink = getFileSink;
116
116
  /**
117
117
  * Get a platform-independent rotating file sink.
118
118
  *
@@ -131,7 +131,14 @@ function getRotatingFileSink(path, options) {
131
131
  const encoder = options.encoder ?? new TextEncoder();
132
132
  const maxSize = options.maxSize ?? 1024 * 1024;
133
133
  const maxFiles = options.maxFiles ?? 5;
134
- let { size: offset } = options.statSync(path);
134
+ let offset = 0;
135
+ try {
136
+ const stat = options.statSync(path);
137
+ offset = stat.size;
138
+ }
139
+ catch {
140
+ // Continue as the offset is already 0.
141
+ }
135
142
  let fd = options.openSync(path);
136
143
  function shouldRollover(bytes) {
137
144
  return offset + bytes.length > maxSize;
@@ -163,4 +170,3 @@ function getRotatingFileSink(path, options) {
163
170
  sink[Symbol.dispose] = () => options.closeSync(fd);
164
171
  return sink;
165
172
  }
166
- exports.getRotatingFileSink = getRotatingFileSink;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,MAAM,CAAC,OAAO,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM;IACtE;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAEvC;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IAE5C;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAC3B,OAAO,SAAS,MAAM,EACtB,SAAS,SAAS,MAAM;IAExB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAElB;;OAEG;IACH,OAAO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AC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAC3B,OAAO,SAAS,MAAM,EACtB,SAAS,SAAS,MAAM;IAExB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACzB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAsB,SAAS,CAC7B,OAAO,SAAS,MAAM,EACtB,SAAS,SAAS,MAAM,EACxB,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAgFnD;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAEzD;AAED;;GAEG;AACH,wBAAsB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAK3C;AAED;;GAEG;AACH,wBAAsB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAS7C;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;;OAGG;gBACS,OAAO,EAAE,MAAM;CAI5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,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iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.2/_os.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,SAAS,EAAE,OAAmC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.2/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAE/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/posix/join.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAK/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/posix/normalize.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB9C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/windows/_util.ts"],"names":[],"mappings":"AAcA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKzD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/windows/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAiD/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.2/windows/normalize.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA0G9C"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { type FileSinkOptions, type RotatingFileSinkDriver, type RotatingFileSinkOptions, type Sink } from "./sink.js";
3
2
  /**
4
3
  * A Node.js-specific file sink driver.
@@ -1 +1 @@
1
- {"version":3,"file":"filesink.node.d.ts","sourceRoot":"","sources":["../src/filesink.node.ts"],"names":[],"mappings":";AAKA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,IAAI,EACV,MAAM,WAAW,CAAC;AAKnB;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,sBAAsB,CAAC,MAAM,GAAG,IAAI,CAW1D,CAAC;AAEJ;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,eAAoB,GAC5B,IAAI,GAAG,UAAU,CAKnB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,uBAA4B,GACpC,IAAI,GAAG,UAAU,CAKnB"}
1
+ {"version":3,"file":"filesink.node.d.ts","sourceRoot":"","sources":["../src/filesink.node.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,IAAI,EACV,MAAM,WAAW,CAAC;AAKnB;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,sBAAsB,CAAC,MAAM,GAAG,IAAI,CAW1D,CAAC;AAEJ;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,eAAoB,GAC5B,IAAI,GAAG,UAAU,CAKnB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,uBAA4B,GACpC,IAAI,GAAG,UAAU,CAKnB"}
package/types/fs.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  export * from "node:fs";
3
2
  //# sourceMappingURL=fs.d.ts.map
package/types/sink.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { type FilterLike } from "./filter.js";
3
2
  import { type ConsoleFormatter, type TextFormatter } from "./formatter.js";
4
3
  import type { LogRecord } from "./record.js";
@@ -1 +1 @@
1
- {"version":3,"file":"sink.d.ts","sourceRoot":"","sources":["../src/sink.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,UAAU,EAAY,MAAM,aAAa,CAAC;AACxD,OAAO,EACL,KAAK,gBAAgB,EAGrB,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,CAK/D;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAChD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,iBAAsB,GAC9B,IAAI,GAAG,eAAe,CAgBxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;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