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

remove-files-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.1.1 to 1.1.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# 1.1.2 (April 4, 2019)
## Fixed
- Fix compatibility with webpack 3.x [#3](Amaimersion/remove-files-webpack-plugin#3).
# 1.1.1 (March 20, 2019)

@@ -2,0 +9,0 @@

2

package.json
{
"name": "remove-files-webpack-plugin",
"version": "1.1.1",
"version": "1.1.2",
"description": "A plugin for webpack which removes files and folders before and after compilation.",

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

/**
* @module RemoveFilesWebpackPlugin
* @version 1.1.1
* @version 1.1.2
* @file A plugin for webpack which removes files and folders before and after compilation.

@@ -5,0 +5,0 @@ * @author Sergey Kuznetsov <https://github.com/Amaimersion>

@@ -19,3 +19,3 @@ 'use strict';

static get version() {
return '1.1.1';
return '1.1.2';
}

@@ -22,0 +22,0 @@

@@ -138,3 +138,3 @@ 'use strict';

*/
const applyHook = (compiler, hook, params, method) => {
const applyHook = (compiler, v4Hook, v3Hook, params, method) => {
if (!params || !Object.keys(params).length) {

@@ -145,12 +145,12 @@ return;

if (compiler.hooks) {
compiler.hooks[hook].tapAsync(Info.fullName, method);
compiler.hooks[v4Hook].tapAsync(Info.fullName, method);
} else {
compiler.plugin(hook, method);
compiler.plugin(v3Hook, method);
}
};
applyHook(compiler, 'beforeRun', this.beforeParams, (compiler, callback) => {
applyHook(compiler, 'beforeRun', 'before-run', this.beforeParams, (compiler, callback) => {
this.handleHook(compiler, callback, this.beforeParams);
});
applyHook(compiler, 'afterEmit', this.afterParams, (compilation, callback) => {
applyHook(compiler, 'afterEmit', 'after-emit', this.afterParams, (compilation, callback) => {
this.handleHook(compilation, callback, this.afterParams);

@@ -157,0 +157,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