Skip to content

Commit c18b7cb

Browse files
authored
fix: remove Buffer() deprecation warning in SFTP runs
1 parent 54df000 commit c18b7cb

3 files changed

Lines changed: 80 additions & 132 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: 75 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
"homepage": "https://github.com/sand4rt/ftp-deployer#readme",
2626
"dependencies": {
2727
"@actions/core": "^1.11.1",
28-
"ftp-deploy": "^2.4.3"
28+
"ftp-deploy": "^2.4.7"
2929
},
3030
"devDependencies": {
3131
"@vercel/ncc": "^0.36.0"
32+
},
33+
"overrides": {
34+
"@icetee/ftp": "1.0.8"
3235
}
3336
}

0 commit comments

Comments
 (0)