Closed ariskataoka closed 1 week ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Description
This PR fixes an issue where invalid inputs like --limit=abc were being replaced with the default before validation.
Pull request checklist
New release checklist
Steps to Test
Outline the steps to test and verify the PR here.
npm run build
--limit
provided: 3.1. Runnode ./dist/bin/vip-logs @[APP].[ENV]
3.2. Verify: it should use the default limit - 500node ./dist/bin/vip-logs @[APP].[ENV] --limit=cookies
4.2 Verify: it should throw an error:Invalid limit: cookies. It should be a number between 1 and 5000.
node ./dist/bin/vip-logs @[APP].[ENV] --limit=5001
5.2. Verify: it should throw an error:Invalid limit: 5001. It should be a number between 1 and 5000.