forked from silverwind/updates
refactor
This commit is contained in:
parent
e601452d0a
commit
0dfbb166a8
@ -199,7 +199,7 @@ const authTokenOpts = {npmrc, recursive: true};
|
||||
const registry = normalizeUrl(args.registry || npmrc.registry);
|
||||
const githubApiUrl = args.githubapi ? normalizeUrl(args.githubapi) : "https://api.github.com";
|
||||
const maxSockets = typeof args.sockets === "number" ? args.sockets : MAX_SOCKETS;
|
||||
const extractCerts = str => [...str.matchAll(/(----BEGIN[^]+?CERTIFICATE----)/g)].map(m => m[0]);
|
||||
const extractCerts = str => Array.from(str.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g)).map(m => m[0]);
|
||||
|
||||
let packageFile;
|
||||
const deps = {};
|
||||
|
Loading…
Reference in New Issue
Block a user