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

check-peer-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-peer-dependencies - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# 4.3.0 (2023-10-17)
[Compare `check-peer-dependencies` versions 4.2.0 and 4.3.0](https://github.com/christopherthielen/check-peer-dependencies/compare/4.2.0...4.3.0)
### Bug Fixes
* non-satisfied optional dependency should fail ([7d43b0d](https://github.com/christopherthielen/check-peer-dependencies/commit/7d43b0d))
# 4.2.0 (2023-03-13)

@@ -2,0 +12,0 @@ [Compare `check-peer-dependencies` versions 4.1.0 and 4.2.0](https://github.com/christopherthielen/check-peer-dependencies/compare/4.1.0...4.2.0)

15

dist/checkPeerDependencies.js

@@ -36,3 +36,4 @@ #!/usr/bin/env node

var recursiveCount = 0;
var isProblem = function (dep) { return !dep.semverSatisfies && !dep.isIgnored && !dep.isYalc && !dep.isPeerOptionalDependency; };
var isProblem = function (dep) { return !dep.semverSatisfies && !dep.isIgnored && !dep.isYalc &&
(!dep.isPeerOptionalDependency || !!dep.installedVersion); };
var reportPeerDependencyStatus = function (dep, byDepender, showSatisfiedDep, verbose) {

@@ -50,7 +51,2 @@ var message = byDepender ?

}
else if (dep.installedVersion && dep.isPeerOptionalDependency) {
if (verbose) {
console.log(" \u2611\uFE0F " + message + ") OPTIONAL (" + dep.installedVersion + " is installed)");
}
}
else if (dep.isIgnored) {

@@ -62,3 +58,8 @@ if (verbose) {

else if (dep.installedVersion) {
console.log(" \u274C " + message + ") (" + dep.installedVersion + " is installed)");
if (dep.isPeerOptionalDependency) {
console.log(" \u274C " + message + ") OPTIONAL (" + dep.installedVersion + " is installed)");
}
else {
console.log(" \u274C " + message + ") (" + dep.installedVersion + " is installed)");
}
}

@@ -65,0 +66,0 @@ else if (dep.isPeerOptionalDependency) {

{
"name": "check-peer-dependencies",
"version": "4.2.0",
"version": "4.3.0",
"description": "Checks peer dependencies of the current package. Offers solutions for any that are unmet.",

@@ -5,0 +5,0 @@ "main": "dist/check_peer_dependencies.js",

Sorry, the diff of this file is not supported yet

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