package-json
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -33,2 +33,6 @@ 'use strict'; | ||
data = data.versions[version]; | ||
if (!data) { | ||
throw new Error('Version doesn\'t exist'); | ||
} | ||
} | ||
@@ -40,3 +44,3 @@ | ||
if (err.statusCode === 404) { | ||
throw new Error('Package or version doesn\'t exist'); | ||
throw new Error('Package doesn\'t exist'); | ||
} | ||
@@ -43,0 +47,0 @@ |
{ | ||
"name": "package-json", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Get the package.json of a package from the npm registry", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4226
40