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

vite-plugin-progress

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-progress - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

40

dist/index.d.ts
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 };

2

dist/index.js

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

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