Socket
Socket
Sign inDemoInstall

@fangxq/request

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fangxq/request - npm Package Compare versions

Comparing version 0.0.28 to 0.0.29

2

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

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

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