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

djs-commander

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

djs-commander - npm Package Compare versions

Comparing version 0.0.41 to 0.0.42

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Change Log

## [0.0.42] - 2023-03-07
### Added
- Multiple arguments support for events
## [0.0.41] - 2023-03-07

@@ -9,0 +15,0 @@

7

dist/index.js

@@ -222,3 +222,2 @@ var __defProp = Object.defineProperty;

this._commands = commands;
this._commandsToRegister = JSON.parse(JSON.stringify(commands));
}

@@ -228,3 +227,3 @@ _registerSlashCommands() {

client: this._client,
commands: this._commandsToRegister,
commands: this._commands,
testServer: this._testServer

@@ -239,6 +238,6 @@ });

eventFuncPaths.sort();
this._client.on(eventName, async (arg) => {
this._client.on(eventName, async (...arg) => {
for (const eventFuncPath of eventFuncPaths) {
const eventFunc = require(eventFuncPath);
await eventFunc(arg, this._client, this);
await eventFunc(...arg, this._client, this);
}

@@ -245,0 +244,0 @@ });

{
"name": "djs-commander",
"version": "0.0.41",
"version": "0.0.42",
"description": "A command and event handler that works seemlessly with Discord.js",

@@ -5,0 +5,0 @@ "types": "./index.d.ts",

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