Skip to content

typeof os.networkInterfaces family is a number (v18.0.0) #42861

Description

@elecV2

Affected URL(s)

https://nodejs.org/dist/latest-v18.x/docs/api/os.html#osnetworkinterfaces

Description of the problem

according to this commit: 3a26db9 , the type of os.networkInterfaces family is an integer now, but the api doc still show as string.

Another problem about this change, some functions of package require('ip') may not working. error message: details.family.toLowerCase is not a function

detail code: https://github.com/indutny/node-ip/blob/master/lib/ip.js#L385

(Just bring it up incase someone get the same error

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    on Apr 25, 2022
  2. added
    osIssues and PRs related to the os subsystem.
    on Apr 25, 2022
  3. changed the title [-]typeof os.networkInterfaces family is a number (v18.0.0[/-] [+]typeof os.networkInterfaces family is a number (v18.0.0)[/+] on Apr 25, 2022
  4. VoltrexKeyva commented on Apr 25, 2022

    @VoltrexKeyva
    Contributor

    This was already mentioned in #42787 and was fixed in #42789, it can take a while for the website to update and show the changes.

  5. elecV2 commented on Apr 25, 2022

    @elecV2
    Author

    This was already mentioned in #42787 and was fixed in #42789, it can take a while for the website to update and show the changes.

    I see. 👍
    Thanks reply.

  6. added a commit that references this issue on Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.osIssues and PRs related to the os subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions