@fangxq/request
Advanced tools
Comparing version 0.0.7 to 0.0.8
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2760
67