Re-use registry HTTP agent for package info requests

This commit is contained in:
Michael Jackson
2018-07-14 17:41:58 -07:00
parent 4360fbf7d6
commit 5f0fa21063
8 changed files with 90 additions and 46 deletions

View File

@ -0,0 +1,7 @@
const https = require("https");
const agent = new https.Agent({
keepAlive: true
});
module.exports = agent;