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

unused-files-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unused-files-webpack-plugin - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="2.0.5"></a>
## [2.0.5](https://github.com/tomchentw/unused-files-webpack-plugin/compare/v2.0.4...v2.0.5) (2016-09-20)
### Bug Fixes
* **index.js:** if bail is set, callback with error ([#11](https://github.com/tomchentw/unused-files-webpack-plugin/issues/11)) ([23b85ad](https://github.com/tomchentw/unused-files-webpack-plugin/commit/23b85ad)), closes [#10](https://github.com/tomchentw/unused-files-webpack-plugin/issues/10)
<a name="2.0.4"></a>

@@ -7,0 +17,0 @@ ## [2.0.4](https://github.com/tomchentw/unused-files-webpack-plugin/compare/v2.0.3...v2.0.4) (2016-07-14)

15

lib/index.js

@@ -61,6 +61,13 @@ "use strict";

var handleError = function handleError(err) {
if (compilation.bail) {
done(err);
} else {
compilation.errors.push(err);
}
};
(0, _glob2.default)(this.options.pattern, globOptions, function (err, files) {
if (err) {
compilation.errors.push(err);
done();
handleError(err);
return;

@@ -78,7 +85,7 @@ }

if (_this2.options.failOnUnused) {
compilation.errors.push(error);
handleError(error);
} else {
compilation.warnings.push(error);
done();
}
done();
});

@@ -85,0 +92,0 @@ }

{
"name": "unused-files-webpack-plugin",
"version": "2.0.4",
"version": "2.0.5",
"description": "Glob all files that are not compiled by webpack under webpack's context",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -34,6 +34,13 @@ import {

const handleError = err => {
if (compilation.bail) {
done(err);
} else {
compilation.errors.push(err);
}
};
glob(this.options.pattern, globOptions, (err, files) => {
if (err) {
compilation.errors.push(err);
done();
handleError(err);
return;

@@ -53,7 +60,7 @@ }

if (this.options.failOnUnused) {
compilation.errors.push(error);
handleError(error);
} else {
compilation.warnings.push(error);
done();
}
done();
});

@@ -60,0 +67,0 @@ }

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