npm-pick-manifest
Advanced tools
Comparing version 9.0.1 to 9.1.0
@@ -126,5 +126,11 @@ 'use strict' | ||
(range === '*' || semver.satisfies(defaultVer, range, { loose: true })) && | ||
!restricted[defaultVer] && | ||
!shouldAvoid(defaultVer, avoid)) { | ||
const mani = versions[defaultVer] | ||
if (mani && isBefore(verTimes, defaultVer, time)) { | ||
const ok = mani && | ||
isBefore(verTimes, defaultVer, time) && | ||
engineOk(mani, npmVersion, nodeVersion) && | ||
!mani.deprecated && | ||
!staged[defaultVer] | ||
if (ok) { | ||
return mani | ||
@@ -159,6 +165,6 @@ } | ||
const notavoidb = !shouldAvoid(verb, avoid) | ||
const notrestra = !restricted[a] | ||
const notrestrb = !restricted[b] | ||
const notstagea = !staged[a] | ||
const notstageb = !staged[b] | ||
const notrestra = !restricted[vera] | ||
const notrestrb = !restricted[verb] | ||
const notstagea = !staged[vera] | ||
const notstageb = !staged[verb] | ||
const notdepra = !mania.deprecated | ||
@@ -165,0 +171,0 @@ const notdeprb = !manib.deprecated |
{ | ||
"name": "npm-pick-manifest", | ||
"version": "9.0.1", | ||
"version": "9.1.0", | ||
"description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
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
16477
195