@sapphire/plugin-utilities-store 2.0.3-next.73f41bb.0 → 2.0.3-next.7909d16.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.
@@ -1,29 +1,29 @@
1
1
  'use strict';
2
2
 
3
- var Utilities_cjs = require('./lib/Utilities.cjs');
4
- var UtilitiesStore_cjs = require('./lib/UtilitiesStore.cjs');
5
- var Utility_cjs = require('./lib/Utility.cjs');
3
+ var Utilities_mjs = require('./lib/Utilities.mjs');
4
+ var UtilitiesStore_mjs = require('./lib/UtilitiesStore.mjs');
5
+ var Utility_mjs = require('./lib/Utility.mjs');
6
6
 
7
7
  // src/index.ts
8
- var version = "2.0.3-next.73f41bb.0";
8
+ var version = "2.0.3-next.7909d16.0";
9
9
 
10
10
  exports.version = version;
11
- Object.keys(Utilities_cjs).forEach(function (k) {
11
+ Object.keys(Utilities_mjs).forEach(function (k) {
12
12
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
13
13
  enumerable: true,
14
- get: function () { return Utilities_cjs[k]; }
14
+ get: function () { return Utilities_mjs[k]; }
15
15
  });
16
16
  });
17
- Object.keys(UtilitiesStore_cjs).forEach(function (k) {
17
+ Object.keys(UtilitiesStore_mjs).forEach(function (k) {
18
18
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
19
  enumerable: true,
20
- get: function () { return UtilitiesStore_cjs[k]; }
20
+ get: function () { return UtilitiesStore_mjs[k]; }
21
21
  });
22
22
  });
23
- Object.keys(Utility_cjs).forEach(function (k) {
23
+ Object.keys(Utility_mjs).forEach(function (k) {
24
24
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
25
25
  enumerable: true,
26
- get: function () { return Utility_cjs[k]; }
26
+ get: function () { return Utility_mjs[k]; }
27
27
  });
28
28
  });
29
29
  //# 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.3-next.73f41bb.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.3-next.7909d16.0';\n"]}
@@ -32,7 +32,6 @@ declare class Utilities {
32
32
  readonly store: UtilitiesStore;
33
33
  /**
34
34
  * @since 1.0.0
35
- * @param options The options for this server
36
35
  */
37
36
  constructor();
38
37
  /**
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var pieces = require('@sapphire/pieces');
4
- var UtilitiesStore_cjs = require('./UtilitiesStore.cjs');
4
+ var UtilitiesStore_mjs = require('./UtilitiesStore.mjs');
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -13,7 +13,6 @@ var __publicField = (obj, key, value) => {
13
13
  var _Utilities = class _Utilities {
14
14
  /**
15
15
  * @since 1.0.0
16
- * @param options The options for this server
17
16
  */
18
17
  constructor() {
19
18
  /**
@@ -22,7 +21,7 @@ var _Utilities = class _Utilities {
22
21
  */
23
22
  __publicField(this, "store");
24
23
  pieces.container.utilities = this;
25
- this.store = new UtilitiesStore_cjs.UtilitiesStore();
24
+ this.store = new UtilitiesStore_mjs.UtilitiesStore();
26
25
  }
27
26
  /**
28
27
  * Registers a piece on this class.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":[],"mappings":";;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAMxB,IAAM,aAAN,MAAM,WAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAWf,cAAc;AANrB;AAAA;AAAA;AAAA;AAAA,wBAAgB;AAOf,cAAU,YAAY;AACtB,SAAK,QAAQ,IAAI,eAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,YAAY,MAAc,OAAgB;AAEhD,SAAK,IAAI,IAAI;AAAA,EACd;AACD;AAzBuB;AAAhB,IAAM,YAAN","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 * @param options The options for this server\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":";;;;;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAMxB,IAAM,aAAN,MAAM,WAAU;AAAA;AAAA;AAAA;AAAA,EAUf,cAAc;AALrB;AAAA;AAAA;AAAA;AAAA,wBAAgB;AAMf,cAAU,YAAY;AACtB,SAAK,QAAQ,IAAI,eAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,YAAY,MAAc,OAAgB;AAEhD,SAAK,IAAI,IAAI;AAAA,EACd;AACD;AAxBuB;AAAhB,IAAM,YAAN","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,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var pieces = require('@sapphire/pieces');
4
- var Utility_cjs = require('./Utility.cjs');
4
+ var Utility_mjs = require('./Utility.mjs');
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
8
  var _UtilitiesStore = class _UtilitiesStore extends pieces.Store {
9
9
  constructor() {
10
- super(Utility_cjs.Utility, { name: "utilities" });
10
+ super(Utility_mjs.Utility, { name: "utilities" });
11
11
  }
12
12
  };
13
13
  __name(_UtilitiesStore, "UtilitiesStore");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index_cjs = require('./index.cjs');
3
+ var index_mjs = require('./index.mjs');
4
4
  var framework = require('@sapphire/framework');
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -10,7 +10,7 @@ var _UtilitiesPlugin = class _UtilitiesPlugin extends framework.Plugin {
10
10
  * @since 1.0.0
11
11
  */
12
12
  static [framework.preInitialization]() {
13
- this.utilities = new index_cjs.Utilities();
13
+ this.utilities = new index_mjs.Utilities();
14
14
  this.stores.register(this.utilities.store);
15
15
  }
16
16
  /**
@@ -32,7 +32,6 @@ declare class Utilities {
32
32
  readonly store: UtilitiesStore;
33
33
  /**
34
34
  * @since 1.0.0
35
- * @param options The options for this server
36
35
  */
37
36
  constructor();
38
37
  /**
@@ -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.3-next.73f41bb.0";
6
+ var version = "2.0.3-next.7909d16.0";
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.3-next.73f41bb.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.3-next.7909d16.0';\n"]}
@@ -5,7 +5,6 @@ import { UtilitiesStore } from './UtilitiesStore.mjs';
5
5
  var _Utilities = class _Utilities {
6
6
  /**
7
7
  * @since 1.0.0
8
- * @param options The options for this server
9
8
  */
10
9
  constructor() {
11
10
  /**
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/Utilities.ts"],"names":[],"mappings":";;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAMxB,IAAM,aAAN,MAAM,WAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAWf,cAAc;AANrB;AAAA;AAAA;AAAA;AAAA,wBAAgB;AAOf,cAAU,YAAY;AACtB,SAAK,QAAQ,IAAI,eAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,YAAY,MAAc,OAAgB;AAEhD,SAAK,IAAI,IAAI;AAAA,EACd;AACD;AAzBuB;AAAhB,IAAM,YAAN","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 * @param options The options for this server\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":";;;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;AAMxB,IAAM,aAAN,MAAM,WAAU;AAAA;AAAA;AAAA;AAAA,EAUf,cAAc;AALrB;AAAA;AAAA;AAAA;AAAA,wBAAgB;AAMf,cAAU,YAAY;AACtB,SAAK,QAAQ,IAAI,eAAe;AAAA,EACjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOO,YAAY,MAAc,OAAgB;AAEhD,SAAK,IAAI,IAAI;AAAA,EACd;AACD;AAxBuB;AAAhB,IAAM,YAAN","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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-utilities-store",
3
- "version": "2.0.3-next.73f41bb.0",
3
+ "version": "2.0.3-next.7909d16.0",
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",
@@ -77,13 +77,13 @@
77
77
  "access": "public"
78
78
  },
79
79
  "devDependencies": {
80
- "@favware/cliff-jumper": "^3.0.1",
80
+ "@favware/cliff-jumper": "^3.0.3",
81
81
  "@favware/rollup-type-bundler": "^3.3.0",
82
82
  "concurrently": "^8.2.2",
83
83
  "tsup": "^8.0.2",
84
- "tsx": "^4.7.2",
85
- "typedoc": "^0.25.12",
86
- "typedoc-json-parser": "^9.0.1",
87
- "typescript": "^5.4.4"
84
+ "tsx": "^4.10.5",
85
+ "typedoc": "^0.25.13",
86
+ "typedoc-json-parser": "^10.0.0",
87
+ "typescript": "^5.4.5"
88
88
  }
89
89
  }