Comparing version 0.1.4 to 0.1.5
@@ -56,3 +56,3 @@ var http = require('http'), | ||
if(!this.opts.siteToken){ | ||
if(!this.opts.site_token){ | ||
return this._debug(6); | ||
@@ -182,3 +182,3 @@ } | ||
qsParams.name = name; | ||
qsParams.site_token = this.opts.siteToken; | ||
qsParams.site_token = this.opts.site_token; | ||
this._exec(this.config.endpoints.data, '/event?' + queryString.stringify(qsParams), params, this._responseCompleted.bind(this, done)); | ||
@@ -212,4 +212,4 @@ }; | ||
var endpoint = this.config.endpoints.api; | ||
opts.site_token = this.opts.siteToken; | ||
opts.api_key = this.opts.apiKey; | ||
opts.site_token = this.opts.site_token; | ||
opts.api_key = this.opts.api_key; | ||
this._exec(endpoint, '/'+this.opts.version+'/'+func, opts, this._responseCompleted.bind(this, cb)); | ||
@@ -216,0 +216,0 @@ }; |
{ | ||
"name": "gosquared", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "GoSquared for your Node.JS application", | ||
@@ -5,0 +5,0 @@ "main": "lib/gosquared.js", |
@@ -7,4 +7,4 @@ var GoSquared = require('../lib/gosquared'), | ||
var GS, | ||
SITE_TOKEN = process.env.siteToken, | ||
API_KEY = process.env.apiKey; | ||
SITE_TOKEN = process.env.site_token, | ||
API_KEY = process.env.api_key; | ||
@@ -15,4 +15,4 @@ before(function(){ | ||
GS = new GoSquared({ | ||
siteToken: SITE_TOKEN, | ||
apiKey: API_KEY, | ||
site_token: SITE_TOKEN, | ||
api_key: API_KEY, | ||
debugLevel: process.env.verbosity | ||
@@ -19,0 +19,0 @@ }); |
@@ -6,4 +6,4 @@ var GoSquared = require('../lib/gosquared'), | ||
var GS, | ||
SITE_TOKEN = process.env.siteToken, | ||
API_KEY = process.env.apiKey; | ||
SITE_TOKEN = process.env.site_token, | ||
API_KEY = process.env.api_key; | ||
@@ -14,4 +14,4 @@ before(function(){ | ||
GS = new GoSquared({ | ||
siteToken: SITE_TOKEN, | ||
apiKey: API_KEY, | ||
site_token: SITE_TOKEN, | ||
api_key: API_KEY, | ||
debugLevel: process.env.verbosity | ||
@@ -18,0 +18,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
13482