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

@oclif/command

Package Overview
Dependencies
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/command - npm Package Compare versions

Comparing version 1.4.14 to 1.4.15

9

CHANGELOG.md

@@ -0,1 +1,10 @@

<a name="1.4.15"></a>
## [1.4.15](https://github.com/oclif/command/compare/v1.4.14...v1.4.15) (2018-04-22)
### Bug Fixes
* add check for cwd ([afa6e01](https://github.com/oclif/command/commit/afa6e01))
* updated deps ([afa28ee](https://github.com/oclif/command/commit/afa28ee))
<a name="1.4.14"></a>

@@ -2,0 +11,0 @@ ## [1.4.14](https://github.com/oclif/command/compare/v1.4.13...v1.4.14) (2018-04-21)

22

lib/index.js

@@ -5,7 +5,21 @@ "use strict";

const semver = require("semver");
const root = path.join(__dirname, '..');
const pjson = require(path.join(root, 'package.json'));
if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
process.stderr.write(`WARNING\nWARNING Node version must be ${pjson.engines.node} to use this CLI\nWARNING Current node version: ${process.versions.node}\nWARNING\n`);
function checkCWD() {
try {
process.cwd();
}
catch (err) {
if (err.code === 'ENOENT') {
process.stderr.write('WARNING: current directory does not exist\n');
}
}
}
function checkNodeVersion() {
const root = path.join(__dirname, '..');
const pjson = require(path.join(root, 'package.json'));
if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
process.stderr.write(`WARNING\nWARNING Node version must be ${pjson.engines.node} to use this CLI\nWARNING Current node version: ${process.versions.node}\nWARNING\n`);
}
}
checkCWD();
checkNodeVersion();
const command_1 = require("./command");

@@ -12,0 +26,0 @@ exports.Command = command_1.default;

22

package.json
{
"name": "@oclif/command",
"description": "oclif base command",
"version": "1.4.14",
"version": "1.4.15",
"author": "Jeff Dickey @jdxcode",

@@ -14,4 +14,4 @@ "bugs": "https://github.com/oclif/command/issues",

"dependencies": {
"@oclif/errors": "^1.0.4",
"@oclif/parser": "^3.3.2",
"@oclif/errors": "^1.0.6",
"@oclif/parser": "^3.3.3",
"debug": "^3.1.0",

@@ -21,16 +21,16 @@ "semver": "^5.5.0"

"devDependencies": {
"@oclif/config": "^1.6.4",
"@oclif/plugin-help": "^1.2.4",
"@oclif/plugin-plugins": "^1.0.8",
"@oclif/config": "^1.6.13",
"@oclif/plugin-help": "^1.2.5",
"@oclif/plugin-plugins": "^1.1.3",
"@oclif/tslint": "^1.1.0",
"@types/chai": "^4.1.2",
"@types/mocha": "^5.0.0",
"@types/node": "^9.6.5",
"@types/chai": "^4.1.3",
"@types/mocha": "^5.2.0",
"@types/node": "^9.6.6",
"@types/semver": "^5.5.0",
"chai": "^4.1.2",
"fancy-test": "^1.0.5",
"mocha": "^5.1.0",
"mocha": "^5.1.1",
"ts-node": "^6.0.0",
"tslint": "^5.9.1",
"typescript": "^2.8.1"
"typescript": "^2.8.3"
},

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

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