@sapphire/plugin-api
Advanced tools
Comparing version 3.0.0-next.658ce91.0 to 3.0.0-next.71b4ea5d.0
@@ -1,2 +0,2 @@ | ||
import { Awaited } from '@sapphire/utilities'; | ||
import { Awaitable } from '@sapphire/utilities'; | ||
import { RESTGetAPICurrentUserConnectionsResult, RESTGetAPICurrentUserGuildsResult, RESTGetAPICurrentUserResult, Snowflake } from 'discord-api-types/v9'; | ||
@@ -162,4 +162,4 @@ export declare class Auth { | ||
*/ | ||
(data: LoginData): Awaited<T>; | ||
(data: LoginData): Awaitable<T>; | ||
} | ||
//# sourceMappingURL=Auth.d.ts.map |
/// <reference types="node" /> | ||
import { Piece } from '@sapphire/pieces'; | ||
import type { Awaited } from '@sapphire/utilities'; | ||
import type { Awaitable } from '@sapphire/utilities'; | ||
import type { ApiRequest } from './api/ApiRequest'; | ||
@@ -15,3 +15,3 @@ import type { Route } from './Route'; | ||
*/ | ||
abstract run(request: ApiRequest): Awaited<unknown>; | ||
abstract run(request: ApiRequest): Awaitable<unknown>; | ||
/** | ||
@@ -18,0 +18,0 @@ * Checks if a route accepts the media type from this parser. |
import { Piece, PieceContext, PieceOptions } from '@sapphire/pieces'; | ||
import type { Awaited } from '@sapphire/utilities'; | ||
import type { Awaitable } from '@sapphire/utilities'; | ||
import type { ApiRequest } from './api/ApiRequest'; | ||
@@ -28,3 +28,3 @@ import type { ApiResponse } from './api/ApiResponse'; | ||
*/ | ||
abstract run(request: ApiRequest, response: ApiResponse, route: Route | null): Awaited<unknown>; | ||
abstract run(request: ApiRequest, response: ApiResponse, route: Route | null): Awaitable<unknown>; | ||
} | ||
@@ -31,0 +31,0 @@ /** |
import { Piece, PieceContext, PieceOptions } from '@sapphire/pieces'; | ||
import type { Awaited } from '@sapphire/utilities'; | ||
import type { Awaitable } from '@sapphire/utilities'; | ||
import { Collection } from 'discord.js'; | ||
@@ -33,3 +33,3 @@ import { RouteData } from '../utils/RouteData'; | ||
*/ | ||
onLoad(): Awaited<unknown>; | ||
onLoad(): Awaitable<unknown>; | ||
/** | ||
@@ -39,3 +39,3 @@ * Per-piece listener that is called when the piece is unloaded from the store. | ||
*/ | ||
onUnload(): Awaited<unknown>; | ||
onUnload(): Awaitable<unknown>; | ||
} | ||
@@ -42,0 +42,0 @@ export interface RouteOptions extends PieceOptions { |
{ | ||
"name": "@sapphire/plugin-api", | ||
"version": "3.0.0-next.658ce91.0", | ||
"version": "3.0.0-next.71b4ea5d.0", | ||
"description": "Plugin for @sapphire/framework to expose a REST API", | ||
@@ -30,4 +30,3 @@ "author": "@sapphire", | ||
"lint": "eslint src tests --ext ts --fix", | ||
"build": "tsc -b src", | ||
"postbuild": "run-p esm:**", | ||
"build": "tsc -b src && yarn esm:register && yarn esm:default", | ||
"esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs", | ||
@@ -56,4 +55,4 @@ "esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs", | ||
"engines": { | ||
"node": ">=14", | ||
"npm": ">=6" | ||
"node": ">=v14.18.0", | ||
"npm": ">=7.24.2" | ||
}, | ||
@@ -76,3 +75,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "658ce917d5f402c47ee57e14561bea48fb417dba" | ||
"gitHead": "71b4ea5dd8b55dc12a41a58e53e962d677c8c06f" | ||
} |
@@ -120,3 +120,3 @@ <div align="center"> | ||
<td align="center"><a href="https://favware.tech/"><img src="https://avatars3.githubusercontent.com/u/4019718?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeroen Claassens</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Favna" title="Code">π»</a> <a href="#infra-Favna" title="Infrastructure (Hosting, Build-Tools, etc)">π</a> <a href="#projectManagement-Favna" title="Project Management">π</a></td> | ||
<td align="center"><a href="https://quantumlytangled.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Code">π»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=QuantumlyTangled" title="Documentation">π</a></td> | ||
<td align="center"><a href="https://Quantumlyy.com"><img src="https://avatars1.githubusercontent.com/u/7919610?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nejc Drobnic</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Code">π»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Quantumlyy" title="Documentation">π</a></td> | ||
<td align="center"><a href="https://github.com/kyranet"><img src="https://avatars0.githubusercontent.com/u/24852502?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Antonio RomΓ‘n</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kyranet" title="Code">π»</a></td> | ||
@@ -129,6 +129,9 @@ <td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars3.githubusercontent.com/u/17960496?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vlad Frangu</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/pulls?q=is%3Apr+reviewed-by%3Avladfrangu" title="Reviewed Pull Requests">π</a></td> | ||
<tr> | ||
<td align="center"><a href="https://github.com/Nytelife26"><img src="https://avatars1.githubusercontent.com/u/22531310?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tyler J Russell</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Nytelife26" title="Code">π»</a></td> | ||
<td align="center"><a href="https://github.com/Nytelife26"><img src="https://avatars1.githubusercontent.com/u/22531310?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tyler J Russell</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Nytelife26" title="Code">π»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=Nytelife26" title="Documentation">π</a></td> | ||
<td align="center"><a href="https://github.com/Stitch07"><img src="https://avatars.githubusercontent.com/u/29275227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stitch07</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Stitch07" title="Code">π»</a> <a href="https://github.com/sapphiredev/plugins/issues?q=author%3AStitch07" title="Bug reports">π</a></td> | ||
<td align="center"><a href="https://github.com/PlatinBae"><img src="https://avatars.githubusercontent.com/u/50950966?v=4?s=100" width="100px;" alt=""/><br /><sub><b>PlatinBae</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=PlatinBae" title="Documentation">π</a></td> | ||
<td align="center"><a href="https://kaname.netlify.app"><img src="https://avatars.githubusercontent.com/u/56084970?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kaname</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Code">π»</a> <a href="https://github.com/sapphiredev/plugins/commits?author=kaname-png" title="Documentation">π</a></td> | ||
<td align="center"><a href="https://github.com/noftaly"><img src="https://avatars.githubusercontent.com/u/34779161?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliot</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=noftaly" title="Code">π»</a></td> | ||
<td align="center"><a href="https://github.com/Lioness100"><img src="https://avatars.githubusercontent.com/u/65814829?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lioness100</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=Lioness100" title="Code">π»</a></td> | ||
<td align="center"><a href="https://github.com/UndiedGamer"><img src="https://avatars.githubusercontent.com/u/84702365?v=4?s=100" width="100px;" alt=""/><br /><sub><b>UndiedGamer</b></sub></a><br /><a href="https://github.com/sapphiredev/plugins/commits?author=UndiedGamer" title="Code">π»</a></td> | ||
</tr> | ||
@@ -135,0 +138,0 @@ </table> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200534
144