@globalart/nestcord 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,6 +25,10 @@ export interface ServiceOption {
|
|
|
25
25
|
* The crontab expression that defines the schedule for the stat service.
|
|
26
26
|
*/
|
|
27
27
|
schedule?: StatCronExpression | string;
|
|
28
|
+
/**
|
|
29
|
+
* Proxy config.
|
|
30
|
+
*/
|
|
31
|
+
proxy?: AxiosProxyConfig;
|
|
28
32
|
}
|
|
29
33
|
export interface NestCordStatReporterOptions {
|
|
30
34
|
/**
|
|
@@ -77,7 +77,7 @@ let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCord
|
|
|
77
77
|
url: service.url,
|
|
78
78
|
data: bodyData,
|
|
79
79
|
headers: headerData,
|
|
80
|
-
proxy: this.options.proxy,
|
|
80
|
+
proxy: service.proxy || this.options.proxy,
|
|
81
81
|
}));
|
|
82
82
|
this.logStats(service.name, serverCount, shardCount);
|
|
83
83
|
}
|
package/package.json
CHANGED