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

@gravity-ui/expresskit

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gravity-ui/expresskit - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

12

dist/base-middleware.js

@@ -25,5 +25,5 @@ "use strict";

req.ctx.setTag('http.method', req.method);
req.ctx.setTag('http.url', req.url);
req.ctx.setTag('path', req.path);
req.ctx.setTag('referer', req.get('referer'));
req.ctx.setTag('http.url', ctx.utils.redactSensitiveQueryParams(req.url));
req.ctx.setTag('path', ctx.utils.redactSensitiveQueryParams(req.path));
req.ctx.setTag('referer', ctx.utils.redactSensitiveQueryParams(req.get('referer')));
req.ctx.setTag('remote_ip', req.ip);

@@ -33,8 +33,8 @@ req.ctx.setTag('request_id', req.id);

const requestStartedExtra = ctx.config.appDevMode
? { url: req.url }
? { url: ctx.utils.redactSensitiveQueryParams(req.url) }
: {
id: req.id,
method: req.method,
url: req.url,
headers: ctx.utils.redactSensitiveKeys(req.headers),
url: ctx.utils.redactSensitiveQueryParams(req.url),
headers: ctx.utils.redactSensitiveHeaders(req.headers),
remoteAddress: req.connection && req.connection.remoteAddress,

@@ -41,0 +41,0 @@ remotePort: req.connection && req.connection.remotePort,

{
"name": "@gravity-ui/expresskit",
"version": "1.2.0",
"version": "1.2.1",
"description": "Express.js wrapper for NodeKit-based apps",

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

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