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

command-line-basics

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-basics - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

4

CHANGES.md
# CHANGES for command-line-basics
## 0.3.0
- Enhancement (breaking): Avoid applying `cwd` to `package.json`.
## 0.2.0

@@ -4,0 +8,0 @@

2

package.json
{
"name": "command-line-basics",
"version": "0.2.0",
"version": "0.3.0",
"description": "Auto-add help and version CLI and update notification checks",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -48,3 +48,5 @@ # command-line-basics

optionsPath: path.join(process.cwd(), './src/optionDefinitions.js'),
cwd: __dirname, // As an alternative to joining
// As an alternative to joining (for `optionsPath` only;
// no effect on `packageJsonPath`):
cwd: __dirname,
packageJsonPath: path.join(process.cwd(), 'package.json'),

@@ -51,0 +53,0 @@ options: {

@@ -13,5 +13,4 @@ 'use strict';

}
const cwd = options.cwd || process.cwd();
if (!packageJsonPath) {
packageJsonPath = join(cwd, 'package.json');
packageJsonPath = join(process.cwd(), 'package.json');
}

@@ -22,3 +21,3 @@ options = options || {};

}
optionsPath = join(cwd, optionsPath);
optionsPath = join(options.cwd || process.cwd(), optionsPath);

@@ -25,0 +24,0 @@ // eslint-disable-next-line global-require, import/no-dynamic-require

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