unjs / unenv

๐Ÿ•Š๏ธ Convert javaScript code to be runtime agnostic
MIT License
342 stars 18 forks source link

fix(node:dns): hotfix types mismatch #199

Closed jculvey closed 1 month ago

jculvey commented 1 month ago

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

This fixes the dns error codes used in the node dns polyfill to use the correct values per the node implementation. The current types for @types/node are incorrect, and I've filed a PR to update them. In the meantime, we'll use the correct codes with a little less type safety.

๐Ÿ“ Checklist