Socket
Socket
Sign inDemoInstall

web-app-runner

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-app-runner - npm Package Compare versions

Comparing version 0.90.17 to 0.90.18

public/favicon.ico

2

lib/IPFilter.js

@@ -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>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc