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 3.1.0 to 3.1.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [3.1.1](https://github.com/kamiyo/multi-progress-bars/compare/v3.1.0...v3.1.1) (2020-12-31)
### Bug Fixes
* **README:** Updated webpack example and detail about percentage in addTask/updateTask. ([ea6183c](https://github.com/kamiyo/multi-progress-bars/commit/ea6183c15e924b963b9ea621ef72859a8b085d8b))
## [3.1.0](https://github.com/kamiyo/multi-progress-bars/compare/v3.0.0...v3.1.0) (2020-12-31)

@@ -7,0 +14,0 @@

2

package.json
{
"name": "multi-progress-bars",
"version": "3.1.0",
"version": "3.1.1",
"description": "Multiple progress bars with option for indefinite spinners",

@@ -5,0 +5,0 @@ "main": "dist/multi-progress-bars.cjs.js",

@@ -95,3 +95,3 @@ # multi-progress-bars

* `index` `<number>` required. default = increment from previous || 0.
* `percentage` `<number>` optional. The starting percentage (0 to 1). default = `0`
* `percentage` `<number>` optional. The starting percentage (0 to 1) if type is `'percentage'`. default = `0`
* `message` `<string>` optional. A message to print to the right of the bar. default = `''`

@@ -119,3 +119,3 @@ * `barColorFn` `<(s: string) => string>` optional. A function that transforms the bar. Useful for coloring the bar with `chalk.js` or `colors.js`. default = `(s) => s`;

* `message` `<string>` optional. A message to print to the right of the bar.
* `percentage` `<number>` optional. The amount to change the percentage to.
* `percentage` `<number>` optional. The amount to change the percentage to if task type is `'percentage'`.
* `barColorFn` `<(s: string) => string>` optional. A function that transforms the bar.

@@ -210,3 +210,3 @@

Pair that with a `watch`.
You can also add Webpack by passing in the mpb instance to your webpack config
You can also add mpb to your Webpack config by passing in the mpb instance to a function that returns the config:

@@ -249,3 +249,3 @@ ```node

const webpackCompile = (done) => {
const webpackWatch = (done) => {
mpb.addTask('Webpack', {

@@ -255,3 +255,10 @@ type: 'percentage',

});
webpack(webpackConfig(mpb)).run((err, stats) => {
const compiler = webpack(webpackConfig(mpb));
compiler.hooks.beforeRun.tapAsync('Reset Progress', (p) => {
// for restarts
mpb.updateTask('Webpack', {
percentage: 0,
});
});
compiler.watch({ ignore: /node_modules/ }, (err, stats) => {
mpb.done('Webpack')

@@ -262,16 +269,8 @@

});
done();
});
};
const watchWebpack = (done) => {
gulp.watch(
['src/**/*'],
{ ignoreInitial: false },
webpackCompile,
);
done();
};
exports.watch = watchWebpack;
exports.watch = webpackWatch;
```

@@ -278,0 +277,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