necord 6.1.4 → 6.1.6-dev.1695776050.302d642
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
# [6.1.5](https://github.com/necordjs/necord/compare/v6.1.4...v6.1.5) - (2023-09-26)
|
|
5
|
+
|
|
6
|
+
## Bug Fixes
|
|
7
|
+
|
|
8
|
+
- Remove rewrite prototype of default value ([263ca68](https://github.com/necordjs/necord/commit/263ca682ee533d1e4d635e065a41dabfbd7a2e11))
|
|
9
|
+
|
|
10
|
+
# [6.1.4](https://github.com/necordjs/necord/compare/v6.1.3...v6.1.4) - (2023-09-06)
|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- **slash-command-discovery:** Add getters for subcommands ([1851628](https://github.com/necordjs/necord/commit/1851628f35bdc200f6a4e80e8ed0bce239ed33ba))
|
|
15
|
+
|
|
4
16
|
# [6.1.3](https://github.com/necordjs/necord/compare/v6.1.2...v6.1.3) - (2023-09-01)
|
|
5
17
|
|
|
6
18
|
## Bug Fixes
|
|
@@ -7,14 +7,13 @@ function createOptionDecorator(type, resolver) {
|
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
return (data) => {
|
|
9
9
|
return (target, propertyKey) => {
|
|
10
|
-
Reflect.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
15
|
-
const meta = Object.assign(Object.assign({}, data), { type,
|
|
10
|
+
let metadata = Reflect.getMetadata(exports.OPTIONS_METADATA, target);
|
|
11
|
+
if (!metadata) {
|
|
12
|
+
metadata = {};
|
|
13
|
+
}
|
|
14
|
+
metadata[String(propertyKey)] = Object.assign(Object.assign({}, data), { type,
|
|
16
15
|
resolver });
|
|
17
|
-
Reflect.defineMetadata(exports.OPTIONS_METADATA,
|
|
16
|
+
Reflect.defineMetadata(exports.OPTIONS_METADATA, metadata, target);
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
}
|
|
@@ -17,15 +17,8 @@ exports.Options = (0, common_1.createParamDecorator)((_, context) => {
|
|
|
17
17
|
}, [
|
|
18
18
|
(target, propertyKey, parameterIndex) => {
|
|
19
19
|
const paramTypes = Reflect.getMetadata('design:paramtypes', target, propertyKey);
|
|
20
|
-
|
|
21
|
-
const options =
|
|
22
|
-
do {
|
|
23
|
-
Object.getOwnPropertyNames(prototype)
|
|
24
|
-
.map(name => [name, Reflect.getMetadata(option_util_1.OPTIONS_METADATA, prototype, name)])
|
|
25
|
-
.filter(([, meta]) => !!meta)
|
|
26
|
-
.forEach(([name, meta]) => { var _a; return ((_a = options[name]) !== null && _a !== void 0 ? _a : (options[name] = meta)); });
|
|
27
|
-
} while ((prototype = Reflect.getPrototypeOf(prototype)) &&
|
|
28
|
-
prototype !== Object.prototype);
|
|
20
|
+
const { prototype } = paramTypes[parameterIndex];
|
|
21
|
+
const options = Reflect.getMetadata(option_util_1.OPTIONS_METADATA, prototype);
|
|
29
22
|
Reflect.defineMetadata(option_util_1.OPTIONS_METADATA, options, target[propertyKey]);
|
|
30
23
|
}
|
|
31
24
|
]);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "necord",
|
|
3
3
|
"description": "A module for creating Discord bots using NestJS, based on Discord.js",
|
|
4
|
-
"version": "6.1.
|
|
4
|
+
"version": "6.1.6-dev.1695776050.302d642",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
|
7
7
|
"prepublish:npm": "npm run build",
|
|
@@ -58,22 +58,22 @@
|
|
|
58
58
|
"@commitlint/cli": "17.7.1",
|
|
59
59
|
"@commitlint/config-angular": "17.7.0",
|
|
60
60
|
"@favware/npm-deprecate": "1.0.7",
|
|
61
|
-
"@nestjs/common": "10.2.
|
|
62
|
-
"@nestjs/core": "10.2.
|
|
63
|
-
"@types/node": "20.
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
65
|
-
"@typescript-eslint/parser": "6.
|
|
66
|
-
"discord-api-types": "0.37.
|
|
61
|
+
"@nestjs/common": "10.2.6",
|
|
62
|
+
"@nestjs/core": "10.2.6",
|
|
63
|
+
"@types/node": "20.7.0",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "6.7.3",
|
|
65
|
+
"@typescript-eslint/parser": "6.7.3",
|
|
66
|
+
"discord-api-types": "0.37.58",
|
|
67
67
|
"discord.js": "14.13.0",
|
|
68
|
-
"eslint": "8.
|
|
68
|
+
"eslint": "8.50.0",
|
|
69
69
|
"eslint-config-prettier": "9.0.0",
|
|
70
70
|
"eslint-plugin-prettier": "5.0.0",
|
|
71
71
|
"husky": "8.0.3",
|
|
72
72
|
"lint-staged": "14.0.1",
|
|
73
73
|
"prettier": "3.0.3",
|
|
74
74
|
"reflect-metadata": "0.1.13",
|
|
75
|
-
"release-it": "16.
|
|
76
|
-
"rimraf": "5.0.
|
|
75
|
+
"release-it": "16.2.0",
|
|
76
|
+
"rimraf": "5.0.4",
|
|
77
77
|
"rxjs": "7.8.1",
|
|
78
78
|
"ts-node": "10.9.1",
|
|
79
79
|
"typescript": "5.2.2"
|