live-server-maintained 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -199,7 +199,11 @@ LiveServer.start = function(options) {
|
|
|
199
199
|
realm: "Please authorize",
|
|
200
200
|
file: htpasswd
|
|
201
201
|
});
|
|
202
|
-
app.use(
|
|
202
|
+
app.use(function(req, res, next) {
|
|
203
|
+
basic.check(function() {
|
|
204
|
+
next();
|
|
205
|
+
})(req, res);
|
|
206
|
+
});
|
|
203
207
|
}
|
|
204
208
|
if (cors) {
|
|
205
209
|
app.use(require("cors")({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "live-server-maintained",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "simple development http server with live reload capability",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"front-end",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"cors": "^2.8.5",
|
|
19
19
|
"event-stream": "3.3.4",
|
|
20
20
|
"faye-websocket": "0.11.x",
|
|
21
|
-
"http-auth": "
|
|
21
|
+
"http-auth": "^4.2.1",
|
|
22
22
|
"morgan": "^1.10.0",
|
|
23
23
|
"object-assign": "^4.1.1",
|
|
24
24
|
"opn": "^5.5.0",
|