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.29 to 0.0.30

4

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