Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
106
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-alpha.6 to 3.0.0-alpha.7

21

lib/env.js
const { execSync } = require('child_process')
let _hasYarn
let _hasGit
// env detection
exports.hasYarn = (() => {
exports.hasYarn = () => {
if (process.env.VUE_CLI_TEST) {
return true
}
if (_hasYarn != null) {
return _hasYarn
}
try {
execSync('yarnpkg --version', { stdio: 'ignore' })
return true
return (_hasYarn = true)
} catch (e) {
return false
return (_hasYarn = false)
}
})()
}

@@ -20,8 +26,11 @@ exports.hasGit = () => {

}
if (_hasGit != null) {
return _hasGit
}
try {
execSync('git --version', { stdio: 'ignore' })
return true
return (_hasGit = true)
} catch (e) {
return false
return (_hasGit = false)
}
}
{
"name": "@vue/cli-shared-utils",
"version": "3.0.0-alpha.6",
"version": "3.0.0-alpha.7",
"description": "shared utilities for vue-cli packages",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc