npm-install-checks
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -10,5 +10,6 @@ var fs = require('fs') | ||
var eng = target.engines | ||
var opt = { includePrerelease: true } | ||
if (!eng) return cb() | ||
if (nodev && eng.node && !semver.satisfies(nodev, eng.node) || | ||
eng.npm && !semver.satisfies(npmVer, eng.npm)) { | ||
if (nodev && eng.node && !semver.satisfies(nodev, eng.node, opt) || | ||
eng.npm && !semver.satisfies(npmVer, eng.npm, opt)) { | ||
var er = new Error(util.format('Unsupported engine for %s: wanted: %j (current: %j)', | ||
@@ -15,0 +16,0 @@ target._id, eng, {node: nodev, npm: npmVer})) |
{ | ||
"name": "npm-install-checks", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "checks that npm runs during the installation of a module", | ||
@@ -10,6 +10,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"mkdirp": "~0.3.5", | ||
"rimraf": "~2.2.5", | ||
"mkdirp": "^0.5.1", | ||
"rimraf": "^2.6.3", | ||
"standard": "^5.4.1", | ||
"tap": "^5.0.1" | ||
"tap": "^12.4.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -63,1 +63,10 @@ var test = require('tap').test | ||
}) | ||
test('npm prerelease', function (t) { | ||
var target = { engines: { node: '>=0.8', npm: '>=1.2.3' } } | ||
c(target, '69.420.0-yolo', '69.420.0-yolo', true, true, function (err, warn) { | ||
t.notOk(err, 'returns no error') | ||
t.notOk(warn, 'returns no warning') | ||
t.end() | ||
}) | ||
}) |
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
58175
12
325
0