Comparing version 0.0.48 to 0.0.49
@@ -51,3 +51,2 @@ | ||
if(response.headerSent !== true) { | ||
console.log('aaa'); | ||
response.setHeader('Content-Type', 'application/json; charset=utf8'); | ||
@@ -82,7 +81,5 @@ } | ||
if (name){ | ||
console.log(name, path, '> '+pathModule.resolve(__dirname, path)); | ||
app.use(name, express.static(path)); | ||
} | ||
else{ | ||
console.log(path, '> '+pathModule.resolve(__dirname, path)); | ||
app.use(express.static(path)); | ||
@@ -89,0 +86,0 @@ } |
@@ -93,3 +93,2 @@ /** | ||
// it never come back here when drobox::connect is frozen | ||
// fixes it : req.session = undefined; | ||
//////////////////////// | ||
@@ -96,0 +95,0 @@ if (status!==200){ |
{ | ||
"name": "unifile", | ||
"description": "Express middleware to provide a common API for cloud storage services. ", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"author": { | ||
@@ -23,4 +23,4 @@ "name": "Alex Hoyau aka lexoyo" | ||
"devDependencies": { | ||
"body-parser": "~1.6.5", | ||
"connect-multiparty": "~1.2.1", | ||
"body-parser": "~1.10.0", | ||
"connect-multiparty": "~1.2.5", | ||
"cookie-parser": "~1.3.2", | ||
@@ -27,0 +27,0 @@ "express-session": "1.7.6", |
@@ -7,2 +7,4 @@ #Unifile, unified access to cloud storage services. | ||
> [Here is the API online documentation with code samples in Javascript, node.js, python...](http://docs.unifile.apiary.io/) | ||
Currently supported services | ||
@@ -19,4 +21,2 @@ | ||
[Here is the API online documentation with code samples in Javascript, node.js, python, ...](http://docs.unifile.apiary.io/#serviceactions) | ||
#Motivation | ||
@@ -23,0 +23,0 @@ |
@@ -10,2 +10,6 @@ /** | ||
var unifile = require('../lib/'); | ||
var multipart = require('connect-multiparty'); | ||
var bodyParser = require('body-parser'); | ||
var cookieParser = require('cookie-parser'); | ||
var session = require('express-session'); | ||
@@ -33,3 +37,6 @@ // config | ||
resave: false, | ||
saveUninitialized: false | ||
saveUninitialized: false, | ||
cookie: { | ||
maxAge: 30 * 24 * 60 * 60 * 1000 // 30 days | ||
} | ||
})); | ||
@@ -36,0 +43,0 @@ |
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
104466
2390