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

@itsmapleleaf/gatekeeper

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itsmapleleaf/gatekeeper - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

6

dist/core/gatekeeper.d.ts

@@ -10,2 +10,6 @@ import type * as Discord from "discord.js";

/**
* The name of the bot. At the moment, only used in debug logging
*/
name?: string;
/**
* Enables debug logging. Shows when commands are created, activated, registered, etc.

@@ -59,2 +63,2 @@ */

*/
export declare function createGatekeeper({ debug, }?: GatekeeperOptions): GatekeeperInstance;
export declare function createGatekeeper({ name, debug, }?: GatekeeperOptions): GatekeeperInstance;

6

dist/core/gatekeeper.js

@@ -32,9 +32,7 @@ "use strict";

*/
function createGatekeeper({ debug = false, } = {}) {
function createGatekeeper({ name = "gatekeeper-bot", debug = false, } = {}) {
const slashCommands = new Map();
const userCommands = new Map();
const messageCommands = new Map();
const logger = debug
? (0, logger_1.createConsoleLogger)({ name: "gatekeeper" })
: (0, logger_1.createNoopLogger)();
const logger = debug ? (0, logger_1.createConsoleLogger)({ name }) : (0, logger_1.createNoopLogger)();
const gatekeeper = {

@@ -41,0 +39,0 @@ addCommand(definition) {

@@ -5,3 +5,3 @@ {

"author": "itsmapleleaf",
"version": "0.3.1",
"version": "0.3.2",
"main": "dist/main.js",

@@ -8,0 +8,0 @@ "types": "dist/main.d.ts",

@@ -9,2 +9,15 @@ # gatekeeper

Install:
```sh
# npm
npm install @itsmapleleaf/gatekeeper discord.js
# yarn
yarn add @itsmapleleaf/gatekeeper discord.js
# pnpm
pnpm add @itsmapleleaf/gatekeeper discord.js
```
Here's a taste of what Gatekeeper looks like:

@@ -11,0 +24,0 @@

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