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

@ami-app/adonis-http-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ami-app/adonis-http-logger - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "@ami-app/adonis-http-logger",
"version": "1.0.0",
"version": "1.1.0",
"description": "Http request logger for AdonisJs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,3 +13,3 @@ "use strict";

const prettyMs = require("pretty-ms");
const onFinished = require("on-finished");
const onFinished = require("on-finished");

@@ -24,2 +24,13 @@ const isJSONResponse = (responseHeaders) => {

const censorSensitiveData = (data) => {
if (!data) {
return data;
}
const censoredData = Object.assign({}, data);
if (data.password) {
censoredData.password = "[PRIVATE]";
}
return censoredData;
}
const HOST_WHITELIST = [

@@ -134,3 +145,3 @@ // TODO: block SSRF attacks

request_headers: JSON.stringify(requestHeaders),
request_body: JSON.stringify(this.request.body),
request_body: JSON.stringify(censorSensitiveData(this.request.body)),
response_headers: JSON.stringify(responseHeaders),

@@ -137,0 +148,0 @@ response_body: isJSONResponse(responseHeaders) ? body : "-",

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