@ionic/cli-framework-output
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.2.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.2.0...@ionic/cli-framework-output@2.2.1) (2020-09-24) | ||
**Note:** Version bump only for package @ionic/cli-framework-output | ||
# [2.2.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.1.0...@ionic/cli-framework-output@2.2.0) (2020-09-02) | ||
@@ -8,0 +16,0 @@ |
@@ -0,5 +1,6 @@ | ||
import { TTY_WIDTH, indent, sliceAnsi, stringWidth, stripAnsi, wordWrap } from '@ionic/utils-terminal'; | ||
import { Logger, CreateTaggedFormatterOptions } from './logger'; | ||
import { OutputStrategy } from './output'; | ||
export { TTY_WIDTH, indent, sliceAnsi, stringWidth, stripAnsi, wordWrap }; | ||
export * from './colors'; | ||
export * from './format'; | ||
export * from './logger'; | ||
@@ -6,0 +7,0 @@ export * from './output'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDefaultLogger = void 0; | ||
exports.createDefaultLogger = exports.wordWrap = exports.stripAnsi = exports.stringWidth = exports.sliceAnsi = exports.indent = exports.TTY_WIDTH = void 0; | ||
const tslib_1 = require("tslib"); | ||
const utils_terminal_1 = require("@ionic/utils-terminal"); | ||
Object.defineProperty(exports, "TTY_WIDTH", { enumerable: true, get: function () { return utils_terminal_1.TTY_WIDTH; } }); | ||
Object.defineProperty(exports, "indent", { enumerable: true, get: function () { return utils_terminal_1.indent; } }); | ||
Object.defineProperty(exports, "sliceAnsi", { enumerable: true, get: function () { return utils_terminal_1.sliceAnsi; } }); | ||
Object.defineProperty(exports, "stringWidth", { enumerable: true, get: function () { return utils_terminal_1.stringWidth; } }); | ||
Object.defineProperty(exports, "stripAnsi", { enumerable: true, get: function () { return utils_terminal_1.stripAnsi; } }); | ||
Object.defineProperty(exports, "wordWrap", { enumerable: true, get: function () { return utils_terminal_1.wordWrap; } }); | ||
const colors_1 = require("./colors"); | ||
@@ -9,3 +16,2 @@ const logger_1 = require("./logger"); | ||
tslib_1.__exportStar(require("./colors"), exports); | ||
tslib_1.__exportStar(require("./format"), exports); | ||
tslib_1.__exportStar(require("./logger"), exports); | ||
@@ -12,0 +18,0 @@ tslib_1.__exportStar(require("./output"), exports); |
/// <reference types="node" /> | ||
import { WordWrapOptions } from '@ionic/utils-terminal'; | ||
import { ColorFunction, Colors } from './colors'; | ||
import { WordWrapOptions } from './format'; | ||
export interface LogRecord { | ||
@@ -5,0 +5,0 @@ msg: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createPrefixedFormatter = exports.createTaggedFormatter = exports.Logger = exports.DEFAULT_LOGGER_HANDLERS = exports.StreamHandler = exports.getLoggerLevelColor = exports.getLoggerLevelName = exports.LOGGER_LEVEL_NAMES = exports.LOGGER_LEVELS = void 0; | ||
const utils_terminal_1 = require("@ionic/utils-terminal"); | ||
const stream_1 = require("stream"); | ||
const util = require("util"); | ||
const colors_1 = require("./colors"); | ||
const format_1 = require("./format"); | ||
const utils_1 = require("./utils"); | ||
@@ -185,7 +185,7 @@ exports.LOGGER_LEVELS = Object.freeze({ | ||
const title = titleize && lines.length > 0 ? `${strong(levelColor ? levelColor(firstLine) : firstLine)}\n` : firstLine; | ||
const indentation = tag ? format_1.stringWidth(tag) + 1 : 0; | ||
const indentation = tag ? utils_terminal_1.stringWidth(tag) + 1 : 0; | ||
const pulledLines = titleize ? utils_1.dropWhile(lines, l => l === '') : lines; | ||
return ((tag ? `${tag} ` : '') + | ||
(wrap | ||
? format_1.wordWrap([title, ...pulledLines].join('\n'), { indentation, ...(typeof wrap === 'object' ? wrap : {}) }) | ||
? utils_terminal_1.wordWrap([title, ...pulledLines].join('\n'), { indentation, ...(typeof wrap === 'object' ? wrap : {}) }) | ||
: [title, ...pulledLines.map(l => l ? ' '.repeat(indentation) + l : '')].join('\n'))); | ||
@@ -192,0 +192,0 @@ }; |
{ | ||
"name": "@ionic/cli-framework-output", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "The log/tasks/spinners portion of Ionic CLI Framework", | ||
@@ -27,10 +27,6 @@ "homepage": "https://ionicframework.com/", | ||
"dependencies": { | ||
"@ionic/utils-terminal": "2.2.1", | ||
"@ionic/utils-terminal": "2.3.0", | ||
"debug": "^4.0.0", | ||
"signal-exit": "^3.0.3", | ||
"slice-ansi": "^4.0.0", | ||
"string-width": "^4.1.0", | ||
"strip-ansi": "^6.0.0", | ||
"tslib": "^2.0.1", | ||
"wrap-ansi": "^7.0.0" | ||
"tslib": "^2.0.1" | ||
}, | ||
@@ -52,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "e3853f3968f2b9c7fad9053b982f1c89ac96f0ed" | ||
"gitHead": "172121cb759ca4010eca12cd173f37fa9d6d6d96" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
32803
16
799
+ Added@ionic/utils-terminal@2.3.0(transitive)
+ Addeduntildify@4.0.0(transitive)
- Removedslice-ansi@^4.0.0
- Removedstring-width@^4.1.0
- Removedstrip-ansi@^6.0.0
- Removedwrap-ansi@^7.0.0
- Removed@ionic/utils-terminal@2.2.1(transitive)
Updated@ionic/utils-terminal@2.3.0