@sapphire/decorators 3.0.0-pr-160.676f855.0 → 3.0.0

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/README.md CHANGED
@@ -10,7 +10,6 @@
10
10
  [![codecov](https://codecov.io/gh/sapphiredev/utilities/branch/main/graph/badge.svg?token=OEGIV6RFDO)](https://codecov.io/gh/sapphiredev/utilities)
11
11
  [![npm bundle size](https://img.shields.io/bundlephobia/min/@sapphire/decorators?logo=webpack&style=flat-square)](https://bundlephobia.com/result?p=@sapphire/decorators)
12
12
  [![npm](https://img.shields.io/npm/v/@sapphire/decorators?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@sapphire/decorators)
13
- [![Depfu](https://badges.depfu.com/badges/ec42ff3d6bae55eee1de4749960852b3/count.svg)](https://depfu.com/github/sapphiredev/utilities?project_id=15195)
14
13
 
15
14
  </div>
16
15
 
@@ -73,17 +72,18 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
73
72
  <td align="center"><a href="https://github.com/Nytelife26"><img src="https://avatars1.githubusercontent.com/u/22531310?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tyler J Russell</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Nytelife26" title="Documentation">📖</a></td>
74
73
  <td align="center"><a href="https://github.com/Alcremie"><img src="https://avatars0.githubusercontent.com/u/54785334?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ivan Lieder</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Alcremie" title="Code">💻</a> <a href="https://github.com/sapphiredev/utilities/issues?q=author%3AAlcremie" title="Bug reports">🐛</a></td>
75
74
  <td align="center"><a href="https://github.com/RealShadowNova"><img src="https://avatars3.githubusercontent.com/u/46537907?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hezekiah Hendry</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=RealShadowNova" title="Code">💻</a></td>
76
- <td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Stitch07" title="Code">💻</a> <a href="https://github.com/sapphiredev/utilities/commits?author=Stitch07" title="Tests">⚠️</a></td>
77
75
  <td align="center"><a href="https://github.com/Vetlix"><img src="https://avatars.githubusercontent.com/u/31412314?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vetlix</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Vetlix" title="Code">💻</a></td>
78
76
  <td align="center"><a href="https://github.com/ethamitc"><img src="https://avatars.githubusercontent.com/u/27776796?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ethan Mitchell</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=ethamitc" title="Documentation">📖</a></td>
79
77
  <td align="center"><a href="https://github.com/noftaly"><img src="https://avatars.githubusercontent.com/u/34779161?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliot</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=noftaly" title="Code">💻</a></td>
78
+ <td align="center"><a href="https://jurien.dev"><img src="https://avatars.githubusercontent.com/u/5418114?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jurien Hamaker</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=jurienhamaker" title="Code">💻</a></td>
80
79
  </tr>
81
80
  <tr>
82
- <td align="center"><a href="https://jurien.dev"><img src="https://avatars.githubusercontent.com/u/5418114?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jurien Hamaker</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=jurienhamaker" title="Code">💻</a></td>
83
81
  <td align="center"><a href="https://fanoulis.dev/"><img src="https://avatars.githubusercontent.com/u/38255093?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Charalampos Fanoulis</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=cfanoulis" title="Documentation">📖</a></td>
84
82
  <td align="center"><a href="https://github.com/apps/dependabot"><img src="https://avatars.githubusercontent.com/in/29110?v=4?s=100" width="100px;" alt=""/><br /><sub><b>dependabot[bot]</b></sub></a><br /><a href="#maintenance-dependabot[bot]" title="Maintenance">🚧</a></td>
85
83
  <td align="center"><a href="https://kaname.netlify.app/"><img src="https://avatars.githubusercontent.com/u/56084970?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaname</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=kaname-png" title="Code">💻</a></td>
86
84
  <td align="center"><a href="https://github.com/nandhagk"><img src="https://avatars.githubusercontent.com/u/62976649?v=4?s=100" width="100px;" alt=""/><br /><sub><b>nandhagk</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/issues?q=author%3Anandhagk" title="Bug reports">🐛</a></td>
85
+ <td align="center"><a href="https://megatank58.me/"><img src="https://avatars.githubusercontent.com/u/51410502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Megatank58</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=Megatank58" title="Code">💻</a></td>
86
+ <td align="center"><a href="https://github.com/UndiedGamer"><img src="https://avatars.githubusercontent.com/u/84702365?v=4?s=100" width="100px;" alt=""/><br /><sub><b>UndiedGamer</b></sub></a><br /><a href="https://github.com/sapphiredev/utilities/commits?author=UndiedGamer" title="Code">💻</a></td>
87
87
  </tr>
88
88
  </table>
89
89
 
@@ -34,7 +34,7 @@ exports.enumerable = Enumerable;
34
34
  * @param value Whether the method should be enumerable or not
35
35
  */
36
36
  function EnumerableMethod(value) {
37
- return utils_1.createMethodDecorator((_target, _propertyKey, descriptor) => {
37
+ return (0, utils_1.createMethodDecorator)((_target, _propertyKey, descriptor) => {
38
38
  descriptor.enumerable = value;
39
39
  });
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"base-decorators.js","sourceRoot":"","sources":["../src/base-decorators.ts"],"names":[],"mappings":";;;AACA,m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,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AAdD,gCAcC;AAED;;;;;GAKG;AACU,QAAA,UAAU,GAAG,UAAU,CAAC;AAErC;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,KAAc;IAC9C,OAAO,IAAA,6BAAqB,EAAC,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE;QAClE,UAAU,CAAC,UAAU,GAAG,KAAK,CAAC;IAC/B,CAAC,CAAC,CAAC;AACJ,CAAC;AAJD,4CAIC;AAED;;;;;GAKG;AACU,QAAA,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -75,14 +75,14 @@ const DMAvailableUserPermissions = new discord_js_1.Permissions(~new discord_js_
75
75
  const RequiresClientPermissions = (...permissionsResolvable) => {
76
76
  const resolved = new discord_js_1.Permissions(permissionsResolvable);
77
77
  const resolvedIncludesServerPermissions = Boolean(resolved.bitfield & DMAvailablePermissions.bitfield);
78
- return utils_1.createFunctionPrecondition((message) => {
79
- if (resolvedIncludesServerPermissions && discord_js_utilities_1.isDMChannel(message.channel)) {
78
+ return (0, utils_1.createFunctionPrecondition)((message) => {
79
+ if (resolvedIncludesServerPermissions && (0, discord_js_utilities_1.isDMChannel)(message.channel)) {
80
80
  throw new framework_1.UserError({
81
81
  identifier: "requiresClientPermissionsGuildOnly" /* RequiresClientPermissionsGuildOnly */,
82
82
  message: 'Sorry, but that command can only be used in a server because I do not have sufficient permissions in DMs'
83
83
  });
84
84
  }
85
- if (discord_js_utilities_1.isGuildBasedChannel(message.channel)) {
85
+ if ((0, discord_js_utilities_1.isGuildBasedChannel)(message.channel)) {
86
86
  const missingPermissions = message.channel.permissionsFor(message.guild.me).missing(resolved);
87
87
  if (missingPermissions.length) {
88
88
  throw new framework_1.UserError({
@@ -140,14 +140,14 @@ exports.RequiresClientPermissions = RequiresClientPermissions;
140
140
  const RequiresUserPermissions = (...permissionsResolvable) => {
141
141
  const resolved = new discord_js_1.Permissions(permissionsResolvable);
142
142
  const resolvedIncludesServerPermissions = Boolean(resolved.bitfield & DMAvailableUserPermissions.bitfield);
143
- return utils_1.createFunctionPrecondition((message) => {
144
- if (resolvedIncludesServerPermissions && discord_js_utilities_1.isDMChannel(message.channel)) {
143
+ return (0, utils_1.createFunctionPrecondition)((message) => {
144
+ if (resolvedIncludesServerPermissions && (0, discord_js_utilities_1.isDMChannel)(message.channel)) {
145
145
  throw new framework_1.UserError({
146
146
  identifier: "requiresUserPermissionsGuildOnly" /* RequiresUserPermissionsGuildOnly */,
147
147
  message: 'Sorry, but that command can only be used in a server because you do not have sufficient permissions in DMs'
148
148
  });
149
149
  }
150
- if (discord_js_utilities_1.isGuildBasedChannel(message.channel)) {
150
+ if ((0, discord_js_utilities_1.isGuildBasedChannel)(message.channel)) {
151
151
  const missingPermissions = message.channel.permissionsFor(message.member).missing(resolved);
152
152
  if (missingPermissions.length) {
153
153
  throw new framework_1.UserError({
@@ -169,7 +169,7 @@ exports.RequiresUserPermissions = RequiresUserPermissions;
169
169
  * @param fallback The fallback value passed to `createFunctionInhibitor`
170
170
  */
171
171
  function RequiresGuildContext(fallback = () => undefined) {
172
- return utils_1.createFunctionPrecondition((message) => message.guild !== null, fallback);
172
+ return (0, utils_1.createFunctionPrecondition)((message) => message.guild !== null, fallback);
173
173
  }
174
174
  exports.RequiresGuildContext = RequiresGuildContext;
175
175
  /**
@@ -178,7 +178,7 @@ exports.RequiresGuildContext = RequiresGuildContext;
178
178
  * @param fallback The fallback value passed to `createFunctionInhibitor`
179
179
  */
180
180
  function RequiresDMContext(fallback = () => undefined) {
181
- return utils_1.createFunctionPrecondition((message) => message.guild === null, fallback);
181
+ return (0, utils_1.createFunctionPrecondition)((message) => message.guild === null, fallback);
182
182
  }
183
183
  exports.RequiresDMContext = RequiresDMContext;
184
184
  //# sourceMappingURL=djs-decorators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"djs-decorators.js","sourceRoot":"","sources":["../src/djs-decorators.ts"],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AAE,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC3F,CAAC;AAFD,oDAEC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,WAA6B,GAAS,EAAE,CAAC,SAAS;IACnF,OAAO,IAAA,kCAA0B,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC3F,CAAC;AAFD,8CAEC"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./base-decorators"), exports);
5
- tslib_1.__exportStar(require("./djs-decorators"), exports);
6
- tslib_1.__exportStar(require("./piece-decorators"), exports);
7
- tslib_1.__exportStar(require("./utils"), exports);
4
+ (0, tslib_1.__exportStar)(require("./base-decorators"), exports);
5
+ (0, tslib_1.__exportStar)(require("./djs-decorators"), exports);
6
+ (0, tslib_1.__exportStar)(require("./piece-decorators"), exports);
7
+ (0, tslib_1.__exportStar)(require("./utils"), exports);
8
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,2DAAiC;AACjC,6DAAmC;AACnC,kDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iEAAkC;AAClC,gEAAiC;AACjC,kEAAmC;AACnC,uDAAwB"}
@@ -27,7 +27,7 @@ const utils_1 = require("./utils");
27
27
  * ```
28
28
  */
29
29
  function ApplyOptions(optionsOrFn) {
30
- return utils_1.createClassDecorator((target) => utils_1.createProxy(target, {
30
+ return (0, utils_1.createClassDecorator)((target) => (0, utils_1.createProxy)(target, {
31
31
  construct: (ctor, [context, baseOptions = {}]) => new ctor(context, {
32
32
  ...baseOptions,
33
33
  ...(typeof optionsOrFn === 'function' ? optionsOrFn(context) : optionsOrFn)
@@ -1 +1 @@
1
- {"version":3,"file":"piece-decorators.js","sourceRoot":"","sources":["../src/piece-decorators.ts"],"names":[],"mappings":";;;AAEA,mCAA4D;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,YAAY,CAAyB,WAA+C;IACnG,OAAO,4BAAoB,CAAC,CAAC,MAAwD,EAAE,EAAE,CACxF,mBAAW,CAAC,MAAM,EAAE;QACnB,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,EAAE,CAAC,EAAE,EAAE,CAChD,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,GAAG,WAAW;YACd,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;SAC3E,CAAC;KACH,CAAC,CACF,CAAC;AACH,CAAC;AAVD,oCAUC"}
1
+ {"version":3,"file":"piece-decorators.js","sourceRoot":"","sources":["../src/piece-decorators.ts"],"names":[],"mappings":";;;AAEA,mCAA4D;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,YAAY,CAAyB,WAA+C;IACnG,OAAO,IAAA,4BAAoB,EAAC,CAAC,MAAwD,EAAE,EAAE,CACxF,IAAA,mBAAW,EAAC,MAAM,EAAE;QACnB,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,EAAE,CAAC,EAAE,EAAE,CAChD,IAAI,IAAI,CAAC,OAAO,EAAE;YACjB,GAAG,WAAW;YACd,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;SAC3E,CAAC;KACH,CAAC,CACF,CAAC;AACH,CAAC;AAVD,oCAUC"}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@sapphire/decorators",
3
- "version": "3.0.0-pr-160.676f855.0",
3
+ "version": "3.0.0",
4
4
  "description": "Useful TypeScript decorators for Sapphire Framework Discord bots",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
9
+ "typedocMain": "src/index.ts",
9
10
  "exports": {
10
11
  "import": "./dist/index.mjs",
11
12
  "require": "./dist/index.js"
@@ -33,8 +34,8 @@
33
34
  "!dist/*.tsbuildinfo"
34
35
  ],
35
36
  "engines": {
36
- "node": ">=14",
37
- "npm": ">=6"
37
+ "node": ">=v14.18.0",
38
+ "npm": ">=7.24.1"
38
39
  },
39
40
  "keywords": [
40
41
  "sapphiredev",
@@ -52,5 +53,5 @@
52
53
  "publishConfig": {
53
54
  "access": "public"
54
55
  },
55
- "gitHead": "676f8550d2cffd220af23a24fe6f70d0d6b2b1b7"
56
+ "gitHead": "18e0df218137b1c05c22fc3c066619e635ffb8dc"
56
57
  }
package/dist/index.mjs DELETED
@@ -1,17 +0,0 @@
1
- import mod from "./index.js";
2
-
3
- export default mod;
4
- export const ApplyOptions = mod.ApplyOptions;
5
- export const DecoratorIdentifiers = mod.DecoratorIdentifiers;
6
- export const Enumerable = mod.Enumerable;
7
- export const EnumerableMethod = mod.EnumerableMethod;
8
- export const RequiresClientPermissions = mod.RequiresClientPermissions;
9
- export const RequiresDMContext = mod.RequiresDMContext;
10
- export const RequiresGuildContext = mod.RequiresGuildContext;
11
- export const RequiresUserPermissions = mod.RequiresUserPermissions;
12
- export const createClassDecorator = mod.createClassDecorator;
13
- export const createFunctionPrecondition = mod.createFunctionPrecondition;
14
- export const createMethodDecorator = mod.createMethodDecorator;
15
- export const createProxy = mod.createProxy;
16
- export const enumerable = mod.enumerable;
17
- export const enumerableMethod = mod.enumerableMethod;