Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
12
Maintainers
3
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

11

lib/env.js
const { execSync } = require('child_process')
const fs = require('fs')
const path = require('path')
const LRU = require('lru-cache')
let _hasYarn
const _yarnProjects = new Map()
const _yarnProjects = new LRU({
max: 10,
maxAge: 1000
})
let _hasGit
const _gitProjects = new Map()
const _gitProjects = new LRU({
max: 10,
maxAge: 1000
})

@@ -10,0 +17,0 @@ // env detection

@@ -9,5 +9,8 @@ const ipc = require('node-ipc')

disconnectOnIdle: false,
idleTimeout: DEFAULT_IDLE_TIMEOUT
idleTimeout: DEFAULT_IDLE_TIMEOUT,
namespaceOnProject: true
}
const PROJECT_ID = process.env.VUE_CLI_PROJECT_ID
exports.IpcMessenger = class IpcMessenger {

@@ -49,2 +52,9 @@ constructor (options = {}) {

if (this.connected) {
if (this.options.namespaceOnProject && PROJECT_ID) {
data = {
_projectId: PROJECT_ID,
_data: data
}
}
ipc.of[this.id].emit(type, data)

@@ -123,4 +133,13 @@

_onMessage (data) {
this.listeners.forEach(fn => fn(data))
this.listeners.forEach(fn => {
if (this.options.namespaceOnProject && data._projectId) {
if (data._projectId === PROJECT_ID) {
data = data._data
} else {
return
}
}
fn(data)
})
}
}

3

package.json
{
"name": "@vue/cli-shared-utils",
"version": "3.0.1",
"version": "3.0.2",
"description": "shared utilities for vue-cli packages",

@@ -26,2 +26,3 @@ "main": "index.js",

"launch-editor": "^2.2.1",
"lru-cache": "^4.1.3",
"node-ipc": "^9.1.1",

@@ -28,0 +29,0 @@ "opn": "^5.3.0",

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