Comparing version 0.0.5 to 0.0.6
@@ -27,2 +27,4 @@ var request = require('request'), | ||
Flurry.prototype[i] = function(callback){ | ||
var self = this; | ||
return new Promise(function(resolve, reject){ | ||
@@ -34,4 +36,4 @@ request.get('http://api.flurry.com/appInfo/' + i, { | ||
qs: { | ||
apiAccessCode: this.options.apiAccess, | ||
apiKey: this.options.apiKey | ||
apiAccessCode: self.options.apiAccess, | ||
apiKey: self.options.apiKey | ||
} | ||
@@ -38,0 +40,0 @@ }, function(err, res, body){ |
@@ -43,8 +43,10 @@ var request = require('request'), | ||
Metric.prototype.exec = function(callback){ | ||
var self = this; | ||
return new Promise(function(resolve, reject){ | ||
request.get(this.base, { | ||
request.get(self.base, { | ||
headers: { | ||
'Content-Type': 'application/json' | ||
}, | ||
qs: this.params | ||
qs: self.params | ||
}, function(err, res, body){ | ||
@@ -51,0 +53,0 @@ if (err) return reject(err); |
{ | ||
"name": "flurry-api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Flurry API for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/flurry", |
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
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
8226
114