Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@sapphire/plugin-api

Package Overview
Dependencies
Maintainers
3
Versions
810
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire/plugin-api - npm Package Compare versions

Comparing version 3.0.0-next.658ce91.0 to 3.0.0-next.71b4ea5d.0

4

dist/lib/structures/http/Auth.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc