Socket
Socket
Sign inDemoInstall

ftp-deploy-package

Package Overview
Dependencies
138
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.4.0

16

index.js

@@ -125,8 +125,12 @@ 'use strict';

() => ftpClient.cwd(path.dirname(remotePath)),
() => {
updateStatus(`clearing directory ${remoteDirectory}`);
return ftpClient
.rmdir(remoteDirectory, true)
.then(() => ftpClient.mkdir(remoteDirectory));
},
() =>
ftpClient
.list()
.then(list =>
(list.some(({name}) => name === remoteDirectory)
? ftpClient.rmdir(remoteDirectory, true)
: Promise.resolve()).then(() =>
ftpClient.mkdir(remoteDirectory)
)
),
() => ftpClient.cwd(remoteDirectory),

@@ -133,0 +137,0 @@ () => beforeDirectoriesCreation(ftpClient, leaveDirectories),

@@ -19,6 +19,6 @@ {

"devDependencies": {
"dotenv": "^4.0.0",
"eslint": "^4.0.0",
"eslint-config-prettier": "^2.1.1",
"eslint-plugin-prettier": "^2.1.2",
"ftpd": "https://github.com/nodeftpd/nodeftpd",
"jest": "^20.0.4",

@@ -56,3 +56,3 @@ "pre-commit": "^1.2.2",

},
"version": "0.3.0"
"version": "0.4.0"
}

@@ -0,1 +1,4 @@

[![npm version](https://img.shields.io/npm/v/ftp-deploy-package.svg)](https://npmjs.org/package/ftp-deploy-package)
[![build status](https://img.shields.io/circleci/project/github/activeviam/ftp-deploy-package.svg)](https://circleci.com/gh/activeviam/ftp-deploy-package)
# Goal

@@ -2,0 +5,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc