@logtape/logtape 0.9.0-dev.129 → 0.9.0-dev.132

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 (36) hide show
  1. package/esm/mod.js +0 -1
  2. package/esm/sink.js +0 -77
  3. package/package.json +3 -2
  4. package/script/mod.js +1 -4
  5. package/script/sink.js +0 -79
  6. package/types/mod.d.ts +1 -2
  7. package/types/mod.d.ts.map +1 -1
  8. package/types/sink.d.ts +0 -87
  9. package/types/sink.d.ts.map +1 -1
  10. package/esm/filesink.node.js +0 -60
  11. package/esm/filesink.web.js +0 -14
  12. package/esm/fs.cjs +0 -20
  13. package/esm/fs.js +0 -2
  14. package/script/filesink.node.js +0 -91
  15. package/script/filesink.web.js +0 -17
  16. package/script/fs.js +0 -20
  17. package/types/deps/deno.land/x/which_runtime@0.2.0/mod.d.ts.map +0 -1
  18. package/types/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  19. package/types/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  20. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  21. package/types/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  22. package/types/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  23. package/types/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  24. package/types/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  25. package/types/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  26. package/types/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  27. package/types/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  28. package/types/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  29. package/types/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  30. package/types/filesink.node.d.ts +0 -33
  31. package/types/filesink.node.d.ts.map +0 -1
  32. package/types/filesink.test.d.ts.map +0 -1
  33. package/types/filesink.web.d.ts +0 -6
  34. package/types/filesink.web.d.ts.map +0 -1
  35. package/types/fs.d.ts +0 -2
  36. package/types/fs.d.ts.map +0 -1
package/esm/mod.js CHANGED
@@ -1,6 +1,5 @@
1
1
  export { ConfigError, configure, configureSync, dispose, disposeSync, getConfig, reset, resetSync, } from "./config.js";
2
2
  export { withContext } from "./context.js";
3
- export { getFileSink, getRotatingFileSink } from "./filesink.node.js";
4
3
  export { getLevelFilter, toFilter, } from "./filter.js";
5
4
  export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getTextFormatter, } from "./formatter.js";
6
5
  export { compareLogLevel, isLogLevel, parseLogLevel, } from "./level.js";
package/esm/sink.js CHANGED
@@ -94,80 +94,3 @@ export function getConsoleSink(options = {}) {
94
94
  }
95
95
  };
96
96
  }
97
- /**
98
- * Get a platform-independent file sink.
99
- *
100
- * @typeParam TFile The type of the file descriptor.
101
- * @param path A path to the file to write to.
102
- * @param options The options for the sink and the file driver.
103
- * @returns A sink that writes to the file. The sink is also a disposable
104
- * object that closes the file when disposed.
105
- */
106
- export function getFileSink(path, options) {
107
- const formatter = options.formatter ?? defaultTextFormatter;
108
- const encoder = options.encoder ?? new TextEncoder();
109
- const fd = options.openSync(path);
110
- const sink = (record) => {
111
- options.writeSync(fd, encoder.encode(formatter(record)));
112
- options.flushSync(fd);
113
- };
114
- sink[Symbol.dispose] = () => options.closeSync(fd);
115
- return sink;
116
- }
117
- /**
118
- * Get a platform-independent rotating file sink.
119
- *
120
- * This sink writes log records to a file, and rotates the file when it reaches
121
- * the `maxSize`. The rotated files are named with the original file name
122
- * followed by a dot and a number, starting from 1. The number is incremented
123
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
124
- *
125
- * @param path A path to the file to write to.
126
- * @param options The options for the sink and the file driver.
127
- * @returns A sink that writes to the file. The sink is also a disposable
128
- * object that closes the file when disposed.
129
- */
130
- export function getRotatingFileSink(path, options) {
131
- const formatter = options.formatter ?? defaultTextFormatter;
132
- const encoder = options.encoder ?? new TextEncoder();
133
- const maxSize = options.maxSize ?? 1024 * 1024;
134
- const maxFiles = options.maxFiles ?? 5;
135
- let offset = 0;
136
- try {
137
- const stat = options.statSync(path);
138
- offset = stat.size;
139
- }
140
- catch {
141
- // Continue as the offset is already 0.
142
- }
143
- let fd = options.openSync(path);
144
- function shouldRollover(bytes) {
145
- return offset + bytes.length > maxSize;
146
- }
147
- function performRollover() {
148
- options.closeSync(fd);
149
- for (let i = maxFiles - 1; i > 0; i--) {
150
- const oldPath = `${path}.${i}`;
151
- const newPath = `${path}.${i + 1}`;
152
- try {
153
- options.renameSync(oldPath, newPath);
154
- }
155
- catch (_) {
156
- // Continue if the file does not exist.
157
- }
158
- }
159
- options.renameSync(path, `${path}.1`);
160
- offset = 0;
161
- fd = options.openSync(path);
162
- }
163
- const sink = (record) => {
164
- const bytes = encoder.encode(formatter(record));
165
- if (shouldRollover(bytes))
166
- performRollover();
167
- options.writeSync(fd, bytes);
168
- options.flushSync(fd);
169
- offset += bytes.length;
170
- };
171
- sink[Symbol.dispose] = () => options.closeSync(fd);
172
- return sink;
173
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logtape/logtape",
3
- "version": "0.9.0-dev.129+c06b5a7d",
3
+ "version": "0.9.0-dev.132+7c6dd185",
4
4
  "description": "Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers",
5
5
  "keywords": [
6
6
  "logging",
@@ -15,7 +15,8 @@
15
15
  "homepage": "https://logtape.org/",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+https://github.com/dahlia/logtape.git"
18
+ "url": "git+https://github.com/dahlia/logtape.git",
19
+ "directory": "logtape/"
19
20
  },
20
21
  "license": "MIT",
21
22
  "bugs": {
package/script/mod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withFilter = exports.getStreamSink = exports.getConsoleSink = exports.getLogger = exports.parseLogLevel = exports.isLogLevel = exports.compareLogLevel = exports.getTextFormatter = exports.getAnsiColorFormatter = exports.defaultTextFormatter = exports.defaultConsoleFormatter = exports.ansiColorFormatter = exports.toFilter = exports.getLevelFilter = exports.getRotatingFileSink = exports.getFileSink = exports.withContext = exports.resetSync = exports.reset = exports.getConfig = exports.disposeSync = exports.dispose = exports.configureSync = exports.configure = exports.ConfigError = void 0;
3
+ exports.withFilter = exports.getStreamSink = exports.getConsoleSink = exports.getLogger = exports.parseLogLevel = exports.isLogLevel = exports.compareLogLevel = exports.getTextFormatter = exports.getAnsiColorFormatter = exports.defaultTextFormatter = exports.defaultConsoleFormatter = exports.ansiColorFormatter = exports.toFilter = exports.getLevelFilter = exports.withContext = exports.resetSync = exports.reset = exports.getConfig = exports.disposeSync = exports.dispose = exports.configureSync = exports.configure = exports.ConfigError = void 0;
4
4
  var config_js_1 = require("./config.js");
5
5
  Object.defineProperty(exports, "ConfigError", { enumerable: true, get: function () { return config_js_1.ConfigError; } });
6
6
  Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return config_js_1.configure; } });
@@ -12,9 +12,6 @@ Object.defineProperty(exports, "reset", { enumerable: true, get: function () { r
12
12
  Object.defineProperty(exports, "resetSync", { enumerable: true, get: function () { return config_js_1.resetSync; } });
13
13
  var context_js_1 = require("./context.js");
14
14
  Object.defineProperty(exports, "withContext", { enumerable: true, get: function () { return context_js_1.withContext; } });
15
- var filesink_node_js_1 = require("./filesink.node.js");
16
- Object.defineProperty(exports, "getFileSink", { enumerable: true, get: function () { return filesink_node_js_1.getFileSink; } });
17
- Object.defineProperty(exports, "getRotatingFileSink", { enumerable: true, get: function () { return filesink_node_js_1.getRotatingFileSink; } });
18
15
  var filter_js_1 = require("./filter.js");
19
16
  Object.defineProperty(exports, "getLevelFilter", { enumerable: true, get: function () { return filter_js_1.getLevelFilter; } });
20
17
  Object.defineProperty(exports, "toFilter", { enumerable: true, get: function () { return filter_js_1.toFilter; } });
package/script/sink.js CHANGED
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withFilter = withFilter;
4
4
  exports.getStreamSink = getStreamSink;
5
5
  exports.getConsoleSink = getConsoleSink;
6
- exports.getFileSink = getFileSink;
7
- exports.getRotatingFileSink = getRotatingFileSink;
8
6
  const filter_js_1 = require("./filter.js");
9
7
  const formatter_js_1 = require("./formatter.js");
10
8
  /**
@@ -101,80 +99,3 @@ function getConsoleSink(options = {}) {
101
99
  }
102
100
  };
103
101
  }
104
- /**
105
- * Get a platform-independent file sink.
106
- *
107
- * @typeParam TFile The type of the file descriptor.
108
- * @param path A path to the file to write to.
109
- * @param options The options for the sink and the file driver.
110
- * @returns A sink that writes to the file. The sink is also a disposable
111
- * object that closes the file when disposed.
112
- */
113
- function getFileSink(path, options) {
114
- const formatter = options.formatter ?? formatter_js_1.defaultTextFormatter;
115
- const encoder = options.encoder ?? new TextEncoder();
116
- const fd = options.openSync(path);
117
- const sink = (record) => {
118
- options.writeSync(fd, encoder.encode(formatter(record)));
119
- options.flushSync(fd);
120
- };
121
- sink[Symbol.dispose] = () => options.closeSync(fd);
122
- return sink;
123
- }
124
- /**
125
- * Get a platform-independent rotating file sink.
126
- *
127
- * This sink writes log records to a file, and rotates the file when it reaches
128
- * the `maxSize`. The rotated files are named with the original file name
129
- * followed by a dot and a number, starting from 1. The number is incremented
130
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
131
- *
132
- * @param path A path to the file to write to.
133
- * @param options The options for the sink and the file driver.
134
- * @returns A sink that writes to the file. The sink is also a disposable
135
- * object that closes the file when disposed.
136
- */
137
- function getRotatingFileSink(path, options) {
138
- const formatter = options.formatter ?? formatter_js_1.defaultTextFormatter;
139
- const encoder = options.encoder ?? new TextEncoder();
140
- const maxSize = options.maxSize ?? 1024 * 1024;
141
- const maxFiles = options.maxFiles ?? 5;
142
- let offset = 0;
143
- try {
144
- const stat = options.statSync(path);
145
- offset = stat.size;
146
- }
147
- catch {
148
- // Continue as the offset is already 0.
149
- }
150
- let fd = options.openSync(path);
151
- function shouldRollover(bytes) {
152
- return offset + bytes.length > maxSize;
153
- }
154
- function performRollover() {
155
- options.closeSync(fd);
156
- for (let i = maxFiles - 1; i > 0; i--) {
157
- const oldPath = `${path}.${i}`;
158
- const newPath = `${path}.${i + 1}`;
159
- try {
160
- options.renameSync(oldPath, newPath);
161
- }
162
- catch (_) {
163
- // Continue if the file does not exist.
164
- }
165
- }
166
- options.renameSync(path, `${path}.1`);
167
- offset = 0;
168
- fd = options.openSync(path);
169
- }
170
- const sink = (record) => {
171
- const bytes = encoder.encode(formatter(record));
172
- if (shouldRollover(bytes))
173
- performRollover();
174
- options.writeSync(fd, bytes);
175
- options.flushSync(fd);
176
- offset += bytes.length;
177
- };
178
- sink[Symbol.dispose] = () => options.closeSync(fd);
179
- return sink;
180
- }
package/types/mod.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  export { type Config, ConfigError, configure, configureSync, dispose, disposeSync, getConfig, type LoggerConfig, reset, resetSync, } from "./config.js";
2
2
  export { type ContextLocalStorage, withContext } from "./context.js";
3
- export { getFileSink, getRotatingFileSink } from "./filesink.node.js";
4
3
  export { type Filter, type FilterLike, getLevelFilter, toFilter, } from "./filter.js";
5
4
  export { type AnsiColor, ansiColorFormatter, type AnsiColorFormatterOptions, type AnsiStyle, type ConsoleFormatter, defaultConsoleFormatter, defaultTextFormatter, type FormattedValues, getAnsiColorFormatter, getTextFormatter, type TextFormatter, type TextFormatterOptions, } from "./formatter.js";
6
5
  export { compareLogLevel, isLogLevel, type LogLevel, parseLogLevel, } from "./level.js";
7
6
  export { getLogger, type Logger } from "./logger.js";
8
7
  export type { LogRecord } from "./record.js";
9
- export { type ConsoleSinkOptions, type FileSinkOptions, getConsoleSink, getStreamSink, type RotatingFileSinkOptions, type Sink, type StreamSinkOptions, withFilter, } from "./sink.js";
8
+ export { type ConsoleSinkOptions, getConsoleSink, getStreamSink, type Sink, type StreamSinkOptions, withFilter, } from "./sink.js";
10
9
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,OAAO,EACP,WAAW,EACX,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,EACL,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,eAAe,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,QAAQ,EACb,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,cAAc,EACd,aAAa,EACb,KAAK,uBAAuB,EAC5B,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,UAAU,GACX,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,OAAO,EACP,WAAW,EACX,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,EACL,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,eAAe,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,QAAQ,EACb,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,KAAK,kBAAkB,EACvB,cAAc,EACd,aAAa,EACb,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,UAAU,GACX,MAAM,WAAW,CAAC"}
package/types/sink.d.ts CHANGED
@@ -104,92 +104,5 @@ export interface ConsoleSinkOptions {
104
104
  * @returns A sink that logs to the console.
105
105
  */
106
106
  export declare function getConsoleSink(options?: ConsoleSinkOptions): Sink;
107
- /**
108
- * Options for the {@link getFileSink} function.
109
- */
110
- export type FileSinkOptions = StreamSinkOptions;
111
- /**
112
- * A platform-specific file sink driver.
113
- * @typeParam TFile The type of the file descriptor.
114
- */
115
- export interface FileSinkDriver<TFile> {
116
- /**
117
- * Open a file for appending and return a file descriptor.
118
- * @param path A path to the file to open.
119
- */
120
- openSync(path: string): TFile;
121
- /**
122
- * Write a chunk of data to the file.
123
- * @param fd The file descriptor.
124
- * @param chunk The data to write.
125
- */
126
- writeSync(fd: TFile, chunk: Uint8Array): void;
127
- /**
128
- * Flush the file to ensure that all data is written to the disk.
129
- * @param fd The file descriptor.
130
- */
131
- flushSync(fd: TFile): void;
132
- /**
133
- * Close the file.
134
- * @param fd The file descriptor.
135
- */
136
- closeSync(fd: TFile): void;
137
- }
138
- /**
139
- * Get a platform-independent file sink.
140
- *
141
- * @typeParam TFile The type of the file descriptor.
142
- * @param path A path to the file to write to.
143
- * @param options The options for the sink and the file driver.
144
- * @returns A sink that writes to the file. The sink is also a disposable
145
- * object that closes the file when disposed.
146
- */
147
- export declare function getFileSink<TFile>(path: string, options: FileSinkOptions & FileSinkDriver<TFile>): Sink & Disposable;
148
- /**
149
- * Options for the {@link getRotatingFileSink} function.
150
- */
151
- export interface RotatingFileSinkOptions extends FileSinkOptions {
152
- /**
153
- * The maximum bytes of the file before it is rotated. 1 MiB by default.
154
- */
155
- maxSize?: number;
156
- /**
157
- * The maximum number of files to keep. 5 by default.
158
- */
159
- maxFiles?: number;
160
- }
161
- /**
162
- * A platform-specific rotating file sink driver.
163
- */
164
- export interface RotatingFileSinkDriver<TFile> extends FileSinkDriver<TFile> {
165
- /**
166
- * Get the size of the file.
167
- * @param path A path to the file.
168
- * @returns The `size` of the file in bytes, in an object.
169
- */
170
- statSync(path: string): {
171
- size: number;
172
- };
173
- /**
174
- * Rename a file.
175
- * @param oldPath A path to the file to rename.
176
- * @param newPath A path to be renamed to.
177
- */
178
- renameSync(oldPath: string, newPath: string): void;
179
- }
180
- /**
181
- * Get a platform-independent rotating file sink.
182
- *
183
- * This sink writes log records to a file, and rotates the file when it reaches
184
- * the `maxSize`. The rotated files are named with the original file name
185
- * followed by a dot and a number, starting from 1. The number is incremented
186
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
187
- *
188
- * @param path A path to the file to write to.
189
- * @param options The options for the sink and the file driver.
190
- * @returns A sink that writes to the file. The sink is also a disposable
191
- * object that closes the file when disposed.
192
- */
193
- export declare function getRotatingFileSink<TFile>(path: string, options: RotatingFileSinkOptions & RotatingFileSinkDriver<TFile>): Sink & Disposable;
194
107
  export {};
195
108
  //# sourceMappingURL=sink.d.ts.map
@@ -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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,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,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC;IAE7C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAE3C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAwBrE;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,KAAK;IACnC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IAE9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IAE9C;;;OAGG;IACH,SAAS,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,SAAS,CAAC,EAAE,EAAE,KAAK,GAAG,IAAI,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAC/B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAC/C,IAAI,GAAG,UAAU,CAUnB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,KAAK,CAAE,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1E;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAEzC;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACpD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EACvC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CAAC,KAAK,CAAC,GAC/D,IAAI,GAAG,UAAU,CAwCnB"}
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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,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,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,GAAG,aAAa,CAAC;IAE7C;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAE3C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAuB,GAAG,IAAI,CAwBrE"}
@@ -1,60 +0,0 @@
1
- import * as dntShim from "./_dnt.shims.js";
2
- // @ts-ignore: a trick to avoid module resolution error on non-Node.js environ
3
- import fsMod from "./fs.js";
4
- import { webDriver } from "./filesink.web.js";
5
- import { getFileSink as getBaseFileSink, getRotatingFileSink as getBaseRotatingFileSink, } from "./sink.js";
6
- // @ts-ignore: a trick to avoid module resolution error on non-Node.js environ
7
- const fs = fsMod;
8
- /**
9
- * A Node.js-specific file sink driver.
10
- */
11
- export const nodeDriver = fs == null
12
- ? webDriver
13
- : {
14
- openSync(path) {
15
- return fs.openSync(path, "a");
16
- },
17
- writeSync: fs.writeSync,
18
- flushSync: fs.fsyncSync,
19
- closeSync: fs.closeSync,
20
- statSync: fs.statSync,
21
- renameSync: fs.renameSync,
22
- };
23
- /**
24
- * Get a file sink.
25
- *
26
- * Note that this function is unavailable in the browser.
27
- *
28
- * @param path A path to the file to write to.
29
- * @param options The options for the sink.
30
- * @returns A sink that writes to the file. The sink is also a disposable
31
- * object that closes the file when disposed.
32
- */
33
- export function getFileSink(path, options = {}) {
34
- if ("document" in dntShim.dntGlobalThis) {
35
- return getBaseFileSink(path, { ...options, ...webDriver });
36
- }
37
- return getBaseFileSink(path, { ...options, ...nodeDriver });
38
- }
39
- /**
40
- * Get a rotating file sink.
41
- *
42
- * This sink writes log records to a file, and rotates the file when it reaches
43
- * the `maxSize`. The rotated files are named with the original file name
44
- * followed by a dot and a number, starting from 1. The number is incremented
45
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
46
- *
47
- * Note that this function is unavailable in the browser.
48
- *
49
- * @param path A path to the file to write to.
50
- * @param options The options for the sink and the file driver.
51
- * @returns A sink that writes to the file. The sink is also a disposable
52
- * object that closes the file when disposed.
53
- */
54
- export function getRotatingFileSink(path, options = {}) {
55
- if ("document" in dntShim.dntGlobalThis) {
56
- return getBaseRotatingFileSink(path, { ...options, ...webDriver });
57
- }
58
- return getBaseRotatingFileSink(path, { ...options, ...nodeDriver });
59
- }
60
- // cSpell: ignore filesink
@@ -1,14 +0,0 @@
1
- function notImplemented() {
2
- throw new Error("File sink is not available in the browser.");
3
- }
4
- /**
5
- * A browser-specific file sink driver. All methods throw an error.
6
- */
7
- export const webDriver = {
8
- openSync: notImplemented,
9
- writeSync: notImplemented,
10
- flushSync: notImplemented,
11
- closeSync: notImplemented,
12
- statSync: notImplemented,
13
- renameSync: notImplemented,
14
- };
package/esm/fs.cjs DELETED
@@ -1,20 +0,0 @@
1
- let fs = null;
2
- if (
3
- typeof window === "undefined" && (
4
- "process" in globalThis && "versions" in globalThis.process &&
5
- "node" in globalThis.process.versions &&
6
- typeof globalThis.caches === "undefined" &&
7
- typeof globalThis.addEventListener !== "function" ||
8
- "Bun" in globalThis
9
- )
10
- ) {
11
- try {
12
- // Intentionally confuse static analysis of bundlers:
13
- const $require = [require];
14
- fs = $require[0](`${["node", "fs"].join(":")}`);
15
- } catch {
16
- fs = null;
17
- }
18
- }
19
-
20
- module.exports = fs;
package/esm/fs.js DELETED
@@ -1,2 +0,0 @@
1
- import fs from "./fs.cjs";
2
- export default fs;
@@ -1,91 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.nodeDriver = void 0;
30
- exports.getFileSink = getFileSink;
31
- exports.getRotatingFileSink = getRotatingFileSink;
32
- const dntShim = __importStar(require("./_dnt.shims.js"));
33
- // @ts-ignore: a trick to avoid module resolution error on non-Node.js environ
34
- const fs_js_1 = __importDefault(require("./fs.js"));
35
- const filesink_web_js_1 = require("./filesink.web.js");
36
- const sink_js_1 = require("./sink.js");
37
- // @ts-ignore: a trick to avoid module resolution error on non-Node.js environ
38
- const fs = fs_js_1.default;
39
- /**
40
- * A Node.js-specific file sink driver.
41
- */
42
- exports.nodeDriver = fs == null
43
- ? filesink_web_js_1.webDriver
44
- : {
45
- openSync(path) {
46
- return fs.openSync(path, "a");
47
- },
48
- writeSync: fs.writeSync,
49
- flushSync: fs.fsyncSync,
50
- closeSync: fs.closeSync,
51
- statSync: fs.statSync,
52
- renameSync: fs.renameSync,
53
- };
54
- /**
55
- * Get a file sink.
56
- *
57
- * Note that this function is unavailable in the browser.
58
- *
59
- * @param path A path to the file to write to.
60
- * @param options The options for the sink.
61
- * @returns A sink that writes to the file. The sink is also a disposable
62
- * object that closes the file when disposed.
63
- */
64
- function getFileSink(path, options = {}) {
65
- if ("document" in dntShim.dntGlobalThis) {
66
- return (0, sink_js_1.getFileSink)(path, { ...options, ...filesink_web_js_1.webDriver });
67
- }
68
- return (0, sink_js_1.getFileSink)(path, { ...options, ...exports.nodeDriver });
69
- }
70
- /**
71
- * Get a rotating file sink.
72
- *
73
- * This sink writes log records to a file, and rotates the file when it reaches
74
- * the `maxSize`. The rotated files are named with the original file name
75
- * followed by a dot and a number, starting from 1. The number is incremented
76
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
77
- *
78
- * Note that this function is unavailable in the browser.
79
- *
80
- * @param path A path to the file to write to.
81
- * @param options The options for the sink and the file driver.
82
- * @returns A sink that writes to the file. The sink is also a disposable
83
- * object that closes the file when disposed.
84
- */
85
- function getRotatingFileSink(path, options = {}) {
86
- if ("document" in dntShim.dntGlobalThis) {
87
- return (0, sink_js_1.getRotatingFileSink)(path, { ...options, ...filesink_web_js_1.webDriver });
88
- }
89
- return (0, sink_js_1.getRotatingFileSink)(path, { ...options, ...exports.nodeDriver });
90
- }
91
- // cSpell: ignore filesink
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.webDriver = void 0;
4
- function notImplemented() {
5
- throw new Error("File sink is not available in the browser.");
6
- }
7
- /**
8
- * A browser-specific file sink driver. All methods throw an error.
9
- */
10
- exports.webDriver = {
11
- openSync: notImplemented,
12
- writeSync: notImplemented,
13
- flushSync: notImplemented,
14
- closeSync: notImplemented,
15
- statSync: notImplemented,
16
- renameSync: notImplemented,
17
- };
package/script/fs.js DELETED
@@ -1,20 +0,0 @@
1
- let fs = null;
2
- if (
3
- typeof window === "undefined" && (
4
- "process" in globalThis && "versions" in globalThis.process &&
5
- "node" in globalThis.process.versions &&
6
- typeof globalThis.caches === "undefined" &&
7
- typeof globalThis.addEventListener !== "function" ||
8
- "Bun" in globalThis
9
- )
10
- ) {
11
- try {
12
- // Intentionally confuse static analysis of bundlers:
13
- const $require = [require];
14
- fs = $require[0](`${["node", "fs"].join(":")}`);
15
- } catch {
16
- fs = null;
17
- }
18
- }
19
-
20
- module.exports = fs;
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../src/deps/deno.land/x/which_runtime@0.2.0/mod.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,MAAM,SAAgC,CAAC;AACpD,eAAO,MAAM,MAAM,SAA0B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/_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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/_os.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS,EAAE,OAIjB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.0.8/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAE/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/join.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAK/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/posix/normalize.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgB9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/windows/join.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAiD/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.0.8/windows/normalize.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA0G9C"}
@@ -1,33 +0,0 @@
1
- import { type FileSinkOptions, type RotatingFileSinkDriver, type RotatingFileSinkOptions, type Sink } from "./sink.js";
2
- /**
3
- * A Node.js-specific file sink driver.
4
- */
5
- export declare const nodeDriver: RotatingFileSinkDriver<number | void>;
6
- /**
7
- * Get a file sink.
8
- *
9
- * Note that this function is unavailable in the browser.
10
- *
11
- * @param path A path to the file to write to.
12
- * @param options The options for the sink.
13
- * @returns A sink that writes to the file. The sink is also a disposable
14
- * object that closes the file when disposed.
15
- */
16
- export declare function getFileSink(path: string, options?: FileSinkOptions): Sink & Disposable;
17
- /**
18
- * Get a rotating file sink.
19
- *
20
- * This sink writes log records to a file, and rotates the file when it reaches
21
- * the `maxSize`. The rotated files are named with the original file name
22
- * followed by a dot and a number, starting from 1. The number is incremented
23
- * for each rotation, and the maximum number of files to keep is `maxFiles`.
24
- *
25
- * Note that this function is unavailable in the browser.
26
- *
27
- * @param path A path to the file to write to.
28
- * @param options The options for the sink and the file driver.
29
- * @returns A sink that writes to the file. The sink is also a disposable
30
- * object that closes the file when disposed.
31
- */
32
- export declare function getRotatingFileSink(path: string, options?: RotatingFileSinkOptions): Sink & Disposable;
33
- //# sourceMappingURL=filesink.node.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"filesink.test.d.ts","sourceRoot":"","sources":["../src/filesink.test.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import type { RotatingFileSinkDriver } from "./sink.js";
2
- /**
3
- * A browser-specific file sink driver. All methods throw an error.
4
- */
5
- export declare const webDriver: RotatingFileSinkDriver<void>;
6
- //# sourceMappingURL=filesink.web.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filesink.web.d.ts","sourceRoot":"","sources":["../src/filesink.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAMxD;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,sBAAsB,CAAC,IAAI,CAOlD,CAAC"}
package/types/fs.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "node:fs";
2
- //# sourceMappingURL=fs.d.ts.map
package/types/fs.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../src/fs.js"],"names":[],"mappings":""}