From 3f180b229ddc08ea544e01d89e444851c4743be1 Mon Sep 17 00:00:00 2001 From: Khoa Tran Date: Mon, 10 Apr 2017 17:50:21 +1000 Subject: [PATCH] fix issue with loading https spec. See https://github.com/Rebilly/ReDoc/issues/243 --- build/webpack.common.js | 2 +- package.json | 1 + yarn.lock | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build/webpack.common.js b/build/webpack.common.js index 30e9a57d63..da047652e8 100644 --- a/build/webpack.common.js +++ b/build/webpack.common.js @@ -23,7 +23,7 @@ module.exports = function (options) { extensions: ['.ts', '.js', '.json', '.css'], alias: { http: 'stream-http', - https: 'stream-http' + https: 'https-browserify' } }, diff --git a/package.json b/package.json index d0381e922c..2ffe2e9694 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "dropkickjs": "^2.1.10", "hint.css": "^2.3.2", "http-server": "^0.9.0", + "https-browserify": "^1.0.0", "istanbul-instrumenter-loader": "^2.0.0", "jasmine-core": "^2.4.1", "jasmine-spec-reporter": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index cff5c269ee..97a83a914b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2369,6 +2369,10 @@ https-browserify@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + https-proxy-agent@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-1.0.0.tgz#35f7da6c48ce4ddbfa264891ac593ee5ff8671e6"