appc-platform-sdk
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -163,4 +163,3 @@ /** | ||
} | ||
var session = new Session(), | ||
url = require('url'), | ||
var url = require('url'), | ||
async = require('async'), | ||
@@ -171,3 +170,4 @@ parse = url.parse(AppC.baseurl), | ||
tok = host.split('.'), | ||
subdomain = tok.splice(tok.length-2,2).join('.'); | ||
subdomain = tok.splice(tok.length-2,2).join('.'), | ||
session = new Session(host, subdomain); | ||
@@ -174,0 +174,0 @@ // for now, since we are transitioning cookies both from FQDN to base domain |
@@ -14,4 +14,6 @@ /** | ||
function Session(body) { | ||
function Session(host, subdomain) { | ||
this.jar = request.jar(); | ||
this.host = host; | ||
this.subdomain = subdomain; | ||
} | ||
@@ -42,3 +44,3 @@ | ||
Session.prototype._set = function(body){ | ||
this.id = body['connect.sid']; | ||
this.id = body['connect.sid'] || body['dashboard.sid']; | ||
this.user = { | ||
@@ -45,0 +47,0 @@ username: body.username, |
{ | ||
"name": "appc-platform-sdk", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "Appcelerator Platform SDK for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
54334
1349