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.6.2 to 0.7.0

4

CHANGES.md
# CHANGES for command-line-basics
## 0.7.0
- Update: Alter API per `update-notifier` breaking change
## 0.6.2

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

29

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

@@ -30,26 +30,27 @@ "main": "src/index.js",

"devDependencies": {
"@mysticatea/eslint-plugin": "^12.0.0",
"eslint": "^6.5.1",
"eslint-config-ash-nazg": "^11.0.1",
"@mysticatea/eslint-plugin": "^13.0.0",
"eslint": "^6.8.0",
"eslint-config-ash-nazg": "^17.1.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-array-func": "^3.1.3",
"eslint-plugin-compat": "^3.3.0",
"eslint-plugin-compat": "^3.5.1",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsdoc": "^15.9.10",
"eslint-plugin-markdown": "^1.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-markdown": "^1.0.1",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-sonarjs": "^0.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^12.0.2",
"typescript": "^3.6.3"
"eslint-plugin-unicorn": "^16.0.0",
"typescript": "^3.7.5"
},
"dependencies": {
"command-line-args": "^5.1.1",
"command-line-usage": "^6.0.2",
"update-notifier": "^3.0.1"
"command-line-usage": "^6.1.0",
"update-notifier": "^4.0.0"
}
}

@@ -75,2 +75,14 @@ # command-line-basics

cwd: __dirname,
async notifierCallback (notifier) {
// Do something with `notifier` instance: https://github.com/yeoman/update-notifier
const {
latest, current,
name,
type // `latest`, `major`, `minor`, `patch`, `prerelease`, `build`
} = await notifier.fetchInfo();
console.log('Versions', latest, current);
console.log('Package name', name);
console.log('Current update type', type);
},
options: {

@@ -86,5 +98,2 @@ packageJsonPath: path.join(process.cwd(), 'package.json'),

updateCheckInterval: 1000 * 60 * 60 * 24,
callback (/* error, update */) {
// Non-cached, synchronous handling (not recommended)
},
shouldNotifyInNpmScript: false,

@@ -99,3 +108,3 @@ distTag: 'latest' // https://docs.npmjs.com/adding-dist-tags-to-packages

isGlobal: defaultsToAutoDetectBoolean,
boxenOpts: {
boxenOptions: {
// Also `dimBorder`, `float`, and `backgroundColor`

@@ -102,0 +111,0 @@ // See https://github.com/sindresorhus/boxen

@@ -87,3 +87,3 @@ 'use strict';

exports.cliBasics = function (optionsPath, options) {
exports.cliBasics = function (optionsPath, options, notifierCallback) {
if (!optionsPath) {

@@ -94,3 +94,3 @@ throw new TypeError(`You must include an \`optionsPath\`.`);

if (typeof optionsPath === 'object') {
({optionsPath, options, cwd} = optionsPath);
({optionsPath, options, cwd, notifierCallback} = optionsPath);
}

@@ -112,2 +112,5 @@ options = options || {};

}
if (notifierCallback) {
notifierCallback(notifier);
}

@@ -114,0 +117,0 @@ const {

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