Socket
Socket
Sign inDemoInstall

@fangxq/request

Package Overview
Dependencies
7
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.26 to 0.0.27

2

call.d.ts
// import { TReq,TRes } from './shared';
export async function call(target: string, req: any): Promise<{ data?: any, ws?: typeof global['WebSocket'] }>
export async function call<TReq,TRes>(target: string, req: TReq): Promise<{ data?: TRes, ws?: typeof global['WebSocket'] }>
// import { TReq,TRes } from './shared';
type thandler = (src: string, req: any) => Promise<{ data?: any, use_ws?: (ws: typeof global.WebSocket) => void }>
type thandler = <TReq,TRes>(src: string, req: TReq) => Promise<{ data?: TRes, use_ws?: (ws: typeof global.WebSocket) => void }>
export async function listen(host: string, port: number, handler: thandler): Promise<import('https').Server>
export async function listen<TReq,TRes>(host: string, port: number, handler: thandler<TReq,TRes>): Promise<import('https').Server>
{
"name": "@fangxq/request",
"version": "0.0.26",
"version": "0.0.27",
"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