Title: util: allow color aliases in styleText by Han5991 · Pull Request #62180 · nodejs/node · GitHub
Open Graph Title: util: allow color aliases in styleText by Han5991 · Pull Request #62180 · nodejs/node
X Title: util: allow color aliases in styleText by Han5991 · Pull Request #62180 · nodejs/node
Description: Fixes an issue where util.styleText() would throw an error for valid color aliases like 'grey' in Node.js >= 25.7.0. It now uses ObjectGetOwnPropertyNames instead of ObjectKeys to fetch both keys and aliases. Fixes: #62177
Open Graph Description: Fixes an issue where util.styleText() would throw an error for valid color aliases like 'grey' in Node.js >= 25.7.0. It now uses ObjectGetOwnPropertyNames instead of ObjectKeys to fetch ...
X Description: Fixes an issue where util.styleText() would throw an error for valid color aliases like 'grey' in Node.js >= 25.7.0. It now uses ObjectGetOwnPropertyNames instead of ObjectKe...
Opengraph URL: https://github.com/nodejs/node/pull/62180
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:517fb321-1e9d-6240-50b7-3a34bd213caf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EA58:3D6334:86597:BAC7A:6A4C953E |
| html-safe-nonce | b6c913cf273af2b39ebc87d9d84c5adf39d1ffdcc8768afab0a37a5fcca091f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTU4OjNENjMzNDo4NjU5NzpCQUM3QTo2QTRDOTUzRSIsInZpc2l0b3JfaWQiOiIyNjc4MTk4MjQ1ODU1NjMwNjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d0fcb24c743a373a6d6434c73f767bee1dbb218c2b322f9796bcca107cab909 |
| hovercard-subject-tag | pull_request:3378546241 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/62180/files |
| twitter:image | https://avatars.githubusercontent.com/u/73056306?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/73056306?s=400&v=4 |
| og:image:alt | Fixes an issue where util.styleText() would throw an error for valid color aliases like 'grey' in Node.js >= 25.7.0. It now uses ObjectGetOwnPropertyNames instead of ObjectKeys to fetch ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width