Browse Source

Upgrade deps to pick up bugfix to --key and --cert

master
Lloyd Brookes 7 years ago
parent
commit
27c0b02072
  1. 2
      README.md
  2. 9
      lib/local-web-server.js
  3. 2
      package.json

2
README.md

@ -30,7 +30,7 @@ Features:
* Configurable access log * Configurable access log
* Route blacklisting * Route blacklisting
* HTTP Conditional Request support * HTTP Conditional Request support
* Gzip response compression and much more
* Gzip response compression, HTTP Basic Authentication and much more
## Synopsis ## Synopsis

9
lib/local-web-server.js

@ -3,6 +3,7 @@ const path = require('path')
/** /**
* @module local-web-server * @module local-web-server
* @emits module:local-web-server#verbose
* @example * @example
* const LocalWebServer = require('local-web-server') * const LocalWebServer = require('local-web-server')
* const localWebServer = new LocalWebServer() * const localWebServer = new LocalWebServer()
@ -52,6 +53,14 @@ class LocalWebServer extends Lws {
stack: require('./default-stack') stack: require('./default-stack')
}, options) }, options)
return super.listen(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' }`.
*/
} }
} }

2
package.json

@ -32,7 +32,7 @@
"repository": "https://github.com/lwsjs/local-web-server", "repository": "https://github.com/lwsjs/local-web-server",
"author": "Lloyd Brookes <75pound@gmail.com>", "author": "Lloyd Brookes <75pound@gmail.com>",
"dependencies": { "dependencies": {
"lws": "^1.1.1",
"lws": "^1.1.2",
"lws-basic-auth": "^0.1.1", "lws-basic-auth": "^0.1.1",
"lws-blacklist": "^0.2.3", "lws-blacklist": "^0.2.3",
"lws-body-parser": "^0.2.4", "lws-body-parser": "^0.2.4",

Loading…
Cancel
Save