@globalart/nestcord 1.7.10 → 1.7.11
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.
|
@@ -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 text_utils_1 = require("@globalart/text-utils");
|
|
33
32
|
const rxjs_1 = require("rxjs");
|
|
33
|
+
const text_utils_1 = require("@globalart/text-utils");
|
|
34
34
|
let NestCordStatReporterService = NestCordStatReporterService_1 = class NestCordStatReporterService {
|
|
35
35
|
constructor(client, shard, options, schedulerRegistry, httpService) {
|
|
36
36
|
this.client = client;
|
|
@@ -70,7 +70,9 @@ 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);
|
|
73
74
|
const bodyData = (0, text_utils_1.replacePlaceholdersInObject)(service.bodyData, { serverCount, shardCount });
|
|
75
|
+
console.log(bodyData);
|
|
74
76
|
const headerData = service.headerData || {};
|
|
75
77
|
yield (0, rxjs_1.lastValueFrom)(this.httpService.request({
|
|
76
78
|
method: service.method || 'POST',
|
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.
|
|
4
|
+
"version": "1.7.11",
|
|
5
5
|
"private": false,
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"url": "https://github.com/GlobalartInc/nestcord"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@globalart/text-utils": "^1.0.
|
|
49
|
+
"@globalart/text-utils": "^1.0.3",
|
|
50
50
|
"@nestjs/axios": "^3.0.2",
|
|
51
51
|
"@nestjs/schedule": "^4.0.2",
|
|
52
52
|
"axios": "^1.7.2",
|