Socket
Socket
Sign inDemoInstall

@fangxq/request

Package Overview
Dependencies
82
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.31 to 0.0.32

2

listen.d.ts

@@ -1,1 +0,1 @@

export async function listen(host: string, port: number, handler: (req: any) => Promise<any>): Promise<import('https').Server>
export async function listen(host: string, port: number, handler: (src:string,req: any) => Promise<any>): Promise<import('https').Server>

@@ -27,5 +27,5 @@ const fs = require('fs')

if (!data.ip) data.ip = req.headers['x-forwarded-for'] || req.socket.remoteAddress
var src = req.headers['x-forwarded-for'] || req.socket.remoteAddress
let result = await handler(data)
let result = await handler(src, data)

@@ -32,0 +32,0 @@ res.send(JSON.stringify(result))

{
"name": "@fangxq/request",
"version": "0.0.31",
"version": "0.0.32",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

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