adonis-framework
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "adonis-framework", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Adonis framework a loosely coupled http server for adonis application, it does all the required hard work to setup a managable http server with depdendency injection in place.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,5 +27,5 @@ 'use strict' | ||
* register () { | ||
this.app.bind('Adonis/Src/Server', function (Route,Request,Response,Logger) { | ||
this.app.bind('Adonis/Src/Server', function (Route, Request, Response, Logger, Session) { | ||
const Server = require('../src/Server') | ||
return new Server(Route,Request,Response,Logger) | ||
return new Server(Route, Request, Response, Logger, Session) | ||
}) | ||
@@ -32,0 +32,0 @@ } |
@@ -19,3 +19,3 @@ 'use strict' | ||
static get inject(){ | ||
return ["Adonis/Src/Helpers","Adonis/Src/Config"] | ||
return ["Adonis/Src/Helpers","Adonis/Addons/Config"] | ||
} | ||
@@ -28,5 +28,5 @@ | ||
* register () { | ||
this.app.bind('Adonis/Src/Session', function (Helpers,Config) { | ||
this.app.bind('Adonis/Src/Session', function (Helpers, Config) { | ||
const Session = require('../src/Session') | ||
return new Session(Helpers,Config) | ||
return new Session(Helpers, Config) | ||
}) | ||
@@ -33,0 +33,0 @@ } |
@@ -81,3 +81,8 @@ 'use strict' | ||
*/ | ||
let existingSession = cookies['adonis-session'] || [] | ||
let existingSession = [] | ||
try{ | ||
existingSession = JSON.parse(cookies['adonis-session']) | ||
}catch(e){ | ||
// ignoring error | ||
} | ||
@@ -84,0 +89,0 @@ if(key && !value && typeof(key) !== 'object'){ |
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
75290
2691