@ionic/cli-framework-output
Advanced tools
Comparing version 2.2.6-testing.0 to 2.2.6
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.2.6](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.2.5...@ionic/cli-framework-output@2.2.6) (2023-03-29) | ||
**Note:** Version bump only for package @ionic/cli-framework-output | ||
## [2.2.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.2.4...@ionic/cli-framework-output@2.2.5) (2022-06-16) | ||
@@ -8,0 +16,0 @@ |
@@ -25,3 +25,3 @@ "use strict"; | ||
const prefix = process.argv.includes('--log-timestamps') ? () => `${weak('[' + new Date().toISOString() + ']')}` : ''; | ||
const formatter = logger_1.createTaggedFormatter({ colors: output.colors, prefix, titleize: true, wrap: true, ...formatterOptions }); | ||
const formatter = (0, logger_1.createTaggedFormatter)({ colors: output.colors, prefix, titleize: true, wrap: true, ...formatterOptions }); | ||
const handlers = new Set([new logger_1.StreamHandler({ stream: output.stream, formatter })]); | ||
@@ -28,0 +28,0 @@ return new logger_1.Logger({ handlers }); |
@@ -52,3 +52,3 @@ "use strict"; | ||
const msg = this.formatter && record.format !== false ? this.formatter(record) : record.msg; | ||
this.stream.write(utils_1.enforceLF(msg)); | ||
this.stream.write((0, utils_1.enforceLF)(msg)); | ||
} | ||
@@ -186,7 +186,7 @@ } | ||
const title = titleize && lines.length > 0 ? `${strong(levelColor ? levelColor(firstLine) : firstLine)}\n` : firstLine; | ||
const indentation = tag ? utils_terminal_1.stringWidth(tag) + 1 : 0; | ||
const pulledLines = titleize ? utils_1.dropWhile(lines, l => l === '') : lines; | ||
const indentation = tag ? (0, utils_terminal_1.stringWidth)(tag) + 1 : 0; | ||
const pulledLines = titleize ? (0, utils_1.dropWhile)(lines, l => l === '') : lines; | ||
return ((tag ? `${tag} ` : '') + | ||
(wrap | ||
? utils_terminal_1.wordWrap([title, ...pulledLines].join('\n'), { indentation, ...(typeof wrap === 'object' ? wrap : {}) }) | ||
? (0, utils_terminal_1.wordWrap)([title, ...pulledLines].join('\n'), { indentation, ...(typeof wrap === 'object' ? wrap : {}) }) | ||
: [title, ...pulledLines.map(l => l ? ' '.repeat(indentation) + l : '')].join('\n'))); | ||
@@ -193,0 +193,0 @@ }; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Colors } from './colors'; | ||
@@ -3,0 +4,0 @@ import { TaskChain } from './tasks'; |
@@ -22,3 +22,3 @@ "use strict"; | ||
if (result.success) { | ||
this.write(`${success(tasks_1.ICON_SUCCESS)} ${task.msg} ${weak(`in ${utils_1.formatHrTime(result.elapsedTime)}`)}\n`); | ||
this.write(`${success(tasks_1.ICON_SUCCESS)} ${task.msg} ${weak(`in ${(0, utils_1.formatHrTime)(result.elapsedTime)}`)}\n`); | ||
} | ||
@@ -46,3 +46,3 @@ else { | ||
if (result.success) { | ||
this.write(`${success(tasks_1.ICON_SUCCESS)} ${task.msg} ${weak(`in ${utils_1.formatHrTime(result.elapsedTime)}`)}\n`); | ||
this.write(`${success(tasks_1.ICON_SUCCESS)} ${task.msg} ${weak(`in ${(0, utils_1.formatHrTime)(result.elapsedTime)}`)}\n`); | ||
} | ||
@@ -49,0 +49,0 @@ else { |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { EventEmitter } from 'events'; | ||
@@ -3,0 +4,0 @@ export declare const ICON_SUCCESS: string; |
{ | ||
"name": "@ionic/cli-framework-output", | ||
"version": "2.2.6-testing.0", | ||
"version": "2.2.6", | ||
"description": "The log/tasks/spinners portion of Ionic CLI Framework", | ||
@@ -10,3 +10,3 @@ "homepage": "https://ionicframework.com/", | ||
"engines": { | ||
"node": ">=10.3.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -28,3 +28,3 @@ "files": [ | ||
"dependencies": { | ||
"@ionic/utils-terminal": "2.3.4-testing.0", | ||
"@ionic/utils-terminal": "2.3.4", | ||
"debug": "^4.0.0", | ||
@@ -34,7 +34,7 @@ "tslib": "^2.0.1" | ||
"devDependencies": { | ||
"@ionic/utils-stream": "3.1.5", | ||
"@ionic/utils-stream": "3.1.6", | ||
"@types/debug": "^4.1.1", | ||
"@types/inquirer": "0.0.43", | ||
"@types/jest": "^26.0.10", | ||
"@types/node": "~10.17.13", | ||
"@types/node": "~16.0.0", | ||
"jest": "^26.4.2", | ||
@@ -44,5 +44,5 @@ "jest-cli": "^26.0.1", | ||
"ts-jest": "~26.3.0", | ||
"typescript": "~4.0.2" | ||
"typescript": "~4.8.0" | ||
}, | ||
"gitHead": "f3fbed91bf0e32ba6bd10c805d0922161f59ef6f" | ||
"gitHead": "15ef6e7da4eace4fd55d16fd9508d156a4bc8203" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
34076
801
0
0
+ Added@ionic/utils-terminal@2.3.4(transitive)
- Removed@ionic/utils-terminal@2.3.4-testing.0(transitive)
Updated@ionic/utils-terminal@2.3.4