@vue/cli-shared-utils
Advanced tools
Comparing version 3.0.0-alpha.7 to 3.0.0-alpha.8
const joi = require('joi') | ||
const { error } = require('./logger') | ||
@@ -7,10 +6,10 @@ // proxy to joi for option validation | ||
exports.validate = (obj, schema, options = {}, noExit) => { | ||
joi.validate(obj, schema, options, err => { | ||
exports.validate = (obj, schema, cb) => { | ||
joi.validate(obj, schema, {}, err => { | ||
if (err) { | ||
error(`vue-cli options validation failed:\n` + err.message) | ||
if (!noExit) { | ||
cb(err.message) | ||
if (process.env.VUE_CLI_TEST) { | ||
throw err | ||
} else { | ||
process.exit(1) | ||
} else { | ||
throw err | ||
} | ||
@@ -17,0 +16,0 @@ } |
{ | ||
"name": "@vue/cli-shared-utils", | ||
"version": "3.0.0-alpha.7", | ||
"version": "3.0.0-alpha.8", | ||
"description": "shared utilities for vue-cli packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10150
265
7