Comparing version 0.0.4 to 0.0.5
@@ -196,3 +196,3 @@ var async = require('async') | ||
shared.redis.hgetall('/api/status', function(err, data) { | ||
if (err) return cb(null, []) | ||
if (err || !data || typeof data != 'object') return cb(null, []) | ||
cb(null, Object.keys(data).map(function(n) { | ||
@@ -199,0 +199,0 @@ return renderStatus(JSON.parse(data[n])) |
@@ -33,10 +33,3 @@ var api = require('./api') | ||
} else { | ||
api.getEventList(function(err, eventList) { | ||
if (err) return next(err) | ||
var fail = 0 | ||
eventList.forEach(function(e) { | ||
fail += e.fail | ||
}) | ||
res.render('index.html', { fail: fail, ok: !fail }) | ||
}) | ||
res.redirect('/status') | ||
} | ||
@@ -43,0 +36,0 @@ }) |
@@ -99,3 +99,3 @@ var async = require('async') | ||
exports.redis = redis.createClient(options.redis.port, options.redis.host) | ||
exports.sql = mysql.createClient(options.mysql) | ||
exports.sql = mysql.createConnection(options.mysql) | ||
exports.setupSql(options) | ||
@@ -102,0 +102,0 @@ exports.setupRedis(options) |
{ | ||
"name": "ntfserver", | ||
"description": "Network Testing Framework Server", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"author": "Silas Sewell <silas@sewell.org>", | ||
@@ -14,3 +14,3 @@ "engines": { "node": ">= 0.6" }, | ||
"socket.io": ">= 0.9.2", | ||
"swig": "= 0.11.2" | ||
"swig": ">= 0.13.4" | ||
}, | ||
@@ -24,5 +24,5 @@ "devDependencies": { | ||
}, | ||
"scripts": { "install": "make static" }, | ||
"scripts": { "install": "make static", "test": "./node_modules/.bin/nodeunit test" }, | ||
"bugs": { "url": "https://github.com/silas/ntfserver/issues" }, | ||
"main": "./lib" | ||
} |
@@ -17,3 +17,3 @@ var async = require('async') | ||
} | ||
shared.sql = mysql.createClient(shared.options.mysql) | ||
shared.sql = mysql.createConnection(shared.options.mysql) | ||
@@ -20,0 +20,0 @@ var tables = [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
85079
47
2195
+ Addedamdefine@1.0.1(transitive)
+ Addedasync@0.2.10(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedminimist@0.0.10(transitive)
+ Addedoptimist@0.6.1(transitive)
+ Addedsource-map@0.1.34(transitive)
+ Addedswig@1.4.2(transitive)
+ Addeduglify-js@2.4.24(transitive)
+ Addeduglify-to-browserify@1.0.2(transitive)
+ Addedwindow-size@0.1.0(transitive)
+ Addedwordwrap@0.0.20.0.3(transitive)
+ Addedyargs@3.5.4(transitive)
Updatedswig@>= 0.13.4