Socket
Socket
Sign inDemoInstall

snyk-module

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-module - npm Package Compare versions

Comparing version 1.8.2 to 1.9.0

4

lib/index.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc