Comparing version 0.0.16 to 0.0.17
@@ -8,3 +8,6 @@ /* | ||
, options = require('../default-config.js') | ||
, displayRoutes = require('./display-routes.js'); | ||
, displayRoutes = require('./display-routes.js') | ||
, bodyParser = require('body-parser') | ||
, cookieParser = require('cookie-parser') | ||
, cookieSession = require('cookie-session'); | ||
; | ||
@@ -71,16 +74,12 @@ | ||
} | ||
// app init | ||
app.configure(function() { | ||
app.use(options.apiRoot, bodyParser()); | ||
app.use(options.apiRoot, express.bodyParser()); | ||
// start session | ||
app.use(options.apiRoot, cookieParser()); | ||
app.use(options.apiRoot, cookieSession({ secret: 'plum plum plum'})); | ||
// start session | ||
app.use(options.apiRoot, express.cookieParser()); | ||
app.use(options.apiRoot, express.cookieSession({ secret: 'plum plum plum'})); | ||
// init unifile | ||
router.init(app, express, options); | ||
displayRoutes.init(app, express, options); | ||
// init unifile | ||
router.init(app, express, options); | ||
displayRoutes.init(app, express, options); | ||
}); | ||
return function(req, res, next) { | ||
@@ -87,0 +86,0 @@ console.log('-------------------------------------'); |
{ | ||
"name": "unifile", | ||
"description": "Express middleware to provide a common API for cloud storage services. ", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"author": { | ||
@@ -14,3 +14,6 @@ "name": "Alex Hoyau aka lexoyo" | ||
"dependencies": { | ||
"express": "3.2.x", | ||
"express": "~4.0.x", | ||
"body-parser": "~1.0.x", | ||
"cookie-parser": "~1.0.x", | ||
"cookie-session": "~1.0.x", | ||
"dbox": "0.6.x", | ||
@@ -24,3 +27,3 @@ "ftp": "0.3.x", | ||
"devDependencies": { | ||
"express": "~3.2.6", | ||
"express": "~4.0.x", | ||
"chai": "", | ||
@@ -27,0 +30,0 @@ "supertest": "", |
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
103944
10
19
+ Addedbody-parser@~1.0.x
+ Addedcookie-parser@~1.0.x
+ Addedcookie-session@~1.0.x
+ Addedaccepts@1.0.0(transitive)
+ Addedbody-parser@1.0.2(transitive)
+ Addedbytes@1.0.0(transitive)
+ Addedcookie-parser@1.0.1(transitive)
+ Addedcookie-session@1.0.2(transitive)
+ Addedcookie-signature@1.0.3(transitive)
+ Addedcookies@0.4.1(transitive)
+ Addeddebug@0.8.1(transitive)
+ Addedescape-html@1.0.1(transitive)
+ Addedexpress@4.0.0(transitive)
+ Addedfresh@0.2.00.2.2(transitive)
+ Addedkeygrip@1.0.3(transitive)
+ Addedmerge-descriptors@0.0.2(transitive)
+ Addedmethods@0.1.0(transitive)
+ Addednegotiator@0.3.0(transitive)
+ Addedparseurl@1.0.1(transitive)
+ Addedpath-to-regexp@0.1.2(transitive)
+ Addedqs@0.6.6(transitive)
+ Addedrange-parser@1.0.0(transitive)
+ Addedraw-body@1.1.7(transitive)
+ Addedsend@0.1.40.2.0(transitive)
+ Addedserve-static@1.0.1(transitive)
+ Addedtype-is@1.0.01.1.0(transitive)
+ Addedutils-merge@1.0.0(transitive)
- Removedbytes@0.2.0(transitive)
- Removedcommander@0.6.1(transitive)
- Removedconnect@2.7.11(transitive)
- Removedcookie@0.0.5(transitive)
- Removedcookie-signature@1.0.1(transitive)
- Removedexpress@3.2.6(transitive)
- Removedformidable@1.0.14(transitive)
- Removedfresh@0.1.0(transitive)
- Removedmethods@0.0.1(transitive)
- Removedmime@1.2.6(transitive)
- Removedmkdirp@0.3.4(transitive)
- Removedpause@0.0.1(transitive)
- Removedqs@0.6.5(transitive)
- Removedsend@0.1.00.1.1(transitive)
Updatedexpress@~4.0.x