From db6ae30aa673b17299faca9ea93b8aba30fc113b Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 13 Mar 2020 20:55:15 +0100 Subject: [PATCH] move consts --- updates.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updates.js b/updates.js index 108adf7..7b81e2a 100755 --- a/updates.js +++ b/updates.js @@ -174,6 +174,9 @@ const maxSockets = typeof args.sockets === "number" ? args.sockets : MAX_SOCKETS const githubApiUrl = args.githubapi ? normalizeUrl(args.githubapi) : "https://api.github.com"; let packageFile; +const deps = {}; +const maybeUrlDeps = {}; + if (args.file) { let stat; try { @@ -232,7 +235,6 @@ function canInclude(name) { return true; } -const deps = {}, maybeUrlDeps = {}; for (const depType of dependencyTypes) { for (const [name, value] of Object.entries(pkg[depType] || {})) { if (semver.validRange(value) && canInclude(name)) {