mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 20:25:38 +00:00
* feat: add translations for direct cookie access methods - Implement translations for pm.cookies.has, pm.cookies.get, and pm.cookies.toObject to their corresponding bru.cookies methods. - Enhance the postman-to-bruno translator to handle these new cookie access patterns. - Add unit tests to verify the correct conversion of cookie access methods in various scenarios. * refactor: simplify optional member expression handling in postman-to-bruno translator - Streamlined the code for handling optional member expressions in the translation of cookie access methods. - Updated unit test to verify the correct output format for pm.cookies.toObject() conversion. * refactor: enhance handling of await expressions in cookie translations - Updated the postman-to-bruno translator to wrap await expressions in parentheses for improved clarity and consistency. - Adjusted unit tests to reflect the new output format for cookie access methods, ensuring accurate translation of pm.cookies.get calls. * refactor: update cookie access translations to use hasCookie method - Modified translations for pm.cookies.has to utilize the new bru.cookies.hasCookie method for improved clarity and functionality. - Updated related unit tests to reflect changes in expected output for cookie existence checks. - Added new tests to validate the behavior of the hasCookie method in various scenarios.