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 3.1.0 to 4.0.0

15

CHANGELOG.md

@@ -0,1 +1,16 @@

# 4.0.0 (2020-12-27)
[Compare `check-peer-dependencies` versions 3.1.0 and 4.0.0](https://github.com/christopherthielen/check-peer-dependencies/compare/3.1.0...4.0.0)
### Features
* **prerelease:** include prerelease when matching ranges, i.e. the range ">=6.0.0" matches "7.0.0-beta.1" ([0493379](https://github.com/christopherthielen/check-peer-dependencies/commit/0493379))
### BREAKING CHANGES
* **prerelease:** Matches prerelease versions
# 3.1.0 (2020-12-23)

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

3

dist/checkPeerDependencies.js

@@ -15,2 +15,3 @@ #!/usr/bin/env node

exports.__esModule = true;
exports.checkPeerDependencies = void 0;
var semver = require("semver");

@@ -25,3 +26,3 @@ var shelljs_1 = require("shelljs");

var installedVersion = packageUtils_1.getInstalledVersion(dep);
var semverSatisfies = installedVersion ? semver.satisfies(installedVersion, dep.version) : false;
var semverSatisfies = installedVersion ? semver.satisfies(installedVersion, dep.version, { includePrerelease: true }) : false;
var isYalc = !!/-[a-f0-9]+-yalc$/.exec(installedVersion);

@@ -28,0 +29,0 @@ return __assign(__assign({}, dep), { installedVersion: installedVersion, semverSatisfies: semverSatisfies, isYalc: isYalc });

"use strict";
exports.__esModule = true;
exports.getCommandLines = exports.getPackageManager = void 0;
var fs = require("fs");

@@ -4,0 +5,0 @@ function getPackageManager(forceYarn, forceNpm) {

"use strict";
exports.__esModule = true;
exports.isSameDep = exports.getInstalledVersion = exports.resolvePackageDir = exports.getPackageMeta = exports.walkPackageDependencyTree = exports.gatherPeerDependencies = void 0;
var fs = require("fs");

@@ -4,0 +5,0 @@ var path = require("path");

"use strict";
exports.__esModule = true;
exports.readJson = void 0;
var fs_1 = require("fs");

@@ -4,0 +5,0 @@ function readJson(filename) {

"use strict";
exports.__esModule = true;
exports.findPossibleResolutions = void 0;
var semver = require("semver");

@@ -35,3 +36,5 @@ var shelljs_1 = require("shelljs");

var availableVersions = JSON.parse(rawVersionsInfo.replace(/'/g, '"')).sort(semverReverseSort);
return availableVersions.find(function (ver) { return requiredPeerVersions.every(function (peerVer) { return semver.satisfies(ver, peerVer.version); }); });
return availableVersions.find(function (ver) { return requiredPeerVersions.every(function (peerVer) {
return semver.satisfies(ver, peerVer.version, { includePrerelease: true });
}); });
}

@@ -38,0 +41,0 @@ catch (err) {

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

@@ -32,15 +32,15 @@ "main": "dist/check_peer_dependencies.js",

"dependencies": {
"resolve": "^1.14.1",
"semver": "^7.1.1",
"shelljs": "^0.8.3",
"yargs": "^15.0.2"
"resolve": "^1.19.0",
"semver": "^7.3.4",
"shelljs": "^0.8.4",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/node": "^13.1.1",
"@types/semver": "^6.2.0",
"@types/shelljs": "^0.8.6",
"@types/yargs": "^13.0.4",
"@uirouter/publish-scripts": "^2.3.42",
"typescript": "^3.7.4"
"@types/node": "^14.14.16",
"@types/semver": "^7.3.4",
"@types/shelljs": "^0.8.8",
"@types/yargs": "^15.0.12",
"@uirouter/publish-scripts": "^2.5.4",
"typescript": "^4.1.3"
}
}

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