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

filemanager-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filemanager-webpack-plugin - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

36

lib/index.js

@@ -244,24 +244,28 @@ 'use strict';

commandOrder.push(function () {
return new Promise(function (resolve, reject) {
if (_this3.options.verbose) {
console.log(" - FileManagerPlugin: Start move source: " + command.source + " to destination: " + command.destination);
}
if (fs.existsSync(command.source)) {
commandOrder.push(function () {
return new Promise(function (resolve, reject) {
if (_this3.options.verbose) {
console.log(" - FileManagerPlugin: Start move source: " + command.source + " to destination: " + command.destination);
}
mv(command.source, command.destination, { mkdirp: _this3.options.moveWithMkdirp }, function (err) {
if (err) {
mv(command.source, command.destination, { mkdirp: _this3.options.moveWithMkdirp }, function (err) {
if (err) {
if (_this3.options.verbose) {
console.log(" - FileManagerPlugin: Error - move failed", err);
}
reject(err);
}
if (_this3.options.verbose) {
console.log(" - FileManagerPlugin: Error - move failed", err);
console.log(" - FileManagerPlugin: Finished move source: " + command.source + " to destination: " + command.destination);
}
reject(err);
}
if (_this3.options.verbose) {
console.log(" - FileManagerPlugin: Finished move source: " + command.source + " to destination: " + command.destination);
}
resolve();
resolve();
});
});
});
});
} else {
process.emitWarning(" - FileManagerPlugin: Could not move " + command.source + ": path does not exist");
}
};

@@ -268,0 +272,0 @@

{
"name": "filemanager-webpack-plugin",
"version": "1.0.26",
"version": "1.0.27",
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds",

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

Sorry, the diff of this file is not supported yet

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