From 27c0b02072ba66dec4aadacd5434f7714b80085d Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Wed, 19 Jul 2017 12:31:21 +0100 Subject: [PATCH] Upgrade deps to pick up bugfix to --key and --cert --- README.md | 2 +- lib/local-web-server.js | 9 +++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8f7c4b..0f112b1 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Features: * Configurable access log * Route blacklisting * HTTP Conditional Request support -* Gzip response compression and much more +* Gzip response compression, HTTP Basic Authentication and much more ## Synopsis diff --git a/lib/local-web-server.js b/lib/local-web-server.js index e549291..fe7198d 100644 --- a/lib/local-web-server.js +++ b/lib/local-web-server.js @@ -3,6 +3,7 @@ const path = require('path') /** * @module local-web-server + * @emits module:local-web-server#verbose * @example * const LocalWebServer = require('local-web-server') * const localWebServer = new LocalWebServer() @@ -52,6 +53,14 @@ class LocalWebServer extends Lws { stack: require('./default-stack') }, options) return super.listen(options) + + /** + * Highly-verbose debug information event stream. + * + * @event module:local-web-server#verbose + * @param key {string} - An identifying string, e.g. `server.socket.data`. + * @param value {*} - The value, e.g. `{ socketId: 1, bytesRead: '3 Kb' }`. + */ } } diff --git a/package.json b/package.json index c7a6b61..0a6f58d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "repository": "https://github.com/lwsjs/local-web-server", "author": "Lloyd Brookes <75pound@gmail.com>", "dependencies": { - "lws": "^1.1.1", + "lws": "^1.1.2", "lws-basic-auth": "^0.1.1", "lws-blacklist": "^0.2.3", "lws-body-parser": "^0.2.4",