@sapphire/plugin-utilities-store 2.0.4-next.d23894e → 2.0.4-next.d3f4329

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.
@@ -5,7 +5,7 @@ var UtilitiesStore_cjs = require('./lib/UtilitiesStore.cjs');
5
5
  var Utility_cjs = require('./lib/Utility.cjs');
6
6
 
7
7
  // src/index.ts
8
- var version = "2.0.4-next.d23894e";
8
+ var version = "2.0.4-next.d3f4329";
9
9
 
10
10
  exports.version = version;
11
11
  Object.keys(Utilities_cjs).forEach(function (k) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;AA8BO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["import type { Utilities } from './lib/Utilities';\nimport type { UtilitiesStore } from './lib/UtilitiesStore';\n\nexport * from './lib/Utilities';\nexport * from './lib/UtilitiesStore';\nexport * from './lib/Utility';\n\ndeclare module 'discord.js' {\n\texport interface Client {\n\t\tutilities: Utilities;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\tutilities: UtilitiesStore;\n\t}\n\n\tinterface Container {\n\t\tutilities: Utilities;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-utilities-store](https://github.com/sapphiredev/plugins/blob/main/packages/utilities-store) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '2.0.4-next.d23894e';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;AA8BO,IAAM,OAAA,GAAkB","file":"index.cjs","sourcesContent":["import type { Utilities } from './lib/Utilities';\nimport type { UtilitiesStore } from './lib/UtilitiesStore';\n\nexport * from './lib/Utilities';\nexport * from './lib/UtilitiesStore';\nexport * from './lib/Utility';\n\ndeclare module 'discord.js' {\n\texport interface Client {\n\t\tutilities: Utilities;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\tutilities: UtilitiesStore;\n\t}\n\n\tinterface Container {\n\t\tutilities: Utilities;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-utilities-store](https://github.com/sapphiredev/plugins/blob/main/packages/utilities-store) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '2.0.4-next.d3f4329';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":["container","UtilitiesStore"],"mappings":";;;;;;;;;AAOO,IAAM,UAAA,GAAN,MAAM,UAAU,CAAA;AAAA;AAAA;AAAA;AAAA,EAUf,WAAc,GAAA;AALrB;AAAA;AAAA;AAAA;AAAA,IAAgB,aAAA,CAAA,IAAA,EAAA,OAAA,CAAA;AAMf,IAAAA,gBAAA,CAAU,SAAY,GAAA,IAAA;AACtB,IAAK,IAAA,CAAA,KAAA,GAAQ,IAAIC,iCAAe,EAAA;AAAA;AACjC;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,WAAA,CAAY,MAAc,KAAgB,EAAA;AAEhD,IAAA,IAAA,CAAK,IAAI,CAAI,GAAA,KAAA;AAAA;AAEf,CAAA;AAxBuB,MAAA,CAAA,UAAA,EAAA,WAAA,CAAA;AAAhB,IAAM,SAAN,GAAA","file":"Utilities.cjs","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { UtilitiesStore } from './UtilitiesStore';\nimport type { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class Utilities {\n\t/**\n\t * The utilities this store holds.\n\t * @since 1.0.0\n\t */\n\tpublic readonly store: UtilitiesStore;\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic constructor() {\n\t\tcontainer.utilities = this;\n\t\tthis.store = new UtilitiesStore();\n\t}\n\n\t/**\n\t * Registers a piece on this class.\n\t * @param name The name of the piece to register on this class\n\t * @param piece The piece to register on this class\n\t */\n\tpublic exposePiece(name: string, piece: Utility) {\n\t\t// @ts-ignore Bypass TypeScript check for dynamic property assignment\n\t\tthis[name] = piece;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":["container","UtilitiesStore"],"mappings":";;;;;;;;;AAOO,IAAM,UAAA,GAAN,MAAM,UAAA,CAAU;AAAA;AAAA;AAAA;AAAA,EAUf,WAAA,GAAc;AALrB;AAAA;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAMf,IAAAA,gBAAA,CAAU,SAAA,GAAY,IAAA;AACtB,IAAA,IAAA,CAAK,KAAA,GAAQ,IAAIC,iCAAA,EAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,WAAA,CAAY,MAAc,KAAA,EAAgB;AAEhD,IAAA,IAAA,CAAK,IAAI,CAAA,GAAI,KAAA;AAAA,EACd;AACD,CAAA;AAxBuB,MAAA,CAAA,UAAA,EAAA,WAAA,CAAA;AAAhB,IAAM,SAAA,GAAN","file":"Utilities.cjs","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { UtilitiesStore } from './UtilitiesStore';\nimport type { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class Utilities {\n\t/**\n\t * The utilities this store holds.\n\t * @since 1.0.0\n\t */\n\tpublic readonly store: UtilitiesStore;\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic constructor() {\n\t\tcontainer.utilities = this;\n\t\tthis.store = new UtilitiesStore();\n\t}\n\n\t/**\n\t * Registers a piece on this class.\n\t * @param name The name of the piece to register on this class\n\t * @param piece The piece to register on this class\n\t */\n\tpublic exposePiece(name: string, piece: Utility) {\n\t\t// @ts-ignore Bypass TypeScript check for dynamic property assignment\n\t\tthis[name] = piece;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/UtilitiesStore.ts"],"names":["Store","Utility"],"mappings":";;;;;;;AAMO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuBA,YAA4B,CAAA;AAAA,EACxD,WAAc,GAAA;AACpB,IAAA,KAAA,CAAMC,mBAAS,EAAA,EAAE,IAAM,EAAA,WAAA,EAAa,CAAA;AAAA;AAEtC,CAAA;AAJgE,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAzD,IAAM,cAAN,GAAA","file":"UtilitiesStore.cjs","sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesStore extends Store<Utility, 'utilities'> {\n\tpublic constructor() {\n\t\tsuper(Utility, { name: 'utilities' });\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/UtilitiesStore.ts"],"names":["Store","Utility"],"mappings":";;;;;;;AAMO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuBA,YAAA,CAA4B;AAAA,EACxD,WAAA,GAAc;AACpB,IAAA,KAAA,CAAMC,mBAAA,EAAS,EAAE,IAAA,EAAM,WAAA,EAAa,CAAA;AAAA,EACrC;AACD,CAAA;AAJgE,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAzD,IAAM,cAAA,GAAN","file":"UtilitiesStore.cjs","sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesStore extends Store<Utility, 'utilities'> {\n\tpublic constructor() {\n\t\tsuper(Utility, { name: 'utilities' });\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utility.ts"],"names":["Piece"],"mappings":";;;;;;AAKO,IAAe,QAAA,GAAf,MAAe,QAAA,SAAmEA,YAA4B,CAAA;AAAC,CAAA;AAAD,MAAA,CAAA,QAAA,EAAA,SAAA,CAAA;AAA9G,IAAe,OAAf,GAAA","file":"Utility.cjs","sourcesContent":["import { Piece } from '@sapphire/pieces';\n\n/**\n * @since 1.0.0\n */\nexport abstract class Utility<Options extends Utility.Options = Utility.Options> extends Piece<Options, 'utilities'> {}\n\nexport namespace Utility {\n\t/** @deprecated Use {@linkcode LoaderContext} instead. */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'utilities'>;\n\texport type Options = Piece.Options;\n\texport type JSON = Piece.JSON;\n\texport type LocationJSON = Piece.LocationJSON;\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/Utility.ts"],"names":["Piece"],"mappings":";;;;;;AAKO,IAAe,QAAA,GAAf,MAAe,QAAA,SAAmEA,YAAA,CAA4B;AAAC,CAAA;AAAD,MAAA,CAAA,QAAA,EAAA,SAAA,CAAA;AAA9G,IAAe,OAAA,GAAf","file":"Utility.cjs","sourcesContent":["import { Piece } from '@sapphire/pieces';\n\n/**\n * @since 1.0.0\n */\nexport abstract class Utility<Options extends Utility.Options = Utility.Options> extends Piece<Options, 'utilities'> {}\n\nexport namespace Utility {\n\t/** @deprecated Use {@linkcode LoaderContext} instead. */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'utilities'>;\n\texport type Options = Piece.Options;\n\texport type JSON = Piece.JSON;\n\texport type LocationJSON = Piece.LocationJSON;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preInitialization","Utilities","postLogin","SapphireClient"],"mappings":";;;;;;;AAQO,IAAM,gBAAA,GAAN,MAAM,gBAAA,SAAwBA,gBAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAeC,2BAAiB,CAA8B,GAAA;AAC7D,IAAK,IAAA,CAAA,SAAA,GAAY,IAAIC,mBAAU,EAAA;AAC/B,IAAA,IAAA,CAAK,MAAO,CAAA,QAAA,CAAS,IAAK,CAAA,SAAA,CAAU,KAAK,CAAA;AAAA;AAC1C;AAAA;AAAA;AAAA,EAKA,QAAeC,mBAAS,CAA8B,GAAA;AACrD,IAAM,MAAA,MAAA,GAAS,KAAK,SAAU,CAAA,KAAA;AAE9B,IAAA,KAAA,MAAW,CAAC,IAAM,EAAA,KAAK,CAAK,IAAA,MAAA,CAAO,SAAW,EAAA;AAC7C,MAAK,IAAA,CAAA,SAAA,CAAU,WAAY,CAAA,IAAA,EAAM,KAAK,CAAA;AAAA;AACvC;AAEF,CAAA;AAnB4C,MAAA,CAAA,gBAAA,EAAA,iBAAA,CAAA;AAArC,IAAM,eAAN,GAAA;AAqBPC,wBAAA,CAAe,OAAQ,CAAA,6BAAA,CAA8B,eAAgB,CAAAH,2BAAiB,GAAG,kCAAkC,CAAA;AAC3HG,wBAAA,CAAe,OAAQ,CAAA,qBAAA,CAAsB,eAAgB,CAAAD,mBAAS,GAAG,0BAA0B,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';\nimport { Utilities } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preInitialization](this: SapphireClient): void {\n\t\tthis.utilities = new Utilities();\n\t\tthis.stores.register(this.utilities.store);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tconst pieces = this.utilities.store;\n\n\t\tfor (const [name, piece] of pieces.entries()) {\n\t\t\tthis.utilities.exposePiece(name, piece);\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPreInitializationHook(UtilitiesPlugin[preInitialization], 'UtilitiesStore-PreInitialization');\nSapphireClient.plugins.registerPostLoginHook(UtilitiesPlugin[postLogin], 'UtilitiesStore-PostLogin');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","preInitialization","Utilities","postLogin","SapphireClient"],"mappings":";;;;;;;AAQO,IAAM,gBAAA,GAAN,MAAM,gBAAA,SAAwBA,gBAAA,CAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAeC,2BAAiB,CAAA,GAA8B;AAC7D,IAAA,IAAA,CAAK,SAAA,GAAY,IAAIC,mBAAA,EAAU;AAC/B,IAAA,IAAA,CAAK,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAeC,mBAAS,CAAA,GAA8B;AACrD,IAAA,MAAM,MAAA,GAAS,KAAK,SAAA,CAAU,KAAA;AAE9B,IAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,MAAA,CAAO,SAAQ,EAAG;AAC7C,MAAA,IAAA,CAAK,SAAA,CAAU,WAAA,CAAY,IAAA,EAAM,KAAK,CAAA;AAAA,IACvC;AAAA,EACD;AACD,CAAA;AAnB4C,MAAA,CAAA,gBAAA,EAAA,iBAAA,CAAA;AAArC,IAAM,eAAA,GAAN;AAqBPC,wBAAA,CAAe,OAAA,CAAQ,6BAAA,CAA8B,eAAA,CAAgBH,2BAAiB,GAAG,kCAAkC,CAAA;AAC3HG,wBAAA,CAAe,OAAA,CAAQ,qBAAA,CAAsB,eAAA,CAAgBD,mBAAS,GAAG,0BAA0B,CAAA","file":"register.cjs","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';\nimport { Utilities } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preInitialization](this: SapphireClient): void {\n\t\tthis.utilities = new Utilities();\n\t\tthis.stores.register(this.utilities.store);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tconst pieces = this.utilities.store;\n\n\t\tfor (const [name, piece] of pieces.entries()) {\n\t\t\tthis.utilities.exposePiece(name, piece);\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPreInitializationHook(UtilitiesPlugin[preInitialization], 'UtilitiesStore-PreInitialization');\nSapphireClient.plugins.registerPostLoginHook(UtilitiesPlugin[postLogin], 'UtilitiesStore-PostLogin');\n"]}
@@ -3,7 +3,7 @@ export * from './lib/Utilities.mjs';
3
3
  export * from './lib/UtilitiesStore.mjs';
4
4
  export * from './lib/Utility.mjs';
5
5
 
6
- var version = "2.0.4-next.d23894e";
6
+ var version = "2.0.4-next.d3f4329";
7
7
 
8
8
  export { version };
9
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AA8BO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["import type { Utilities } from './lib/Utilities';\nimport type { UtilitiesStore } from './lib/UtilitiesStore';\n\nexport * from './lib/Utilities';\nexport * from './lib/UtilitiesStore';\nexport * from './lib/Utility';\n\ndeclare module 'discord.js' {\n\texport interface Client {\n\t\tutilities: Utilities;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\tutilities: UtilitiesStore;\n\t}\n\n\tinterface Container {\n\t\tutilities: Utilities;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-utilities-store](https://github.com/sapphiredev/plugins/blob/main/packages/utilities-store) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '2.0.4-next.d23894e';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AA8BO,IAAM,OAAA,GAAkB","file":"index.mjs","sourcesContent":["import type { Utilities } from './lib/Utilities';\nimport type { UtilitiesStore } from './lib/UtilitiesStore';\n\nexport * from './lib/Utilities';\nexport * from './lib/UtilitiesStore';\nexport * from './lib/Utility';\n\ndeclare module 'discord.js' {\n\texport interface Client {\n\t\tutilities: Utilities;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\tutilities: UtilitiesStore;\n\t}\n\n\tinterface Container {\n\t\tutilities: Utilities;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-utilities-store](https://github.com/sapphiredev/plugins/blob/main/packages/utilities-store) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '2.0.4-next.d3f4329';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":[],"mappings":";;;;AAOO,IAAM,UAAA,GAAN,MAAM,UAAU,CAAA;AAAA;AAAA;AAAA;AAAA,EAUf,WAAc,GAAA;AALrB;AAAA;AAAA;AAAA;AAAA,IAAgB,aAAA,CAAA,IAAA,EAAA,OAAA,CAAA;AAMf,IAAA,SAAA,CAAU,SAAY,GAAA,IAAA;AACtB,IAAK,IAAA,CAAA,KAAA,GAAQ,IAAI,cAAe,EAAA;AAAA;AACjC;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,WAAA,CAAY,MAAc,KAAgB,EAAA;AAEhD,IAAA,IAAA,CAAK,IAAI,CAAI,GAAA,KAAA;AAAA;AAEf,CAAA;AAxBuB,MAAA,CAAA,UAAA,EAAA,WAAA,CAAA;AAAhB,IAAM,SAAN,GAAA","file":"Utilities.mjs","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { UtilitiesStore } from './UtilitiesStore';\nimport type { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class Utilities {\n\t/**\n\t * The utilities this store holds.\n\t * @since 1.0.0\n\t */\n\tpublic readonly store: UtilitiesStore;\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic constructor() {\n\t\tcontainer.utilities = this;\n\t\tthis.store = new UtilitiesStore();\n\t}\n\n\t/**\n\t * Registers a piece on this class.\n\t * @param name The name of the piece to register on this class\n\t * @param piece The piece to register on this class\n\t */\n\tpublic exposePiece(name: string, piece: Utility) {\n\t\t// @ts-ignore Bypass TypeScript check for dynamic property assignment\n\t\tthis[name] = piece;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":[],"mappings":";;;;AAOO,IAAM,UAAA,GAAN,MAAM,UAAA,CAAU;AAAA;AAAA;AAAA;AAAA,EAUf,WAAA,GAAc;AALrB;AAAA;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAMf,IAAA,SAAA,CAAU,SAAA,GAAY,IAAA;AACtB,IAAA,IAAA,CAAK,KAAA,GAAQ,IAAI,cAAA,EAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,WAAA,CAAY,MAAc,KAAA,EAAgB;AAEhD,IAAA,IAAA,CAAK,IAAI,CAAA,GAAI,KAAA;AAAA,EACd;AACD,CAAA;AAxBuB,MAAA,CAAA,UAAA,EAAA,WAAA,CAAA;AAAhB,IAAM,SAAA,GAAN","file":"Utilities.mjs","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { UtilitiesStore } from './UtilitiesStore';\nimport type { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class Utilities {\n\t/**\n\t * The utilities this store holds.\n\t * @since 1.0.0\n\t */\n\tpublic readonly store: UtilitiesStore;\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic constructor() {\n\t\tcontainer.utilities = this;\n\t\tthis.store = new UtilitiesStore();\n\t}\n\n\t/**\n\t * Registers a piece on this class.\n\t * @param name The name of the piece to register on this class\n\t * @param piece The piece to register on this class\n\t */\n\tpublic exposePiece(name: string, piece: Utility) {\n\t\t// @ts-ignore Bypass TypeScript check for dynamic property assignment\n\t\tthis[name] = piece;\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":";;;;AAMO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuB,KAA4B,CAAA;AAAA,EACxD,WAAc,GAAA;AACpB,IAAA,KAAA,CAAM,OAAS,EAAA,EAAE,IAAM,EAAA,WAAA,EAAa,CAAA;AAAA;AAEtC,CAAA;AAJgE,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAzD,IAAM,cAAN,GAAA","file":"UtilitiesStore.mjs","sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesStore extends Store<Utility, 'utilities'> {\n\tpublic constructor() {\n\t\tsuper(Utility, { name: 'utilities' });\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":";;;;AAMO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuB,KAAA,CAA4B;AAAA,EACxD,WAAA,GAAc;AACpB,IAAA,KAAA,CAAM,OAAA,EAAS,EAAE,IAAA,EAAM,WAAA,EAAa,CAAA;AAAA,EACrC;AACD,CAAA;AAJgE,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAzD,IAAM,cAAA,GAAN","file":"UtilitiesStore.mjs","sourcesContent":["import { Store } from '@sapphire/pieces';\nimport { Utility } from './Utility';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesStore extends Store<Utility, 'utilities'> {\n\tpublic constructor() {\n\t\tsuper(Utility, { name: 'utilities' });\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utility.ts"],"names":[],"mappings":";;;AAKO,IAAe,QAAA,GAAf,MAAe,QAAA,SAAmE,KAA4B,CAAA;AAAC,CAAA;AAAD,MAAA,CAAA,QAAA,EAAA,SAAA,CAAA;AAA9G,IAAe,OAAf,GAAA","file":"Utility.mjs","sourcesContent":["import { Piece } from '@sapphire/pieces';\n\n/**\n * @since 1.0.0\n */\nexport abstract class Utility<Options extends Utility.Options = Utility.Options> extends Piece<Options, 'utilities'> {}\n\nexport namespace Utility {\n\t/** @deprecated Use {@linkcode LoaderContext} instead. */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'utilities'>;\n\texport type Options = Piece.Options;\n\texport type JSON = Piece.JSON;\n\texport type LocationJSON = Piece.LocationJSON;\n}\n"]}
1
+ {"version":3,"sources":["../../../src/lib/Utility.ts"],"names":[],"mappings":";;;AAKO,IAAe,QAAA,GAAf,MAAe,QAAA,SAAmE,KAAA,CAA4B;AAAC,CAAA;AAAD,MAAA,CAAA,QAAA,EAAA,SAAA,CAAA;AAA9G,IAAe,OAAA,GAAf","file":"Utility.mjs","sourcesContent":["import { Piece } from '@sapphire/pieces';\n\n/**\n * @since 1.0.0\n */\nexport abstract class Utility<Options extends Utility.Options = Utility.Options> extends Piece<Options, 'utilities'> {}\n\nexport namespace Utility {\n\t/** @deprecated Use {@linkcode LoaderContext} instead. */\n\texport type Context = LoaderContext;\n\texport type LoaderContext = Piece.LoaderContext<'utilities'>;\n\texport type Options = Piece.Options;\n\texport type JSON = Piece.JSON;\n\texport type LocationJSON = Piece.LocationJSON;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAQO,IAAM,gBAAA,GAAN,MAAM,gBAAA,SAAwB,MAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,CAA8B,GAAA;AAC7D,IAAK,IAAA,CAAA,SAAA,GAAY,IAAI,SAAU,EAAA;AAC/B,IAAA,IAAA,CAAK,MAAO,CAAA,QAAA,CAAS,IAAK,CAAA,SAAA,CAAU,KAAK,CAAA;AAAA;AAC1C;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,CAA8B,GAAA;AACrD,IAAM,MAAA,MAAA,GAAS,KAAK,SAAU,CAAA,KAAA;AAE9B,IAAA,KAAA,MAAW,CAAC,IAAM,EAAA,KAAK,CAAK,IAAA,MAAA,CAAO,SAAW,EAAA;AAC7C,MAAK,IAAA,CAAA,SAAA,CAAU,WAAY,CAAA,IAAA,EAAM,KAAK,CAAA;AAAA;AACvC;AAEF,CAAA;AAnB4C,MAAA,CAAA,gBAAA,EAAA,iBAAA,CAAA;AAArC,IAAM,eAAN,GAAA;AAqBP,cAAA,CAAe,OAAQ,CAAA,6BAAA,CAA8B,eAAgB,CAAA,iBAAiB,GAAG,kCAAkC,CAAA;AAC3H,cAAA,CAAe,OAAQ,CAAA,qBAAA,CAAsB,eAAgB,CAAA,SAAS,GAAG,0BAA0B,CAAA","file":"register.mjs","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';\nimport { Utilities } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preInitialization](this: SapphireClient): void {\n\t\tthis.utilities = new Utilities();\n\t\tthis.stores.register(this.utilities.store);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tconst pieces = this.utilities.store;\n\n\t\tfor (const [name, piece] of pieces.entries()) {\n\t\t\tthis.utilities.exposePiece(name, piece);\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPreInitializationHook(UtilitiesPlugin[preInitialization], 'UtilitiesStore-PreInitialization');\nSapphireClient.plugins.registerPostLoginHook(UtilitiesPlugin[postLogin], 'UtilitiesStore-PostLogin');\n"]}
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAQO,IAAM,gBAAA,GAAN,MAAM,gBAAA,SAAwB,MAAA,CAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,CAAA,GAA8B;AAC7D,IAAA,IAAA,CAAK,SAAA,GAAY,IAAI,SAAA,EAAU;AAC/B,IAAA,IAAA,CAAK,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,CAAA,GAA8B;AACrD,IAAA,MAAM,MAAA,GAAS,KAAK,SAAA,CAAU,KAAA;AAE9B,IAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,MAAA,CAAO,SAAQ,EAAG;AAC7C,MAAA,IAAA,CAAK,SAAA,CAAU,WAAA,CAAY,IAAA,EAAM,KAAK,CAAA;AAAA,IACvC;AAAA,EACD;AACD,CAAA;AAnB4C,MAAA,CAAA,gBAAA,EAAA,iBAAA,CAAA;AAArC,IAAM,eAAA,GAAN;AAqBP,cAAA,CAAe,OAAA,CAAQ,6BAAA,CAA8B,eAAA,CAAgB,iBAAiB,GAAG,kCAAkC,CAAA;AAC3H,cAAA,CAAe,OAAA,CAAQ,qBAAA,CAAsB,eAAA,CAAgB,SAAS,GAAG,0BAA0B,CAAA","file":"register.mjs","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';\nimport { Utilities } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class UtilitiesPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [preInitialization](this: SapphireClient): void {\n\t\tthis.utilities = new Utilities();\n\t\tthis.stores.register(this.utilities.store);\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tconst pieces = this.utilities.store;\n\n\t\tfor (const [name, piece] of pieces.entries()) {\n\t\t\tthis.utilities.exposePiece(name, piece);\n\t\t}\n\t}\n}\n\nSapphireClient.plugins.registerPreInitializationHook(UtilitiesPlugin[preInitialization], 'UtilitiesStore-PreInitialization');\nSapphireClient.plugins.registerPostLoginHook(UtilitiesPlugin[postLogin], 'UtilitiesStore-PostLogin');\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-utilities-store",
3
- "version": "2.0.4-next.d23894e",
3
+ "version": "2.0.4-next.d3f4329",
4
4
  "description": "Plugin for @sapphire/framework to have a Sapphire store which you can fill with utility functions available through the container",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -79,9 +79,9 @@
79
79
  "devDependencies": {
80
80
  "@favware/cliff-jumper": "^6.0.0",
81
81
  "@favware/rollup-type-bundler": "^4.0.0",
82
- "concurrently": "^9.1.2",
82
+ "concurrently": "^9.2.1",
83
83
  "tsup": "^8.5.0",
84
- "tsx": "^4.20.3",
84
+ "tsx": "^4.20.6",
85
85
  "typedoc": "^0.26.11",
86
86
  "typedoc-json-parser": "^10.2.0",
87
87
  "typescript": "~5.4.5"