registry-url
Advanced tools
Comparing version 3.0.1 to 3.0.2
'use strict'; | ||
module.exports = function (scope) { | ||
var rc = require('rc')('npm', {registry: 'https://registry.npmjs.org/'}); | ||
return rc[scope + ':registry'] || rc.registry; | ||
return rc[scope + ':registry'] || (rc.registry.slice(-1) !== '/' ? rc.registry + '/' : rc.registry); | ||
}; |
{ | ||
"name": "registry-url", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Get the set npm registry URL", | ||
@@ -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
2077
3