npm-pick-manifest
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/zkat/npm-pick-manifest/compare/v1.0.2...v1.0.3) (2017-05-04) | ||
### Bug Fixes | ||
* **semver:** use semver.clean() instead ([f4133b5](https://github.com/zkat/npm-pick-manifest/commit/f4133b5)) | ||
<a name="1.0.2"></a> | ||
@@ -7,0 +17,0 @@ ## [1.0.2](https://github.com/zkat/npm-pick-manifest/compare/v1.0.1...v1.0.2) (2017-05-04) |
@@ -9,5 +9,7 @@ 'use strict' | ||
opts = opts || {} | ||
wanted = wanted.trim() | ||
const spec = npa.resolve(packument.name, wanted) | ||
const type = spec.type | ||
if (type === 'version' || type === 'range') { | ||
wanted = semver.clean(wanted) || wanted | ||
} | ||
const distTags = packument['dist-tags'] || {} | ||
@@ -14,0 +16,0 @@ const versions = Object.keys(packument.versions || {}).filter(v => semver.valid(v)) |
{ | ||
"name": "npm-pick-manifest", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
7557
65