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

Removed deprecated left-pad module dependency. #218

Merged

Conversation

dineshnagarit
Copy link
Contributor

In this PR I have removed the dependency of left-pad npm module, we no longer need to use due to following reasons.

  1. https://www.npmjs.com/package/left-pad , This package has been deprecated and author suggested to use native String.prototype.padStart() javascript method.

  2. It doesnt make sense to install a new module to perform just a single line of operation. In our case we were doing return ${m.units}.${m.nanos.toString().padStart(9,'0')} ${m.currency_code}; instead of ${m.units}.${m.nanos.padStart(9,'0')} ${m.currency_code} .

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 21, 2019
@dineshnagarit
Copy link
Contributor Author

@ahmetb Kindly review the PR and let me know if there is any suggestions or queries. Thanks

@ahmetb
Copy link
Contributor

ahmetb commented May 22, 2019

/lgtm
/approve

@ahmetb ahmetb merged commit ce03eb3 into GoogleCloudPlatform:master May 22, 2019
D-Mwanth pushed a commit to D-Mwanth/microservices-demo that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants