From 40cfb6c267733ac300a1a01eb00bc26e93b98314 Mon Sep 17 00:00:00 2001 From: Robert DeLuca Date: Fri, 7 Aug 2020 10:47:12 -0500 Subject: [PATCH] fix: Windows `http-server` redirect errors https://github.com/http-party/http-server/issues/525 The `ecstatic` package has long standing issues on windows. Downgrading should fix this issue. In the future we should dump `http-server` for something that doen't carry so many issues on windows --- package-lock.json | 65 +++++++++++++++++++---------------------------- package.json | 2 +- 2 files changed, 27 insertions(+), 40 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5cb5ba2..3aaad58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1310,15 +1310,15 @@ } }, "ecstatic": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-3.3.2.tgz", - "integrity": "sha512-fLf9l1hnwrHI2xn9mEDT7KIi22UDqA2jaCwyCbSUJh9a1V+LEUSL/JO/6TIz/QyuBURWUHrFL5Kg2TtO1bkkog==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/ecstatic/-/ecstatic-1.4.1.tgz", + "integrity": "sha1-Mst7b6LikNWGaGdNEV6PDD1WfWo=", "dev": true, "requires": { - "he": "^1.1.1", - "mime": "^1.6.0", + "he": "^0.5.0", + "mime": "^1.2.11", "minimist": "^1.1.0", - "url-join": "^2.0.5" + "url-join": "^1.0.0" } }, "ee-first": { @@ -1764,9 +1764,9 @@ "dev": true }, "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/he/-/he-0.5.0.tgz", + "integrity": "sha1-LAX/rvkLaOhg8/0rVO9YCYknfuI=", "dev": true }, "http-errors": { @@ -1794,18 +1794,18 @@ } }, "http-server": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.11.1.tgz", - "integrity": "sha512-6JeGDGoujJLmhjiRGlt8yK8Z9Kl0vnl/dQoQZlc4oeqaUoAKQg94NILLfrY3oWzSyFaQCVNTcKE5PZ3cH8VP9w==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/http-server/-/http-server-0.9.0.tgz", + "integrity": "sha1-jxsGvcczYY1NxCgxx7oa/04GABo=", "dev": true, "requires": { "colors": "1.0.3", "corser": "~2.0.0", - "ecstatic": "^3.0.0", + "ecstatic": "^1.4.0", "http-proxy": "^1.8.1", "opener": "~1.4.0", "optimist": "0.6.x", - "portfinder": "^1.0.13", + "portfinder": "0.4.x", "union": "~0.4.3" }, "dependencies": { @@ -2390,33 +2390,20 @@ "dev": true }, "portfinder": { - "version": "1.0.26", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.26.tgz", - "integrity": "sha512-Xi7mKxJHHMI3rIUrnm/jjUgwhbYMkp/XKEcZX3aG4BrumLpq3nmoQMX+ClYnDZnZ/New7IatC1no5RX0zo1vXQ==", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-0.4.0.tgz", + "integrity": "sha1-o/+t/6/k+5jgYBqF7aJ8J86Eyh4=", "dev": true, "requires": { - "async": "^2.6.2", - "debug": "^3.1.1", - "mkdirp": "^0.5.1" + "async": "0.9.0", + "mkdirp": "0.5.x" }, "dependencies": { "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dev": true, - "requires": { - "lodash": "^4.17.14" - } - }, - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.0.tgz", + "integrity": "sha1-rDYTsdqb7RtHUQu0ZRuJMeRxRsc=", + "dev": true } } }, @@ -3040,9 +3027,9 @@ } }, "url-join": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-2.0.5.tgz", - "integrity": "sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-1.1.0.tgz", + "integrity": "sha1-dBxsL0WWxIMNZxhGCSDQySIC3Hg=", "dev": true }, "util-deprecate": { diff --git a/package.json b/package.json index 6de8d56..cbf7880 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,6 @@ }, "devDependencies": { "@percy/script": "^1.0.0", - "http-server": "^0.11.1" + "http-server": "^0.9.0" } }