New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@easyv/cli

Package Overview
Dependencies
Maintainers
2
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@easyv/cli - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

2

package.json
{
"name": "@easyv/cli",
"version": "1.0.16",
"version": "1.0.17",
"description": "Easy[V] component tools",

@@ -5,0 +5,0 @@ "engines": {

@@ -9,3 +9,9 @@ const path = require('path')

appNodeModules,
getPluginRoot: (name) => path.resolve(process.cwd(), 'node_modules', `@easyv/${name}`),
getPluginRoot: (name) => {
// 绝对路径
if (name.startsWith('/')) {
return name
}
return path.resolve(process.cwd(), 'node_modules', `@easyv/${name}`)
},
easyvrc: path.join(homedir, '.easyvrc'),

@@ -12,0 +18,0 @@ publicToken: path.join(homedir, '.easyv_public_key'),

@@ -23,11 +23,21 @@ const chalk = require('chalk');

const globalConfig = getGlobalConfig();
const appPackageJSON = require(appPackage);
const host = globalConfig[cmd.host] || globalConfig[cmd.h] || appPackageJSON.easyv.host;
const isMobile = cmd.mobile;
if (!host) {
let host, hostError = false;
if (typeof appPackageJSON.easyv.host === 'string') {
host = appPackageJSON.easyv.host;
} else {
const h = cmd.host || cmd.h;
if (!h) { hostError = true; }
const globalConfig = getGlobalConfig();
const presetHosts = typeof appPackageJSON.easyv.host === 'object' ? appPackageJSON.easyv.host : {};
host = globalConfig[h] || presetHosts[h] || h
}
if (hostError) {
console.log(chalk.red('host was not specify, use --host <server> '));
process.exit();
}
const isMobile = cmd.mobile;
// const username = cmd.username || cmd.u;

@@ -73,3 +83,2 @@ const moduleName = name

...commonOption, body: {
// todo: 这个字段问下还用不用
isMobile,

@@ -90,3 +99,3 @@ moduleInfo: base

}
throw new Error(result.message)
throw new Error('1' + result.message)
}

@@ -100,7 +109,7 @@ // todo: 把这个改成code

}
throw new Error(body.message)
throw new Error('2' + body.message)
} catch (error) {
console.log(chalk.red(error))
console.log('3' + chalk.red(error))
}
}
}
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