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

light-my-request

Package Overview
Dependencies
Maintainers
11
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

light-my-request - npm Package Compare versions

Comparing version 6.5.0 to 6.5.1

3

lib/response.js

@@ -13,3 +13,4 @@ 'use strict'

if (req._lightMyRequest?.payloadAsStream) {
this._lightMyRequest = { headers: null, trailers: {}, stream: new Readable({ read () {} }) }
const read = this.emit.bind(this, 'drain')
this._lightMyRequest = { headers: null, trailers: {}, stream: new Readable({ read }) }
const signal = req._lightMyRequest.signal

@@ -16,0 +17,0 @@

{
"name": "light-my-request",
"version": "6.5.0",
"version": "6.5.1",
"description": "Fake HTTP injection library",

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

@@ -112,3 +112,5 @@ 'use strict'

expected = 'a' + buf.toString()
res.end()
res.on('drain', () => {
res.end()
})
}

@@ -115,0 +117,0 @@

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