https.js 544 B

12345678910111213141516
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. exports.https = void 0;
  7. const https_1 = __importDefault(require("https"));
  8. const http_1 = require("./http");
  9. /**
  10. * Returns a Readable stream from an "https:" URI.
  11. */
  12. const https = (url, opts) => {
  13. return (0, http_1.http)(url, { ...opts, http: https_1.default });
  14. };
  15. exports.https = https;
  16. //# sourceMappingURL=https.js.map