sftp-upload-plugin
Advanced tools
Comparing version 1.0.0 to 1.0.1
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
15449
106
1