check-peer-dependencies
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,17 @@ | ||
## 2.0.2 (2020-05-25) | ||
[Compare `check-peer-dependencies` versions 2.0.1 and 2.0.2](https://github.com/christopherthielen/check-peer-dependencies/compare/2.0.1...2.0.2) | ||
### Bug Fixes | ||
* **peerDevDependencies:** Make peerDevDependency includes check a bit safer ([2a1a183](https://github.com/christopherthielen/check-peer-dependencies/commit/2a1a183)) | ||
* **walkPackageDependency:** only walk dev deps for the root package ([e69c385](https://github.com/christopherthielen/check-peer-dependencies/commit/e69c385)) | ||
### Features | ||
* **walkPackageDependencyTree:** Check devDependencies too ([9eba197](https://github.com/christopherthielen/check-peer-dependencies/commit/9eba197)) | ||
## 2.0.1 (2020-04-10) | ||
@@ -2,0 +18,0 @@ [Compare `check-peer-dependencies` versions 2.0.0 and 2.0.1](https://github.com/christopherthielen/check-peer-dependencies/compare/2.0.0...2.0.1) |
@@ -31,2 +31,3 @@ "use strict"; | ||
function walkPackageDependencyTree(packagePath, visitor, visitedPaths, options) { | ||
var isRootPackage = visitedPaths.length === 0; | ||
if (visitedPaths.includes(packagePath)) { | ||
@@ -58,2 +59,4 @@ return; | ||
packageDependencies.dependencies.forEach(walkDependency); | ||
if (isRootPackage) | ||
packageDependencies.devDependencies.forEach(walkDependency); | ||
} | ||
@@ -73,3 +76,3 @@ exports.walkPackageDependencyTree = walkPackageDependencyTree; | ||
var applyPeerDevDependencies = function (dep) { | ||
return (__assign(__assign({}, dep), { isPeerDevDependency: peerDevDependencies.includes(dep.name) })); | ||
return (__assign(__assign({}, dep), { isPeerDevDependency: peerDevDependencies.includes && peerDevDependencies.includes(dep.name) })); | ||
}; | ||
@@ -76,0 +79,0 @@ return { |
{ | ||
"name": "check-peer-dependencies", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"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
51628
498