Socket
Socket
Sign inDemoInstall

amplitude

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplitude - npm Package Compare versions

Comparing version 5.2.0 to 6.0.0

10

dist/amplitude.js

@@ -88,3 +88,3 @@ "use strict";

.join('&');
return errors_1.axiosErrorCatcher(axios_1.default
return (0, errors_1.axiosErrorCatcher)(axios_1.default
.post(`${this.tokenEndpoint}/identify`, encodedParams, {

@@ -104,3 +104,3 @@ headers: {

};
return errors_1.axiosErrorCatcher(axios_1.default
return (0, errors_1.axiosErrorCatcher)(axios_1.default
.post(`${this.tokenEndpoint}/2/httpapi`, params)

@@ -146,3 +146,3 @@ .then(res => res.data));

}
return errors_1.axiosErrorCatcher(axios_1.default
return (0, errors_1.axiosErrorCatcher)(axios_1.default
.get(`${AMPLITUDE_DASHBOARD_ENDPOINT}/usersearch`, {

@@ -174,3 +174,3 @@ auth: {

}
return errors_1.axiosErrorCatcher(axios_1.default
return (0, errors_1.axiosErrorCatcher)(axios_1.default
.get(`${AMPLITUDE_DASHBOARD_ENDPOINT}/useractivity`, {

@@ -195,3 +195,3 @@ auth: {

}
return errors_1.axiosErrorCatcher(axios_1.default
return (0, errors_1.axiosErrorCatcher)(axios_1.default
.get(`${AMPLITUDE_DASHBOARD_ENDPOINT}/events/segmentation`, {

@@ -198,0 +198,0 @@ auth: {

@@ -21,3 +21,3 @@ "use strict";

exports.AmplitudeErrorResponse = AmplitudeErrorResponse;
exports.axiosErrorCatcher = (reqPromise) => __awaiter(void 0, void 0, void 0, function* () {
const axiosErrorCatcher = (reqPromise) => __awaiter(void 0, void 0, void 0, function* () {
try {

@@ -34,2 +34,3 @@ const res = yield reqPromise;

});
exports.axiosErrorCatcher = axiosErrorCatcher;
//# sourceMappingURL=errors.js.map

@@ -10,3 +10,3 @@ "use strict";

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -17,2 +17,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

Object.defineProperty(exports, "__esModule", { value: true });
exports.AmplitudeErrorResponse = void 0;
require("./types");

@@ -19,0 +20,0 @@ const amplitude_1 = __importDefault(require("./amplitude"));

{
"name": "amplitude",
"version": "5.2.0",
"version": "6.0.0",
"description": "A node wrapper for Amplitude analytics http api",

@@ -13,3 +13,3 @@ "author": "Blade Barringer <blade@crookedneighbor.com>",

"engines": {
"node": ">=8.10.0"
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},

@@ -70,30 +70,30 @@ "contributors": [

"dependencies": {
"axios": "^0.24.0"
"axios": "^0.26.0"
},
"devDependencies": {
"@types/chai": "^4.2.21",
"@types/eslint": "^7.28.0",
"@types/mocha": "^9.0.0",
"@types/node": "^16.7.13",
"@types/sinon": "^10.0.2",
"@types/sinon-chai": "^3.2.5",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"chai": "^4.3.4",
"@types/chai": "^4.3.0",
"@types/eslint": "^8.4.1",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.18",
"@types/sinon": "^10.0.11",
"@types/sinon-chai": "^3.2.8",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"chai": "^4.3.6",
"codecov": "^3.8.3",
"eslint": "^7.32.0",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"glob": "^7.1.7",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"glob": "^7.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.4",
"lodash": "^4.17.21",
"mocha": "^9.1.3",
"nock": "^13.1.3",
"mocha": "^9.2.0",
"nock": "^13.2.4",
"nyc": "^15.1.0",
"prettier": "1.19.1",
"sinon": "^9.0.2",
"sinon-chai": "^3.5.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.7"
"prettier": "^1.19.1",
"sinon": "^13.0.1",
"sinon-chai": "^3.7.0",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
},

@@ -100,0 +100,0 @@ "license": "ISC",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc