@sapphire/plugin-api 4.0.2-next.b07a509.0 → 4.0.2-next.b8a494a.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 +5 -0
- package/dist/lib/structures/http/HttpMethods.d.ts +1 -1
- package/dist/lib/structures/http/HttpMethods.d.ts.map +1 -1
- package/dist/lib/structures/http/Server.d.ts +5 -5
- package/dist/lib/structures/http/Server.d.ts.map +1 -1
- package/dist/lib/utils/RouteData.d.ts +1 -1
- package/dist/lib/utils/RouteData.d.ts.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -149,6 +149,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
149
149
|
</tr>
|
|
150
150
|
<tr>
|
|
151
151
|
<td align="center"><a href="https://github.com/ricardooow"><img src="https://avatars.githubusercontent.com/u/28981399?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ricardooow</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=ricardooow" title="Code">💻</a></td>
|
|
152
|
+
<td align="center"><a href="https://shadownova.dev/"><img src="https://avatars.githubusercontent.com/u/46537907?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hezekiah Hendry</b></sub></a><br /><a href="#tool-RealShadowNova" title="Tools">🔧</a></td>
|
|
153
|
+
<td align="center"><a href="https://github.com/yuansheng1549"><img src="https://avatars.githubusercontent.com/u/75909450?v=4?s=100" width="100px;" alt=""/><br /><sub><b>yuansheng1549</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=yuansheng1549" title="Code">💻</a></td>
|
|
154
|
+
<td align="center"><a href="https://github.com/BenSegal855"><img src="https://avatars.githubusercontent.com/u/34194692?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=BenSegal855" title="Code">💻</a></td>
|
|
155
|
+
<td align="center"><a href="https://github.com/r-priyam"><img src="https://avatars.githubusercontent.com/u/50884372?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priyam</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=r-priyam" title="Code">💻</a></td>
|
|
156
|
+
<td align="center"><a href="https://github.com/Arcadia148"><img src="https://avatars.githubusercontent.com/u/50211159?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arcadia148</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Arcadia148" title="Code">💻</a></td>
|
|
152
157
|
</tr>
|
|
153
158
|
</table>
|
|
154
159
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Methods = 'ACL' | 'BIND' | 'CHECKOUT' | 'CONNECT' | 'COPY' | 'DELETE' | 'GET' | 'HEAD' | 'LINK' | 'LOCK' | 'M-SEARCH' | 'MERGE' | 'MKACTIVITY' | 'MKCALENDAR' | 'MKCOL' | 'MOVE' | 'NOTIFY' | 'OPTIONS' | 'PATCH' | 'POST' | 'PRI' | 'PROPFIND' | 'PROPPATCH' | 'PURGE' | 'PUT' | 'REBIND' | 'REPORT' | 'SEARCH' | 'SOURCE' | 'SUBSCRIBE' | 'TRACE' | 'UNBIND' | 'UNLINK' | 'UNLOCK' | 'UNSUBSCRIBE';
|
|
2
2
|
export declare const methods: Record<Methods, symbol>;
|
|
3
3
|
export declare const methodEntries: readonly [Methods, symbol][];
|
|
4
4
|
//# sourceMappingURL=HttpMethods.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpMethods.d.ts","sourceRoot":"","sources":["../../../../src/lib/structures/http/HttpMethods.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"HttpMethods.d.ts","sourceRoot":"","sources":["../../../../src/lib/structures/http/HttpMethods.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAChB,KAAK,GACL,MAAM,GACN,UAAU,GACV,SAAS,GACT,MAAM,GACN,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,KAAK,GACL,UAAU,GACV,WAAW,GACX,OAAO,GACP,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,aAAa,CAAC;AAEjB,eAAO,MAAM,OAAO,yBAAwH,CAAC;AAC7I,eAAO,MAAM,aAAa,8BAA0D,CAAC"}
|
|
@@ -69,7 +69,7 @@ export declare class Server extends EventEmitter {
|
|
|
69
69
|
* - `x-token` = The two characters "X-" followed, with no intervening white space, by any token
|
|
70
70
|
* @since 1.3.0
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
72
|
+
export type ContentTypeType = 'text' | 'multipart' | 'message' | 'image' | 'audio' | 'video' | 'application' | `X-${string}`;
|
|
73
73
|
/**
|
|
74
74
|
* RFC 1341 4: Defines a Content-Type's parameter, which follows the following structure:
|
|
75
75
|
*
|
|
@@ -84,18 +84,18 @@ export declare type ContentTypeType = 'text' | 'multipart' | 'message' | 'image'
|
|
|
84
84
|
* three characters `/`, `?`, and `=`.
|
|
85
85
|
* @since 1.3.0
|
|
86
86
|
*/
|
|
87
|
-
export
|
|
87
|
+
export type ContentTypeParameter = `; ${string}=${string}`;
|
|
88
88
|
/**
|
|
89
89
|
* RFC 1341 4: Defines the syntax for a Content-Type field without parameters, which follows the following structure:
|
|
90
90
|
* `type "/" subtype`.
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export type MimeTypeWithoutParameters = `${ContentTypeType}/${string}`;
|
|
93
93
|
/**
|
|
94
94
|
* RFC 1341 4: Defines the syntax for a Content-Type field, which follows the following structure:
|
|
95
95
|
* `type "/" subtype *[";" parameter]`.
|
|
96
96
|
* @since 1.3.0
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type MimeType = `${MimeTypeWithoutParameters}${'' | ContentTypeParameter}`;
|
|
99
99
|
/**
|
|
100
100
|
* The API options.
|
|
101
101
|
* @since 1.0.0
|
|
@@ -155,7 +155,7 @@ export interface ServerOptions {
|
|
|
155
155
|
* The {@link ServerOptions} without {@link ServerOptions.auth}.
|
|
156
156
|
* @since 1.0.0
|
|
157
157
|
*/
|
|
158
|
-
export
|
|
158
|
+
export type AuthLessServerOptions = Omit<ServerOptions, 'auth'>;
|
|
159
159
|
/**
|
|
160
160
|
* The context sent in the error events.
|
|
161
161
|
* @since 1.2.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../../../src/lib/structures/http/Server.ts"],"names":[],"mappings":";;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAoC,MAAM,IAAI,UAAU,EAAE,aAAa,IAAI,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEjD,0BAAkB,YAAY;IAC7B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;CACvC;AAED;;GAEG;AACH,qBAA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H,MAAM,CAAC,EAAE,WAAW,CAAC;IAErB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;OAGG;IACH,OAAO,EAAE,UAAU,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,KAAK,EAAE,UAAU,CAAC;CAClB"}
|
|
@@ -11,7 +11,7 @@ export declare const enum TypeState {
|
|
|
11
11
|
*/
|
|
12
12
|
Dynamic = 1
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type MatchData = Record<string, string> | null;
|
|
15
15
|
export declare class RouteData {
|
|
16
16
|
readonly path: string;
|
|
17
17
|
private readonly static;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteData.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/RouteData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,0BAAkB,SAAS;IAC1B;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,OAAO,IAAA;CACP;AAED,
|
|
1
|
+
{"version":3,"file":"RouteData.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/RouteData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,0BAAkB,SAAS;IAC1B;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,OAAO,IAAA;CACP;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;AAEtD,qBAAa,SAAS;IACrB,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;gBAE3B,IAAI,EAAE,MAAM;IAMxB,KAAK,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS;IAoBjD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAMxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,KAAK;CAMpB;AAED,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-api",
|
|
3
|
-
"version": "4.0.2-next.
|
|
3
|
+
"version": "4.0.2-next.b8a494a.0",
|
|
4
4
|
"description": "Plugin for @sapphire/framework to expose a REST API",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/ws": "^8.5.3",
|
|
43
43
|
"node-fetch": "2.6.7",
|
|
44
44
|
"psl": "^1.9.0",
|
|
45
|
-
"tslib": "^2.4.
|
|
45
|
+
"tslib": "^2.4.1"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@favware/cliff-jumper": "^1.
|
|
79
|
+
"@favware/cliff-jumper": "^1.9.0",
|
|
80
80
|
"gen-esm-wrapper": "^1.1.3",
|
|
81
|
-
"typedoc": "^0.23.
|
|
82
|
-
"typedoc-json-parser": "^
|
|
83
|
-
"typescript": "^4.
|
|
81
|
+
"typedoc": "^0.23.21",
|
|
82
|
+
"typedoc-json-parser": "^7.0.1",
|
|
83
|
+
"typescript": "^4.9.3"
|
|
84
84
|
}
|
|
85
85
|
}
|