Comparing version 5.1.1 to 5.1.2
# Amplitude Change Log | ||
## v5.1.2 | ||
- Add LICENSE file | ||
- Update devDependencies | ||
- Use `unknown` in place of `object | string` | ||
## v5.1.1 | ||
@@ -4,0 +9,0 @@ As of 2020-05-30, Amplitude reported issues with their SSL certificate, so they set up an endpoint and alternate endpoint at `https://api2.amplitude.com`. Read about it on [Amplitude's Status Page](https://status.amplitude.com/incidents/lf2pwqnyrn6s) and affected devices [here](https://calnetweb.berkeley.edu/calnet-technologists/incommon-sectigo-certificate-service/addtrust-external-root-expiration-may-2020). |
@@ -19,3 +19,5 @@ "use strict"; | ||
const AMPLITUDE_DASHBOARD_ENDPOINT = 'https://amplitude.com/api/2'; | ||
axios_1.default.defaults.headers.common['User-Agent'] = `amplitude/${require('../package').version} node/${process.version} (${process.arch})`; | ||
axios_1.default.defaults.headers.common['User-Agent'] = `amplitude/${ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
require('../package').version} node/${process.version} (${process.arch})`; | ||
const camelCaseToSnakeCasePropertyMap = { | ||
@@ -57,3 +59,2 @@ userId: 'user_id', | ||
return data.map((item) => { | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
return Object.keys(item).reduce((obj, key) => { | ||
@@ -69,3 +70,2 @@ const transformedKey = camelCaseToSnakeCasePropertyMap[key] || key; | ||
}); | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
}); | ||
@@ -76,3 +76,2 @@ } | ||
const params = { | ||
// eslint-disable-next-line @typescript-eslint/camelcase | ||
api_key: this.token, | ||
@@ -97,3 +96,2 @@ identification: JSON.stringify(transformedData) | ||
const params = { | ||
// eslint-disable-next-line @typescript-eslint/camelcase | ||
api_key: this.token, | ||
@@ -100,0 +98,0 @@ events: transformedData, |
@@ -202,3 +202,3 @@ export interface AmplitudeOptions { | ||
end?: Date; | ||
e?: string | object; | ||
e?: unknown; | ||
} | ||
@@ -205,0 +205,0 @@ export interface AmplitudeUserActivityOptions { |
{ | ||
"name": "amplitude", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "A node wrapper for Amplitude analytics http api", | ||
@@ -68,20 +68,20 @@ "author": "Blade Barringer <blade@crookedneighbor.com>", | ||
"@types/chai": "^4.2.11", | ||
"@types/eslint": "^6.8.1", | ||
"@types/eslint": "^7.2.0", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^14.0.6", | ||
"@types/node": "^14.0.14", | ||
"@types/sinon": "^9.0.4", | ||
"@types/sinon-chai": "^3.2.4", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"@typescript-eslint/eslint-plugin": "^3.5.0", | ||
"@typescript-eslint/parser": "^3.5.0", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.7.0", | ||
"ecmascript-version-detector": "^1.0.3", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.3.1", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"glob": "^7.1.6", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.7", | ||
"mocha": "^7.2.0", | ||
"nock": "^12.0.3", | ||
"lint-staged": "^10.2.11", | ||
"mocha": "^8.0.1", | ||
"nock": "^13.0.2", | ||
"nyc": "^15.1.0", | ||
@@ -92,3 +92,3 @@ "prettier": "1.19.1", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.3" | ||
"typescript": "^3.9.6" | ||
}, | ||
@@ -95,0 +95,0 @@ "license": "ISC", |
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
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
45003
26
536