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.4.0 to 1.0.0

8

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

@@ -18,3 +16,2 @@ function normalizePath(id) {

var filter = createFilter(options.include, options.exclude);
var total = 0;

@@ -34,4 +31,3 @@ var totalFilePath = path.resolve(__dirname, "./total.txt");

name: 'progress',
load: function load(id) {
var file = normalizePath(id);
load: function load() {
progress.loaded += 1;

@@ -63,3 +59,3 @@ },

},
ongenerate: function ongenerate() {
generateBundle: function generateBundle() {
fs.writeFileSync(totalFilePath, progress.loaded);

@@ -66,0 +62,0 @@ if (options.clearLine && process.stdin.isTTY) {

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

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

@@ -23,3 +21,2 @@ function normalizePath(id) {

var filter = rollupPluginutils.createFilter(options.include, options.exclude);
var total = 0;

@@ -39,4 +36,3 @@ var totalFilePath = path.resolve(__dirname, "./total.txt");

name: 'progress',
load: function load(id) {
var file = normalizePath(id);
load: function load() {
progress.loaded += 1;

@@ -68,3 +64,3 @@ },

},
ongenerate: function ongenerate() {
generateBundle: function generateBundle() {
fs.writeFileSync(totalFilePath, progress.loaded);

@@ -71,0 +67,0 @@ if (options.clearLine && process.stdin.isTTY) {

{
"name": "rollup-plugin-progress",
"version": "0.4.0",
"version": "1.0.0",
"description": "Rollup Progress Plugin",

@@ -27,9 +27,8 @@ "main": "dist/rollup-plugin-progress.js",

"dependencies": {
"chalk": "^1.1.3",
"rollup-pluginutils": "^1.5.1"
"chalk": "^1.1.3"
},
"devDependencies": {
"rollup": "^0.36.0",
"rollup-plugin-buble": "^0.14.0"
"rollup": "^1.0.0",
"rollup-plugin-buble": "^0.19.6"
}
}
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