filemanager-webpack-plugin
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -437,2 +437,6 @@ 'use strict'; | ||
case "delete": | ||
if (!Array.isArray(fileOptions)) { | ||
throw Error(" - FileManagerPlugin: Fail - delete parameters has to be type of 'strings array' but was '" + (typeof fileOptions === "undefined" ? "undefined" : _typeof(fileOptions)) + "'. Process canceled."); | ||
} | ||
var _loop3 = function _loop3(key) { | ||
@@ -513,3 +517,7 @@ var path = _this3.replaceHash(fileOptions[key]); | ||
compiler.plugin("compilation", function (compliation) { | ||
_this4.checkOptions("onStart"); | ||
try { | ||
_this4.checkOptions("onStart"); | ||
} catch (error) { | ||
compliation.errors.push(error); | ||
} | ||
}); | ||
@@ -519,3 +527,7 @@ | ||
_this4.fileHash = compliation.hash; | ||
_this4.checkOptions("onEnd"); | ||
try { | ||
_this4.checkOptions("onEnd"); | ||
} catch (error) { | ||
compliation.errors.push(error); | ||
} | ||
callback(); | ||
@@ -522,0 +534,0 @@ }); |
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "This Webpack plugin allows you to copy, move, delete files and directories before and after builds", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
@@ -7,0 +10,0 @@ "build": "npm run prettier && rollup -c", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
21183
4
408