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

@aiot-toolkit/commander

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aiot-toolkit/commander - npm Package Compare versions

Comparing version 2.0.2-dev.8 to 2.0.2

9

lib/Command.js

@@ -11,7 +11,4 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const StringUtil_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/utils/StringUtil"));
const shared_utils_1 = require("@aiot-toolkit/shared-utils");
const prompts_1 = require("@inquirer/prompts");

@@ -57,3 +54,3 @@ const commander_1 = require("commander");

const { name, enableInquirer } = item;
const cameName = StringUtil_1.default.hyphenedToCamel(name);
const cameName = shared_utils_1.StringUtil.hyphenedToCamel(name);
const valueSource = instance.getOptionValueSource(cameName);

@@ -87,3 +84,3 @@ const haveSet = valueSource && valueSource !== 'default';

const { name, description, type, defaultValue } = param;
const cameName = StringUtil_1.default.hyphenedToCamel(name);
const cameName = shared_utils_1.StringUtil.hyphenedToCamel(name);
let result;

@@ -90,0 +87,0 @@ switch (type) {

@@ -1,6 +0,8 @@

export { default as Command } from './Command';
export { default as ICommand } from './interface/ICommand';
export { default as IParam } from './interface/IParam';
export { default as IProgram } from './interface/IProgram';
export { default as IPersistentCommandData } from './persistentCommand/IPersistentCommandData';
export { default as PersistentCommand } from './persistentCommand/PersistentCommand';
import Command from './Command';
import ICommand from './interface/ICommand';
import IParam from './interface/IParam';
import IProgram from './interface/IProgram';
import IPersistentCommandData from './persistentCommand/IPersistentCommandData';
import PersistentCommand from './persistentCommand/PersistentCommand';
export default Command;
export { Command, ICommand, IParam, IPersistentCommandData, IProgram, PersistentCommand };

@@ -7,5 +7,6 @@ "use strict";

exports.PersistentCommand = exports.Command = void 0;
var Command_1 = require("./Command");
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return __importDefault(Command_1).default; } });
var PersistentCommand_1 = require("./persistentCommand/PersistentCommand");
Object.defineProperty(exports, "PersistentCommand", { enumerable: true, get: function () { return __importDefault(PersistentCommand_1).default; } });
const Command_1 = __importDefault(require("./Command"));
exports.Command = Command_1.default;
const PersistentCommand_1 = __importDefault(require("./persistentCommand/PersistentCommand"));
exports.PersistentCommand = PersistentCommand_1.default;
exports.default = Command_1.default;
{
"name": "@aiot-toolkit/commander",
"version": "2.0.2-dev.8",
"version": "2.0.2",
"description": "A tool that generates complete commands with configuration",

@@ -23,7 +23,8 @@ "keywords": [

"dependencies": {
"@aiot-toolkit/shared-utils": "2.0.2-dev.8",
"@aiot-toolkit/shared-utils": "2.0.2",
"@inquirer/prompts": "^3.0.3",
"chalk": "^4.0.0",
"commander": "^11.0.0"
},
"gitHead": "831575362ba47778c9441f95cec41ddded36cffc"
"gitHead": "8ca4bf2ed7bcf11911e5c514696951bdba4fc12d"
}
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