@sapphire/plugin-utilities-store 1.1.0-next.7766f29.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/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
package/README.md ADDED
@@ -0,0 +1,111 @@
1
+ <div align="center">
2
+
3
+ ![Sapphire Logo](https://cdn.skyra.pw/gh-assets/sapphire-banner.png)
4
+
5
+ # @sapphire/plugin-utilities-store
6
+
7
+ **Plugin for <a href="https://github.com/sapphiredev/framework">@sapphire/framework</a> to have a Sapphire store which you can fill with utility functions available through the container.**
8
+
9
+ [![GitHub](https://img.shields.io/github/license/sapphiredev/plugins)](https://github.com/sapphiredev/plugins/blob/main/LICENSE.md)
10
+ [![codecov](https://codecov.io/gh/sapphiredev/plugins/branch/main/graph/badge.svg?token=QWL8FB16BR)](https://codecov.io/gh/sapphiredev/plugins)
11
+ [![npm bundle size](https://img.shields.io/bundlephobia/min/@sapphire/plugin-api?logo=webpack&style=flat-square)](https://bundlephobia.com/result?p=@sapphire/plugin-api)
12
+ [![npm](https://img.shields.io/npm/v/@sapphire/plugin-api?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@sapphire/plugin-api)
13
+
14
+ </div>
15
+
16
+ ## Description
17
+
18
+ When writing a bot you often have many external utility functions and to have some centralized place to access them from it is useful to have an automatically imported utilities store. This plugin provides a store that you can fill with utility functions and access them from the container.
19
+
20
+ **Please note that utility functions are available on the Sapphire `container` only after the bot has logged in, any functions required before logging in should be exported through normal module loading means.**
21
+
22
+ ## Installation
23
+
24
+ `@sapphire/plugin-utilities-store` depends on the following packages. Be sure to install these along with this package!
25
+
26
+ - [`@sapphire/framework`](https://www.npmjs.com/package/@sapphire/framework)
27
+
28
+ You can use the following command to install this package, or replace `npm install` with your package manager of choice.
29
+
30
+ ```sh
31
+ npm install @sapphire/plugin-utilities-store
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Usage
37
+
38
+ Start by importing the registration file in your project to use the plugin:
39
+
40
+ **JavaScript**
41
+
42
+ ```javascript
43
+ require('@sapphire/plugin-utilities-store/register');
44
+ ```
45
+
46
+ **TypeScript**
47
+
48
+ ```typescript
49
+ import '@sapphire/plugin-utilities-store/register';
50
+ ```
51
+
52
+ - Create a new `utilities` directory under `/src`
53
+ - Make your first utility piece:
54
+
55
+ ```typescript
56
+ import { Utility } from '@sapphire/plugin-utilities-store';
57
+
58
+ export class SumUtility extends Utility {
59
+ public constructor(context: Utility.Context, options: Utility.Options) {
60
+ super(context, {
61
+ ...options,
62
+ name: 'sum'
63
+ });
64
+ }
65
+
66
+ public add(numberOne: number, numberTwo: number) {
67
+ return numberOne + numberTwo;
68
+ }
69
+
70
+ public subtract(numberOne: number, numberTwo: number) {
71
+ return numberOne - numberTwo;
72
+ }
73
+ }
74
+ ```
75
+
76
+ In this example we simply add and subtract two numbers. You can pass any arguments you wish to the utility function, and it will execute as written.
77
+
78
+ In order for TypeScript to know about your utility functions and their arguments you need to do leverage module augmentation. `SumUtility` here is the piece class as defined in the example above.
79
+
80
+ ```typescript
81
+ declare module '@sapphire/plugin-utilities-store' {
82
+ export interface Utilities {
83
+ sum: SumUtility;
84
+ }
85
+ }
86
+ ```
87
+
88
+ ## Buy us some doughnuts
89
+
90
+ Sapphire Community is and always will be open source, even if we don't get donations. That being said, we know there are amazing people who may still want to donate just to show their appreciation. Thank you very much in advance!
91
+
92
+ We accept donations through Open Collective, Ko-fi, Paypal, Patreon and GitHub Sponsorships. You can use the buttons below to donate through your method of choice.
93
+
94
+ | Donate With | Address |
95
+ | :-------------: | :-------------------------------------------------: |
96
+ | Open Collective | [Click Here](https://sapphirejs.dev/opencollective) |
97
+ | Ko-fi | [Click Here](https://sapphirejs.dev/kofi) |
98
+ | Patreon | [Click Here](https://sapphirejs.dev/patreon) |
99
+ | PayPal | [Click Here](https://sapphirejs.dev/paypal) |
100
+
101
+ ## Contributors
102
+
103
+ Please make sure to read the [Contributing Guide][contributing] before making a pull request.
104
+
105
+ Thank you to all the people who already contributed to Sapphire!
106
+
107
+ <a href="https://github.com/sapphiredev/plugins/graphs/contributors">
108
+ <img src="https://contrib.rocks/image?repo=sapphiredev/plugins" />
109
+ </a>
110
+
111
+ [contributing]: https://github.com/sapphiredev/.github/blob/main/.github/CONTRIBUTING.md
@@ -0,0 +1,19 @@
1
+ import type { Utilities } from './lib/Utilities';
2
+ import type { UtilitiesStore } from './lib/UtilitiesStore';
3
+ export * from './lib/Utilities';
4
+ export * from './lib/UtilitiesStore';
5
+ export * from './lib/Utility';
6
+ declare module 'discord.js' {
7
+ interface Client {
8
+ utilities: Utilities;
9
+ }
10
+ }
11
+ declare module '@sapphire/pieces' {
12
+ interface StoreRegistryEntries {
13
+ utilities: UtilitiesStore;
14
+ }
15
+ interface Container {
16
+ utilities: Utilities;
17
+ }
18
+ }
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAE9B,OAAO,QAAQ,YAAY,CAAC;IAC3B,UAAiB,MAAM;QACtB,SAAS,EAAE,SAAS,CAAC;KACrB;CACD;AAED,OAAO,QAAQ,kBAAkB,CAAC;IACjC,UAAU,oBAAoB;QAC7B,SAAS,EAAE,cAAc,CAAC;KAC1B;IAED,UAAU,SAAS;QAClB,SAAS,EAAE,SAAS,CAAC;KACrB;CACD"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./lib/Utilities"), exports);
5
+ tslib_1.__exportStar(require("./lib/UtilitiesStore"), exports);
6
+ tslib_1.__exportStar(require("./lib/Utility"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAGA,0DAAgC;AAChC,+DAAqC;AACrC,wDAA8B"}
package/dist/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import mod from "./index.js";
2
+
3
+ export default mod;
4
+ export const Utilities = mod.Utilities;
5
+ export const UtilitiesStore = mod.UtilitiesStore;
6
+ export const Utility = mod.Utility;
@@ -0,0 +1,24 @@
1
+ import { UtilitiesStore } from './UtilitiesStore';
2
+ import type { Utility } from './Utility';
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ export declare class Utilities {
7
+ /**
8
+ * The utilities this store holds.
9
+ * @since 1.0.0
10
+ */
11
+ readonly store: UtilitiesStore;
12
+ /**
13
+ * @since 1.0.0
14
+ * @param options The options for this server
15
+ */
16
+ constructor();
17
+ /**
18
+ * Registers a piece on this class.
19
+ * @param name The name of the piece to register on this class
20
+ * @param piece The piece to register on this class
21
+ */
22
+ exposePiece(name: string, piece: Utility): void;
23
+ }
24
+ //# sourceMappingURL=Utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utilities.d.ts","sourceRoot":"","sources":["../../src/lib/Utilities.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,qBAAa,SAAS;IACrB;;;OAGG;IACH,SAAgB,KAAK,EAAE,cAAc,CAAC;IAEtC;;;OAGG;;IAMH;;;;OAIG;IACI,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAI/C"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Utilities = void 0;
4
+ const pieces_1 = require("@sapphire/pieces");
5
+ const UtilitiesStore_1 = require("./UtilitiesStore");
6
+ /**
7
+ * @since 1.0.0
8
+ */
9
+ class Utilities {
10
+ /**
11
+ * @since 1.0.0
12
+ * @param options The options for this server
13
+ */
14
+ constructor() {
15
+ /**
16
+ * The utilities this store holds.
17
+ * @since 1.0.0
18
+ */
19
+ Object.defineProperty(this, "store", {
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true,
23
+ value: void 0
24
+ });
25
+ pieces_1.container.utilities = this;
26
+ this.store = new UtilitiesStore_1.UtilitiesStore();
27
+ }
28
+ /**
29
+ * Registers a piece on this class.
30
+ * @param name The name of the piece to register on this class
31
+ * @param piece The piece to register on this class
32
+ */
33
+ exposePiece(name, piece) {
34
+ // @ts-expect-error Bypass TypeScript check for dynamic property assignment
35
+ this[name] = piece;
36
+ }
37
+ }
38
+ exports.Utilities = Utilities;
39
+ //# sourceMappingURL=Utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../../src/lib/Utilities.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,qDAAkD;AAGlD;;GAEG;AACH,MAAa,SAAS;IAOrB;;;OAGG;IACH;QAVA;;;WAGG;QACH;;;;;WAAsC;QAOrC,kBAAS,CAAC,SAAS,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,IAAI,+BAAc,EAAE,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,WAAW,CAAC,IAAY,EAAE,KAAc;QAC9C,2EAA2E;QAC3E,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IACpB,CAAC;CACD;AAzBD,8BAyBC"}
@@ -0,0 +1,9 @@
1
+ import { Store } from '@sapphire/pieces';
2
+ import { Utility } from './Utility';
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ export declare class UtilitiesStore extends Store<Utility> {
7
+ constructor();
8
+ }
9
+ //# sourceMappingURL=UtilitiesStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UtilitiesStore.d.ts","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,OAAO,CAAC;;CAIjD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UtilitiesStore = void 0;
4
+ const pieces_1 = require("@sapphire/pieces");
5
+ const Utility_1 = require("./Utility");
6
+ /**
7
+ * @since 1.0.0
8
+ */
9
+ class UtilitiesStore extends pieces_1.Store {
10
+ constructor() {
11
+ super(Utility_1.Utility, { name: 'utilities' });
12
+ }
13
+ }
14
+ exports.UtilitiesStore = UtilitiesStore;
15
+ //# sourceMappingURL=UtilitiesStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UtilitiesStore.js","sourceRoot":"","sources":["../../src/lib/UtilitiesStore.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,uCAAoC;AAEpC;;GAEG;AACH,MAAa,cAAe,SAAQ,cAAc;IACjD;QACC,KAAK,CAAC,iBAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IACvC,CAAC;CACD;AAJD,wCAIC"}
@@ -0,0 +1,11 @@
1
+ import { Piece } from '@sapphire/pieces';
2
+ /**
3
+ * @since 1.0.0
4
+ */
5
+ export declare abstract class Utility extends Piece {
6
+ }
7
+ export declare namespace Utility {
8
+ type Context = Piece.Context;
9
+ type Options = Piece.Options;
10
+ }
11
+ //# sourceMappingURL=Utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC;;GAEG;AACH,8BAAsB,OAAQ,SAAQ,KAAK;CAAG;AAE9C,yBAAiB,OAAO,CAAC;IACxB,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACpC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;CACpC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Utility = void 0;
4
+ const pieces_1 = require("@sapphire/pieces");
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ class Utility extends pieces_1.Piece {
9
+ }
10
+ exports.Utility = Utility;
11
+ //# sourceMappingURL=Utility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../../src/lib/Utility.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC;;GAEG;AACH,MAAsB,OAAQ,SAAQ,cAAK;CAAG;AAA9C,0BAA8C"}
@@ -0,0 +1,16 @@
1
+ import './index';
2
+ import { Plugin, postLogin, preInitialization, SapphireClient } from '@sapphire/framework';
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ export declare class UtilitiesPlugin extends Plugin {
7
+ /**
8
+ * @since 1.0.0
9
+ */
10
+ static [preInitialization](this: SapphireClient): void;
11
+ /**
12
+ * @since 1.0.0
13
+ */
14
+ static [postLogin](this: SapphireClient): void;
15
+ }
16
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK3F;;GAEG;AACH,qBAAa,eAAgB,SAAQ,MAAM;IAC1C;;OAEG;WACW,CAAC,iBAAiB,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAO7D;;OAEG;WACW,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CAOrD"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UtilitiesPlugin = void 0;
4
+ require("./index");
5
+ const framework_1 = require("@sapphire/framework");
6
+ const path_1 = require("path");
7
+ const Utilities_1 = require("./lib/Utilities");
8
+ const UtilitiesStore_1 = require("./lib/UtilitiesStore");
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ class UtilitiesPlugin extends framework_1.Plugin {
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ static [framework_1.preInitialization]() {
17
+ this.utilities = new Utilities_1.Utilities();
18
+ this.stores.register(this.utilities.store);
19
+ this.utilities.store.registerPath((0, path_1.join)(__dirname, UtilitiesStore_1.UtilitiesStore.name));
20
+ }
21
+ /**
22
+ * @since 1.0.0
23
+ */
24
+ static [framework_1.postLogin]() {
25
+ const pieces = this.utilities.store;
26
+ for (const [name, piece] of pieces.entries()) {
27
+ this.utilities.exposePiece(name, piece);
28
+ }
29
+ }
30
+ }
31
+ exports.UtilitiesPlugin = UtilitiesPlugin;
32
+ framework_1.SapphireClient.plugins.registerPreInitializationHook(UtilitiesPlugin[framework_1.preInitialization], 'UtilitiesStore-PreInitialization');
33
+ framework_1.SapphireClient.plugins.registerPostLoginHook(UtilitiesPlugin[framework_1.postLogin], 'UtilitiesStore-PostLogin');
34
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":";;;AAAA,mBAAiB;AACjB,mDAA2F;AAC3F,+BAA4B;AAC5B,+CAA4C;AAC5C,yDAAsD;AAEtD;;GAEG;AACH,MAAa,eAAgB,SAAQ,kBAAM;IAC1C;;OAEG;IACI,MAAM,CAAC,CAAC,6BAAiB,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAE3C,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,+BAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,CAAC,qBAAS,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QAEpC,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE;YAC7C,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SACxC;IACF,CAAC;CACD;AArBD,0CAqBC;AAED,0BAAc,CAAC,OAAO,CAAC,6BAA6B,CAAC,eAAe,CAAC,6BAAiB,CAAC,EAAE,kCAAkC,CAAC,CAAC;AAC7H,0BAAc,CAAC,OAAO,CAAC,qBAAqB,CAAC,eAAe,CAAC,qBAAS,CAAC,EAAE,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import mod from "./register.js";
2
+
3
+ export default mod;
4
+ export const UtilitiesPlugin = mod.UtilitiesPlugin;
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@sapphire/plugin-utilities-store",
3
+ "version": "1.1.0-next.7766f29.0",
4
+ "description": "Plugin for @sapphire/framework to have a Sapphire store which you can fill with utility functions available through the container",
5
+ "author": "@sapphire",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./register": {
17
+ "import": "./register.mjs",
18
+ "require": "./register.js",
19
+ "types": "./register.d.ts"
20
+ }
21
+ },
22
+ "sideEffects": [
23
+ "./dist/register.js",
24
+ "./register.js",
25
+ "./register.mjs"
26
+ ],
27
+ "homepage": "https://github.com/sapphiredev/plugins/tree/main/packages/api",
28
+ "scripts": {
29
+ "lint": "eslint src --ext ts --fix",
30
+ "build": "tsc -b src && yarn esm:register && yarn esm:default",
31
+ "esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs",
32
+ "esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
33
+ "docs": "typedoc-json-parser",
34
+ "prepack": "yarn build",
35
+ "bump": "cliff-jumper",
36
+ "check-update": "cliff-jumper --dry-run"
37
+ },
38
+ "dependencies": {
39
+ "tslib": "^2.5.0"
40
+ },
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/sapphiredev/plugins.git",
44
+ "directory": "packages/utilities-store"
45
+ },
46
+ "files": [
47
+ "dist/**/*.js*",
48
+ "dist/**/*.mjs*",
49
+ "dist/**/*.d*",
50
+ "./register.*"
51
+ ],
52
+ "engines": {
53
+ "node": ">=v14.0.0",
54
+ "npm": ">=7.0.0"
55
+ },
56
+ "keywords": [
57
+ "sapphiredev",
58
+ "plugin",
59
+ "bot",
60
+ "typescript",
61
+ "ts",
62
+ "yarn",
63
+ "discord",
64
+ "sapphire"
65
+ ],
66
+ "bugs": {
67
+ "url": "https://github.com/sapphiredev/plugins/issues"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "devDependencies": {
73
+ "@favware/cliff-jumper": "^1.10.0",
74
+ "gen-esm-wrapper": "^1.1.3",
75
+ "typedoc": "^0.23.24",
76
+ "typedoc-json-parser": "^7.1.0",
77
+ "typescript": "^4.9.4"
78
+ }
79
+ }
package/register.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/register';
package/register.js ADDED
@@ -0,0 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ const tslib = require('tslib');
3
+
4
+ tslib.__exportStar(require('./dist/register.js'), exports);
package/register.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/register.mjs';