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

viewar-cli

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viewar-cli - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

30

commands/init.js

@@ -30,2 +30,3 @@ const chalk = require('chalk')

const userList = Object.values(readJson(cliConfigFile).users || {})
const overrides = readJson(cliConfigFile).overrides

@@ -88,3 +89,3 @@ if (userList.length === 0) {

type: 'input',
message: 'Enter the app bundle ID:',
message: 'Enter the app ID:',
validate: (value) => /^[a-zA-Z0-9]+(?:\.[a-zA-Z0-9]+)+$/.test(value),

@@ -114,2 +115,5 @@ },

},
{
name: 'VisionLib',
},
],

@@ -138,9 +142,22 @@ },

shell.exec(`git clone -b master ${sampleUrl || getRepositoryUrl(sample)} .`, {silent: true})
const override = overrides['sample/' + (sampleUrl || sample)]
if (override) {
shell.cp('-rf', `${override}/*`, '.')
} else {
shell.exec(`git clone -b master ${sampleUrl || getRepositoryUrl(sample)} .`, {silent: true})
}
} else {
console.log(chalk`\nDownloading boilerplate project...`)
shell.exec(`git clone -b master ${repositoryUrl} temp`, {silent: true})
shell.mv(`./temp/${type}/*`, `.`)
shell.rm('-rf', 'temp')
const override = overrides['boilerplate/' + type]
if (override) {
shell.cp('-rf', `${override}/*`, '.')
} else {
shell.exec(`git clone -b master ${repositoryUrl} temp`, {silent: true})
shell.mv(`./temp/${type}/*`, `.`)
shell.rm('-rf', 'temp')
}
}

@@ -177,7 +194,6 @@

console.log(chalk`\n App bundle ID: {yellow ${appId}} Version: {yellow ${appVersion}}`)
console.log(chalk`\n Use the {yellow ViewAR SDK app} from Appstore/Playstore to test your app on a device.`)
console.log(chalk`\n Use the {yellow ViewAR SDK app} from App Store/Play Store to test your app on a device.`)
console.log(chalk`\n Visit {yellow https://webversion.viewar.com/${appId}/${appVersion}/} to run your app in the browser.`)
console.log(chalk`\n Run {yellow npm run start} to start the local development server with WebGL support.`)
console.log(chalk`\n Run {yellow npm run start:mock} to start the local development server without WebGL support (mock mode).`)
}

@@ -19,2 +19,3 @@ const os = require('os')

'Vanilla sample': 'vanilla',
'LinkSys': 'linksys',
'Other...': 'other',

@@ -21,0 +22,0 @@ }

{
"name": "viewar-cli",
"version": "0.3.6",
"version": "0.3.7",
"description": "ViewAR SDK Command Line Interface",

@@ -5,0 +5,0 @@ "main": "index.js",

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