check-peer-dependencies
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -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) |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59965
466