@sapphire/pieces 4.2.3-next.463a170.0 → 4.2.3-next.6370cbf.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/dist/cjs/index.d.cts
CHANGED
|
@@ -793,7 +793,7 @@ interface Container {
|
|
|
793
793
|
*
|
|
794
794
|
* // In any piece, core, plugin, or custom:
|
|
795
795
|
* export class UserCommand extends Command {
|
|
796
|
-
* public
|
|
796
|
+
* public messageRun(message, args) {
|
|
797
797
|
* // The injected version is available here:
|
|
798
798
|
* const { version } = this.container;
|
|
799
799
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/shared/Container.ts"],"names":[],"mappings":";AAAA,SAAS,qBAAqB;AA6EvB,IAAM,YAAuB;AAAA,EACnC,QAAQ,IAAI,cAAc;AAC3B","sourcesContent":["import { StoreRegistry } from '../structures/StoreRegistry';\n\n/**\n * Represents the type of the properties injected into the container, which is available at {@link container}.\n *\n * Because Sapphire works as a standalone framework (independent of external libraries), there is a need to pass data\n * from one place to another, which would vary depending on the user and their use-cases.\n *\n * Furthermore, plugins may use this structure to add properties referencing to the plugin's objects so they can be\n * accessed by both the user and the plugin at any moment and at any place.\n *\n * Finally, both library developers and bot developers should augment the Container interface from this module using\n * [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation).\n */\nexport interface Container {\n\tstores: StoreRegistry;\n}\n\n/**\n * The injected variables that will be accessible to any place. To add an extra property, simply add a property with a\n * regular assignment, and it will be available in all places simultaneously.\n *\n * @example\n * ```typescript\n * // Add a reference for the version:\n * import { container } from '@sapphire/pieces';\n *\n * container.version = '1.0.0';\n *\n * // Can be placed anywhere in a TypeScript file, for JavaScript projects,\n * // you can create an `augments.d.ts` and place the code there.\n * declare module '@sapphire/pieces' {\n * interface Container {\n * version: string;\n * }\n * }\n *\n * // In any piece, core, plugin, or custom:\n * export class UserCommand extends Command {\n * public
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/shared/Container.ts"],"names":[],"mappings":";AAAA,SAAS,qBAAqB;AA6EvB,IAAM,YAAuB;AAAA,EACnC,QAAQ,IAAI,cAAc;AAC3B","sourcesContent":["import { StoreRegistry } from '../structures/StoreRegistry';\n\n/**\n * Represents the type of the properties injected into the container, which is available at {@link container}.\n *\n * Because Sapphire works as a standalone framework (independent of external libraries), there is a need to pass data\n * from one place to another, which would vary depending on the user and their use-cases.\n *\n * Furthermore, plugins may use this structure to add properties referencing to the plugin's objects so they can be\n * accessed by both the user and the plugin at any moment and at any place.\n *\n * Finally, both library developers and bot developers should augment the Container interface from this module using\n * [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation).\n */\nexport interface Container {\n\tstores: StoreRegistry;\n}\n\n/**\n * The injected variables that will be accessible to any place. To add an extra property, simply add a property with a\n * regular assignment, and it will be available in all places simultaneously.\n *\n * @example\n * ```typescript\n * // Add a reference for the version:\n * import { container } from '@sapphire/pieces';\n *\n * container.version = '1.0.0';\n *\n * // Can be placed anywhere in a TypeScript file, for JavaScript projects,\n * // you can create an `augments.d.ts` and place the code there.\n * declare module '@sapphire/pieces' {\n * interface Container {\n * version: string;\n * }\n * }\n *\n * // In any piece, core, plugin, or custom:\n * export class UserCommand extends Command {\n * public messageRun(message, args) {\n * // The injected version is available here:\n * const { version } = this.container;\n *\n * // ...\n * }\n * }\n * ```\n *\n * @example\n * ```typescript\n * // In a plugin's context, e.g. API:\n * class Api extends Plugin {\n * static [postInitialization]() {\n * const server = new Server(this);\n * container.server = server;\n *\n * // ...\n * }\n * }\n *\n * declare module '@sapphire/pieces' {\n * interface Container {\n * server: Server;\n * }\n * }\n *\n * // In any piece, even those that aren't routes nor middlewares:\n * export class UserRoute extends Route {\n * public [methods.POST](message, args) {\n * // The injected server is available here:\n * const { server } = this.container;\n *\n * // ...\n * }\n * }\n * ```\n */\nexport const container: Container = {\n\tstores: new StoreRegistry()\n};\n"]}
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -793,7 +793,7 @@ interface Container {
|
|
|
793
793
|
*
|
|
794
794
|
* // In any piece, core, plugin, or custom:
|
|
795
795
|
* export class UserCommand extends Command {
|
|
796
|
-
* public
|
|
796
|
+
* public messageRun(message, args) {
|
|
797
797
|
* // The injected version is available here:
|
|
798
798
|
* const { version } = this.container;
|
|
799
799
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/shared/Container.ts"],"names":[],"mappings":";;;AAAA,SAAS,qBAAqB;AA6EvB,IAAM,YAAuB;AAAA,EACnC,QAAQ,IAAI,cAAc;AAC3B","sourcesContent":["import { StoreRegistry } from '../structures/StoreRegistry';\n\n/**\n * Represents the type of the properties injected into the container, which is available at {@link container}.\n *\n * Because Sapphire works as a standalone framework (independent of external libraries), there is a need to pass data\n * from one place to another, which would vary depending on the user and their use-cases.\n *\n * Furthermore, plugins may use this structure to add properties referencing to the plugin's objects so they can be\n * accessed by both the user and the plugin at any moment and at any place.\n *\n * Finally, both library developers and bot developers should augment the Container interface from this module using\n * [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation).\n */\nexport interface Container {\n\tstores: StoreRegistry;\n}\n\n/**\n * The injected variables that will be accessible to any place. To add an extra property, simply add a property with a\n * regular assignment, and it will be available in all places simultaneously.\n *\n * @example\n * ```typescript\n * // Add a reference for the version:\n * import { container } from '@sapphire/pieces';\n *\n * container.version = '1.0.0';\n *\n * // Can be placed anywhere in a TypeScript file, for JavaScript projects,\n * // you can create an `augments.d.ts` and place the code there.\n * declare module '@sapphire/pieces' {\n * interface Container {\n * version: string;\n * }\n * }\n *\n * // In any piece, core, plugin, or custom:\n * export class UserCommand extends Command {\n * public
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/shared/Container.ts"],"names":[],"mappings":";;;AAAA,SAAS,qBAAqB;AA6EvB,IAAM,YAAuB;AAAA,EACnC,QAAQ,IAAI,cAAc;AAC3B","sourcesContent":["import { StoreRegistry } from '../structures/StoreRegistry';\n\n/**\n * Represents the type of the properties injected into the container, which is available at {@link container}.\n *\n * Because Sapphire works as a standalone framework (independent of external libraries), there is a need to pass data\n * from one place to another, which would vary depending on the user and their use-cases.\n *\n * Furthermore, plugins may use this structure to add properties referencing to the plugin's objects so they can be\n * accessed by both the user and the plugin at any moment and at any place.\n *\n * Finally, both library developers and bot developers should augment the Container interface from this module using\n * [module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation).\n */\nexport interface Container {\n\tstores: StoreRegistry;\n}\n\n/**\n * The injected variables that will be accessible to any place. To add an extra property, simply add a property with a\n * regular assignment, and it will be available in all places simultaneously.\n *\n * @example\n * ```typescript\n * // Add a reference for the version:\n * import { container } from '@sapphire/pieces';\n *\n * container.version = '1.0.0';\n *\n * // Can be placed anywhere in a TypeScript file, for JavaScript projects,\n * // you can create an `augments.d.ts` and place the code there.\n * declare module '@sapphire/pieces' {\n * interface Container {\n * version: string;\n * }\n * }\n *\n * // In any piece, core, plugin, or custom:\n * export class UserCommand extends Command {\n * public messageRun(message, args) {\n * // The injected version is available here:\n * const { version } = this.container;\n *\n * // ...\n * }\n * }\n * ```\n *\n * @example\n * ```typescript\n * // In a plugin's context, e.g. API:\n * class Api extends Plugin {\n * static [postInitialization]() {\n * const server = new Server(this);\n * container.server = server;\n *\n * // ...\n * }\n * }\n *\n * declare module '@sapphire/pieces' {\n * interface Container {\n * server: Server;\n * }\n * }\n *\n * // In any piece, even those that aren't routes nor middlewares:\n * export class UserRoute extends Route {\n * public [methods.POST](message, args) {\n * // The injected server is available here:\n * const { server } = this.container;\n *\n * // ...\n * }\n * }\n * ```\n */\nexport const container: Container = {\n\tstores: new StoreRegistry()\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/pieces",
|
|
3
|
-
"version": "4.2.3-next.
|
|
3
|
+
"version": "4.2.3-next.6370cbf.0",
|
|
4
4
|
"description": "Sapphire's piece loader.",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"tslib": "^2.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@commitlint/cli": "^
|
|
43
|
-
"@commitlint/config-conventional": "^
|
|
44
|
-
"@favware/cliff-jumper": "^
|
|
42
|
+
"@commitlint/cli": "^19.2.1",
|
|
43
|
+
"@commitlint/config-conventional": "^19.1.0",
|
|
44
|
+
"@favware/cliff-jumper": "^3.0.2",
|
|
45
45
|
"@favware/npm-deprecate": "^1.0.7",
|
|
46
46
|
"@favware/rollup-type-bundler": "^3.3.0",
|
|
47
|
-
"@sapphire/eslint-config": "^5.0.
|
|
47
|
+
"@sapphire/eslint-config": "^5.0.4",
|
|
48
48
|
"@sapphire/prettier-config": "^2.0.0",
|
|
49
|
-
"@sapphire/ts-config": "^5.0.
|
|
50
|
-
"@types/node": "^20.
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
52
|
-
"@typescript-eslint/parser": "^7.
|
|
49
|
+
"@sapphire/ts-config": "^5.0.1",
|
|
50
|
+
"@types/node": "^20.12.7",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
52
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
53
53
|
"concurrently": "^8.2.2",
|
|
54
54
|
"cz-conventional-changelog": "^3.3.0",
|
|
55
55
|
"esbuild-plugin-file-path-extensions": "^2.0.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"prettier": "^3.2.5",
|
|
61
61
|
"rimraf": "^5.0.5",
|
|
62
62
|
"tsup": "^8.0.2",
|
|
63
|
-
"typedoc": "^0.25.
|
|
63
|
+
"typedoc": "^0.25.13",
|
|
64
64
|
"typedoc-json-parser": "^9.0.1",
|
|
65
|
-
"typescript": "^5.
|
|
66
|
-
"vitest": "^1.
|
|
65
|
+
"typescript": "^5.4.5",
|
|
66
|
+
"vitest": "^1.5.0"
|
|
67
67
|
},
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"minimist": "^1.2.8"
|
|
113
113
|
},
|
|
114
114
|
"prettier": "@sapphire/prettier-config",
|
|
115
|
-
"packageManager": "yarn@4.1.
|
|
115
|
+
"packageManager": "yarn@4.1.1"
|
|
116
116
|
}
|