@logtape/logtape 0.11.0-dev.173 → 0.11.0-dev.175

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/formatter.js CHANGED
@@ -228,6 +228,106 @@ export function getAnsiColorFormatter(options = {}) {
228
228
  * @since 0.5.0
229
229
  */
230
230
  export const ansiColorFormatter = getAnsiColorFormatter();
231
+ /**
232
+ * Get a [JSON Lines] formatter with the specified options. The log records
233
+ * will be rendered as JSON objects, one per line, which is a common format
234
+ * for log files. This format is also known as Newline-Delimited JSON (NDJSON).
235
+ * It looks like this:
236
+ *
237
+ * ```json
238
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
239
+ * ```
240
+ *
241
+ * [JSON Lines]: https://jsonlines.org/
242
+ * @param options The options for the JSON Lines formatter.
243
+ * @returns The JSON Lines formatter.
244
+ * @since 0.11.0
245
+ */
246
+ export function getJsonLinesFormatter(options = {}) {
247
+ let joinCategory;
248
+ if (typeof options.categorySeparator === "function") {
249
+ joinCategory = options.categorySeparator;
250
+ }
251
+ else {
252
+ const separator = options.categorySeparator ?? ".";
253
+ joinCategory = (category) => category.join(separator);
254
+ }
255
+ let getMessage;
256
+ if (options.message === "template") {
257
+ getMessage = (record) => {
258
+ if (typeof record.rawMessage === "string") {
259
+ return record.rawMessage;
260
+ }
261
+ let msg = "";
262
+ for (let i = 0; i < record.rawMessage.length; i++) {
263
+ msg += i % 2 < 1 ? record.rawMessage[i] : "{}";
264
+ }
265
+ return msg;
266
+ };
267
+ }
268
+ else {
269
+ getMessage = (record) => {
270
+ let msg = "";
271
+ for (let i = 0; i < record.message.length; i++) {
272
+ msg += i % 2 < 1
273
+ ? record.message[i]
274
+ : JSON.stringify(record.message[i]);
275
+ }
276
+ return msg;
277
+ };
278
+ }
279
+ const propertiesOption = options.properties ?? "nest:properties";
280
+ let getProperties;
281
+ if (propertiesOption === "flatten") {
282
+ getProperties = (properties) => properties;
283
+ }
284
+ else if (propertiesOption.startsWith("prepend:")) {
285
+ const prefix = propertiesOption.substring(8);
286
+ if (prefix === "") {
287
+ throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.`);
288
+ }
289
+ getProperties = (properties) => {
290
+ const result = {};
291
+ for (const key in properties) {
292
+ result[`${prefix}${key}`] = properties[key];
293
+ }
294
+ return result;
295
+ };
296
+ }
297
+ else if (propertiesOption.startsWith("nest:")) {
298
+ const key = propertiesOption.substring(5);
299
+ getProperties = (properties) => ({ [key]: properties });
300
+ }
301
+ else {
302
+ throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be "flatten", "prepend:<prefix>", or "nest:<key>".`);
303
+ }
304
+ return (record) => {
305
+ return JSON.stringify({
306
+ "@timestamp": new Date(record.timestamp).toISOString(),
307
+ level: record.level === "warning" ? "WARN" : record.level.toUpperCase(),
308
+ message: getMessage(record),
309
+ logger: joinCategory(record.category),
310
+ ...getProperties(record.properties),
311
+ });
312
+ };
313
+ }
314
+ /**
315
+ * The default [JSON Lines] formatter. This formatter formats log records
316
+ * as JSON objects, one per line, which is a common format for log files.
317
+ * It looks like this:
318
+ *
319
+ * ```json
320
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
321
+ * ```
322
+ *
323
+ * You can customize the output by passing options to
324
+ * {@link getJsonLinesFormatter}. For example, you can change the category
325
+ * separator, the message format, and how the properties are formatted.
326
+ *
327
+ * [JSON Lines]: https://jsonlines.org/
328
+ * @since 0.11.0
329
+ */
330
+ export const jsonLinesFormatter = getJsonLinesFormatter();
231
331
  /**
232
332
  * The styles for the log level in the console.
233
333
  */
package/esm/mod.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ConfigError, configure, configureSync, dispose, disposeSync, getConfig, reset, resetSync, } from "./config.js";
2
2
  export { withContext } from "./context.js";
3
3
  export { getLevelFilter, toFilter, } from "./filter.js";
4
- export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getTextFormatter, } from "./formatter.js";
4
+ export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, jsonLinesFormatter, } from "./formatter.js";
5
5
  export { compareLogLevel, isLogLevel, parseLogLevel, } from "./level.js";
6
6
  export { getLogger } from "./logger.js";
7
7
  export { getConsoleSink, getStreamSink, withFilter, } from "./sink.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logtape/logtape",
3
- "version": "0.11.0-dev.173+bae19509",
3
+ "version": "0.11.0-dev.175+f9a2339c",
4
4
  "description": "Simple logging library with zero dependencies for Deno/Node.js/Bun/browsers",
5
5
  "keywords": [
6
6
  "logging",
@@ -3,9 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ansiColorFormatter = exports.defaultTextFormatter = void 0;
6
+ exports.jsonLinesFormatter = exports.ansiColorFormatter = exports.defaultTextFormatter = void 0;
7
7
  exports.getTextFormatter = getTextFormatter;
8
8
  exports.getAnsiColorFormatter = getAnsiColorFormatter;
9
+ exports.getJsonLinesFormatter = getJsonLinesFormatter;
9
10
  exports.defaultConsoleFormatter = defaultConsoleFormatter;
10
11
  const nodeUtil_js_1 = __importDefault(require("./nodeUtil.js"));
11
12
  /**
@@ -237,6 +238,106 @@ function getAnsiColorFormatter(options = {}) {
237
238
  * @since 0.5.0
238
239
  */
239
240
  exports.ansiColorFormatter = getAnsiColorFormatter();
241
+ /**
242
+ * Get a [JSON Lines] formatter with the specified options. The log records
243
+ * will be rendered as JSON objects, one per line, which is a common format
244
+ * for log files. This format is also known as Newline-Delimited JSON (NDJSON).
245
+ * It looks like this:
246
+ *
247
+ * ```json
248
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
249
+ * ```
250
+ *
251
+ * [JSON Lines]: https://jsonlines.org/
252
+ * @param options The options for the JSON Lines formatter.
253
+ * @returns The JSON Lines formatter.
254
+ * @since 0.11.0
255
+ */
256
+ function getJsonLinesFormatter(options = {}) {
257
+ let joinCategory;
258
+ if (typeof options.categorySeparator === "function") {
259
+ joinCategory = options.categorySeparator;
260
+ }
261
+ else {
262
+ const separator = options.categorySeparator ?? ".";
263
+ joinCategory = (category) => category.join(separator);
264
+ }
265
+ let getMessage;
266
+ if (options.message === "template") {
267
+ getMessage = (record) => {
268
+ if (typeof record.rawMessage === "string") {
269
+ return record.rawMessage;
270
+ }
271
+ let msg = "";
272
+ for (let i = 0; i < record.rawMessage.length; i++) {
273
+ msg += i % 2 < 1 ? record.rawMessage[i] : "{}";
274
+ }
275
+ return msg;
276
+ };
277
+ }
278
+ else {
279
+ getMessage = (record) => {
280
+ let msg = "";
281
+ for (let i = 0; i < record.message.length; i++) {
282
+ msg += i % 2 < 1
283
+ ? record.message[i]
284
+ : JSON.stringify(record.message[i]);
285
+ }
286
+ return msg;
287
+ };
288
+ }
289
+ const propertiesOption = options.properties ?? "nest:properties";
290
+ let getProperties;
291
+ if (propertiesOption === "flatten") {
292
+ getProperties = (properties) => properties;
293
+ }
294
+ else if (propertiesOption.startsWith("prepend:")) {
295
+ const prefix = propertiesOption.substring(8);
296
+ if (prefix === "") {
297
+ throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.`);
298
+ }
299
+ getProperties = (properties) => {
300
+ const result = {};
301
+ for (const key in properties) {
302
+ result[`${prefix}${key}`] = properties[key];
303
+ }
304
+ return result;
305
+ };
306
+ }
307
+ else if (propertiesOption.startsWith("nest:")) {
308
+ const key = propertiesOption.substring(5);
309
+ getProperties = (properties) => ({ [key]: properties });
310
+ }
311
+ else {
312
+ throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be "flatten", "prepend:<prefix>", or "nest:<key>".`);
313
+ }
314
+ return (record) => {
315
+ return JSON.stringify({
316
+ "@timestamp": new Date(record.timestamp).toISOString(),
317
+ level: record.level === "warning" ? "WARN" : record.level.toUpperCase(),
318
+ message: getMessage(record),
319
+ logger: joinCategory(record.category),
320
+ ...getProperties(record.properties),
321
+ });
322
+ };
323
+ }
324
+ /**
325
+ * The default [JSON Lines] formatter. This formatter formats log records
326
+ * as JSON objects, one per line, which is a common format for log files.
327
+ * It looks like this:
328
+ *
329
+ * ```json
330
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
331
+ * ```
332
+ *
333
+ * You can customize the output by passing options to
334
+ * {@link getJsonLinesFormatter}. For example, you can change the category
335
+ * separator, the message format, and how the properties are formatted.
336
+ *
337
+ * [JSON Lines]: https://jsonlines.org/
338
+ * @since 0.11.0
339
+ */
340
+ exports.jsonLinesFormatter = getJsonLinesFormatter();
240
341
  /**
241
342
  * The styles for the log level in the console.
242
343
  */
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.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.jsonLinesFormatter = exports.getTextFormatter = exports.getJsonLinesFormatter = 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; } });
@@ -20,7 +20,9 @@ Object.defineProperty(exports, "ansiColorFormatter", { enumerable: true, get: fu
20
20
  Object.defineProperty(exports, "defaultConsoleFormatter", { enumerable: true, get: function () { return formatter_js_1.defaultConsoleFormatter; } });
21
21
  Object.defineProperty(exports, "defaultTextFormatter", { enumerable: true, get: function () { return formatter_js_1.defaultTextFormatter; } });
22
22
  Object.defineProperty(exports, "getAnsiColorFormatter", { enumerable: true, get: function () { return formatter_js_1.getAnsiColorFormatter; } });
23
+ Object.defineProperty(exports, "getJsonLinesFormatter", { enumerable: true, get: function () { return formatter_js_1.getJsonLinesFormatter; } });
23
24
  Object.defineProperty(exports, "getTextFormatter", { enumerable: true, get: function () { return formatter_js_1.getTextFormatter; } });
25
+ Object.defineProperty(exports, "jsonLinesFormatter", { enumerable: true, get: function () { return formatter_js_1.jsonLinesFormatter; } });
24
26
  var level_js_1 = require("./level.js");
25
27
  Object.defineProperty(exports, "compareLogLevel", { enumerable: true, get: function () { return level_js_1.compareLogLevel; } });
26
28
  Object.defineProperty(exports, "isLogLevel", { enumerable: true, get: function () { return level_js_1.isLogLevel; } });
@@ -241,6 +241,77 @@ export declare function getAnsiColorFormatter(options?: AnsiColorFormatterOption
241
241
  * @since 0.5.0
242
242
  */
243
243
  export declare const ansiColorFormatter: TextFormatter;
244
+ /**
245
+ * Options for the {@link getJsonLinesFormatter} function.
246
+ * @since 0.11.0
247
+ */
248
+ export interface JsonLinesFormatterOptions {
249
+ /**
250
+ * The separator between category names. For example, if the separator is
251
+ * `"."`, the category `["a", "b", "c"]` will be formatted as `"a.b.c"`.
252
+ * If this is a function, it will be called with the category array and
253
+ * should return a string or an array of strings, which will be used
254
+ * for rendering the category.
255
+ *
256
+ * @default `"."`
257
+ */
258
+ readonly categorySeparator?: string | ((category: readonly string[]) => string | readonly string[]);
259
+ /**
260
+ * The message format. This can be one of the following:
261
+ *
262
+ * - `"template"`: The raw message template is used as the message.
263
+ * - `"rendered"`: The message is rendered with the values.
264
+ *
265
+ * @default `"rendered"`
266
+ */
267
+ readonly message?: "template" | "rendered";
268
+ /**
269
+ * The properties format. This can be one of the following:
270
+ *
271
+ * - `"flatten"`: The properties are flattened into the root object.
272
+ * - `"prepend:<prefix>"`: The properties are prepended with the given prefix
273
+ * (e.g., `"prepend:ctx_"` will prepend `ctx_` to each property key).
274
+ * - `"nest:<key>"`: The properties are nested under the given key
275
+ * (e.g., `"nest:properties"` will nest the properties under the
276
+ * `properties` key).
277
+ *
278
+ * @default `"nest:properties"`
279
+ */
280
+ readonly properties?: "flatten" | `prepend:${string}` | `nest:${string}`;
281
+ }
282
+ /**
283
+ * Get a [JSON Lines] formatter with the specified options. The log records
284
+ * will be rendered as JSON objects, one per line, which is a common format
285
+ * for log files. This format is also known as Newline-Delimited JSON (NDJSON).
286
+ * It looks like this:
287
+ *
288
+ * ```json
289
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
290
+ * ```
291
+ *
292
+ * [JSON Lines]: https://jsonlines.org/
293
+ * @param options The options for the JSON Lines formatter.
294
+ * @returns The JSON Lines formatter.
295
+ * @since 0.11.0
296
+ */
297
+ export declare function getJsonLinesFormatter(options?: JsonLinesFormatterOptions): TextFormatter;
298
+ /**
299
+ * The default [JSON Lines] formatter. This formatter formats log records
300
+ * as JSON objects, one per line, which is a common format for log files.
301
+ * It looks like this:
302
+ *
303
+ * ```json
304
+ * {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
305
+ * ```
306
+ *
307
+ * You can customize the output by passing options to
308
+ * {@link getJsonLinesFormatter}. For example, you can change the category
309
+ * separator, the message format, and how the properties are formatted.
310
+ *
311
+ * [JSON Lines]: https://jsonlines.org/
312
+ * @since 0.11.0
313
+ */
314
+ export declare const jsonLinesFormatter: TextFormatter;
244
315
  /**
245
316
  * A console formatter is a function that accepts a log record and returns
246
317
  * an array of arguments to pass to {@link console.log}.
@@ -1 +1 @@
1
- {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,CAAC;AA0D1D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,SAAS,CAAC,EACN,oBAAoB,GACpB,cAAc,GACd,WAAW,GACX,eAAe,GACf,SAAS,GACT,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,GACV,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC,CAAC;IAEpC;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EACF,MAAM,GACN,MAAM,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kB,EAAE,aAAuC,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,SAAS,OAAO,EAAE,CAAC;AAazE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,OAAO,EAAE,CA2B7E"}
package/types/logger.d.ts CHANGED
@@ -135,6 +135,7 @@ export interface Logger {
135
135
  *
136
136
  * @param properties The values to log. Note that this does not take
137
137
  * a callback.
138
+ * @since 0.11.0
138
139
  */
139
140
  debug(properties: Record<string, unknown>): void;
140
141
  /**
@@ -212,6 +213,7 @@ export interface Logger {
212
213
  *
213
214
  * @param properties The values to log. Note that this does not take
214
215
  * a callback.
216
+ * @since 0.11.0
215
217
  */
216
218
  info(properties: Record<string, unknown>): void;
217
219
  /**
@@ -290,6 +292,7 @@ export interface Logger {
290
292
  *
291
293
  * @param properties The values to log. Note that this does not take
292
294
  * a callback.
295
+ * @since 0.11.0
293
296
  */
294
297
  warn(properties: Record<string, unknown>): void;
295
298
  /**
@@ -368,6 +371,7 @@ export interface Logger {
368
371
  *
369
372
  * @param properties The values to log. Note that this does not take
370
373
  * a callback.
374
+ * @since 0.11.0
371
375
  */
372
376
  error(properties: Record<string, unknown>): void;
373
377
  /**
@@ -446,6 +450,7 @@ export interface Logger {
446
450
  *
447
451
  * @param properties The values to log. Note that this does not take
448
452
  * a callback.
453
+ * @since 0.11.0
449
454
  */
450
455
  fatal(properties: Record<string, unknown>): void;
451
456
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,SA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AAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,SAAS,OAAO,EAAE,CA0CpB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,SAAS,OAAO,EAAE,GACzB,OAAO,EAAE,CAOX"}
package/types/mod.d.ts CHANGED
@@ -1,7 +1,7 @@
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
3
  export { type Filter, type FilterLike, getLevelFilter, toFilter, } from "./filter.js";
4
- export { type AnsiColor, ansiColorFormatter, type AnsiColorFormatterOptions, type AnsiStyle, type ConsoleFormatter, defaultConsoleFormatter, defaultTextFormatter, type FormattedValues, getAnsiColorFormatter, getTextFormatter, type TextFormatter, type TextFormatterOptions, } from "./formatter.js";
4
+ export { type AnsiColor, ansiColorFormatter, type AnsiColorFormatterOptions, type AnsiStyle, type ConsoleFormatter, defaultConsoleFormatter, defaultTextFormatter, type FormattedValues, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, jsonLinesFormatter, type JsonLinesFormatterOptions, type TextFormatter, type TextFormatterOptions, } from "./formatter.js";
5
5
  export { compareLogLevel, isLogLevel, type LogLevel, parseLogLevel, } from "./level.js";
6
6
  export { getLogger, type Logger } from "./logger.js";
7
7
  export type { LogRecord } from "./record.js";
@@ -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,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"}
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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