Skip to content

Added "getBuffer" method and updated certificates - #419

Merged
alexindigo merged 1 commit into
form-data:masterfrom
JBtje:add-getBuffer
Jun 19, 2019
Merged

alexindigo merged 1 commit into
form-data:masterfrom
JBtje:add-getBuffer

Conversation

@JBtje

@JBtje JBtje commented Mar 20, 2019

Copy link
Copy Markdown
Contributor

form-data works with many packages, however it does not work out of the box with Axios. Many times the question has been asked as to how to make it work, but no proper solution is provided. I think it would be nice if form-data allows users to obtain the datapackage (as buffer) so they can do with it whatever they like, e.g. pass it over to Axios.

Added method: getBuffer()
Added Test: to test GetBuffer()
Updated: Certificates where signed with small key and needed replacement to make the test pass.

Added method: getBuffer()
Added Test: to test GetBuffer()
@JBtje JBtje changed the title Updated: Certificate Added "getBuffer" method and updated certificates Mar 20, 2019
@mapleeit

Copy link
Copy Markdown
Collaborator

Great work. Please take a look at this! @alexindigo

BTW. It seems CI was broken. #424 only change some docs, but it failed anyway.

Comment thread test/fixture/cert.pem
099h1IJLtsPJVphSDBTtE0FLB0YIzT7bG44Drm/975XEZjoQ9TmYbTMCAwEAATAN
BgkqhkiG9w0BAQUFAANBALSDmvKXb4cE622OdSRrDsnr8xUosetsAGSlGauWBKgc
DNQhP6wSQHTAJT8wiVgSPYwnhcnzkZlwzdfMHMtzFIc=
MIIFfzCCA2egAwIBAgIJALeHtgIY/UKcMA0GCSqGSIb3DQEBCwUAMFUxCzAJBgNV

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would we need to change test certs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the installed certificate, I was unable to run all the tests: the certificate format was outdated (if i recall correctly). So I added a new one, all tests succeeded and pushed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I restarted windows builds 🤞

@alexindigo

Copy link
Copy Markdown
Member

Thanks @JBtje looks interesting.

@mapleeit Agreed, looks nice, not sure about test cert though.
And I'll check why Windows is unhappy again :)

@alexindigo
alexindigo merged commit ff085f3 into form-data:master Jun 19, 2019
@JBtje
JBtje deleted the add-getBuffer branch June 19, 2019 06:37
@JBtje

JBtje commented Jun 19, 2019

Copy link
Copy Markdown
Contributor Author

It is an honour to have contributed to such an important project. Many thanks for merging!

@alexindigo

Copy link
Copy Markdown
Member

@JBtje Thanks for your help and pushing it forward. I'll publish your change shortly.

@alexindigo

Copy link
Copy Markdown
Member

Published as part of 2.4.0 – https://www.npmjs.com/package/form-data
Thank you.

@mapleeit

Copy link
Copy Markdown
Collaborator

Good to know that. Thanks!

@mapleeit

mapleeit commented Jun 20, 2019 •

Copy link
Copy Markdown
Collaborator

In addition, I'm wondering is there any document for all APIs? I couldn't find that in README or anywhere else.

If YES, we should add this to the document.

@JBtje

JBtje commented Jun 20, 2019

Copy link
Copy Markdown
Contributor Author

I don't think there is... I realised it yesterday that my merge req. didn't have documentation update. But havent had the time to make a proper one and submit it. Will see if I can do that upcomming weekend.

@mapleeit

Copy link
Copy Markdown
Collaborator

Sounds great. If you need any help, please contact me. : )

@alexindigo

Copy link
Copy Markdown
Member

Thank you for doing it @mapleeit

ljharb added a commit that referenced this pull request Sep 21, 2024
ljharb added a commit that referenced this pull request Sep 21, 2024
ljharb added a commit that referenced this pull request Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants