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

@hephaestus/core

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hephaestus/core - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

19

dist/src/modules/interaction/command.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommandMap = void 0;
const utils_1 = require("@hephaestus/utils");
const loadable_1 = require("../loadable");

@@ -10,8 +11,18 @@ class CommandMap extends loadable_1.LoadableMap {

}
if (!('name' in loadable)) {
if (!(0, utils_1.unknownHasKey)(loadable, 'name')) {
return false;
}
if (!('action' in loadable) &&
(!('subCommands' in loadable) || !('subCommandGroups' in loadable))) {
return false;
if (!(0, utils_1.unknownHasKey)(loadable, 'action')) {
if (!(0, utils_1.unknownHasKey)(loadable, 'options') ||
!Array.isArray(loadable.options)) {
return false;
}
return loadable.options.some((option) => {
if ((0, utils_1.unknownHasKey)(option, 'type')) {
if (typeof option.type === 'number' && option.type <= 2) {
return true;
}
}
return false;
});
}

@@ -18,0 +29,0 @@ return true;

{
"name": "@hephaestus/core",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "> TODO: description",

@@ -32,3 +32,3 @@ "author": "Alex Taxiera <alex.taxiera@gmail.com>",

},
"gitHead": "f49886fcfd1e80fbc2bd2293fb73f03aefc21238"
"gitHead": "d33175d0273332c7557344189d69ec4d8db4f45d"
}

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