Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.7 to 0.0.8

4

index.d.ts
export class REQUEST {
constructor(appid: string, url: string)
constructor(apptype: string, appid: string, url: string)
reset(): void
async Request(path: string, api: string, args: any[], track?: { appid: string, ip: string }[]): Promise<any>
async Request(path: string, api: string, args: any[], track?: { apptype: string, appid: string, ip: string }[]): Promise<any>
}

@@ -27,6 +27,8 @@ const axios = require('axios')

apptype
appid
constructor(appid, url) {
constructor(apptype, appid, url) {
this.hostUrl = url
this.apptype = apptype
this.appid = appid

@@ -58,3 +60,3 @@ const doc = global.document

method: 'post',
data: { body: { args, track: [...track, { appid: this.appid }] } },
data: { body: { args, track: [...track, { apptye: this.apptype, appid: this.appid }] } },
headers: headers

@@ -61,0 +63,0 @@ })

{
"name": "@fangxq/request",
"version": "0.0.7",
"version": "0.0.8",
"description": "",

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

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