Skip to content

es6 syntax & replace createClient with request#4797

Merged
ovflowd merged 2 commits intonodejs:mainfrom
mahdi-farnia:patch-1
Aug 28, 2022
Merged

es6 syntax & replace createClient with request#4797
ovflowd merged 2 commits intonodejs:mainfrom
mahdi-farnia:patch-1

Conversation

@mahdi-farnia
Copy link
Copy Markdown
Contributor

Change old es5 syntax with es6 (const variable declaration & arrow functions).
Add node: protocol to require calls.
Replace deprecated http.createClient api with http.request.
Replace on listener with once in some cases for performance reasons.

Change old es5 syntax with es6 (const variable declaration & arrow functions).
Add `node:` protocol to require calls.
Replace deprecated http.createClient api with http.request.
Copy link
Copy Markdown
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

LGTM!

@ovflowd ovflowd merged commit be9405e into nodejs:main Aug 28, 2022
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