@sapphire/plugin-api 6.0.0-next.d9aa006.0 → 6.0.0-next.dede596.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 +21 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +9 -1
- package/dist/cjs/register.cjs +6 -11
- package/dist/cjs/register.cjs.map +1 -1
- package/dist/cjs/register.d.ts +0 -1
- package/dist/esm/index.d.mts +9 -1
- package/dist/esm/index.mjs +5 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/register.d.mts +0 -1
- package/dist/esm/register.mjs +1 -6
- package/dist/esm/register.mjs.map +1 -1
- package/package.json +4 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -15,10 +15,30 @@ var Route_cjs = require('./lib/structures/Route.cjs');
|
|
|
15
15
|
var RouteStore_cjs = require('./lib/structures/RouteStore.cjs');
|
|
16
16
|
var MimeTypes_cjs = require('./lib/utils/MimeTypes.cjs');
|
|
17
17
|
var RouteData_cjs = require('./lib/utils/RouteData.cjs');
|
|
18
|
+
var _load_cjs = require('./listeners/_load.cjs');
|
|
19
|
+
var _load_cjs$1 = require('./mediaParsers/_load.cjs');
|
|
20
|
+
var _load_cjs$2 = require('./middlewares/_load.cjs');
|
|
21
|
+
var _load_cjs$3 = require('./routes/_load.cjs');
|
|
18
22
|
|
|
19
23
|
// src/index.ts
|
|
20
|
-
var version = "6.0.0-next.
|
|
24
|
+
var version = "6.0.0-next.dede596.0";
|
|
21
25
|
|
|
26
|
+
Object.defineProperty(exports, 'loadListeners', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return _load_cjs.loadListeners; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, 'loadMediaParsers', {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return _load_cjs$1.loadMediaParsers; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, 'loadMiddlewares', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return _load_cjs$2.loadMiddlewares; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, 'loadRoutes', {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return _load_cjs$3.loadRoutes; }
|
|
41
|
+
});
|
|
22
42
|
exports.version = version;
|
|
23
43
|
Object.keys(ApiRequest_cjs).forEach(function (k) {
|
|
24
44
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAKA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AA+
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAKA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,kBAAkB;AA+BpB,IAAM,UAAkB","sourcesContent":["import type { Server, ServerOptions } from './lib/structures/http/Server';\nimport type { MediaParserStore } from './lib/structures/MediaParserStore';\nimport type { MiddlewareStore } from './lib/structures/MiddlewareStore';\nimport type { RouteStore } from './lib/structures/RouteStore';\n\nexport * from './lib/structures/api/ApiRequest';\nexport * from './lib/structures/api/ApiResponse';\nexport * from './lib/structures/api/CookieStore';\nexport * from './lib/structures/http/Auth';\nexport * from './lib/structures/http/HttpCodes';\nexport * from './lib/structures/http/HttpMethods';\nexport * from './lib/structures/http/Server';\nexport * from './lib/structures/MediaParser';\nexport * from './lib/structures/MediaParserStore';\nexport * from './lib/structures/Middleware';\nexport * from './lib/structures/MiddlewareStore';\nexport * from './lib/structures/Route';\nexport * from './lib/structures/RouteStore';\nexport * from './lib/utils/MimeTypes';\nexport * from './lib/utils/RouteData';\n\nexport { loadListeners } from './listeners/_load';\nexport { loadMediaParsers } from './mediaParsers/_load';\nexport { loadMiddlewares } from './middlewares/_load';\nexport { loadRoutes } from './routes/_load';\n\ndeclare module 'discord.js' {\n\tinterface Client {\n\t\tserver: Server;\n\t}\n\n\tinterface ClientOptions {\n\t\tapi?: ServerOptions;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\troutes: RouteStore;\n\t\tmediaParsers: MediaParserStore;\n\t\tmiddlewares: MiddlewareStore;\n\t}\n\n\tinterface Container {\n\t\tserver: Server;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-api](https://github.com/sapphiredev/plugins/blob/main/packages/api) 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 = '6.0.0-next.dede596.0';\n"]}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1097,6 +1097,14 @@ declare enum HttpCodes {
|
|
|
1097
1097
|
NetworkAuthenticationRequired = 511
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
+
declare function loadListeners(): void;
|
|
1101
|
+
|
|
1102
|
+
declare function loadMediaParsers(): void;
|
|
1103
|
+
|
|
1104
|
+
declare function loadMiddlewares(): void;
|
|
1105
|
+
|
|
1106
|
+
declare function loadRoutes(): void;
|
|
1107
|
+
|
|
1100
1108
|
declare module 'discord.js' {
|
|
1101
1109
|
interface Client {
|
|
1102
1110
|
server: Server;
|
|
@@ -1123,4 +1131,4 @@ declare module '@sapphire/pieces' {
|
|
|
1123
1131
|
*/
|
|
1124
1132
|
declare const version: string;
|
|
1125
1133
|
|
|
1126
|
-
export { ApiRequest, ApiResponse, Auth, type AuthData, type AuthLessServerOptions, type ContentTypeParameter, type ContentTypeType, CookieStore, HttpCodes, type LoginData, type LoginDataTransformer, type MatchData, MediaParser, MediaParserStore, type MethodCallback, type Methods, Middleware, type MiddlewareErrorContext, type MiddlewareOptions, MiddlewareStore, type MimeType, type MimeTypeWithoutParameters, MimeTypes, type ParsedPart, Route, RouteData, type RouteMatch, type RouteOptions, RouteStore, type SecureCookieStoreSetOptions, Server, ServerEvents, type ServerOptions, type ServerOptionsAuth, TypeState, methodEntries, methods, version };
|
|
1134
|
+
export { ApiRequest, ApiResponse, Auth, type AuthData, type AuthLessServerOptions, type ContentTypeParameter, type ContentTypeType, CookieStore, HttpCodes, type LoginData, type LoginDataTransformer, type MatchData, MediaParser, MediaParserStore, type MethodCallback, type Methods, Middleware, type MiddlewareErrorContext, type MiddlewareOptions, MiddlewareStore, type MimeType, type MimeTypeWithoutParameters, MimeTypes, type ParsedPart, Route, RouteData, type RouteMatch, type RouteOptions, RouteStore, type SecureCookieStoreSetOptions, Server, ServerEvents, type ServerOptions, type ServerOptionsAuth, TypeState, loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes, methodEntries, methods, version };
|
package/dist/cjs/register.cjs
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./index.cjs');
|
|
4
3
|
var framework = require('@sapphire/framework');
|
|
5
|
-
var
|
|
6
|
-
var _load_cjs = require('./listeners/_load.cjs');
|
|
7
|
-
var _load_cjs$1 = require('./mediaParsers/_load.cjs');
|
|
8
|
-
var _load_cjs$2 = require('./middlewares/_load.cjs');
|
|
9
|
-
var _load_cjs$3 = require('./routes/_load.cjs');
|
|
4
|
+
var index_cjs = require('./index.cjs');
|
|
10
5
|
|
|
11
6
|
var __defProp = Object.defineProperty;
|
|
12
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -15,12 +10,12 @@ var _Api = class _Api extends framework.Plugin {
|
|
|
15
10
|
* @since 1.0.0
|
|
16
11
|
*/
|
|
17
12
|
static [framework.postInitialization](options) {
|
|
18
|
-
this.server = new
|
|
13
|
+
this.server = new index_cjs.Server(options.api);
|
|
19
14
|
this.stores.register(this.server.routes).register(this.server.mediaParsers).register(this.server.middlewares);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
index_cjs.loadListeners();
|
|
16
|
+
index_cjs.loadMediaParsers();
|
|
17
|
+
index_cjs.loadMiddlewares();
|
|
18
|
+
index_cjs.loadRoutes();
|
|
24
19
|
}
|
|
25
20
|
/**
|
|
26
21
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,oBAAoB,UAAU,sBAAsB;AAErE,SAAS,eAAe,kBAAkB,iBAAiB,YAAY,cAAc;AAK9E,IAAM,OAAN,MAAM,aAAY,OAAO;AAAA;AAAA;AAAA;AAAA,EAI/B,QAAe,kBAAkB,EAAwB,SAA8B;AACtF,SAAK,SAAS,IAAI,OAAO,QAAQ,GAAG;AACpC,SAAK,OACH,SAAS,KAAK,OAAO,MAAM,EAC3B,SAAS,KAAK,OAAO,YAAY,EACjC,SAAS,KAAK,OAAO,WAAW;AAElC,kBAAc;AACd,qBAAiB;AACjB,oBAAgB;AAChB,eAAW;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA,EAKA,cAAqB,QAAQ,IAAuC;AACnE,QAAI,EAAE,KAAK,OAAO,QAAQ,wBAAwB,OAAO;AACxD;AAAA,IACD;AAEA,UAAM,KAAK,OAAO,QAAQ;AAAA,EAC3B;AACD;AA3BgC;AAAzB,IAAM,MAAN;AA6BP,eAAe,QAAQ,+BAA+B,IAAI,kBAAkB,GAAG,wBAAwB;AACvG,eAAe,QAAQ,qBAAqB,IAAI,QAAQ,GAAG,cAAc","sourcesContent":["import { Plugin, postInitialization, preLogin, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes, Server } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class Api extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tthis.server = new Server(options.api);\n\t\tthis.stores\n\t\t\t.register(this.server.routes) //\n\t\t\t.register(this.server.mediaParsers)\n\t\t\t.register(this.server.middlewares);\n\n\t\tloadListeners();\n\t\tloadMediaParsers();\n\t\tloadMiddlewares();\n\t\tloadRoutes();\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static async [preLogin](this: SapphireClient): Promise<void> {\n\t\tif (!(this.server.options.automaticallyConnect ?? true)) {\n\t\t\treturn;\n\t\t}\n\n\t\tawait this.server.connect();\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(Api[postInitialization], 'API-PostInitialization');\nSapphireClient.plugins.registerPreLoginHook(Api[preLogin], 'API-PreLogin');\n"]}
|
package/dist/cjs/register.d.ts
CHANGED
package/dist/esm/index.d.mts
CHANGED
|
@@ -1097,6 +1097,14 @@ declare enum HttpCodes {
|
|
|
1097
1097
|
NetworkAuthenticationRequired = 511
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
+
declare function loadListeners(): void;
|
|
1101
|
+
|
|
1102
|
+
declare function loadMediaParsers(): void;
|
|
1103
|
+
|
|
1104
|
+
declare function loadMiddlewares(): void;
|
|
1105
|
+
|
|
1106
|
+
declare function loadRoutes(): void;
|
|
1107
|
+
|
|
1100
1108
|
declare module 'discord.js' {
|
|
1101
1109
|
interface Client {
|
|
1102
1110
|
server: Server;
|
|
@@ -1123,4 +1131,4 @@ declare module '@sapphire/pieces' {
|
|
|
1123
1131
|
*/
|
|
1124
1132
|
declare const version: string;
|
|
1125
1133
|
|
|
1126
|
-
export { ApiRequest, ApiResponse, Auth, type AuthData, type AuthLessServerOptions, type ContentTypeParameter, type ContentTypeType, CookieStore, HttpCodes, type LoginData, type LoginDataTransformer, type MatchData, MediaParser, MediaParserStore, type MethodCallback, type Methods, Middleware, type MiddlewareErrorContext, type MiddlewareOptions, MiddlewareStore, type MimeType, type MimeTypeWithoutParameters, MimeTypes, type ParsedPart, Route, RouteData, type RouteMatch, type RouteOptions, RouteStore, type SecureCookieStoreSetOptions, Server, ServerEvents, type ServerOptions, type ServerOptionsAuth, TypeState, methodEntries, methods, version };
|
|
1134
|
+
export { ApiRequest, ApiResponse, Auth, type AuthData, type AuthLessServerOptions, type ContentTypeParameter, type ContentTypeType, CookieStore, HttpCodes, type LoginData, type LoginDataTransformer, type MatchData, MediaParser, MediaParserStore, type MethodCallback, type Methods, Middleware, type MiddlewareErrorContext, type MiddlewareOptions, MiddlewareStore, type MimeType, type MimeTypeWithoutParameters, MimeTypes, type ParsedPart, Route, RouteData, type RouteMatch, type RouteOptions, RouteStore, type SecureCookieStoreSetOptions, Server, ServerEvents, type ServerOptions, type ServerOptionsAuth, TypeState, loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes, methodEntries, methods, version };
|
package/dist/esm/index.mjs
CHANGED
|
@@ -14,8 +14,12 @@ export * from './lib/structures/Route.mjs';
|
|
|
14
14
|
export * from './lib/structures/RouteStore.mjs';
|
|
15
15
|
export * from './lib/utils/MimeTypes.mjs';
|
|
16
16
|
export * from './lib/utils/RouteData.mjs';
|
|
17
|
+
export { loadListeners } from './listeners/_load.mjs';
|
|
18
|
+
export { loadMediaParsers } from './mediaParsers/_load.mjs';
|
|
19
|
+
export { loadMiddlewares } from './middlewares/_load.mjs';
|
|
20
|
+
export { loadRoutes } from './routes/_load.mjs';
|
|
17
21
|
|
|
18
|
-
var version = "6.0.0-next.
|
|
22
|
+
var version = "6.0.0-next.dede596.0";
|
|
19
23
|
|
|
20
24
|
export { version };
|
|
21
25
|
//# sourceMappingURL=out.js.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAKA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AA+
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAKA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AAEd,SAAS,qBAAqB;AAC9B,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAChC,SAAS,kBAAkB;AA+BpB,IAAM,UAAkB","sourcesContent":["import type { Server, ServerOptions } from './lib/structures/http/Server';\nimport type { MediaParserStore } from './lib/structures/MediaParserStore';\nimport type { MiddlewareStore } from './lib/structures/MiddlewareStore';\nimport type { RouteStore } from './lib/structures/RouteStore';\n\nexport * from './lib/structures/api/ApiRequest';\nexport * from './lib/structures/api/ApiResponse';\nexport * from './lib/structures/api/CookieStore';\nexport * from './lib/structures/http/Auth';\nexport * from './lib/structures/http/HttpCodes';\nexport * from './lib/structures/http/HttpMethods';\nexport * from './lib/structures/http/Server';\nexport * from './lib/structures/MediaParser';\nexport * from './lib/structures/MediaParserStore';\nexport * from './lib/structures/Middleware';\nexport * from './lib/structures/MiddlewareStore';\nexport * from './lib/structures/Route';\nexport * from './lib/structures/RouteStore';\nexport * from './lib/utils/MimeTypes';\nexport * from './lib/utils/RouteData';\n\nexport { loadListeners } from './listeners/_load';\nexport { loadMediaParsers } from './mediaParsers/_load';\nexport { loadMiddlewares } from './middlewares/_load';\nexport { loadRoutes } from './routes/_load';\n\ndeclare module 'discord.js' {\n\tinterface Client {\n\t\tserver: Server;\n\t}\n\n\tinterface ClientOptions {\n\t\tapi?: ServerOptions;\n\t}\n}\n\ndeclare module '@sapphire/pieces' {\n\tinterface StoreRegistryEntries {\n\t\troutes: RouteStore;\n\t\tmediaParsers: MediaParserStore;\n\t\tmiddlewares: MiddlewareStore;\n\t}\n\n\tinterface Container {\n\t\tserver: Server;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-api](https://github.com/sapphiredev/plugins/blob/main/packages/api) 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 = '6.0.0-next.dede596.0';\n"]}
|
package/dist/esm/register.d.mts
CHANGED
package/dist/esm/register.mjs
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { __name } from './chunk-PYETHG4R.mjs';
|
|
2
|
-
import './index.mjs';
|
|
3
2
|
import { SapphireClient, postInitialization, preLogin, Plugin } from '@sapphire/framework';
|
|
4
|
-
import { Server } from './
|
|
5
|
-
import { loadListeners } from './listeners/_load.mjs';
|
|
6
|
-
import { loadMediaParsers } from './mediaParsers/_load.mjs';
|
|
7
|
-
import { loadMiddlewares } from './middlewares/_load.mjs';
|
|
8
|
-
import { loadRoutes } from './routes/_load.mjs';
|
|
3
|
+
import { Server, loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes } from './index.mjs';
|
|
9
4
|
|
|
10
5
|
var _Api = class _Api extends Plugin {
|
|
11
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,oBAAoB,UAAU,sBAAsB;AAErE,SAAS,eAAe,kBAAkB,iBAAiB,YAAY,cAAc;AAK9E,IAAM,OAAN,MAAM,aAAY,OAAO;AAAA;AAAA;AAAA;AAAA,EAI/B,QAAe,kBAAkB,EAAwB,SAA8B;AACtF,SAAK,SAAS,IAAI,OAAO,QAAQ,GAAG;AACpC,SAAK,OACH,SAAS,KAAK,OAAO,MAAM,EAC3B,SAAS,KAAK,OAAO,YAAY,EACjC,SAAS,KAAK,OAAO,WAAW;AAElC,kBAAc;AACd,qBAAiB;AACjB,oBAAgB;AAChB,eAAW;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA,EAKA,cAAqB,QAAQ,IAAuC;AACnE,QAAI,EAAE,KAAK,OAAO,QAAQ,wBAAwB,OAAO;AACxD;AAAA,IACD;AAEA,UAAM,KAAK,OAAO,QAAQ;AAAA,EAC3B;AACD;AA3BgC;AAAzB,IAAM,MAAN;AA6BP,eAAe,QAAQ,+BAA+B,IAAI,kBAAkB,GAAG,wBAAwB;AACvG,eAAe,QAAQ,qBAAqB,IAAI,QAAQ,GAAG,cAAc","sourcesContent":["import { Plugin, postInitialization, preLogin, SapphireClient } from '@sapphire/framework';\nimport type { ClientOptions } from 'discord.js';\nimport { loadListeners, loadMediaParsers, loadMiddlewares, loadRoutes, Server } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class Api extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postInitialization](this: SapphireClient, options: ClientOptions): void {\n\t\tthis.server = new Server(options.api);\n\t\tthis.stores\n\t\t\t.register(this.server.routes) //\n\t\t\t.register(this.server.mediaParsers)\n\t\t\t.register(this.server.middlewares);\n\n\t\tloadListeners();\n\t\tloadMediaParsers();\n\t\tloadMiddlewares();\n\t\tloadRoutes();\n\t}\n\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static async [preLogin](this: SapphireClient): Promise<void> {\n\t\tif (!(this.server.options.automaticallyConnect ?? true)) {\n\t\t\treturn;\n\t\t}\n\n\t\tawait this.server.connect();\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(Api[postInitialization], 'API-PostInitialization');\nSapphireClient.plugins.registerPreLoginHook(Api[preLogin], 'API-PreLogin');\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-api",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.dede596.0",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to expose a REST API",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@types/ws": "^8.5.10",
|
|
53
|
-
"tldts": "^6.0
|
|
53
|
+
"tldts": "^6.1.0",
|
|
54
54
|
"tslib": "^2.6.2",
|
|
55
55
|
"undici": "^5.28.2"
|
|
56
56
|
},
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
"directory": "packages/api"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
|
-
"dist/"
|
|
64
|
-
"!dist/.tsbuildinfo"
|
|
63
|
+
"dist/"
|
|
65
64
|
],
|
|
66
65
|
"engines": {
|
|
67
66
|
"node": ">=v18",
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
},
|
|
86
85
|
"devDependencies": {
|
|
87
86
|
"@favware/cliff-jumper": "^2.2.3",
|
|
88
|
-
"@favware/rollup-type-bundler": "^3.2.
|
|
87
|
+
"@favware/rollup-type-bundler": "^3.2.1",
|
|
89
88
|
"concurrently": "^8.2.2",
|
|
90
89
|
"tsup": "^8.0.1",
|
|
91
90
|
"tsx": "^4.6.2",
|