@dismissible/nestjs-logger 0.0.2-canary.738340d.0 → 0.0.2-canary.b0d8bfe.0
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/jest.config.ts +17 -0
- package/package.json +5 -2
- package/project.json +1 -1
- package/src/index.ts +1 -0
- package/src/null-logger.ts +16 -0
package/jest.config.ts
CHANGED
|
@@ -7,4 +7,21 @@ export default {
|
|
|
7
7
|
},
|
|
8
8
|
moduleFileExtensions: ['ts', 'js', 'html'],
|
|
9
9
|
coverageDirectory: '../../coverage/libs/logger',
|
|
10
|
+
collectCoverageFrom: [
|
|
11
|
+
'src/**/*.ts',
|
|
12
|
+
'!src/**/*.spec.ts',
|
|
13
|
+
'!src/**/*.interface.ts',
|
|
14
|
+
'!src/**/*.dto.ts',
|
|
15
|
+
'!src/**/*.enum.ts',
|
|
16
|
+
'!src/**/index.ts',
|
|
17
|
+
'!src/**/*.module.ts',
|
|
18
|
+
],
|
|
19
|
+
coverageThreshold: {
|
|
20
|
+
global: {
|
|
21
|
+
branches: 80,
|
|
22
|
+
functions: 80,
|
|
23
|
+
lines: 80,
|
|
24
|
+
statements: 80,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
10
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dismissible/nestjs-logger",
|
|
3
|
-
"version": "0.0.2-canary.
|
|
3
|
+
"version": "0.0.2-canary.b0d8bfe.0",
|
|
4
4
|
"description": "Console logger module for Dismissible applications",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": ""
|
|
44
|
+
"url": "https://github.com/DismissibleIo/dismissible-api"
|
|
45
|
+
},
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
45
48
|
}
|
|
46
49
|
}
|
package/project.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDismissibleLogger } from './logger.interface';
|
|
2
|
+
|
|
3
|
+
export class NullLogger implements IDismissibleLogger {
|
|
4
|
+
info(_message: string, _context?: object) {
|
|
5
|
+
/* empty */
|
|
6
|
+
}
|
|
7
|
+
error(_message: string, _context?: object) {
|
|
8
|
+
/* empty */
|
|
9
|
+
}
|
|
10
|
+
warn(_message: string, _context?: object) {
|
|
11
|
+
/* empty */
|
|
12
|
+
}
|
|
13
|
+
debug(_message: string, _context?: object) {
|
|
14
|
+
/* empty */
|
|
15
|
+
}
|
|
16
|
+
}
|