Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reqlogs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reqlogs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc