New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sapphire/pieces

Package Overview
Dependencies
Maintainers
3
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire/pieces - npm Package Compare versions

Comparing version 3.0.1-next.fcedd87.0 to 3.0.1

16

dist/index.d.ts
import Collection from '@discordjs/collection';
import { Awaited, Constructor, Ctor } from '@sapphire/utilities';
import { Awaitable, Constructor, Ctor } from '@sapphire/utilities';

@@ -146,3 +146,3 @@ declare const enum LoaderErrorType {

*/
declare type PreloadResult<T extends Piece> = Awaited<Constructor<T> & Record<PropertyKey, unknown>>;
declare type PreloadResult<T extends Piece> = Awaitable<Constructor<T> & Record<PropertyKey, unknown>>;
/**

@@ -221,3 +221,3 @@ * Represents the return data from {@link ILoaderStrategy.preload}

*/
onLoad(store: Store<T>, piece: T): Awaited<unknown>;
onLoad(store: Store<T>, piece: T): Awaitable<unknown>;
/**

@@ -227,3 +227,3 @@ * Called after all pieces have been loaded.

*/
onLoadAll(store: Store<T>): Awaited<unknown>;
onLoadAll(store: Store<T>): Awaitable<unknown>;
/**

@@ -234,3 +234,3 @@ * Called after a piece has been unloaded or overwritten by a newly loaded piece.

*/
onUnload(store: Store<T>, piece: T): Awaited<unknown>;
onUnload(store: Store<T>, piece: T): Awaitable<unknown>;
/**

@@ -240,3 +240,3 @@ * Called after all pieces have been unloaded.

*/
onUnloadAll(store: Store<T>): Awaited<unknown>;
onUnloadAll(store: Store<T>): Awaitable<unknown>;
/**

@@ -448,3 +448,3 @@ * @param error The error that was thrown.

*/
onLoad(): Awaited<unknown>;
onLoad(): Awaitable<unknown>;
/**

@@ -454,3 +454,3 @@ * Per-piece listener that is called when the piece is unloaded from the store.

*/
onUnload(): Awaited<unknown>;
onUnload(): Awaitable<unknown>;
/**

@@ -457,0 +457,0 @@ * Unloads and disables the piece.

{
"name": "@sapphire/pieces",
"version": "3.0.1-next.fcedd87.0",
"version": "3.0.1",
"description": "Sapphire's piece loader.",

@@ -30,13 +30,13 @@ "main": "dist/index.js",

"@discordjs/collection": "^0.2.1",
"@sapphire/utilities": "^2.0.1",
"@sapphire/utilities": "^3.0.1",
"tslib": "^2.3.1"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@favware/npm-deprecate": "^1.0.2",
"@favware/rollup-type-bundler": "^1.0.3",
"@sapphire/eslint-config": "^3.2.3",
"@sapphire/prettier-config": "^1.1.6",
"@sapphire/ts-config": "^3.0.0",
"@commitlint/cli": "^13.2.0",
"@commitlint/config-conventional": "^13.2.0",
"@favware/npm-deprecate": "^1.0.3",
"@favware/rollup-type-bundler": "^1.0.4",
"@sapphire/eslint-config": "^3.3.0",
"@sapphire/prettier-config": "^1.2.0",
"@sapphire/ts-config": "^3.1.0",
"@types/node": "^16.9.1",

@@ -49,4 +49,3 @@ "cz-conventional-changelog": "^3.3.0",

"standard-version": "^9.3.1",
"typedoc": "^0.21.9",
"typedoc-plugin-nojekyll": "^1.0.1",
"typedoc": "^0.22.5",
"typescript": "^4.4.3"

@@ -63,4 +62,4 @@ },

"engines": {
"node": ">=12",
"npm": ">=6"
"node": ">=v14.18.0",
"npm": ">=7.24.1"
},

@@ -97,3 +96,3 @@ "keywords": [

"resolutions": {
"acorn": "^8.4.1",
"acorn": "^8.5.0",
"minimist": "^1.2.5",

@@ -105,8 +104,8 @@ "kind-of": "^6.0.3",

"lodash": "^4.17.21",
"marked": "^2.1.3",
"marked": "^3.0.4",
"merge": "^2.1.1",
"trim": "^1.0.1",
"trim-newlines": "^3.0.1"
"trim-newlines": "^4.0.2"
},
"prettier": "@sapphire/prettier-config"
}

@@ -12,3 +12,2 @@ <div align="center">

[![npm](https://img.shields.io/npm/v/@sapphire/pieces?color=crimson&logo=npm&style=flat-square)](https://www.npmjs.com/package/@sapphire/pieces)
[![Depfu](https://badges.depfu.com/badges/30f62cdba0c569448b5f93d532dad8e4/count.svg)](https://depfu.com/github/sapphiredev/project_id=15121)

@@ -50,6 +49,8 @@ </div>

<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/pieces/commits?author=kyranet" title="Code">💻</a> <a href="https://github.com/sapphiredev/pieces/commits?author=kyranet" title="Documentation">📖</a> <a href="#design-kyranet" title="Design">🎨</a> <a href="#ideas-kyranet" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-kyranet" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#projectManagement-kyranet" 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</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=QuantumlyTangled" title="Code">💻</a> <a href="#userTesting-QuantumlyTangled" title="User Testing">📓</a></td>
<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/pieces/commits?author=favna" title="Code">💻</a> <a href="#infra-favna" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</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</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=Quantumlyy" title="Code">💻</a> <a href="#userTesting-Quantumlyy" title="User Testing">📓</a></td>
<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/pieces/commits?author=Favna" title="Code">💻</a> <a href="#infra-Favna" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="http://leonard.sh"><img src="https://avatars.githubusercontent.com/u/35312043?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Narcis B.</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=LeonardSSH" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/hblomqvist"><img src="https://avatars.githubusercontent.com/u/74746184?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Henning Blomqvist</b></sub></a><br /><a href="https://github.com/sapphiredev/pieces/commits?author=hblomqvist" title="Code">💻</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/pieces/commits?author=Stitch07" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/vladfrangu"><img src="https://avatars.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/pieces/commits?author=vladfrangu" title="Code">💻</a></td>
</tr>

@@ -56,0 +57,0 @@ </table>

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