multi-progress-bars
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.1.4](https://github.com/kamiyo/multi-progress-bars/compare/v1.1.3...v1.1.4) (2020-07-29) | ||
### [1.1.3](https://github.com/kamiyo/multi-progress-bars/compare/v1.1.2...v1.1.3) (2020-07-26) | ||
@@ -7,0 +9,0 @@ |
@@ -5,4 +5,7 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var chalk = require('chalk'); | ||
var path = require('path'); | ||
var stringWidth = _interopDefault(require('string-width')); | ||
@@ -84,3 +87,3 @@ /*! ***************************************************************************** | ||
}); | ||
const splitMessage = message.split('\n').map((str) => str.length); | ||
const splitMessage = message.split('\n').map((str) => stringWidth(str)); | ||
const cols = this.stream.columns; | ||
@@ -126,3 +129,3 @@ const eachCols = splitMessage.map((msg) => Math.ceil(msg / cols)); | ||
// Calculated longest name to pad other names to. | ||
this.longestNameLength = Math.max(this.longestNameLength, name.length); | ||
this.longestNameLength = Math.max(this.longestNameLength, stringWidth(name)); | ||
// Reset promise for end hook | ||
@@ -129,0 +132,0 @@ this.promise = new Promise((res, _) => this.resolve = res); |
import { green } from 'chalk'; | ||
import { parse } from 'path'; | ||
import stringWidth from 'string-width'; | ||
@@ -79,3 +80,3 @@ /*! ***************************************************************************** | ||
}); | ||
const splitMessage = message.split('\n').map((str) => str.length); | ||
const splitMessage = message.split('\n').map((str) => stringWidth(str)); | ||
const cols = this.stream.columns; | ||
@@ -121,3 +122,3 @@ const eachCols = splitMessage.map((msg) => Math.ceil(msg / cols)); | ||
// Calculated longest name to pad other names to. | ||
this.longestNameLength = Math.max(this.longestNameLength, name.length); | ||
this.longestNameLength = Math.max(this.longestNameLength, stringWidth(name)); | ||
// Reset promise for end hook | ||
@@ -124,0 +125,0 @@ this.promise = new Promise((res, _) => this.resolve = res); |
{ | ||
"name": "multi-progress-bars", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Multiple progress bars with option for indefinite spinners", | ||
@@ -46,4 +46,5 @@ "main": "dist/multi-progress-bars.cjs.js", | ||
"dependencies": { | ||
"chalk": "^4.1.0" | ||
"chalk": "^4.1.0", | ||
"string-width": "^4.2.0" | ||
} | ||
} |
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
41761
8
653
2
+ Addedstring-width@^4.2.0
+ Addedansi-regex@5.0.1(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)