stream-analytics
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "stream-analytics", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Analytics JS client for GetStream.io.", | ||
@@ -5,0 +5,0 @@ "main": "src/stream-analytics.js", |
@@ -25,3 +25,3 @@ ;(function (f) { | ||
var validate = require("validate.js"); | ||
var validate = require('validate.js'); | ||
var specs = require('./specs.js'); | ||
@@ -38,3 +38,4 @@ var errors = require('./errors.js'); | ||
this._userId = null; | ||
// cfg.host = 'analytics.getstream.io'; | ||
cfg.host = 'analytics.getstream.io/3.0'; | ||
cfg.protocol = 'http'; | ||
this._client.configure(cfg); | ||
@@ -62,2 +63,3 @@ } | ||
} | ||
eventData.userId = this._userId; | ||
this._client.addEvent(eventLabel, eventData, callbackFn); | ||
@@ -64,0 +66,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
296200
16
6432