Comparing version 3.0.0 to 3.0.1
@@ -0,1 +1,5 @@ | ||
v3.0.1 2015-09-08 | ||
* [[`846337e36b`](https://github.com/nodejs/node-gyp/commit/846337e36b)] - normalise versions for target == this comparison (Rod Vagg) [#716](https://github.com/nodejs/node-gyp/pull/716) | ||
v3.0.0 2015-09-08 | ||
@@ -2,0 +6,0 @@ |
@@ -14,5 +14,5 @@ var semver = require('semver') | ||
var version = argv[0] || gyp.opts.target || defaultVersion | ||
, isDefaultVersion = version === defaultVersion | ||
, versionSemver = semver.parse(version) | ||
, overrideDistUrl = gyp.opts['dist-url'] || gyp.opts.disturl | ||
, isDefaultVersion | ||
, isIojs | ||
@@ -32,2 +32,5 @@ , name | ||
// defaultVersion should come from process.version so ought to be valid semver | ||
isDefaultVersion = version === semver.parse(defaultVersion).version | ||
// can't use process.release if we're using --target=x.y.z | ||
@@ -34,0 +37,0 @@ if (!isDefaultVersion) |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"installVersion": 9, | ||
@@ -17,0 +17,0 @@ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", |
@@ -371,1 +371,54 @@ var test = require('tape') | ||
test('test process release - process.release ~ node@4.0.0-rc.4', function (t) { | ||
t.plan(2) | ||
var release = processRelease([], { opts: {} }, 'v4.0.0-rc.4', { | ||
name: 'node', | ||
headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz' | ||
}) | ||
t.equal(release.semver.version, '4.0.0-rc.4') | ||
delete release.semver | ||
t.deepEqual(release, { | ||
version: '4.0.0-rc.4', | ||
name: 'node', | ||
baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/', | ||
tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz', | ||
shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt', | ||
versionDir: '4.0.0-rc.4', | ||
libUrl32: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', | ||
libUrl64: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', | ||
libPath32: 'win-x86/node.lib', | ||
libPath64: 'win-x64/node.lib' | ||
}) | ||
}) | ||
test('test process release - process.release ~ node@4.0.0-rc.4 passed as argv[0]', function (t) { | ||
t.plan(2) | ||
// note the missing 'v' on the arg, it should normalise when checking | ||
// whether we're on the default or not | ||
var release = processRelease([ '4.0.0-rc.4' ], { opts: {} }, 'v4.0.0-rc.4', { | ||
name: 'node', | ||
headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz' | ||
}) | ||
t.equal(release.semver.version, '4.0.0-rc.4') | ||
delete release.semver | ||
t.deepEqual(release, { | ||
version: '4.0.0-rc.4', | ||
name: 'node', | ||
baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/', | ||
tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz', | ||
shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt', | ||
versionDir: '4.0.0-rc.4', | ||
libUrl32: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', | ||
libUrl64: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', | ||
libPath32: 'win-x86/node.lib', | ||
libPath64: 'win-x64/node.lib' | ||
}) | ||
}) | ||
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1574947
1832
5