Comparing version 1.0.1 to 1.0.2
import { RequestLogger } from './request'; | ||
export default RequestLogger; | ||
export { RequestLogger }; |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RequestLogger = void 0; | ||
// // logs the request data to console in table form | ||
@@ -12,4 +13,4 @@ // const RL = new RequestLogger({ignore_urls : ['/logs'],showLatestFirst : false}) | ||
// app.use(RL.Webpage()) | ||
// app.get('/' , (_req:Request, res:Response) : void => { | ||
// res.send("hello world") | ||
// app.all('/' , (req:Request, res:Response) : void => { | ||
// res.send(req.body) | ||
// }) | ||
@@ -21,2 +22,2 @@ // app.listen(PORT, () : void => { | ||
const request_1 = require("./request"); | ||
exports.default = request_1.RequestLogger; | ||
Object.defineProperty(exports, "RequestLogger", { enumerable: true, get: function () { return request_1.RequestLogger; } }); |
@@ -15,3 +15,3 @@ "use strict"; | ||
path: true, | ||
method: true, | ||
method: true | ||
}; | ||
@@ -18,0 +18,0 @@ class RequestLogger { |
{ | ||
"name": "reqlogs", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A simple logger, which logs the request to server in form of tables, it helps to debug the connection with client and can also be used for metrics.", | ||
@@ -15,4 +15,4 @@ "main": "dist/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "ts-node index.ts", | ||
"dev": "nodemon --exec ts-node index.ts" | ||
"start": "ts-node src/index.ts", | ||
"dev": "nodemon --exec ts-node src/index.ts" | ||
}, | ||
@@ -19,0 +19,0 @@ "types": "dist/index.d.ts", |
@@ -11,4 +11,4 @@ // import express , {Request, Response} from 'express' | ||
// app.get('/' , (_req:Request, res:Response) : void => { | ||
// res.send("hello world") | ||
// app.all('/' , (req:Request, res:Response) : void => { | ||
// res.send(req.body) | ||
// }) | ||
@@ -22,2 +22,3 @@ | ||
import {RequestLogger} from './request' | ||
export default RequestLogger | ||
export {RequestLogger} |
@@ -14,4 +14,5 @@ import express, {Request, Response, NextFunction, Router} from 'express' | ||
path : true, | ||
method : true, | ||
method : true | ||
} | ||
class RequestLogger{ | ||
@@ -18,0 +19,0 @@ app : any |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59544
476
0