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 2.0.1 to 2.0.2

16

CHANGELOG.md

@@ -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)

5

dist/packageUtils.js

@@ -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 {

2

package.json
{
"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

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