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

rollup-plugin-progress

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-progress - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

27

dist/rollup-plugin-progress.esm.js
import 'fs';
import path from 'path';
import chalk from 'chalk';
import readline from 'readline';
import { createFilter } from 'rollup-pluginutils';

@@ -22,2 +23,7 @@

var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
return {

@@ -35,10 +41,13 @@ name: 'progress',

if (options.clearLine) {
if (typeof process.stdout.clearLine === 'function') {
process.stdout.clearLine();
process.stdout.cursorTo(0);
if (options.clearLine && process.stdin.isTTY) {
process.stdout.clearLine();
process.stdout.cursorTo(0);
var output = "(" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file));
if (output.length < process.stdout.columns) {
process.stdout.write(output);
} else {
process.stdout.write(output.substring(0, process.stdout.columns - 1));
}
process.stdout.write(("Building (" + (chalk.red(progress.loaded)) + "): " + (chalk.blue(file))));
} else {
console.log(("Building (" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file))));
console.log(("(" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file))));
}

@@ -48,6 +57,4 @@ },

if (options.clearLine) {
if (typeof process.stdout.clearLine === 'function') {
process.stdout.clearLine();
process.stdout.cursorTo(0);
}
process.stdout.clearLine();
process.stdout.cursorTo(0);
}

@@ -54,0 +61,0 @@ }

@@ -8,2 +8,3 @@ 'use strict';

var chalk = _interopDefault(require('chalk'));
var readline = _interopDefault(require('readline'));
var rollupPluginutils = require('rollup-pluginutils');

@@ -27,2 +28,7 @@

var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
return {

@@ -40,10 +46,13 @@ name: 'progress',

if (options.clearLine) {
if (typeof process.stdout.clearLine === 'function') {
process.stdout.clearLine();
process.stdout.cursorTo(0);
if (options.clearLine && process.stdin.isTTY) {
process.stdout.clearLine();
process.stdout.cursorTo(0);
var output = "(" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file));
if (output.length < process.stdout.columns) {
process.stdout.write(output);
} else {
process.stdout.write(output.substring(0, process.stdout.columns - 1));
}
process.stdout.write(("Building (" + (chalk.red(progress.loaded)) + "): " + (chalk.blue(file))));
} else {
console.log(("Building (" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file))));
console.log(("(" + (chalk.red(progress.loaded)) + "): " + (chalk.yellow(file))));
}

@@ -53,6 +62,4 @@ },

if (options.clearLine) {
if (typeof process.stdout.clearLine === 'function') {
process.stdout.clearLine();
process.stdout.cursorTo(0);
}
process.stdout.clearLine();
process.stdout.cursorTo(0);
}

@@ -59,0 +66,0 @@ }

{
"name": "rollup-plugin-progress",
"version": "0.0.3",
"version": "0.0.4",
"description": "Rollup Progress Plugin",

@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-progress.js",

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