mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-03 02:53:40 +00:00
2e8721ebee
Closes #55 commit 4914c5bbf401711b61d9a54330532175a51a167c Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 17 12:45:45 2017 +0100 Update debug commit 55c8307381397399afda01038b6c50416cba27a3 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 17 12:44:08 2017 +0100 Ignore versions newer than “latest” commit 8aa3e7daa937c0d86f89e1d704853ebee46a54a8 Author: Rhys Arkins <rhys@keylocation.sg> Date: Tue Jan 17 11:17:31 2017 +0100 Ignore futures if current is not future
13 lines
275 B
JavaScript
13 lines
275 B
JavaScript
const got = require('got');
|
|
|
|
module.exports = {
|
|
getDependency,
|
|
};
|
|
|
|
function getDependency(depName) {
|
|
// supports scoped packages, e.g. @user/package
|
|
return got(`https://registry.npmjs.org/${depName.replace('/', '%2F')}`, {
|
|
json: true,
|
|
}).then(res => res.body);
|
|
}
|