Comparing version 5.0.1-next.6 to 5.0.2
# Amplitude Change Log | ||
## v5.0.1-next | ||
## v5.0.2 | ||
- Convert to typescript (this shouldn't break anything as it's being exported just like before) | ||
- Implement the [Amplitude HTTP V2 API](https://developers.amplitude.com/docs/http-api-v2) | ||
**IMPORTANT**: There aren't any breaking changes in the code, but the Amplitude V2 API has a few stricter validations server side. For example, in one project where I was using this, I was passing a timestamp generated from Swift, so it was a float. However, the [time](https://developers.amplitude.com/docs/http-api-v2#parameters) param only allows type of `long`, i.e. `integer`. | ||
From Amplitude's docs: | ||
> - Validation on Content-type header (must be set to application/json) | ||
> - Validation on proper JSON request body | ||
> - Validation on event_type name (cannot be event names that are reserved for Amplitude use) | ||
> - Validation on device_id length (must be 5 or more characters unless overrided with min_id_length) | ||
> - Validation on user_id length (must be 5 or more characters unless overrided with min_id_length) | ||
> - Validation on time field in event payload (must be number of milliseconds since the start of epoch time) | ||
## v4.0.3 | ||
- Update README | ||
## v4.0.1 | ||
@@ -7,0 +21,0 @@ - Changes maintainer |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.axiosErrorCatcher = exports.AmplitudeErrorResponse = void 0; | ||
class AmplitudeErrorResponse extends Error { | ||
@@ -14,0 +15,0 @@ constructor(err) { |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -9,4 +19,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
exports.default = amplitude_1.default; | ||
__exportStar(require("./public"), exports); | ||
__exportStar(require("./responses"), exports); | ||
var errors_1 = require("./errors"); | ||
exports.AmplitudeErrorResponse = errors_1.AmplitudeErrorResponse; | ||
Object.defineProperty(exports, "AmplitudeErrorResponse", { enumerable: true, get: function () { return errors_1.AmplitudeErrorResponse; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "amplitude", | ||
"version": "5.0.1-next.6", | ||
"version": "5.0.2", | ||
"description": "A node wrapper for Amplitude analytics http api", | ||
@@ -68,11 +68,11 @@ "author": "Blade Barringer <blade@crookedneighbor.com>", | ||
"@types/chai": "^4.2.11", | ||
"@types/eslint": "^6.8.0", | ||
"@types/eslint": "^6.8.1", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.13.5", | ||
"@types/sinon": "^7.5.2", | ||
"@types/node": "^14.0.4", | ||
"@types/sinon": "^9.0.3", | ||
"@types/sinon-chai": "^3.2.4", | ||
"@typescript-eslint/eslint-plugin": "^2.31.0", | ||
"@typescript-eslint/parser": "^2.31.0", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.6.5", | ||
"codecov": "^3.7.0", | ||
"ecmascript-version-detector": "^1.0.3", | ||
@@ -84,3 +84,3 @@ "eslint": "^6.8.0", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.2", | ||
"lint-staged": "^10.2.4", | ||
"mocha": "^7.1.2", | ||
@@ -93,3 +93,3 @@ "nock": "^12.0.3", | ||
"ts-node": "^8.10.1", | ||
"typescript": "^3.8.3" | ||
"typescript": "^3.9.3" | ||
}, | ||
@@ -96,0 +96,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
42694
532
1