@sapphire/plugin-utilities-store 2.0.1-next.c8ee3e4.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # [@sapphire/plugin-utilities-store@2.0.1](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-utilities-store@2.0.1...@sapphire/plugin-utilities-store@2.0.1) - (2023-12-05)
6
+
7
+ ## ↩️ Revert
8
+
9
+ - "refactor(register): cleanup unnecessary side effect imports of index" ([c2af242](https://github.com/sapphiredev/plugins/commit/c2af24269956132237988d94e4d94719b2cd442c))
10
+
5
11
  # [@sapphire/plugin-utilities-store@2.0.0](https://github.com/sapphiredev/plugins/compare/@sapphire/plugin-utilities-store@2.0.0...@sapphire/plugin-utilities-store@2.0.0) - (2023-12-05)
6
12
 
7
13
  ## 🏠 Refactor
@@ -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.1-next.c8ee3e4.0";
8
+ var version = "2.0.1";
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":";AAGA,cAAc;AACd,cAAc;AACd,cAAc;AAyBP,IAAM,UAAkB","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.1-next.c8ee3e4.0';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAGA,cAAc;AACd,cAAc;AACd,cAAc;AAyBP,IAAM,UAAkB","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.1';\n"]}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var framework = require('@sapphire/framework');
4
3
  var index_cjs = require('./index.cjs');
4
+ var framework = require('@sapphire/framework');
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,WAAW,mBAAmB,sBAAsB;AACrE,SAAS,iBAAiB;AAKnB,IAAM,mBAAN,MAAM,yBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,IAA8B;AAC7D,SAAK,YAAY,IAAI,UAAU;AAC/B,SAAK,OAAO,SAAS,KAAK,UAAU,KAAK;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,IAA8B;AACrD,UAAM,SAAS,KAAK,UAAU;AAE9B,eAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG;AAC7C,WAAK,UAAU,YAAY,MAAM,KAAK;AAAA,IACvC;AAAA,EACD;AACD;AAnB4C;AAArC,IAAM,kBAAN;AAqBP,eAAe,QAAQ,8BAA8B,gBAAgB,iBAAiB,GAAG,kCAAkC;AAC3H,eAAe,QAAQ,sBAAsB,gBAAgB,SAAS,GAAG,0BAA0B","sourcesContent":["import { 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":";;;;AAAA,OAAO;AAEP,SAAS,QAAQ,WAAW,mBAAmB,sBAAsB;AACrE,SAAS,iBAAiB;AAKnB,IAAM,mBAAN,MAAM,yBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,IAA8B;AAC7D,SAAK,YAAY,IAAI,UAAU;AAC/B,SAAK,OAAO,SAAS,KAAK,UAAU,KAAK;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,IAA8B;AACrD,UAAM,SAAS,KAAK,UAAU;AAE9B,eAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG;AAC7C,WAAK,UAAU,YAAY,MAAM,KAAK;AAAA,IACvC;AAAA,EACD;AACD;AAnB4C;AAArC,IAAM,kBAAN;AAqBP,eAAe,QAAQ,8BAA8B,gBAAgB,iBAAiB,GAAG,kCAAkC;AAC3H,eAAe,QAAQ,sBAAsB,gBAAgB,SAAS,GAAG,0BAA0B","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,3 +1,4 @@
1
+ import './index.cjs';
1
2
  import { Plugin, preInitialization, SapphireClient, postLogin } from '@sapphire/framework';
2
3
 
3
4
  /**
@@ -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.1-next.c8ee3e4.0";
6
+ var version = "2.0.1";
7
7
 
8
8
  export { version };
9
9
  //# sourceMappingURL=out.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAGA,cAAc;AACd,cAAc;AACd,cAAc;AAyBP,IAAM,UAAkB","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.1-next.c8ee3e4.0';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAGA,cAAc;AACd,cAAc;AACd,cAAc;AAyBP,IAAM,UAAkB","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.1';\n"]}
@@ -1,3 +1,4 @@
1
+ import './index.mjs';
1
2
  import { Plugin, preInitialization, SapphireClient, postLogin } from '@sapphire/framework';
2
3
 
3
4
  /**
@@ -1,6 +1,6 @@
1
1
  import { __name } from './chunk-6QB3UK4Q.mjs';
2
- import { SapphireClient, preInitialization, postLogin, Plugin } from '@sapphire/framework';
3
2
  import { Utilities } from './index.mjs';
3
+ import { SapphireClient, preInitialization, postLogin, Plugin } from '@sapphire/framework';
4
4
 
5
5
  var _UtilitiesPlugin = class _UtilitiesPlugin extends Plugin {
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,WAAW,mBAAmB,sBAAsB;AACrE,SAAS,iBAAiB;AAKnB,IAAM,mBAAN,MAAM,yBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,IAA8B;AAC7D,SAAK,YAAY,IAAI,UAAU;AAC/B,SAAK,OAAO,SAAS,KAAK,UAAU,KAAK;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,IAA8B;AACrD,UAAM,SAAS,KAAK,UAAU;AAE9B,eAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG;AAC7C,WAAK,UAAU,YAAY,MAAM,KAAK;AAAA,IACvC;AAAA,EACD;AACD;AAnB4C;AAArC,IAAM,kBAAN;AAqBP,eAAe,QAAQ,8BAA8B,gBAAgB,iBAAiB,GAAG,kCAAkC;AAC3H,eAAe,QAAQ,sBAAsB,gBAAgB,SAAS,GAAG,0BAA0B","sourcesContent":["import { 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":";;;;;AAAA,OAAO;AAEP,SAAS,QAAQ,WAAW,mBAAmB,sBAAsB;AACrE,SAAS,iBAAiB;AAKnB,IAAM,mBAAN,MAAM,yBAAwB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI3C,QAAe,iBAAiB,IAA8B;AAC7D,SAAK,YAAY,IAAI,UAAU;AAC/B,SAAK,OAAO,SAAS,KAAK,UAAU,KAAK;AAAA,EAC1C;AAAA;AAAA;AAAA;AAAA,EAKA,QAAe,SAAS,IAA8B;AACrD,UAAM,SAAS,KAAK,UAAU;AAE9B,eAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,GAAG;AAC7C,WAAK,UAAU,YAAY,MAAM,KAAK;AAAA,IACvC;AAAA,EACD;AACD;AAnB4C;AAArC,IAAM,kBAAN;AAqBP,eAAe,QAAQ,8BAA8B,gBAAgB,iBAAiB,GAAG,kCAAkC;AAC3H,eAAe,QAAQ,sBAAsB,gBAAgB,SAAS,GAAG,0BAA0B","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.1-next.c8ee3e4.0",
3
+ "version": "2.0.1",
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",