@sapphire/framework
Advanced tools
Comparing version 2.0.0-next.5c67dadc7c5a2bd242ab009acef32d5f007f6911.0 to 2.0.0-next.7cb9e3da.0
@@ -1,2 +0,2 @@ | ||
/* Version: 2.0.0-next.5c67dadc7c5a2bd242ab009acef32d5f007f6911.0 - June 5, 2021 14:26:46 */ | ||
/* Version: 2.0.0-next.7cb9e3da.0 - June 7, 2021 10:03:47 */ | ||
'use strict'; | ||
@@ -47,2 +47,2 @@ | ||
tslib_1.__exportStar(require("./lib/utils/preconditions/PreconditionContainerSingle"), exports); | ||
exports.version = '2.0.0-next.5c67dadc7c5a2bd242ab009acef32d5f007f6911.0'; | ||
exports.version = '2.0.0-next.7cb9e3da.0'; |
@@ -25,2 +25,4 @@ "use strict"; | ||
* | ||
* @see {@link SapphireClientOptions} for all options available to the Sapphire Client. You can also provide all of discord.js' [ClientOptions](https://discord.js.org/#/docs/main/stable/typedef/ClientOptions) | ||
* | ||
* @since 1.0.0 | ||
@@ -27,0 +29,0 @@ * @example |
"use strict"; | ||
var _listener; | ||
var _Event_listener; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -52,3 +52,3 @@ exports.Event = void 0; | ||
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility | ||
_listener.set(this, void 0); | ||
_Event_listener.set(this, void 0); | ||
this.emitter = | ||
@@ -60,11 +60,11 @@ typeof options.emitter === 'undefined' | ||
this.once = (_c = options.once) !== null && _c !== void 0 ? _c : false; | ||
tslib_1.__classPrivateFieldSet(this, _listener, this.emitter && this.event ? (this.once ? this._runOnce.bind(this) : this._run.bind(this)) : null); | ||
tslib_1.__classPrivateFieldSet(this, _Event_listener, this.emitter && this.event ? (this.once ? this._runOnce.bind(this) : this._run.bind(this)) : null, "f"); | ||
} | ||
onLoad() { | ||
if (tslib_1.__classPrivateFieldGet(this, _listener)) | ||
this.emitter[this.once ? 'once' : 'on'](this.event, tslib_1.__classPrivateFieldGet(this, _listener)); | ||
if (tslib_1.__classPrivateFieldGet(this, _Event_listener, "f")) | ||
this.emitter[this.once ? 'once' : 'on'](this.event, tslib_1.__classPrivateFieldGet(this, _Event_listener, "f")); | ||
} | ||
onUnload() { | ||
if (!this.once && tslib_1.__classPrivateFieldGet(this, _listener)) | ||
this.emitter.off(this.event, tslib_1.__classPrivateFieldGet(this, _listener)); | ||
if (!this.once && tslib_1.__classPrivateFieldGet(this, _Event_listener, "f")) | ||
this.emitter.off(this.event, tslib_1.__classPrivateFieldGet(this, _Event_listener, "f")); | ||
} | ||
@@ -79,3 +79,2 @@ toJSON() { | ||
try { | ||
// @ts-expect-error Argument of type 'unknown[]' is not assignable to parameter of type 'E extends string | number ? ClientEvents[E] : unknown[]'. (2345) | ||
await this.run(...args); | ||
@@ -93,3 +92,3 @@ } | ||
exports.Event = Event; | ||
_listener = new WeakMap(); | ||
_Event_listener = new WeakMap(); | ||
//# sourceMappingURL=Event.js.map |
{ | ||
"name": "@sapphire/framework", | ||
"version": "2.0.0-next.5c67dadc7c5a2bd242ab009acef32d5f007f6911.0", | ||
"version": "2.0.0-next.7cb9e3da.0", | ||
"description": "Discord bot framework built on top of @sapphire/lib for advanced and amazing bots.", | ||
@@ -32,13 +32,10 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@sapphire/discord-utilities": "^2.1.1", | ||
"@sapphire/discord.js-utilities": "^1.5.7", | ||
"@sapphire/discord-utilities": "^2.1.3", | ||
"@sapphire/discord.js-utilities": "^1.5.9", | ||
"@sapphire/pieces": "^2.0.0", | ||
"@sapphire/ratelimits": "^1.2.1", | ||
"@sapphire/utilities": "^1.5.1", | ||
"@sapphire/ratelimits": "^1.2.3", | ||
"@sapphire/utilities": "^1.5.3", | ||
"lexure": "^0.17.0", | ||
"tslib": "^2.2.0" | ||
}, | ||
"peerDependencies": { | ||
"discord.js": "12.x" | ||
}, | ||
"devDependencies": { | ||
@@ -48,7 +45,7 @@ "@commitlint/cli": "^12.1.4", | ||
"@mdx-js/mdx": "^1.6.22", | ||
"@sapphire/eslint-config": "^3.1.2", | ||
"@sapphire/prettier-config": "^1.1.1", | ||
"@sapphire/ts-config": "^2.2.1", | ||
"@sapphire/eslint-config": "^3.1.4", | ||
"@sapphire/prettier-config": "^1.1.3", | ||
"@sapphire/ts-config": "^2.2.3", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.6.1", | ||
"@types/node": "^15.12.1", | ||
"@types/ws": "^7.4.4", | ||
@@ -58,16 +55,16 @@ "cz-conventional-changelog": "^3.3.0", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"jest-circus": "^26.6.3", | ||
"jest": "^27.0.4", | ||
"jest-circus": "^27.0.4", | ||
"lint-staged": "^11.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"pretty-quick": "^3.1.0", | ||
"rollup": "^2.47.0", | ||
"rollup": "^2.51.0", | ||
"rollup-plugin-dts": "^3.0.2", | ||
"rollup-plugin-version-injector": "^1.3.3", | ||
"standard-version": "^9.3.0", | ||
"ts-jest": "^26.5.6", | ||
"ts-jest": "^27.0.2", | ||
"ts-node": "^10.0.0", | ||
"typedoc": "^0.20.36", | ||
"typedoc": "^0.21.0-beta.1", | ||
"typedoc-plugin-nojekyll": "^1.0.1", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.3.2" | ||
}, | ||
@@ -74,0 +71,0 @@ "repository": { |
@@ -24,4 +24,2 @@ <div align="center"> | ||
**Much of the code in this repository is inspired and based on the ideas from [klasa].** | ||
## Features | ||
@@ -33,4 +31,18 @@ | ||
- Advanced Plugins Support | ||
- Complete i18n Integration | ||
- Supports many [plugins](https://github.com/sapphiredev/plugins) | ||
## Installation | ||
`@sapphire/framework` depends on the following packages. Be sure to install these along with this package! | ||
- [`discord.js`](https://www.npmjs.com/package/discord.js) | ||
You can use the following command to install this package, or replace `npm install` with your package manager of choice. | ||
```sh | ||
npm install @sapphire/framework discord.js | ||
``` | ||
--- | ||
## API Documentation | ||
@@ -92,2 +104,1 @@ | ||
[discord.js]: https://github.com/discordjs/discord.js | ||
[klasa]: https://github.com/dirigeants/klasa |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
273547
7
4896
102
0
- Removed@discordjs/collection@0.1.6(transitive)
- Removed@discordjs/form-data@3.0.1(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddiscord.js@12.5.3(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedprism-media@1.3.5(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtweetnacl@1.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
- Removedws@7.5.10(transitive)
Updated@sapphire/ratelimits@^1.2.3
Updated@sapphire/utilities@^1.5.3