boar-server
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -6,3 +6,3 @@ 'use strict'; | ||
var cors = require('koa-cors'); | ||
var jade = require('koa-jade'); | ||
var Jade = require('koa-jade'); | ||
var errorHandlerMiddleware = require('./middlewares/error-handler'); | ||
@@ -57,6 +57,8 @@ var methodOverride = require('koa-methodoverride'); | ||
addDynamicViewMiddleware: function(root, cache) { | ||
this.addMiddleware(jade.middleware({ | ||
var jadeMiddleware = new Jade({ | ||
viewPath: root, | ||
noCache: !cache | ||
})); | ||
}); | ||
jadeMiddleware.use(this.koaApp); | ||
}, | ||
@@ -63,0 +65,0 @@ |
@@ -15,3 +15,3 @@ 'use strict'; | ||
execute: function() { | ||
_.forEach(this._handledExceptions, this._setHandledExceptionOnMatch, this); | ||
_.forEach(this._handledExceptions, _.bind(this._setHandledExceptionOnMatch, this)); | ||
@@ -18,0 +18,0 @@ if (!this._handledException) this._delegateException(); |
@@ -26,5 +26,5 @@ { | ||
"devDependencies": { | ||
"chai": "3.2.0", | ||
"chai": "3.5.0", | ||
"co-mocha": "1.1.2", | ||
"mocha": "2.2.5", | ||
"mocha": "2.4.5", | ||
"semantic-release": "4.3.5" | ||
@@ -34,13 +34,13 @@ }, | ||
"app-root-path": "1.0.0", | ||
"koa-bodyparser": "2.0.0", | ||
"koa-bodyparser": "2.0.1", | ||
"koa-cors": "0.0.16", | ||
"koa-jade": "1.1.0", | ||
"koa-methodoverride": "0.4.2", | ||
"koa-jade": "2.1.0", | ||
"koa-methodoverride": "2.0.0", | ||
"koa-request-id": "1.0.1", | ||
"koa-router": "5.1.2", | ||
"koa-static": "1.4.9", | ||
"lodash": "3.10.1", | ||
"koa-router": "5.4.0", | ||
"koa-static": "2.0.0", | ||
"lodash": "4.6.0", | ||
"logentries-logformat": "0.1.4" | ||
}, | ||
"version": "2.3.1" | ||
"version": "2.3.2" | ||
} |
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
23156
629
+ Addedbytes@2.4.0(transitive)
+ Addedco@4.6.0(transitive)
+ Addedco-body@3.1.0(transitive)
+ Addedfs-extra@0.24.0(transitive)
+ Addedhttp-errors@1.6.3(transitive)
+ Addediconv-lite@0.4.13(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedkoa-bodyparser@2.0.1(transitive)
+ Addedkoa-jade@2.1.0(transitive)
+ Addedkoa-methodoverride@2.0.0(transitive)
+ Addedkoa-router@5.4.0(transitive)
+ Addedkoa-send@3.1.1(transitive)
+ Addedkoa-static@2.0.0(transitive)
+ Addedlodash@4.6.0(transitive)
+ Addedmedia-typer@0.3.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedmz@2.7.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedqs@4.0.0(transitive)
+ Addedraw-body@2.1.7(transitive)
+ Addedresolve-path@1.4.0(transitive)
+ Addedsetprototypeof@1.1.0(transitive)
+ Addedtype-is@1.6.18(transitive)
+ Addedunpipe@1.0.0(transitive)
- Removedbytes@1.0.0(transitive)
- Removedco-body@2.0.0(transitive)
- Removedfs-extra@0.18.4(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removediconv-lite@0.4.8(transitive)
- Removedkoa-bodyparser@2.0.0(transitive)
- Removedkoa-compose@2.5.1(transitive)
- Removedkoa-jade@1.1.0(transitive)
- Removedkoa-methodoverride@0.4.2(transitive)
- Removedkoa-router@5.1.2(transitive)
- Removedkoa-send@1.3.2(transitive)
- Removedkoa-static@1.4.9(transitive)
- Removedmz@1.3.0(transitive)
- Removednative-or-bluebird@1.2.0(transitive)
- Removednatives@1.1.6(transitive)
- Removedqs@2.4.2(transitive)
- Removedraw-body@1.3.4(transitive)
Updatedkoa-bodyparser@2.0.1
Updatedkoa-jade@2.1.0
Updatedkoa-methodoverride@2.0.0
Updatedkoa-router@5.4.0
Updatedkoa-static@2.0.0
Updatedlodash@4.6.0