Skip to content

Commit dcc1a4c

Browse files
authored
Merge pull request #31 from sand4rt/copilot/fix-deprecation-warning-buffer
Eliminate DEP0005 Buffer constructor warning in SFTP deploy path
2 parents 203a57c + 336639a commit dcc1a4c

3 files changed

Lines changed: 21 additions & 75 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ var /*TYPE = {
31703170
552: 'Requested file action aborted / Exceeded storage allocation (for current directory or dataset)',
31713171
553: 'Requested action not taken / File name not allowed'
31723172
},*/
3173-
bytesNOOP = new Buffer('NOOP\r\n');
3173+
bytesNOOP = Buffer.from('NOOP\r\n');
31743174

31753175
var FTP = module.exports = function() {
31763176
if (!(this instanceof FTP))

package-lock.json

Lines changed: 18 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@vercel/ncc": "^0.36.0"
3232
},
3333
"overrides": {
34-
"ssh2": "^1.16.0"
34+
"ssh2": "^1.16.0",
35+
"@icetee/ftp": "1.0.8"
3536
}
3637
}

0 commit comments

Comments
 (0)