web-app-runner
Advanced tools
Comparing version 0.90.17 to 0.90.18
@@ -18,3 +18,3 @@ /** | ||
rejectPage = options.rejectPage, | ||
acceptUnknownVisitor = options.acceptUnknownVisitor, | ||
acceptUnknownVisitor = dash.isBoolean( options.acceptUnknownVisitor ) ? options.acceptUnknownVisitor : true, | ||
whiteList = options.whiteList, | ||
@@ -21,0 +21,0 @@ blackList = options.blackList; |
@@ -7,6 +7,7 @@ /** | ||
*/ | ||
var connect = require('connect' ), | ||
var connect = require( 'connect' ), | ||
dash = require('lodash' ), | ||
IPFilter = require('./IPFilter' ), | ||
Visitor = require('./Visitor'); | ||
Visitor = require('./Visitor' ), | ||
serveStatic = require( 'serve-static' ); | ||
@@ -26,3 +27,3 @@ var WebAppRunner = function(options) { | ||
/** | ||
* start the application listener | ||
* create the connect app object and add the middleware. this is exposed to enable additional middleware | ||
*/ | ||
@@ -35,5 +36,2 @@ this.createApp = function() { | ||
app.use( connect.favicon() ); | ||
app.use( connect.errorHandler() ); | ||
app.use( ipfilter.authorize ); | ||
@@ -44,3 +42,3 @@ app.use( server.logger ); | ||
app.use( connect.static( home ) ); | ||
app.use( serveStatic( home ) ); | ||
} | ||
@@ -47,0 +45,0 @@ |
{ | ||
"name": "web-app-runner", | ||
"version": "0.90.17", | ||
"description": "A simple HTTP application runner that accepts or rejects connections based on authenticated attributes including ip, user agent, etc. The server can be used stand alone or as middleware for connect or express.", | ||
"version": "0.90.18", | ||
"description": "A simple HTTP application server that accepts or rejects connections based on authenticated attributes including ip, user agent, etc. The server can be used stand alone or as middleware for connect or express.", | ||
"main": "./index.js", | ||
@@ -17,6 +17,6 @@ "repository": { | ||
"dependencies": { | ||
"commander": "^2.2.0", | ||
"connect": "^2.21.1", | ||
"connect": "^3.1.0", | ||
"lodash": "~2.4.1", | ||
"node-uuid": "~1.4.1", | ||
"serve-static": "^1.4.0", | ||
"simple-node-logger": "^0.91.80" | ||
@@ -23,0 +23,0 @@ }, |
@@ -10,2 +10,4 @@ # Web App Runner | ||
_NOTE: this server is designed to deliver simple HTML applications that connect to alternate services. It has a bit more features when compared with http-server, but isn't intended to be a full REST-type back-end._ | ||
## Installation | ||
@@ -40,5 +42,11 @@ | ||
clustered:true | ||
}, | ||
runner = require('web-app-runner').createInstance( opts ); | ||
}, | ||
favicon = require('serve-favicon'), | ||
connect = require('connect'), | ||
runner = require('web-app-runner').createInstance( opts ), | ||
app = runner.createApp(); | ||
// use additional middleware | ||
app.use( favicon( home + /favicon.png ) ); | ||
runner.start(); | ||
@@ -104,5 +112,5 @@ | ||
## Examples | ||
- - - | ||
<p><small><em>Copyright © 2014, rain city software | Version 0.90.17</em></small></p> | ||
<p><small><em>Copyright © 2014, rain city software | Version 0.90.18</em></small></p> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20275
17
114
438
+ Addedserve-static@^1.4.0
+ Addedconnect@3.7.0(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addedencodeurl@1.0.22.0.0(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedfinalhandler@1.1.2(transitive)
+ Addedfresh@0.5.2(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedon-finished@2.4.1(transitive)
+ Addedrange-parser@1.2.1(transitive)
+ Addedsend@0.19.0(transitive)
+ Addedserve-static@1.16.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedutils-merge@1.0.1(transitive)
- Removedcommander@^2.2.0
- Removedaccepts@1.2.131.3.8(transitive)
- Removedbase64-url@1.2.1(transitive)
- Removedbasic-auth@1.0.4(transitive)
- Removedbasic-auth-connect@1.0.0(transitive)
- Removedbatch@0.5.3(transitive)
- Removedbody-parser@1.13.3(transitive)
- Removedbytes@2.1.02.4.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcompressible@2.0.18(transitive)
- Removedcompression@1.5.2(transitive)
- Removedconnect@2.30.2(transitive)
- Removedconnect-timeout@1.6.2(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.1.3(transitive)
- Removedcookie-parser@1.3.5(transitive)
- Removedcookie-signature@1.0.6(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcrc@3.3.0(transitive)
- Removedcsrf@3.0.6(transitive)
- Removedcsurf@1.8.3(transitive)
- Removeddebug@2.2.0(transitive)
- Removeddepd@1.0.11.1.2(transitive)
- Removeddestroy@1.0.4(transitive)
- Removederrorhandler@1.4.3(transitive)
- Removedescape-html@1.0.2(transitive)
- Removedetag@1.7.0(transitive)
- Removedexpress-session@1.11.3(transitive)
- Removedfinalhandler@0.4.0(transitive)
- Removedfresh@0.3.0(transitive)
- Removedhttp-errors@1.3.1(transitive)
- Removediconv-lite@0.4.110.4.13(transitive)
- Removedisarray@0.0.1(transitive)
- Removedmedia-typer@0.3.0(transitive)
- Removedmethod-override@2.3.10(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime@1.3.4(transitive)
- Removedmime-db@1.52.01.53.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmorgan@1.6.1(transitive)
- Removedms@0.7.10.7.2(transitive)
- Removedmultiparty@3.3.2(transitive)
- Removednegotiator@0.5.30.6.3(transitive)
- Removedon-headers@1.0.2(transitive)
- Removedpause@0.1.0(transitive)
- Removedqs@4.0.0(transitive)
- Removedrandom-bytes@1.0.0(transitive)
- Removedrange-parser@1.0.3(transitive)
- Removedraw-body@2.1.7(transitive)
- Removedreadable-stream@1.1.14(transitive)
- Removedresponse-time@2.3.2(transitive)
- Removedrndm@1.2.0(transitive)
- Removedsend@0.13.2(transitive)
- Removedserve-favicon@2.3.2(transitive)
- Removedserve-index@1.7.3(transitive)
- Removedserve-static@1.10.3(transitive)
- Removedstatuses@1.2.1(transitive)
- Removedstream-counter@0.2.0(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedtsscmp@1.0.5(transitive)
- Removedtype-is@1.6.18(transitive)
- Removeduid-safe@2.0.02.1.4(transitive)
- Removedutils-merge@1.0.0(transitive)
- Removedvary@1.0.11.1.2(transitive)
- Removedvhost@3.0.2(transitive)
Updatedconnect@^3.1.0