Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cac

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cac - npm Package Compare versions

Comparing version 5.0.11 to 5.0.12

11

dist/cac.js

@@ -42,2 +42,4 @@ 'use strict';

const REVERSE_OPTION_MATCH = /^no\-[a-z]/i;
const REVERSE_OPTION_PREFIX = /^no\-/i;
class Options {

@@ -75,3 +77,8 @@ constructor() {

getOptionNamesByType(type) {
return this.getOptionsByType(type).map(option => option.name);
return this.getOptionsByType(type).map(option => {
if (REVERSE_OPTION_MATCH.test(option.name)) {
return option.name.replace(REVERSE_OPTION_PREFIX, '');
}
return option.name;
});
}

@@ -258,3 +265,3 @@ getAliasMap() {

defaultOpts = defaultOpts || true;
this.bin = bin || path.basename(process.argv[1]);
this.bin = bin || process.argv[1] ? path.basename(process.argv[1]) : 'cli';
this.commands = [];

@@ -261,0 +268,0 @@ this.options = new Options();

2

package.json
{
"name": "cac",
"version": "5.0.11",
"version": "5.0.12",
"description": "Command-line queen.",

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

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