@globalart/nestcord 1.7.12 → 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.
@@ -1,4 +1,4 @@
1
- import { Method, RawAxiosRequestHeaders } from 'axios';
1
+ import { AxiosProxyConfig, Method, RawAxiosRequestHeaders } from 'axios';
2
2
  import { StatCronExpression } from '../enums';
3
3
  export interface ServiceOption {
4
4
  /**
@@ -25,12 +25,20 @@ 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
  /**
31
35
  * The list of stat service options.
32
36
  */
33
37
  services: ServiceOption[];
38
+ /**
39
+ * Proxy config.
40
+ */
41
+ proxy?: AxiosProxyConfig;
34
42
  /**
35
43
  * If true, skip all jobs.
36
44
  */
@@ -77,6 +77,7 @@ let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCord
77
77
  url: service.url,
78
78
  data: bodyData,
79
79
  headers: headerData,
80
+ proxy: service.proxy || this.options.proxy,
80
81
  }));
81
82
  this.logStats(service.name, serverCount, shardCount);
82
83
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@globalart/nestcord",
3
3
  "description": "A module for creating Discord bots using NestJS, based on Discord.js",
4
- "version": "1.7.12",
4
+ "version": "1.7.14",
5
5
  "private": false,
6
6
  "scripts": {
7
7
  "build": "rimraf dist && tsc -p tsconfig.build.json",
@@ -58,8 +58,8 @@
58
58
  "@commitlint/cli": "19.3.0",
59
59
  "@commitlint/config-angular": "19.3.0",
60
60
  "@favware/npm-deprecate": "1.0.7",
61
- "@nestjs/common": "10.3.9",
62
- "@nestjs/core": "10.3.9",
61
+ "@nestjs/common": "10.3.10",
62
+ "@nestjs/core": "10.3.10",
63
63
  "@nestjs/platform-express": "^10.3.8",
64
64
  "@types/node": "20.14.9",
65
65
  "@typescript-eslint/eslint-plugin": "7.0.0",
@@ -73,11 +73,11 @@
73
73
  "lint-staged": "15.2.7",
74
74
  "prettier": "3.3.2",
75
75
  "reflect-metadata": "0.2.2",
76
- "release-it": "17.4.0",
76
+ "release-it": "17.4.1",
77
77
  "rimraf": "5.0.7",
78
78
  "rxjs": "7.8.1",
79
79
  "ts-node": "10.9.2",
80
- "typescript": "5.5.2"
80
+ "typescript": "5.5.3"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@nestjs/common": "^10.2.0",