@larvit/log 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.d.ts +6 -7
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- declare type Metadata = {
1
+ export declare type Metadata = {
2
2
  [key: string]: string;
3
3
  };
4
- declare type LogShorthand = (msg: string, metadata?: Metadata) => void;
5
- interface LogInt {
4
+ export declare type LogShorthand = (msg: string, metadata?: Metadata) => void;
5
+ export interface LogInt {
6
6
  error: LogShorthand;
7
7
  warn: LogShorthand;
8
8
  info: LogShorthand;
@@ -10,13 +10,13 @@ interface LogInt {
10
10
  debug: LogShorthand;
11
11
  silly: LogShorthand;
12
12
  }
13
- declare type LogLevel = keyof LogInt;
14
- declare type EntryFormatterConf = {
13
+ export declare type LogLevel = keyof LogInt;
14
+ export declare type EntryFormatterConf = {
15
15
  logLevel: LogLevel;
16
16
  metadata?: Metadata;
17
17
  msg: string;
18
18
  };
19
- declare type LogConf = {
19
+ export declare type LogConf = {
20
20
  context?: Metadata;
21
21
  entryFormatter?: (conf: EntryFormatterConf) => string;
22
22
  format?: "text" | "json";
@@ -37,4 +37,3 @@ export declare class Log implements LogInt {
37
37
  debug(msg: string, metadata?: Metadata): void;
38
38
  silly(msg: string, metadata?: Metadata): void;
39
39
  }
40
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larvit/log",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "packageManager": "yarn@3.2.4",