New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@viewar/guide

Package Overview
Dependencies
Maintainers
8
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@viewar/guide - npm Package Compare versions

Comparing version 0.11.8 to 0.11.9

2

package.json
{
"name": "@viewar/guide",
"version": "0.11.8",
"version": "0.11.9",
"description": "ViewAR Guide",

@@ -5,0 +5,0 @@ "main": "dist/viewar-guide.js",

@@ -60,12 +60,14 @@ import { EPSILON, NORMAL } from './actions'

// + to avoid crash
const { coreInterface, versionInfo } = dependencies.viewarApi
if (coreInterface.platform === 'iOS' || coreInterface.platform === 'Android') {
if (semver.satisfies(versionInfo.core, "^11.17.5")) {
await coreInterface.call('startVoiceInput', {
language: defaultConfig.language || defaultConfig.app.language,
})
} else {
await coreInterface.call('startVoiceInput')
if (!defaultConfig.app.voiceDisabled) {
const { coreInterface, versionInfo } = dependencies.viewarApi
if (coreInterface.platform === 'iOS' || coreInterface.platform === 'Android') {
if (semver.satisfies(versionInfo.core, "^11.17.5")) {
await coreInterface.call('startVoiceInput', {
language: defaultConfig.language || defaultConfig.app.language,
})
} else {
await coreInterface.call('startVoiceInput')
}
await coreInterface.call('stopVoiceInput')
}
await coreInterface.call('stopVoiceInput')
}

@@ -72,0 +74,0 @@

@@ -46,11 +46,12 @@ import dependencies from '../../dependencies'

const startListen = async() => {
const { coreInterface, versionInfo } = dependencies.viewarApi
if (!userInput.guideDontListen) {
if (semver.satisfies(versionInfo.core, "^11.17.5")) {
await coreInterface.call('startVoiceInput', {
language: config.language || config.app.language,
})
} else {
await coreInterface.call('startVoiceInput')
if (!userInput.guideDontListen && !defaultConfig.app.voiceDisabled) {
const { coreInterface, versionInfo } = dependencies.viewarApi
if (coreInterface.platform === 'iOS' || coreInterface.platform === 'Android') {
if (semver.satisfies(versionInfo.core, "^11.17.5")) {
await coreInterface.call('startVoiceInput', {
language: config.language || config.app.language,
})
} else {
await coreInterface.call('startVoiceInput')
}
}

@@ -57,0 +58,0 @@ }

@@ -57,3 +57,3 @@ import dependencies from '../../dependencies'

const { coreInterface, versionInfo } = dependencies.viewarApi
if (coreInterface.platform === 'iOS') {
if (coreInterface.platform === 'iOS' || coreInterface.platform === 'Android') {
userAnswered = false

@@ -60,0 +60,0 @@ listening = true

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc