latest-version
Advanced tools
Comparing version 3.0.0 to 3.1.0
'use strict'; | ||
const packageJson = require('package-json'); | ||
module.exports = name => packageJson(name.toLowerCase(), 'latest').then(data => data.version); | ||
module.exports = name => packageJson(name.toLowerCase()).then(data => data.version); |
{ | ||
"name": "latest-version", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Get the latest version of an npm package", | ||
@@ -32,3 +32,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"package-json": "^3.0.0" | ||
"package-json": "^4.0.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
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
3018
+ Addedpackage-json@4.0.1(transitive)
- Removedpackage-json@3.1.0(transitive)
Updatedpackage-json@^4.0.0