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

@oclif/core

Package Overview
Dependencies
Maintainers
7
Versions
422
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/core - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [1.3.5](https://github.com/oclif/core/compare/v1.3.4...v1.3.5) (2022-02-25)
### Bug Fixes
* print valid flag values in error message when using `exactlyOne` ([#349](https://github.com/oclif/core/issues/349)) ([ddcaeb2](https://github.com/oclif/core/commit/ddcaeb2f9b690d9b92dd0ac4937b6399f606adfa))
### [1.3.4](https://github.com/oclif/core/compare/v1.3.3...v1.3.4) (2022-02-11)

@@ -7,0 +14,0 @@

5

lib/parser/validate.js

@@ -33,2 +33,3 @@ "use strict";

function validateAcrossFlags(flag) {
var _a;
const intersection = Object.entries(parse.input.flags)

@@ -41,4 +42,4 @@ .map(entry => entry[0]) // array of flag names

throw new errors_1.CLIError(`Exactly one of the following must be provided: ${[
...new Set(...flag.exactlyOne || [], flag.name),
].join(',')}`);
...new Set((_a = flag.exactlyOne) === null || _a === void 0 ? void 0 : _a.map(flag => `--${flag}`)),
].join(', ')}`);
}

@@ -45,0 +46,0 @@ }

2

package.json
{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "1.3.4",
"version": "1.3.5",
"author": "Salesforce",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/oclif/core/issues",

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