Socket
Socket
Sign inDemoInstall

@ionic/cli-framework

Package Overview
Dependencies
Maintainers
23
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 4.2.0 to 4.2.1

8

CHANGELOG.md

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

## [4.2.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@4.2.0...@ionic/cli-framework@4.2.1) (2020-08-25)
**Note:** Version bump only for package @ionic/cli-framework
# [4.2.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@4.1.5...@ionic/cli-framework@4.2.0) (2020-06-02)

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

34

lib/colors.d.ts

@@ -0,7 +1,4 @@

import { ColorFunction, Colors as BaseColors } from '@ionic/cli-framework-output';
import { MetadataGroup } from '../definitions';
import { LoggerLevel } from './logger';
export declare type ColorFunction = (...text: string[]) => string;
export declare type LoggerColors = {
[L in LoggerLevel]: ColorFunction;
};
export { ColorFunction, LoggerColors } from '@ionic/cli-framework-output';
export declare type HelpGroupColors = {

@@ -17,28 +14,3 @@ [G in Exclude<MetadataGroup, MetadataGroup.HIDDEN | MetadataGroup.ADVANCED>]: ColorFunction;

}
export interface Colors {
/**
* Used to mark text as important. Comparable to HTML's <strong>.
*/
strong: ColorFunction;
/**
* Used to mark text as less important.
*/
weak: ColorFunction;
/**
* Used to mark text as input such as commands, inputs, options, etc.
*/
input: ColorFunction;
/**
* Used to mark text as successful.
*/
success: ColorFunction;
/**
* Used to mark text as failed.
*/
failure: ColorFunction;
/**
* Used to mark text as ancillary or supportive.
*/
ancillary: ColorFunction;
log: LoggerColors;
export interface Colors extends BaseColors {
help: HelpColors;

@@ -45,0 +17,0 @@ }

@@ -1,2 +0,3 @@

import { Logger } from './logger';
import { Logger } from '@ionic/cli-framework-output';
export { CreateTaggedFormatterOptions, DEFAULT_LOGGER_HANDLERS, ICON_FAILURE, ICON_SUCCESS, LOGGER_LEVELS, LOGGER_LEVEL_NAMES, LogRecord, LogUpdateOutputStrategy, LogUpdateOutputStrategyOptions, Logger, LoggerColors, LoggerFormatter, LoggerHandler, LoggerLevel, LoggerLevelWeight, OutputStrategy, RedrawLine, Spinner, StreamHandler, StreamHandlerOptions, StreamOutputStrategy, StreamOutputStrategyOptions, Task, TaskChain, TaskChainOptions, TaskOptions, createPrefixedFormatter, createTaggedFormatter, getLoggerLevelColor, getLoggerLevelName, } from '@ionic/cli-framework-output';
export * from './colors';

@@ -8,7 +9,4 @@ export * from './command';

export * from './help';
export * from './logger';
export * from './options';
export * from './output';
export * from './tasks';
export * from './validators';
export declare const logger: Logger;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const logger_1 = require("./logger");
const cli_framework_output_1 = require("@ionic/cli-framework-output");
var cli_framework_output_2 = require("@ionic/cli-framework-output");
exports.DEFAULT_LOGGER_HANDLERS = cli_framework_output_2.DEFAULT_LOGGER_HANDLERS;
exports.ICON_FAILURE = cli_framework_output_2.ICON_FAILURE;
exports.ICON_SUCCESS = cli_framework_output_2.ICON_SUCCESS;
exports.LOGGER_LEVELS = cli_framework_output_2.LOGGER_LEVELS;
exports.LOGGER_LEVEL_NAMES = cli_framework_output_2.LOGGER_LEVEL_NAMES;
exports.LogUpdateOutputStrategy = cli_framework_output_2.LogUpdateOutputStrategy;
exports.Logger = cli_framework_output_2.Logger;
exports.Spinner = cli_framework_output_2.Spinner;
exports.StreamHandler = cli_framework_output_2.StreamHandler;
exports.StreamOutputStrategy = cli_framework_output_2.StreamOutputStrategy;
exports.Task = cli_framework_output_2.Task;
exports.TaskChain = cli_framework_output_2.TaskChain;
exports.createPrefixedFormatter = cli_framework_output_2.createPrefixedFormatter;
exports.createTaggedFormatter = cli_framework_output_2.createTaggedFormatter;
exports.getLoggerLevelColor = cli_framework_output_2.getLoggerLevelColor;
exports.getLoggerLevelName = cli_framework_output_2.getLoggerLevelName;
tslib_1.__exportStar(require("./colors"), exports);

@@ -11,7 +28,4 @@ tslib_1.__exportStar(require("./command"), exports);

tslib_1.__exportStar(require("./help"), exports);
tslib_1.__exportStar(require("./logger"), exports);
tslib_1.__exportStar(require("./options"), exports);
tslib_1.__exportStar(require("./output"), exports);
tslib_1.__exportStar(require("./tasks"), exports);
tslib_1.__exportStar(require("./validators"), exports);
exports.logger = new logger_1.Logger();
exports.logger = new cli_framework_output_1.Logger();
{
"name": "@ionic/cli-framework",
"version": "4.2.0",
"version": "4.2.1",
"description": "The foundation framework of the Ionic CLI",

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

"dependencies": {
"@ionic/utils-array": "2.1.3",
"@ionic/utils-fs": "3.1.3",
"@ionic/utils-object": "2.1.3",
"@ionic/utils-process": "2.1.3",
"@ionic/utils-stream": "3.1.3",
"@ionic/utils-subprocess": "2.1.3",
"@ionic/utils-terminal": "2.1.3",
"@ionic/cli-framework-output": "1.0.1",
"@ionic/utils-array": "2.1.4",
"@ionic/utils-fs": "3.1.4",
"@ionic/utils-object": "2.1.4",
"@ionic/utils-process": "2.1.4",
"@ionic/utils-stream": "3.1.4",
"@ionic/utils-subprocess": "2.1.4",
"@ionic/utils-terminal": "2.1.4",
"chalk": "^4.0.0",
"debug": "^4.0.0",
"lodash": "^4.17.5",
"log-update": "^4.0.0",
"minimist": "^1.2.0",
"rimraf": "^3.0.0",
"slice-ansi": "^4.0.0",
"string-width": "^4.1.0",
"strip-ansi": "^6.0.0",
"tslib": "1.11.2",
"untildify": "^4.0.0",
"wrap-ansi": "^7.0.0",
"write-file-atomic": "^3.0.0"

@@ -46,8 +42,6 @@ },

"@types/debug": "^4.1.1",
"@types/jest": "^25.1.0",
"@types/jest": "^26.0.10",
"@types/lodash": "^4.14.104",
"@types/minimist": "^1.2.0",
"@types/node": "~10.17.13",
"@types/slice-ansi": "^4.0.0",
"@types/wrap-ansi": "^3.0.0",
"@types/write-file-atomic": "^3.0.0",

@@ -57,7 +51,7 @@ "jest": "^25.1.0",

"lint-staged": "^10.0.2",
"ts-jest": "~25.4.0",
"ts-jest": "~26.2.0",
"tslint": "^5.9.1",
"typescript": "~3.8.2"
},
"gitHead": "483d9ab593c4715ab21b3b721c6735c7e01d367e"
"gitHead": "15d71983a302a854499d80eaf3eb431904b77f0a"
}

@@ -1,14 +0,4 @@

import stringWidth = require('string-width');
import stripAnsi = require('strip-ansi');
export { stringWidth, stripAnsi };
export declare const TTY_WIDTH: number;
export { TTY_WIDTH, WordWrapOptions, indent, sliceAnsi, stringWidth, stripAnsi, wordWrap } from '@ionic/cli-framework-output';
export declare function prettyPath(p: string): string;
export declare function expandPath(p: string): string;
export declare function indent(n?: number): string;
export interface WordWrapOptions {
width?: number;
indentation?: number;
append?: string;
}
export declare function wordWrap(msg: string, { width, indentation, append }: WordWrapOptions): string;
export declare function generateFillSpaceStringList(list: string[], optimalLength?: number, fillCharacter?: string): string[];

@@ -15,0 +5,0 @@ export interface ColumnarOptions {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cli_framework_output_1 = require("@ionic/cli-framework-output");
const chalk = require("chalk");
const os = require("os");
const path = require("path");
const sliceAnsi = require("slice-ansi");
const stringWidth = require("string-width");
exports.stringWidth = stringWidth;
const stripAnsi = require("strip-ansi");
exports.stripAnsi = stripAnsi;
const untildify = require("untildify");
const wrapAnsi = require("wrap-ansi");
const MIN_TTY_WIDTH = 80;
const MAX_TTY_WIDTH = 120;
exports.TTY_WIDTH = process.stdout.columns ? Math.max(MIN_TTY_WIDTH, Math.min(process.stdout.columns, MAX_TTY_WIDTH)) : Infinity;
var cli_framework_output_2 = require("@ionic/cli-framework-output");
exports.TTY_WIDTH = cli_framework_output_2.TTY_WIDTH;
exports.indent = cli_framework_output_2.indent;
exports.sliceAnsi = cli_framework_output_2.sliceAnsi;
exports.stringWidth = cli_framework_output_2.stringWidth;
exports.stripAnsi = cli_framework_output_2.stripAnsi;
exports.wordWrap = cli_framework_output_2.wordWrap;
function prettyPath(p) {

@@ -45,10 +44,2 @@ p = expandPath(p);

exports.expandPath = expandPath;
function indent(n = 4) {
return ' '.repeat(n);
}
exports.indent = indent;
function wordWrap(msg, { width = exports.TTY_WIDTH, indentation = 0, append = '' }) {
return wrapAnsi(msg, width - indentation - append.length, { trim: true }).split('\n').join(`${append}\n${indent(indentation)}`);
}
exports.wordWrap = wordWrap;
function generateFillSpaceStringList(list, optimalLength = 1, fillCharacter = ' ') {

@@ -58,6 +49,6 @@ if (optimalLength < 2) {

}
const longestItem = Math.max(...list.map(item => stringWidth(item)));
const longestItem = Math.max(...list.map(item => cli_framework_output_1.stringWidth(item)));
const fullLength = longestItem > optimalLength ? longestItem + 1 : optimalLength;
const fullLengthString = fillCharacter.repeat(fullLength);
return list.map(item => sliceAnsi(fullLengthString, 0, fullLength - stringWidth(item)));
return list.map(item => cli_framework_output_1.sliceAnsi(fullLengthString, 0, fullLength - cli_framework_output_1.stringWidth(item)));
}

@@ -114,3 +105,3 @@ exports.generateFillSpaceStringList = generateFillSpaceStringList;

const r = a[i] + b[i];
longestRowLength = Math.max(longestRowLength, stringWidth(r));
longestRowLength = Math.max(longestRowLength, cli_framework_output_1.stringWidth(r));
return r;

@@ -117,0 +108,0 @@ });

@@ -5,3 +5,2 @@ export declare const EMAIL_REGEX: RegExp;

export declare function isValidURL(url?: any): boolean;
export declare function enforceLF(str: string): string;
export declare function strcmp(a: string | undefined, b: string | undefined): number;

@@ -8,0 +7,0 @@ export declare function str2num(value: any, defaultValue?: number): number;

@@ -20,6 +20,2 @@ "use strict";

exports.isValidURL = isValidURL;
function enforceLF(str) {
return str.match(/[\r\n]$/) ? str : str + '\n';
}
exports.enforceLF = enforceLF;
function strcmp(a, b) {

@@ -26,0 +22,0 @@ if (!a) {

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