@vue/cli-shared-utils
Advanced tools
Comparing version 4.0.0-alpha.0 to 4.0.0-alpha.1
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23490
+ Added@hapi/joi@^15.0.1
+ Addedopen@^6.3.0
+ Added@hapi/address@2.1.4(transitive)
+ Added@hapi/bourne@1.3.2(transitive)
+ Added@hapi/hoek@8.5.1(transitive)
+ Added@hapi/joi@15.1.1(transitive)
+ Added@hapi/topo@3.1.6(transitive)
+ Addedopen@6.4.0(transitive)
- Removedjoi@^14.3.0
- Removedopn@^5.3.0
- Removedhoek@6.1.3(transitive)
- Removedisemail@3.2.0(transitive)
- Removedjoi@14.3.1(transitive)
- Removedopn@5.5.0(transitive)
- Removedtopo@3.0.3(transitive)
Updatedsemver@^6.1.0