vite-plugin-progress
Advanced tools
Comparing version 0.0.4 to 0.0.5
import { PluginOption } from 'vite'; | ||
declare type PluginOptions = Merge<ProgressBar.ProgressBarOptions, { | ||
interface PluginOptions { | ||
/** | ||
@@ -17,5 +17,41 @@ * total number of ticks to complete | ||
srcDir?: string; | ||
}>; | ||
/** | ||
* current completed index | ||
*/ | ||
curr?: number | undefined; | ||
/** | ||
* head character defaulting to complete character | ||
*/ | ||
head?: string | 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; | ||
/** | ||
* The output stream defaulting to stderr. | ||
*/ | ||
stream?: NodeJS.WritableStream | undefined; | ||
/** | ||
* Completion character defaulting to "=". | ||
*/ | ||
complete?: string | undefined; | ||
/** | ||
* Incomplete character defaulting to "-". | ||
*/ | ||
incomplete?: string | 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; | ||
} | ||
declare function viteProgressBar(options?: PluginOptions): PluginOption; | ||
export { viteProgressBar as default }; |
@@ -166,3 +166,3 @@ var __create = Object.create; | ||
transformed++; | ||
percent = lastPercent = +(transformed / (cacheTransformCount + cacheChunkCount)).toFixed(2); | ||
percent = lastPercent = +(transformed / (cacheTransformCount + cacheChunkCount)).toFixed(4); | ||
} | ||
@@ -169,0 +169,0 @@ } |
{ | ||
"name": "vite-plugin-progress", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A progress bar plugin for Vite.", | ||
@@ -56,3 +56,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"dev": "pnpm run build -- --watch --ignore-watch examples", | ||
"dev": "pnpm run build --watch --ignore-watch examples", | ||
"build": "tsup src/index.ts --dts --format cjs,esm", | ||
@@ -59,0 +59,0 @@ "release": "npx bumpp --push --tag --commit && pnpm publish", |
Sorry, the diff of this file is not supported yet
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
20899
366