@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.
- package/dist/cjs/index.cjs +10 -10
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/lib/Utilities.cjs +2 -3
- package/dist/cjs/lib/Utilities.cjs.map +1 -1
- package/dist/cjs/lib/UtilitiesStore.cjs +2 -2
- package/dist/cjs/register.cjs +2 -2
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/lib/Utilities.mjs +0 -1
- package/dist/esm/lib/Utilities.mjs.map +1 -1
- package/package.json +6 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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.
|
|
8
|
+
var version = "2.0.3-next.7909d16.0";
|
|
9
9
|
|
|
10
10
|
exports.version = version;
|
|
11
|
-
Object.keys(
|
|
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
|
|
14
|
+
get: function () { return Utilities_mjs[k]; }
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
Object.keys(
|
|
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
|
|
20
|
+
get: function () { return UtilitiesStore_mjs[k]; }
|
|
21
21
|
});
|
|
22
22
|
});
|
|
23
|
-
Object.keys(
|
|
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
|
|
26
|
+
get: function () { return Utility_mjs[k]; }
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=out.js.map
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -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.
|
|
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"]}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var pieces = require('@sapphire/pieces');
|
|
4
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
10
|
+
super(Utility_mjs.Utility, { name: "utilities" });
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
__name(_UtilitiesStore, "UtilitiesStore");
|
package/dist/cjs/register.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
13
|
+
this.utilities = new index_mjs.Utilities();
|
|
14
14
|
this.stores.register(this.utilities.store);
|
|
15
15
|
}
|
|
16
16
|
/**
|
package/dist/esm/index.d.mts
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/index.mjs.map
CHANGED
|
@@ -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.
|
|
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"]}
|
|
@@ -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
|
|
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.
|
|
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.
|
|
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.
|
|
85
|
-
"typedoc": "^0.25.
|
|
86
|
-
"typedoc-json-parser": "^
|
|
87
|
-
"typescript": "^5.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
|
}
|