New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

light-my-request

Package Overview
Dependencies
Maintainers
2
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 3.7.1 to 3.7.2

1

index.d.ts

@@ -60,2 +60,3 @@ import * as stream from 'stream'

server?: http.Server
cookies?: { [k: string]: string }
}

@@ -62,0 +63,0 @@

2

package.json
{
"name": "light-my-request",
"version": "3.7.1",
"version": "3.7.2",
"description": "Fake HTTP injection library",

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

@@ -25,2 +25,10 @@ import { inject, isInjection, Request, Response, DispatchFunc, InjectOptions, Chain } from '../index'

inject(dispatch, { method: 'get', url: '/', cookies: { name1: 'value1', value2: 'value2' } }, (err, res) => {
expectType<Error>(err)
expectType<Response>(res)
console.log(res.payload)
expectType<Function>(res.json)
console.log(res.cookies)
})
inject(dispatch)

@@ -27,0 +35,0 @@ .get('/')

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