This commit is contained in:
Alex Yang
2026-03-30 01:04:46 +08:00
parent 050aa421b1
commit f627244b8f
5978 changed files with 1502187 additions and 2947 deletions
+7
View File
@@ -0,0 +1,7 @@
/**
* @param {boolean} isHTTPS true when need https module, otherwise false
* @returns {Promise<import("http") | import("https")>}
*/
module.exports = function (isHTTPS) {
return isHTTPS ? import("https") : import("http");
};