socket
socket copied to clipboard
uname() returns an object not a string as documented
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