(exports2, module2)
| 9733 | // node_modules/agentkeepalive/lib/https_agent.js |
| 9734 | var require_https_agent = __commonJS({ |
| 9735 | "node_modules/agentkeepalive/lib/https_agent.js"(exports2, module2) { |
| 9736 | "use strict"; |
| 9737 | var OriginalHttpsAgent = require("https").Agent; |
| 9738 | var HttpAgent = require_agent(); |
| 9739 | var { |
| 9740 | INIT_SOCKET, |
| 9741 | CREATE_HTTPS_CONNECTION |
| 9742 | } = require_constants(); |
| 9743 | var HttpsAgent2 = class extends HttpAgent { |
| 9744 | constructor(options) { |
| 9745 | super(options); |
| 9746 | this.defaultPort = 443; |
| 9747 | this.protocol = "https:"; |
| 9748 | this.maxCachedSessions = this.options.maxCachedSessions; |
| 9749 | if (this.maxCachedSessions === void 0) { |
| 9750 | this.maxCachedSessions = 100; |
| 9751 | } |
| 9752 | this._sessionCache = { |
| 9753 | map: {}, |
| 9754 | list: [] |
| 9755 | }; |
| 9756 | } |
| 9757 | createConnection(options, oncreate) { |
| 9758 | const socket = this[CREATE_HTTPS_CONNECTION](options, oncreate); |
| 9759 | this[INIT_SOCKET](socket, options); |
| 9760 | return socket; |
| 9761 | } |
| 9762 | }; |
| 9763 | HttpsAgent2.prototype[CREATE_HTTPS_CONNECTION] = OriginalHttpsAgent.prototype.createConnection; |
| 9764 | [ |
| 9765 | "getName", |
| 9766 | "_getSession", |
| 9767 | "_cacheSession", |
| 9768 | // https://github.com/nodejs/node/pull/4982 |
| 9769 | "_evictSession" |
| 9770 | ].forEach(function(method) { |
| 9771 | if (typeof OriginalHttpsAgent.prototype[method] === "function") { |
| 9772 | HttpsAgent2.prototype[method] = OriginalHttpsAgent.prototype[method]; |
| 9773 | } |
| 9774 | }); |
| 9775 | module2.exports = HttpsAgent2; |
| 9776 | } |
| 9777 | }); |
| 9778 | |
| 9779 | // node_modules/agentkeepalive/index.js |
nothing calls this directly
no test coverage detected
searching dependent graphs…