You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/progress

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/progress - npm Package Compare versions

Comparing version
2.0.4
to
2.0.5
+46
-49
progress/index.d.ts

@@ -41,3 +41,2 @@ // Type definitions for node-progress 2.0

/**

@@ -49,3 +48,2 @@ * "tick" the progress bar with optional `len` and optional `tokens`.

/**

@@ -55,5 +53,4 @@ * Method to render the progress bar with optional `tokens` to place in the

*/
render(tokens?: any): void;
render(tokens?: any, force?: boolean): void;
/**

@@ -100,56 +97,56 @@ * "update" the progress bar to represent an exact percentage.

declare namespace ProgressBar {
/**
* These are keys in the options object you can pass to the progress bar along with total as seen in the example above.
*/
interface ProgressBarOptions {
/**
* Total number of ticks to complete.
*/
total: number;
/**
* These are keys in the options object you can pass to the progress bar along with total as seen in the example above.
*/
interface ProgressBarOptions {
/**
* Total number of ticks to complete.
*/
total: number;
/**
* current completed index
*/
curr?: number | undefined;
/**
* current completed index
*/
curr?: number | undefined;
/**
* head character defaulting to complete character
*/
head?: string | undefined;
/**
* head character defaulting to complete character
*/
head?: string | undefined;
/**
* The displayed width of the progress bar defaulting to total.
*/
width?: number | undefined;
/**
* The displayed width of the progress bar defaulting to total.
*/
width?: number | undefined;
/**
* minimum time between updates in milliseconds defaulting to 16
*/
renderThrottle?: number | undefined;
/**
* minimum time between updates in milliseconds defaulting to 16
*/
renderThrottle?: number | undefined;
/**
* The output stream defaulting to stderr.
*/
stream?: NodeJS.WritableStream | undefined;
/**
* The output stream defaulting to stderr.
*/
stream?: NodeJS.WritableStream | undefined;
/**
* Completion character defaulting to "=".
*/
complete?: string | undefined;
/**
* Completion character defaulting to "=".
*/
complete?: string | undefined;
/**
* Incomplete character defaulting to "-".
*/
incomplete?: string | undefined;
/**
* Incomplete character defaulting to "-".
*/
incomplete?: string | undefined;
/**
* Option to clear the bar on completion defaulting to false.
*/
clear?: boolean | undefined;
/**
* Option to clear the bar on completion defaulting to false.
*/
clear?: boolean | undefined;
/**
* Optional function to call when the progress bar completes.
*/
callback?: Function | undefined;
}
/**
* Optional function to call when the progress bar completes.
*/
callback?: Function | undefined;
}
}
{
"name": "@types/progress",
"version": "2.0.4",
"version": "2.0.5",
"description": "TypeScript definitions for node-progress",

@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/progress",

},
"typesPublisherContentHash": "9cafad2803a950db5ab254402f32664cf12e650e16b70143afbdf2cbcbaa7b16",
"typesPublisherContentHash": "93f01418c0b903e656235808047bb8d1ba39b0db698c093d9900002b32ebac2d",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 07 Jul 2021 17:02:36 GMT
* Last updated: Wed, 04 Aug 2021 14:01:23 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: `ProgressBar`