micronodelib 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -63,6 +63,7 @@ This package has been published at: https://www.npmjs.com/package/micronodelib
63
63
  If you want to push new change to this, follow the following steps:
64
64
 
65
65
  1. Make change your code
66
- 2. Update version in [package.json](./package.json)
67
- 3. Push new update to `main` remote branch.
68
- 4. Run `npm publish` to publish your changes.
66
+ 2. Run `npm run build` to build package
67
+ 3. Update version in [package.json](./package.json)
68
+ 4. Push new update to `main` remote branch.
69
+ 5. Run `npm publish` to publish your changes.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { httpContextMiddleware } from "./context/http-context";
2
2
  export { requestLogMiddleware } from "./logging/middleware";
3
- export { Logger } from "./logging/logger";
3
+ export { Logger, LoggerInterface } from "./logging/logger";
@@ -1,7 +1,8 @@
1
- export declare const Logger: {
1
+ export interface LoggerInterface {
2
2
  log: (level: string, message: any, ...args: any[]) => void;
3
3
  error: (message: any, ...args: any[]) => void;
4
4
  warn: (message: any, ...args: any[]) => void;
5
5
  info: (message: any, ...args: any[]) => void;
6
6
  debug: (message: any, ...args: any[]) => void;
7
- };
7
+ }
8
+ export declare const Logger: LoggerInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micronodelib",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Common core for NodeJs project",
5
5
  "author": "Thang Bui",
6
6
  "license": "MIT",
@@ -9,6 +9,9 @@
9
9
  "files": [
10
10
  "/dist"
11
11
  ],
12
+ "scripts": {
13
+ "build": "tsc"
14
+ },
12
15
  "dependencies": {
13
16
  "express-http-context": "^1.2.4",
14
17
  "express-winston": "^4.2.0",