http-system-logger 1.0.1 → 1.0.2

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.
@@ -0,0 +1,9 @@
1
+ export declare class Logger {
2
+ private readonly context;
3
+ constructor(context: string);
4
+ info(message: string, context?: string): void;
5
+ error(message: string, trace?: string, context?: string): void;
6
+ warn(message: string, context?: string): void;
7
+ debug(message: string, context?: string): void;
8
+ }
9
+ export { default as httpLogger } from './morgan.config';
@@ -0,0 +1,4 @@
1
+ /// <reference types="qs" />
2
+ import { Request, Response } from 'express';
3
+ declare const morganMiddleware: (req: Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, callback: (err?: Error | undefined) => void) => void;
4
+ export default morganMiddleware;
@@ -0,0 +1,4 @@
1
+ import * as winston from 'winston';
2
+ import 'winston-daily-rotate-file';
3
+ declare const _default: winston.Logger;
4
+ export default _default;
package/index.d.ts ADDED
File without changes
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "http-system-logger",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "npx tsc"
8
10
  },
9
11
  "keywords": [
10
12
  "node-logger",
package/tsconfig.json CHANGED
@@ -49,7 +49,7 @@
49
49
  // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
50
 
51
51
  /* Emit */
52
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
52
+ "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
53
53
  // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
54
  // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
55
  // "sourceMap": true, /* Create source map files for emitted JavaScript files. */