Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
10
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-rc.5 to 3.0.0-rc.6

1

lib/env.js

@@ -69,5 +69,4 @@ const { execSync } = require('child_process')

}
console.log('hasProjectGit', cwd, result)
_gitProjects.set(cwd, result)
return result
}

9

lib/ipc.js

@@ -39,3 +39,10 @@ const ipc = require('node-ipc')

checkConnection () {
if (!ipc.of[this.id]) {
this.connected = false
}
}
send (data, type = 'message') {
this.checkConnection()
if (this.connected) {

@@ -59,2 +66,3 @@ ipc.of[this.id].emit(type, data)

connect () {
this.checkConnection()
if (this.connected || this.connecting) return

@@ -74,2 +82,3 @@ this.connecting = true

disconnect () {
this.checkConnection()
if (!this.connected || this.disconnecting) return

@@ -76,0 +85,0 @@ this.disconnecting = true

@@ -1,5 +0,5 @@

const request = require('request-promise-native')
exports.request = {
get (uri) {
// lazy require
const request = require('request-promise-native')
const reqOpts = {

@@ -6,0 +6,0 @@ method: 'GET',

@@ -1,9 +0,8 @@

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

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

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

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

{
"name": "@vue/cli-shared-utils",
"version": "3.0.0-rc.5",
"version": "3.0.0-rc.6",
"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