@globalart/nestcord 1.7.11 → 1.7.13

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
  /**
@@ -31,6 +31,10 @@ export interface NestCordStatReporterOptions {
31
31
  * The list of stat service options.
32
32
  */
33
33
  services: ServiceOption[];
34
+ /**
35
+ * Proxy config.
36
+ */
37
+ proxy?: AxiosProxyConfig;
34
38
  /**
35
39
  * If true, skip all jobs.
36
40
  */
@@ -29,8 +29,8 @@ const nestcord_stat_reporter_module_definition_1 = require("./nestcord-stat-repo
29
29
  const schedule_1 = require("@nestjs/schedule");
30
30
  const cron_1 = require("cron");
31
31
  const axios_1 = require("@nestjs/axios");
32
- const rxjs_1 = require("rxjs");
33
32
  const text_utils_1 = require("@globalart/text-utils");
33
+ const rxjs_1 = require("rxjs");
34
34
  let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCordStatReporterService {
35
35
  constructor(client, shard, options, schedulerRegistry, httpService) {
36
36
  this.client = client;
@@ -70,15 +70,14 @@ let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCord
70
70
  this.calculateServerCount(),
71
71
  Promise.resolve(((_a = this.shard) === null || _a === void 0 ? void 0 : _a.count) || 1),
72
72
  ]);
73
- console.log(service.bodyData);
74
73
  const bodyData = (0, text_utils_1.replacePlaceholdersInObject)(service.bodyData, { serverCount, shardCount });
75
- console.log(bodyData);
76
74
  const headerData = service.headerData || {};
77
75
  yield (0, rxjs_1.lastValueFrom)(this.httpService.request({
78
76
  method: service.method || 'POST',
79
77
  url: service.url,
80
78
  data: bodyData,
81
79
  headers: headerData,
80
+ proxy: this.options.proxy,
82
81
  }));
83
82
  this.logStats(service.name, serverCount, shardCount);
84
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.11",
4
+ "version": "1.7.13",
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",