Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 888ef93

Browse files
build: update package.json
1 parent 6f3ca20 commit 888ef93

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"voiceflow"
5555
],
5656
"license": "ISC",
57-
"main": "build/index.js",
57+
"main": "build/main.js",
5858
"prettier": "@voiceflow/prettier-config",
5959
"repository": "[email protected]:voiceflow/logger.git",
6060
"scripts": {
@@ -72,5 +72,6 @@
7272
"test:run": "NODE_ENV=test nyc ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.{unit,it}.ts'",
7373
"test:single": "NODE_ENV=test ts-mocha --paths --config ./config/test/.mocharc.yml",
7474
"test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.unit.ts'"
75-
}
75+
},
76+
"types": "build/main.d.ts"
7677
}

src/logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { LoggerOptions } from './logger-options.interface';
77

88
export const DEFAULT_OPTIONS: LoggerOptions = {
99
format: LogFormat.JSON,
10-
level: LogLevel.WARN,
10+
level: LogLevel.INFO,
1111
};
1212

1313
export const createLogger = (options: Partial<LoggerOptions> = {}) => {

test/logger.it.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ describe('Logger integration tests', () => {
126126
const message = 'test message';
127127
const loggerInstance = createLogger();
128128

129-
loggerInstance.warn(message);
129+
loggerInstance.info(message);
130130

131131
const parsedLogObj = JSON.parse(stdoutInspector.captured());
132-
expect(parsedLogObj.level).to.eq(40);
132+
expect(parsedLogObj.level).to.eq(30);
133133
expect(parsedLogObj.msg).to.eq(message);
134134
});
135135
});

0 commit comments

Comments
 (0)