plotly
Advanced tools
Comparing version 0.2.11 to 0.2.13
17
index.js
@@ -16,3 +16,6 @@ var https = require('https'); | ||
var opts = {}; | ||
if (typeof username === 'object') { | ||
opts = username; | ||
this.username = opts.username; | ||
@@ -103,6 +106,14 @@ this.apiKey = opts.apiKey; | ||
var self = this; | ||
var opts = {}; | ||
if (typeof token === 'object') { | ||
opts = token; | ||
token = opts.token; | ||
var host = opts.streamHost || self.streamHost; | ||
var port = opts.port || 80; | ||
} | ||
var options = { | ||
host: self.streamHost || 'stream.plot.ly', | ||
port: 80, | ||
host: host || self.streamHost || 'stream.plot.ly', | ||
port: port || 80, | ||
path: '/', | ||
@@ -246,2 +257,2 @@ method: 'POST', | ||
} | ||
} |
{ | ||
"name": "plotly", | ||
"version": "0.2.11", | ||
"version": "0.2.13", | ||
"description": "Simple node.js wrapper for the plot.ly API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21156
459