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

   ## Summary
   
   - collect pasted message properties in a `Map` before creating the result 
object
   - preserve own properties named `__proto__`, `constructor`, and `toString`
   - keep duplicate detection working for those special keys
   
   ## Why
   
   Assigning parsed keys directly to `{}` invokes or shadows Object prototype 
members. In particular, a valid `__proto__` message property is silently lost 
before the send request is serialized.
   
   ## Tests
   
   - `npm test -- --run src/utils/messageProperties.test.ts`
   - `npx eslint src/utils/messageProperties.ts 
src/utils/messageProperties.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