Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uname() returns an object not a string as documented #913

Open
garth opened this issue Feb 4, 2024 · 0 comments
Open

uname() returns an object not a string as documented #913

garth opened this issue Feb 4, 2024 · 0 comments
Assignees
Labels
api An issue, task, or discussion related to public runtime APIs javascript An issue, discussion, or task related to the runtime javascript

Comments

@garth
Copy link

garth commented Feb 4, 2024

According the docs, uname() returns a string, but it actually returns an object.

import { uname } from 'socket:os'

const info = uname()

// info
{
  machine: 'arm64',
  release: '23.2.0',
  sysname: 'Darwin',
  version: 'Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000'
}

What OS are you using (uname -a, or Windows version)?

Darwin Garths-MacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64

What version Socket Runtime are you using?

0.5.4 (97fa3f7c)
Installation path: /Users/garth/Projects/beamer-p2p/node_modules/.pnpm/@[email protected]/node_modules/@socketsupply/socket-darwin-arm64/

What programming language are you using (C/C++/Go/Rust)?

What did you expect to see and what you saw instead?

I would expect the docs/types to match the returned value type

@jwerle jwerle self-assigned this Feb 4, 2024
@jwerle jwerle added javascript An issue, discussion, or task related to the runtime javascript api An issue, task, or discussion related to public runtime APIs labels Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api An issue, task, or discussion related to public runtime APIs javascript An issue, discussion, or task related to the runtime javascript
Projects
None yet
Development

No branches or pull requests

2 participants