Comparing version 0.2.0 to 0.2.1
@@ -178,6 +178,5 @@ var http = require('http'), | ||
var qsParams = {}; | ||
qsParams.name = name; | ||
qsParams.site_token = this.opts.site_token; | ||
this._exec(this.config.endpoints.data, '/event?' + queryString.stringify(qsParams), params, this._responseCompleted.bind(this, done)); | ||
params.name = name; | ||
params.site_token = this.opts.site_token; | ||
this._exec(this.config.endpoints.data, '/event', params, this._responseCompleted.bind(this, done)); | ||
}; | ||
@@ -213,3 +212,3 @@ | ||
}; | ||
} | ||
}; | ||
@@ -216,0 +215,0 @@ // set up the functions |
{ | ||
"name": "gosquared", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "GoSquared for your Node.JS application", | ||
@@ -5,0 +5,0 @@ "main": "lib/gosquared.js", |
@@ -27,6 +27,7 @@ var GoSquared = require('../lib/gosquared'), | ||
var v = n[version]; | ||
for (var i = 0; i < v.length; v++) { | ||
it(v[i], function(vi, done) { | ||
GS[vi](th.testResponse.bind(this, done)); | ||
}.bind(this, v[i])); | ||
for (var i = 0; i < v.length; i++) { | ||
var func = v[i]; | ||
it('/' + namespace + '/' + version + '/' + func, function(namespace, version, func, done) { | ||
GS[func](th.testResponse.bind(this, done)); | ||
}.bind(this, namespace, version, func)); | ||
} | ||
@@ -33,0 +34,0 @@ } |
@@ -38,3 +38,3 @@ var GoSquared = require('../lib/gosquared'), | ||
it('errors if trying to store a mahoosive parameters object', function(done){ | ||
it.skip('errors if trying to store a mahoosive parameters object', function(done){ | ||
var params = {}; | ||
@@ -41,0 +41,0 @@ var gen = function(o, max){ |
Sorry, the diff of this file is not supported yet
15117
12