Socket
Socket
Sign inDemoInstall

sftp-upload-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftp-upload-plugin - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

server/config.examlpe.js

21

index.js

@@ -1,24 +0,15 @@

// const config = require ('./config/config');
// const upload = require ('./config/upload');
const upload = require ('./config/upload');
// upload (config);
class SftpUploadPlugin {
constructor(doneCallback, failCallback) {
this.doneCallback = doneCallback;
this.failCallback = failCallback;
constructor(config) {
this.config = config;
}
apply(compiler) {
compiler.plugin('done', (stats) => {
console.log("++++++++++++++++done");
this.doneCallback(stats);
compiler.plugin('done', () => {
upload(this.config);
});
compiler.plugin('failed', (err) => {
this.failCallback(err);
console.log(err);
});

@@ -25,0 +16,0 @@ }

{
"name": "sftp-upload-plugin",
"version": "1.0.0",
"version": "1.0.1",
"description": "upload thought SFTP after build",

@@ -5,0 +5,0 @@ "main": "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