Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/cli-shared-utils - npm Package Compare versions

Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1

18

lib/openBrowser.js

@@ -6,6 +6,6 @@ /**

* LICENSE file at
* https://github.com/facebookincubator/create-react-app/blob/master/LICENSE
* https://github.com/facebook/create-react-app/blob/master/LICENSE
*/
const opn = require('opn')
const open = require('open')
const execa = require('execa')

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

// https://github.com/sindresorhus/opn#app
// https://github.com/sindresorhus/open#app
const OSX_CHROME = 'google chrome'

@@ -28,3 +28,3 @@

// It is specific to the operating system.
// See https://github.com/sindresorhus/opn#app for documentation.
// See https://github.com/sindresorhus/open#app for documentation.
const value = process.env.BROWSER

@@ -91,5 +91,5 @@ let action

// Another special case: on OS X, check if BROWSER has been set to "open".
// In this case, instead of passing `open` to `opn` (which won't work),
// In this case, instead of passing the string `open` to `open` function (which won't work),
// just ignore it (thus ensuring the intended behavior, i.e. opening the system browser):
// https://github.com/facebookincubator/create-react-app/pull/1690#issuecomment-283518768
// https://github.com/facebook/create-react-app/pull/1690#issuecomment-283518768
if (process.platform === 'darwin' && browser === 'open') {

@@ -99,7 +99,7 @@ browser = undefined

// Fallback to opn
// Fallback to open
// (It will always open new tab)
try {
var options = { app: browser }
opn(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
open(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
return true

@@ -112,3 +112,3 @@ } catch (err) {

/**
* Reads the BROWSER evironment variable and decides what to do with it. Returns
* Reads the BROWSER environment variable and decides what to do with it. Returns
* true if it opened a browser or ran a node.js script, otherwise false.

@@ -115,0 +115,0 @@ */

const { exit } = require('./exit')
// proxy to joi for option validation
exports.createSchema = fn => fn(require('joi'))
exports.createSchema = fn => fn(require('@hapi/joi'))
exports.validate = (obj, schema, cb) => {
require('joi').validate(obj, schema, {}, err => {
require('@hapi/joi').validate(obj, schema, {}, err => {
if (err) {

@@ -20,3 +20,3 @@ cb(err.message)

exports.validateSync = (obj, schema) => {
const result = require('joi').validate(obj, schema)
const result = require('@hapi/joi').validate(obj, schema)
if (result.error) {

@@ -23,0 +23,0 @@ throw result.error

{
"name": "@vue/cli-shared-utils",
"version": "4.0.0-alpha.0",
"version": "4.0.0-alpha.1",
"description": "shared utilities for vue-cli packages",

@@ -23,13 +23,13 @@ "main": "index.js",

"dependencies": {
"@hapi/joi": "^15.0.1",
"chalk": "^2.4.1",
"execa": "^1.0.0",
"joi": "^14.3.0",
"launch-editor": "^2.2.1",
"lru-cache": "^5.1.1",
"node-ipc": "^9.1.1",
"opn": "^5.3.0",
"open": "^6.3.0",
"ora": "^3.4.0",
"request": "^2.87.0",
"request-promise-native": "^1.0.7",
"semver": "^6.0.0",
"semver": "^6.1.0",
"string.prototype.padstart": "^3.0.0"

@@ -40,3 +40,3 @@ },

},
"gitHead": "63f501a2ca54232b6a9d48c56c1e06a1787ddc83"
"gitHead": "8fa6fa694a7bcca4bfebfe461bd71bfa8feb9ee3"
}
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