Socket
Socket
Sign inDemoInstall

express-request-id

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

2

index.js

@@ -8,3 +8,3 @@ 'use strict';

options.uuidVersion = options.uuidVersion || 'v4';
options.setHeader = options.setHeader !== false;
options.setHeader = options.setHeader === undefined || !!options.setHeader;

@@ -11,0 +11,0 @@ return function (req, res, next) {

{
"name": "express-request-id",
"version": "1.0.0",
"version": "1.1.0",
"description": "Generate UUID for request and add it to headers",

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

# express-request-id [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Generate UUID for request and add it to headers
Generate UUID for request and add it to `X-Request-Id` header.
```js

@@ -42,3 +43,3 @@

MIT (c) 2013 Vsevolod Strukchinsky (floatdrop@gmail.com)
MIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)

@@ -45,0 +46,0 @@ [npm-url]: https://npmjs.org/package/express-request-id

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc