analytics-node
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,5 @@ | ||
v4.0.1 / 2021-2-24 | ||
========================== | ||
* Fixed an issue where the optional axiosInstance passed as an option was ignored | ||
v4.0.0 / 2021-2-17 | ||
@@ -2,0 +6,0 @@ ========================== |
@@ -56,4 +56,3 @@ 'use strict' | ||
}) | ||
this.axiosClient = axios.create() | ||
axiosRetry(this.axiosClient, { | ||
axiosRetry(this.axiosInstance, { | ||
retries: options.retryCount || 3, | ||
@@ -270,8 +269,5 @@ retryCondition: this._isErrorRetryable, | ||
const req = { | ||
method: 'POST', | ||
url: `${this.host}${this.path}`, | ||
auth: { | ||
username: this.writeKey | ||
}, | ||
data, | ||
headers | ||
@@ -284,3 +280,3 @@ } | ||
this.axiosClient(req) | ||
this.axiosInstance.post(`${this.host}${this.path}`, data, req) | ||
.then(() => done()) | ||
@@ -287,0 +283,0 @@ .catch(err => { |
{ | ||
"name": "analytics-node", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "The hassle-free way to integrate analytics into any Node.js application", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
20550
265