@sapphire/framework
Advanced tools
Comparing version 2.0.0-next.857eaba3.0 to 2.0.0-next.85bfacb8.0
@@ -1,2 +0,2 @@ | ||
/* Version: 2.0.0-next.857eaba3.0 - June 12, 2021 08:55:33 */ | ||
/* Version: 2.0.0-next.85bfacb8.0 - July 5, 2021 21:17:34 */ | ||
'use strict'; | ||
@@ -47,2 +47,2 @@ | ||
tslib_1.__exportStar(require("./lib/utils/preconditions/PreconditionContainerSingle"), exports); | ||
exports.version = '2.0.0-next.857eaba3.0'; | ||
exports.version = '2.0.0-next.85bfacb8.0'; |
@@ -65,3 +65,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
var _a, _b, _c, _d, _e, _f; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
super(options); | ||
@@ -80,5 +80,8 @@ /** | ||
pieces_1.container.logger = this.logger; | ||
if ((_e = options.enableLoaderTraceLoggings) !== null && _e !== void 0 ? _e : pieces_1.container.logger.has(10 /* Trace */)) { | ||
pieces_1.Store.logger = pieces_1.container.logger.trace.bind(pieces_1.container.logger); | ||
} | ||
this.stores = new StoreRegistry_1.StoreRegistry(); | ||
pieces_1.container.stores = this.stores; | ||
this.fetchPrefix = (_e = options.fetchPrefix) !== null && _e !== void 0 ? _e : (() => { var _a; return (_a = this.options.defaultPrefix) !== null && _a !== void 0 ? _a : null; }); | ||
this.fetchPrefix = (_f = options.fetchPrefix) !== null && _f !== void 0 ? _f : (() => { var _a; return (_a = this.options.defaultPrefix) !== null && _a !== void 0 ? _a : null; }); | ||
for (const plugin of SapphireClient.plugins.values("preInitialization" /* PreInitialization */)) { | ||
@@ -88,3 +91,3 @@ plugin.hook.call(this, options); | ||
} | ||
this.id = (_f = options.id) !== null && _f !== void 0 ? _f : null; | ||
this.id = (_g = options.id) !== null && _g !== void 0 ? _g : null; | ||
this.stores | ||
@@ -91,0 +94,0 @@ .register(new ArgumentStore_1.ArgumentStore().registerPath(path_1.join(__dirname, '..', 'arguments'))) // |
@@ -9,2 +9,5 @@ "use strict"; | ||
} | ||
has(level) { | ||
return level >= this.level; | ||
} | ||
trace(...values) { | ||
@@ -29,3 +32,3 @@ this.write(10 /* Trace */, ...values); | ||
write(level, ...values) { | ||
if (level < this.level) | ||
if (!this.has(level)) | ||
return; | ||
@@ -32,0 +35,0 @@ const method = Logger.levels.get(level); |
{ | ||
"name": "@sapphire/framework", | ||
"version": "2.0.0-next.857eaba3.0", | ||
"version": "2.0.0-next.85bfacb8.0", | ||
"description": "Discord bot framework built on top of @sapphire/lib for advanced and amazing bots.", | ||
@@ -17,9 +17,4 @@ "main": "dist/index.js", | ||
"update": "yarn upgrade-interactive --latest", | ||
"build": "run-s build:tsc", | ||
"build:cleanup": "node scripts/clean-dist.mjs", | ||
"build:tsc": "tsc -b src", | ||
"build:rollup-bundle": "rollup -c scripts/rollup.bundle.ts", | ||
"build:rollup-types": "rollup -c scripts/rollup.types.ts", | ||
"build:clean-extraneous-types": "node scripts/clean-extraneous-types.mjs", | ||
"clean": "yarn build:cleanup", | ||
"clean": "node scripts/clean-dist.mjs", | ||
"build": "tsc -b src && rollup -c scripts/rollup.bundle.ts", | ||
"watch": "tsc -b src -w", | ||
@@ -29,13 +24,13 @@ "sversion": "standard-version", | ||
"cz": "git-cz", | ||
"prepublishOnly": "run-s build:**", | ||
"prepublishOnly": "rollup-type-bundler -e url events", | ||
"prepare": "husky install .github/husky" | ||
}, | ||
"dependencies": { | ||
"@sapphire/discord-utilities": "^2.1.3", | ||
"@sapphire/discord.js-utilities": "^1.5.9", | ||
"@sapphire/pieces": "^2.0.0", | ||
"@sapphire/ratelimits": "^1.2.3", | ||
"@sapphire/utilities": "^1.5.3", | ||
"@sapphire/discord-utilities": "^2.1.5", | ||
"@sapphire/discord.js-utilities": "^1.6.0", | ||
"@sapphire/pieces": "~2.0.0", | ||
"@sapphire/ratelimits": "^1.2.5", | ||
"@sapphire/utilities": "^1.6.1", | ||
"lexure": "^0.17.0", | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
}, | ||
@@ -45,26 +40,24 @@ "devDependencies": { | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@mdx-js/mdx": "^1.6.22", | ||
"@sapphire/eslint-config": "^3.1.4", | ||
"@sapphire/prettier-config": "^1.1.3", | ||
"@sapphire/ts-config": "^2.2.3", | ||
"@favware/rollup-type-bundler": "^1.0.2", | ||
"@sapphire/eslint-config": "^3.2.1", | ||
"@sapphire/prettier-config": "^1.1.6", | ||
"@sapphire/ts-config": "^2.3.1", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.12.1", | ||
"@types/ws": "^7.4.4", | ||
"@types/node": "^16.0.0", | ||
"@types/ws": "^7.4.6", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"discord.js": "^12.5.3", | ||
"husky": "^6.0.0", | ||
"jest": "^27.0.4", | ||
"jest-circus": "^27.0.4", | ||
"husky": "^7.0.0", | ||
"jest": "^27.0.6", | ||
"jest-circus": "^27.0.6", | ||
"lint-staged": "^11.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"pretty-quick": "^3.1.0", | ||
"rollup": "^2.51.0", | ||
"rollup-plugin-dts": "^3.0.2", | ||
"pretty-quick": "^3.1.1", | ||
"rollup": "^2.52.7", | ||
"rollup-plugin-version-injector": "^1.3.3", | ||
"standard-version": "^9.3.0", | ||
"ts-jest": "^27.0.2", | ||
"ts-jest": "^27.0.3", | ||
"ts-node": "^10.0.0", | ||
"typedoc": "^0.21.0-beta.1", | ||
"typedoc": "^0.21.2", | ||
"typedoc-plugin-nojekyll": "^1.0.1", | ||
"typescript": "^4.3.2" | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -113,3 +106,3 @@ "repository": { | ||
"resolutions": { | ||
"acorn": "^8.2.4", | ||
"acorn": "^8.4.0", | ||
"minimist": "^1.2.5", | ||
@@ -121,3 +114,3 @@ "kind-of": "^6.0.3", | ||
"lodash": "^4.17.21", | ||
"marked": "^2.0.3", | ||
"marked": "^2.1.1", | ||
"merge": "^2.1.1", | ||
@@ -124,0 +117,0 @@ "trim": "^1.0.1", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
275180
24
4916
+ Added@discordjs/collection@0.1.6(transitive)
+ Added@sapphire/pieces@2.0.0(transitive)
- Removed@discordjs/collection@0.2.4(transitive)
- Removed@sapphire/pieces@2.2.0(transitive)
- Removed@sapphire/utilities@2.0.1(transitive)
Updated@sapphire/pieces@~2.0.0
Updated@sapphire/ratelimits@^1.2.5
Updated@sapphire/utilities@^1.6.1
Updatedtslib@^2.3.0