npm-registry
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -143,3 +143,3 @@ 'use strict'; | ||
return this.send(name, fn).map(normalize.users); | ||
return this.send(username, fn).map(normalize.users); | ||
}; | ||
@@ -146,0 +146,0 @@ |
@@ -105,2 +105,3 @@ 'use strict'; | ||
npmjseu: 'http://registry.npmjs.eu/', | ||
npmjspt: 'http://registry.npmjs.pt/', | ||
npmjs: 'http://registry.npmjs.org/', | ||
@@ -107,0 +108,0 @@ cnpmjs: 'http://registry.cnpmjs.org/' |
'use strict'; | ||
var to = require('./to'); | ||
var extract = require('extract-github') | ||
, to = require('./to'); | ||
@@ -21,10 +22,6 @@ /** | ||
if (data.github) { | ||
var github = /github\.com\/([^\/]+)\/?/gi; | ||
if ('string' !== typeof data.github) { | ||
delete data.github; | ||
} else if (github.test(data.github)) { | ||
data.github = github.exec(data.github)[1]; | ||
} else { | ||
data.github = data.github.replace(/^https?:\/\/(www\.)?github\.com\//i, ''); | ||
data.github = (extract(data.github) || {}).user; | ||
} | ||
@@ -31,0 +28,0 @@ |
{ | ||
"name": "npm-registry", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "An high available npm registry client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
36892
952