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

ts-progress

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-progress - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

4

package.json
{
"name": "ts-progress",
"version": "0.0.9",
"version": "0.0.10",
"description": "Flexible node progress bar for Windows/macOS/Linux.",

@@ -8,3 +8,3 @@ "main": "progress.js",

"build": "gulp build",
"ci": "gulp ci"
"test": "gulp test"
},

@@ -11,0 +11,0 @@ "repository": {

@@ -7,3 +7,3 @@ 'use strict';

*
* @deprecated use Progress.create(options: IProgressOptions)
* @deprecated use Progress.create(options: ProgressOptions)
*/

@@ -144,3 +144,3 @@ function Progress(_total, pattern, _textColor, _title, _updateFrequency) {

Progress.create = function (options) {
return new Progress(options.total, options.pattern, options.textColor, options.title, options.updateFrequency | 0);
return new Progress(options.total, options.pattern, options.textColor, options.title, options.updateFrequency);
};

@@ -152,4 +152,7 @@ /**

this._now = new Date().getTime();
charm.up(1).erase('line').write("\r");
if (this._current >= this._total - 1) {
if (this._current == this._total) {
return;
}
else if (this._current >= this._total - 1) {
charm.up(1).erase('line').write("\r");
this._current = (this._total - 1);

@@ -162,2 +165,3 @@ this.stop();

if (!this.skipStep()) {
charm.up(1).erase('line').write("\r");
this._elapsed = (this._now - this._start) / 1000;

@@ -164,0 +168,0 @@ this._remaining = (this._elapsed / this._current * (this._total - this._current));

# ts-progress
[![Build Status](https://travis-ci.org/agracio/ts-progress.svg?branch=master)](https://travis-ci.org/agracio/ts-progress)
[![Build status](https://ci.appveyor.com/api/projects/status/wbk31bj66di1qrk5?svg=true)](https://ci.appveyor.com/project/agracio/ts-progress)
[![Coverage Status](https://coveralls.io/repos/github/agracio/ts-progress/badge.svg?branch=master)](https://coveralls.io/github/agracio/ts-progress?branch=master)
[![Dependencies](https://david-dm.org/agracio/ts-progress.svg)](https://david-dm.org/agracio/ts-progress#info=dependencies)
[![img](https://david-dm.org/agracio/ts-progress/dev-status.svg)](https://david-dm.org/agracio/ts-progress/#info=devDependencies)
[![Known Vulnerabilities](https://snyk.io/test/github/agracio/ts-progress/badge.svg)](https://snyk.io/test/github/agracio/ts-progress)
[![Downloads](https://img.shields.io/npm/dm/ts-progress.svg)](https://www.npmjs.com/package/ts-progress)
> Flexible node progress bar for Windows/macOS/Linux

@@ -4,0 +12,0 @@

@@ -1,2 +0,2 @@

interface IProgressOptions{
interface ProgressOptions{
total: number,

@@ -33,5 +33,5 @@ pattern?: string,

*/
create(options: IProgressOptions): Progress
create(options: ProgressOptions): Progress
};
export = progress;
}
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