This commit is contained in:
silverwind 2021-05-07 18:36:11 +02:00
parent e601452d0a
commit 0dfbb166a8
Signed by untrusted user: silverwind
GPG Key ID: 2E62B41C93869443

@ -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 = {};