snyk-module
Advanced tools
Comparing version 1.8.2 to 1.9.0
@@ -58,3 +58,3 @@ module.exports = moduleToObject; | ||
name: parts[0], | ||
version: parts[1], | ||
version: parts.slice(1).join('@'), | ||
}; | ||
@@ -143,3 +143,3 @@ | ||
} else { | ||
error = new Error('not supported: external module: ' + toString(module)); | ||
debug('external module: ' + toString(module)); | ||
} | ||
@@ -146,0 +146,0 @@ } |
@@ -54,3 +54,3 @@ { | ||
}, | ||
"version": "1.8.2" | ||
"version": "1.9.0" | ||
} |
@@ -66,7 +66,15 @@ var test = require('tap').test; | ||
// privately hosted git repo not supported | ||
t.throws(function () { | ||
mod('ikt@git+http://ikt.pm2.io/ikt.git#master'); | ||
}, /not supported: external module/, 'external not supported'); | ||
// privately hosted git repo is supported | ||
t.deepEqual(mod('ikt@git+http://ikt.pm2.io/ikt.git#master'), | ||
{ name: 'ikt', version: 'git+http://ikt.pm2.io/ikt.git#master' }, | ||
'external git repo is supported'); | ||
t.deepEqual(mod('ikt@git+ssh://git@ikt.pm2.io/ikt.git#master'), | ||
{ name: 'ikt', version: 'git+ssh://git@ikt.pm2.io/ikt.git#master' }, | ||
'external git repo with ssh is supported'); | ||
t.deepEqual(mod('@scope/ikt@git+ssh://git@ikt.pm2.io/ikt.git#master'), | ||
{ name: '@scope/ikt', version: 'git+ssh://git@ikt.pm2.io/ikt.git#master' }, | ||
'scoped package with git repo is supported'); | ||
t.end(); | ||
@@ -73,0 +81,0 @@ }); |
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
12445
263