Socket
Socket
Sign inDemoInstall

@ionic/cli-framework

Package Overview
Dependencies
Maintainers
24
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/cli-framework - npm Package Compare versions

Comparing version 5.0.4 to 5.0.5

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [5.0.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.0.4...@ionic/cli-framework@5.0.5) (2020-09-24)
**Note:** Version bump only for package @ionic/cli-framework
## [5.0.4](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.0.3...@ionic/cli-framework@5.0.4) (2020-09-02)

@@ -8,0 +16,0 @@

29

lib/help.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createCommandMetadataFromSchema = exports.CommandSchemaHelpFormatter = exports.NamespaceSchemaHelpFormatter = exports.CommandStringHelpFormatter = exports.CommandHelpFormatter = exports.NamespaceStringHelpFormatter = exports.NamespaceHelpFormatter = exports.HelpFormatter = exports.isCommandVisible = exports.isOptionVisible = void 0;
const cli_framework_output_1 = require("@ionic/cli-framework-output");
const utils_array_1 = require("@ionic/utils-array");
const utils_terminal_1 = require("@ionic/utils-terminal");
const Debug = require("debug");
const lodash = require("lodash");
const guards_1 = require("../guards");
const format_1 = require("../utils/format");
const colors_1 = require("./colors");

@@ -127,3 +126,3 @@ const options_1 = require("./options");

(await this.formatAfterSummary(metadata)));
const wrappedSummary = cli_framework_output_1.wordWrap(summary, { indentation: fullName.length + 5 });
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: fullName.length + 5 });
return wrappedSummary ? ` - ${wrappedSummary}` : '';

@@ -137,3 +136,3 @@ }

const text = formatFootnotes(metadata.description.trim(), metadata.footnotes, this.colors);
return cli_framework_output_1.wordWrap(text, { indentation: 4 });
return utils_terminal_1.wordWrap(text, { indentation: 4 });
}

@@ -175,3 +174,3 @@ async getGlobalOptions() {

const fullCmd = commands.map(cmd => lodash.tail(cmd.path).map(([p]) => p).join(' '));
const fillStringArray = format_1.generateFillSpaceStringList(fullCmd, this.dotswidth, weak('.'));
const fillStringArray = utils_terminal_1.generateFillSpaceStringList(fullCmd, this.dotswidth, weak('.'));
const formattedCommands = await Promise.all(commands.map(async (cmd, index) => {

@@ -182,3 +181,3 @@ const wrapColor = cmd.groups && cmd.groups.includes("deprecated" /* DEPRECATED */) ? weak : lodash.identity;

(await this.formatAfterCommandSummary(cmd)));
const wrappedSummary = cli_framework_output_1.wordWrap(summary, { indentation: this.dotswidth + 6 });
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: this.dotswidth + 6 });
const line = `${input(lodash.tail(cmd.path).map(([p]) => p).join(' '))}${wrappedSummary ? ' ' + fillStringArray[index] + ' ' + wrappedSummary : ''}`;

@@ -192,3 +191,3 @@ return wrapColor(line);

const namespaces = await this.namespace.groupCommandsByNamespace(commands);
const fillStringArray = format_1.generateFillSpaceStringList(namespaces.map(({ name }) => name + ' <subcommand>'), this.dotswidth, weak('.'));
const fillStringArray = utils_terminal_1.generateFillSpaceStringList(namespaces.map(({ name }) => name + ' <subcommand>'), this.dotswidth, weak('.'));
const formattedNamespaces = await Promise.all(namespaces.map(async (meta, i) => {

@@ -198,3 +197,3 @@ const summary = ((await this.formatBeforeNamespaceSummary(meta, meta.commands)) +

(await this.formatAfterNamespaceSummary(meta, meta.commands)));
const wrappedSummary = cli_framework_output_1.wordWrap(summary, { indentation: this.dotswidth + 6 });
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: this.dotswidth + 6 });
return `${input(meta.name + ' <subcommand>')}${wrappedSummary ? ' ' + fillStringArray[i] + ' ' + wrappedSummary : ''}`;

@@ -319,3 +318,3 @@ }));

(await this.formatAfterSummary(metadata)));
const wrappedSummary = cli_framework_output_1.wordWrap(summary, { indentation: fullName.length + 5 });
const wrappedSummary = utils_terminal_1.wordWrap(summary, { indentation: fullName.length + 5 });
return wrappedSummary ? ` - ${wrappedSummary}` : '';

@@ -329,3 +328,3 @@ }

const text = formatFootnotes(metadata.description.trim(), metadata.footnotes, this.colors);
return cli_framework_output_1.wordWrap(text, { indentation: 4 });
return utils_terminal_1.wordWrap(text, { indentation: 4 });
}

@@ -362,3 +361,3 @@ async formatInlineInput(input) {

const inputName = input(i.name);
const inputNameLength = cli_framework_output_1.stringWidth(inputName);
const inputNameLength = utils_terminal_1.stringWidth(inputName);
const fullLength = inputNameLength > this.dotswidth ? inputNameLength + 1 : this.dotswidth;

@@ -368,3 +367,3 @@ const fullDescription = ((await this.formatBeforeInputSummary(i)) +

(await this.formatAfterInputSummary(i)));
const wrappedDescription = cli_framework_output_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 });
const wrappedDescription = utils_terminal_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 });
return `${inputName} ${weak('.').repeat(fullLength - inputNameLength)} ${wrappedDescription}`;

@@ -376,3 +375,3 @@ }

const optionName = options_1.formatOptionName(opt, { colors: this.colors });
const optionNameLength = cli_framework_output_1.stringWidth(optionName);
const optionNameLength = utils_terminal_1.stringWidth(optionName);
const fullLength = optionNameLength > this.dotswidth ? optionNameLength + 1 : this.dotswidth;

@@ -382,3 +381,3 @@ const fullDescription = ((await this.formatBeforeOptionSummary(opt)) +

(await this.formatAfterOptionSummary(opt)));
const wrappedDescription = cli_framework_output_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 });
const wrappedDescription = utils_terminal_1.wordWrap(fullDescription, { indentation: this.dotswidth + 6 });
const line = `${optionName} ${weak('.').repeat(fullLength - optionNameLength)} ${wrappedDescription}`;

@@ -471,3 +470,3 @@ return wrapColor(line);

cmd = sepIndex === -1 ? input(cmd) : input(cmd.substring(0, sepIndex)) + cmd.substring(sepIndex);
const wrappedCmd = cli_framework_output_1.wordWrap(cmd, { indentation: 12, append: ' \\' });
const wrappedCmd = utils_terminal_1.wordWrap(cmd, { indentation: 12, append: ' \\' });
return `${weak('$')} ${input(fullName + ' ')}${wrappedCmd ? wrappedCmd : ''}`;

@@ -474,0 +473,0 @@ });

{
"name": "@ionic/cli-framework",
"version": "5.0.4",
"version": "5.0.5",
"description": "The foundation framework of the Ionic CLI",

@@ -22,10 +22,10 @@ "homepage": "https://ionicframework.com/",

"dependencies": {
"@ionic/cli-framework-output": "2.2.0",
"@ionic/cli-framework-output": "2.2.1",
"@ionic/utils-array": "2.1.5",
"@ionic/utils-fs": "3.1.5",
"@ionic/utils-object": "2.1.5",
"@ionic/utils-process": "2.1.6",
"@ionic/utils-process": "2.1.7",
"@ionic/utils-stream": "3.1.5",
"@ionic/utils-subprocess": "2.1.6",
"@ionic/utils-terminal": "2.2.1",
"@ionic/utils-subprocess": "2.1.7",
"@ionic/utils-terminal": "2.3.0",
"chalk": "^4.0.0",

@@ -37,3 +37,2 @@ "debug": "^4.0.0",

"tslib": "^2.0.1",
"untildify": "^4.0.0",
"write-file-atomic": "^3.0.0"

@@ -54,3 +53,3 @@ },

},
"gitHead": "e3853f3968f2b9c7fad9053b982f1c89ac96f0ed"
"gitHead": "172121cb759ca4010eca12cd173f37fa9d6d6d96"
}
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