@fangxq/request
Advanced tools
Comparing version 0.0.4 to 0.0.5
export class REQUEST { | ||
constructor(url: string) | ||
constructor(appid: string, url: string) | ||
@@ -4,0 +4,0 @@ reset(): void |
@@ -27,4 +27,7 @@ const axios = require('axios') | ||
constructor(url) { | ||
appid | ||
constructor(appid, url) { | ||
this.hostUrl = url | ||
this.appid = appid | ||
const doc = global.document | ||
@@ -55,3 +58,3 @@ if (!doc) { | ||
method: 'post', | ||
data: { body: { args, track } }, | ||
data: { body: { args, track: [...track, { appid: this.appid }] } }, | ||
headers: headers | ||
@@ -58,0 +61,0 @@ }) |
{ | ||
"name": "@fangxq/request", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2649
65