★ wanayoo — archive 1999 https://github.com/nodeftpd/nodeftpd/pull/147Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot development #147

Open
wants to merge 38 commits into
base: master
from
Open

Reboot development #147

wants to merge 38 commits into from

Conversation

@svrooij
Copy link

svrooij commented Jun 27, 2020

Fixes #144

Also moved testing to Github actions instead of Travis

Stephan van Rooij and others added 30 commits Oct 29, 2017
close connections properly in passive mode
Lib is unstable, be carefull!
This PR fixes a regression introduced in the latest refactoring:
TypeError [ERR_INVALID_ARG_TYPE]: The "value" argument must not be of type number. Received type number
    at Function.from (buffer.js:215:11)
    at FtpConnection._STOR_usingWriteFile (/data/node_modules/ftpd/lib/FtpConnection.js:1212:25)
    at FtpConnection._command_STOR (/data/node_modules/ftpd/lib/FtpConnection.js:1122:10)
    at checkData (/data/node_modules/ftpd/lib/FtpConnection.js:291:14)
    at FtpConnection._onData (/data/node_modules/ftpd/lib/FtpConnection.js:279:9)
    at Socket.socket.on (/data/node_modules/ftpd/lib/FtpServer.js:102:10)

I've tested the ftp file upload with this change and everything seems to work fine!
Fix file modes
Use Buffer.alloc instead of Buffer.from
This way tests can be executed in parrallel
LolHens and others added 8 commits Jun 4, 2020
Merge pull request #5 from LolHens/master
Fixed nearly all tests

With this commit the code coverage goes to 57 percent. So still not perfect but we're getting there!
🎉
@svrooij
Copy link
Author

svrooij commented Jun 28, 2020

@sstur I've setup the CI/CD this way that from my repository it will still release a new version whenever I push to my own master. Github action result
For any other repository it only executes the tests and uploads the tarball of the package to github artifacts.

The conflicts are because 2 files changed on both sides, but you should be able to accept my version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.