Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multi-progress-bars

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multi-progress-bars - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

dist/utils.d.ts

2

CHANGELOG.md

@@ -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 @@

7

dist/multi-progress-bars.cjs.js

@@ -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"
}
}
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