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.2 to 3.7.3

6

index.d.ts

@@ -37,3 +37,3 @@ import * as stream from 'stream'

port?: string | number
query?: string
query?: string | { [k: string]: string }
}

@@ -45,6 +45,6 @@ path?: string | {

port?: string | number
query?: string
query?: string | { [k: string]: string }
}
headers?: http.IncomingHttpHeaders | http.OutgoingHttpHeaders
query?: string
query?: string | { [k: string]: string }
simulate?: {

@@ -51,0 +51,0 @@ end: boolean,

{
"name": "light-my-request",
"version": "3.7.2",
"version": "3.7.3",
"description": "Fake HTTP injection library",

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

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

inject(dispatch, { method: 'get', url: '/', query: { 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)

@@ -35,0 +43,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