Socket
Socket
Sign inDemoInstall

npm-pick-manifest

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-pick-manifest - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

CHANGELOG.md

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

4

index.js

@@ -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",

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