yyqdbngt opened a new pull request, #2407:
URL: https://github.com/apache/rocketmq-dashboard/pull/2407

   ## Summary
   
   - render invalid dates and non-finite numeric values with the standard 
placeholder
   - guard relative/time-of-day formatting from invalid timestamps
   - bound fixed-decimal precision before calling `toFixed`
   
   ## Why
   
   Provider metrics and persisted timestamps can be malformed. Several shared 
formatters currently emit `NaN`/`Invalid Date`, and invalid precision or 
infinite dates can throw while rendering a page.
   
   ## Tests
   
   - `npm test -- --run src/utils/format.test.ts`
   - `npx eslint src/utils/format.ts src/utils/format.test.ts`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to