@wolfstar/plugin-gateway 0.15.0 → 0.16.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/README.md +1 -1
- package/dist/esm/module.d.ts +13 -1
- package/dist/esm/module.d.ts.map +1 -1
- package/dist/esm/module.js +4 -0
- package/dist/esm/module.js.map +1 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -1318,7 +1318,7 @@ export default defineConfig({
|
|
|
1318
1318
|
});
|
|
1319
1319
|
```
|
|
1320
1320
|
|
|
1321
|
-
The module registers no plugin and takes no options: you still construct the `GatewayClient` yourself.
|
|
1321
|
+
The module registers no plugin and takes no options: you still construct the `GatewayClient` yourself. It owns the `gateway` key of `stars.config` (reserved for future options), so no other module can claim it.
|
|
1322
1322
|
|
|
1323
1323
|
## Credits
|
|
1324
1324
|
|
package/dist/esm/module.d.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
//#region src/module.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The options of the module: none yet. The `gateway` key of `stars.config` is reserved for them.
|
|
4
|
+
*/
|
|
5
|
+
export type GatewayModuleOptions = Record<string, never>;
|
|
2
6
|
/**
|
|
3
7
|
* The Stars module: listing `@wolfstar/plugin-gateway/module` in `modules` in `stars.config` adds the package to the
|
|
4
8
|
* auto imports. The `GatewayClient` is still constructed by you.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* The module owns the `gateway` key of `stars.config`, which takes no options for now.
|
|
5
12
|
*/
|
|
6
|
-
declare const _default: import("@wolfstar/kit").StarsModule<
|
|
13
|
+
declare const _default: import("@wolfstar/kit").StarsModule<GatewayModuleOptions>;
|
|
14
|
+
declare module "@wolfstar/schema" {
|
|
15
|
+
interface StarsConfig {
|
|
16
|
+
gateway?: GatewayModuleOptions;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
7
19
|
//#endregion
|
|
8
20
|
export { _default as default };
|
|
9
21
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/esm/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","names":[],"sources":["../../src/module.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","names":[],"sources":["../../src/module.ts"],"mappings":";;;;YAKY,uBAAuB;;;;;;;;;;YAqBvB;IACR,UAAU"}
|
package/dist/esm/module.js
CHANGED
|
@@ -4,10 +4,14 @@ import { defineModule } from "@wolfstar/kit";
|
|
|
4
4
|
/**
|
|
5
5
|
* The Stars module: listing `@wolfstar/plugin-gateway/module` in `modules` in `stars.config` adds the package to the
|
|
6
6
|
* auto imports. The `GatewayClient` is still constructed by you.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* The module owns the `gateway` key of `stars.config`, which takes no options for now.
|
|
7
10
|
*/
|
|
8
11
|
var module_default = defineModule({
|
|
9
12
|
meta: {
|
|
10
13
|
name: "@wolfstar/plugin-gateway",
|
|
14
|
+
configKey: "gateway",
|
|
11
15
|
compatibility: { framework: ">=6.1.0" }
|
|
12
16
|
},
|
|
13
17
|
setup(_options, ctx) {
|
package/dist/esm/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","names":[],"sources":["../../src/module.ts"],"sourcesContent":["import { defineModule } from \"@wolfstar/kit\";\n\n/**\n * The Stars module: listing `@wolfstar/plugin-gateway/module` in `modules` in `stars.config` adds the package to the\n * auto imports. The `GatewayClient` is still constructed by you.\n */\nexport default defineModule({\n meta: {
|
|
1
|
+
{"version":3,"file":"module.js","names":[],"sources":["../../src/module.ts"],"sourcesContent":["import { defineModule } from \"@wolfstar/kit\";\n\n/**\n * The options of the module: none yet. The `gateway` key of `stars.config` is reserved for them.\n */\nexport type GatewayModuleOptions = Record<string, never>;\n\n/**\n * The Stars module: listing `@wolfstar/plugin-gateway/module` in `modules` in `stars.config` adds the package to the\n * auto imports. The `GatewayClient` is still constructed by you.\n *\n * @remarks\n * The module owns the `gateway` key of `stars.config`, which takes no options for now.\n */\nexport default defineModule<GatewayModuleOptions>({\n meta: {\n name: \"@wolfstar/plugin-gateway\",\n configKey: \"gateway\",\n compatibility: { framework: \">=6.1.0\" },\n },\n setup(_options, ctx) {\n ctx.addImports(\"@wolfstar/plugin-gateway\");\n },\n});\n\ndeclare module \"@wolfstar/schema\" {\n interface StarsConfig {\n gateway?: GatewayModuleOptions;\n }\n}\n"],"mappings":";;;;;;;;;;AAcA,qBAAe,aAAmC;CAChD,MAAM;EACJ,MAAM;EACN,WAAW;EACX,eAAe,EAAE,WAAW,UAAU;CACxC;CACA,MAAM,UAAU,KAAK;EACnB,IAAI,WAAW,0BAA0B;CAC3C;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wolfstar/plugin-gateway",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Gateway (WebSocket) support for @wolfstar/http-framework: a GatewayClient emitting Structures, backed by a pluggable cache",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"discord",
|
|
@@ -59,20 +59,25 @@
|
|
|
59
59
|
"@discordjs/structures": "1.0.0-pr-11602.1789066132-275cd4b42",
|
|
60
60
|
"@discordjs/ws": "^2.0.4",
|
|
61
61
|
"@sapphire/pieces": "^4.4.1",
|
|
62
|
-
"@wolfstar/plugin-cache": "^0.
|
|
62
|
+
"@wolfstar/plugin-cache": "^0.8.0",
|
|
63
63
|
"discord-api-types": "^0.38.33"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@wolfstar/http-framework": "^6.1.0",
|
|
67
|
-
"@wolfstar/kit": "^0.
|
|
67
|
+
"@wolfstar/kit": "^0.2.0",
|
|
68
|
+
"@wolfstar/schema": "^0.9.0"
|
|
68
69
|
},
|
|
69
70
|
"peerDependencies": {
|
|
70
71
|
"@wolfstar/http-framework": "^3.4.0 || ^5.0.0 || ^6.0.0",
|
|
71
|
-
"@wolfstar/kit": "^0.
|
|
72
|
+
"@wolfstar/kit": "^0.2.0",
|
|
73
|
+
"@wolfstar/schema": "^0.9.0"
|
|
72
74
|
},
|
|
73
75
|
"peerDependenciesMeta": {
|
|
74
76
|
"@wolfstar/kit": {
|
|
75
77
|
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@wolfstar/schema": {
|
|
80
|
+
"optional": true
|
|
76
81
|
}
|
|
77
82
|
},
|
|
78
83
|
"engines": {
|