@wolfstar/plugin-api 1.1.5 → 1.1.7-next-20260926220154

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/README.md CHANGED
@@ -1,5 +1,19 @@
1
+ <div align="center">
2
+
3
+ <img src="https://cdn.wolfstar.rocks/wolfstar-assets/wolfstar.png" alt="WolfStar" width="100" />
4
+
1
5
  # @wolfstar/plugin-api
2
6
 
7
+ **A standalone REST API server for `@wolfstar/http-framework`.**
8
+
9
+ [![version](https://npmx.dev/api/registry/badge/version/@wolfstar/plugin-api)](https://npmx.dev/package/@wolfstar/plugin-api)
10
+ [![downloads](https://npmx.dev/api/registry/badge/downloads/@wolfstar/plugin-api)](https://npmx.dev/package/@wolfstar/plugin-api)
11
+ [![license](https://img.shields.io/github/license/wolfstar-project/plugins?style=flat-square&color=informational)](https://github.com/wolfstar-project/plugins/blob/main/LICENSE)
12
+
13
+ </div>
14
+
15
+ ## Description
16
+
3
17
  A plugin for [`@wolfstar/http-framework`](https://www.npmjs.com/package/@wolfstar/http-framework),
4
18
  ported from [`@sapphire/plugin-api`](https://github.com/sapphiredev/plugins/tree/main/packages/api).
5
19
  It exposes a **standalone** REST API server — for health checks, dashboards, or webhooks from other
@@ -11,10 +11,9 @@ import { Client, ClientOptions, Plugin, postInitialization, postListen } from "@
11
11
  * import '@wolfstar/plugin-api/register';
12
12
  * ```
13
13
  */
14
- declare class ApiPlugin extends Plugin {
14
+ export declare class ApiPlugin extends Plugin {
15
15
  static [postInitialization](this: Client, options: ClientOptions): void;
16
16
  static [postListen](this: Client, options: ClientOptions): Promise<void>;
17
17
  }
18
18
  //#endregion
19
- export { ApiPlugin };
20
19
  //# sourceMappingURL=register.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","names":[],"sources":["../../src/register.ts"],"mappings":";;;;;;;;;;;;;cAuBa,kBAAkB;UACd,oBAAoB,MAAM,QAAQ,SAAS;UAerC,YAAY,MAAM,QAAQ,SAAS,gBAAgB"}
1
+ {"version":3,"file":"register.d.ts","names":[],"sources":["../../src/register.ts"],"mappings":";;;;;;;;;;;;;qBAuBa,kBAAkB;UACd,oBAAoB,MAAM,QAAQ,SAAS;UAerC,YAAY,MAAM,QAAQ,SAAS,gBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolfstar/plugin-api",
3
- "version": "1.1.5",
3
+ "version": "1.1.7-next-20260926220154",
4
4
  "description": "Plugin for @wolfstar/http-framework exposing a standalone REST API server (routes, middlewares, router)",
5
5
  "keywords": [
6
6
  "api",
@@ -49,10 +49,10 @@
49
49
  "@vladfrangu/async_event_emitter": "^2.4.7"
50
50
  },
51
51
  "devDependencies": {
52
- "@wolfstar/http-framework": "^3.1.3"
52
+ "@wolfstar/http-framework": "^5.1.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@wolfstar/http-framework": "^3.0.0"
55
+ "@wolfstar/http-framework": "^3.0.0 || ^5.0.0"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=20.0.0"