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

javascript api os.type returns "Darwing" instead of "Darwin" #2861

Closed
persteinhorst opened this issue Nov 10, 2021 · 1 comment
Closed

javascript api os.type returns "Darwing" instead of "Darwin" #2861

persteinhorst opened this issue Nov 10, 2021 · 1 comment

Comments

@persteinhorst
Copy link
Contributor

persteinhorst commented Nov 10, 2021

Describe the bug

When using the Javascript os.type() function on MacOS it returns "Darwing" instead of "Darwin"

To Reproduce

Steps to reproduce the behavior:
Use the Javascript function os.type() on MacOS.

import { os } from '@tauri-apps/api'

const logOsType = async () => {
  const osType = await os.type()
  console.log({ osType })
}

logOsType()

Expected behavior

It is expected to return the string "Darwin" but it returns "Darwing".
https://github.com/tauri-apps/tauri/blob/40d08a6/tooling/api/src/os.ts#L64

Screenshots

Platform and Versions (required):

Operating System - Mac OS, version 12.0.1 X64

Node.js environment
  Node.js - 14.18.1
  @tauri-apps/cli - 1.0.0-beta.10
  @tauri-apps/api - 1.0.0-beta.8

Global packages
  npm - 6.14.15
  yarn - 1.23.0-20210726.1745

Rust environment
  rustc - 1.56.1
  cargo - 1.56.0

App directory structure
/.yarn
/bin
/dist
/node_modules
/src-tauri
/.git
/src-node-pty
/src

App
  tauri.rs - 1.0.0-beta.8
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - ../dist
  devPath - http://localhost:3000
  framework - React

Additional context

Stack Trace

@FabianLars
Copy link
Member

Fixed in #2699.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants