Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/amplitude-core

Package Overview
Dependencies
Maintainers
17
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/amplitude-core - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0

CHANGELOG.md

53

dist/core.umd.js

@@ -692,6 +692,2 @@ (function (global, factory) {

var ID_OP_UNSET = '$unset';
var ID_OP_SET_ONCE = '$setOnce';
var ID_OP_ADD = '$add';
var ID_OP_APPEND = '$append';
var ID_OP_PREPEND = '$prepend';
var ID_OP_CLEAR_ALL = '$clearAll';

@@ -722,10 +718,9 @@ var IdentityStoreImpl = /** @class */ (function () {

updateUserProperties: function (actions) {
var _a, _b, _c;
var actingProperties = actingIdentity.userProperties || {};
for (var _i = 0, _d = Object.entries(actions); _i < _d.length; _i++) {
var _e = _d[_i], action = _e[0], properties = _e[1];
for (var _i = 0, _a = Object.entries(actions); _i < _a.length; _i++) {
var _b = _a[_i], action = _b[0], properties = _b[1];
switch (action) {
case ID_OP_SET:
for (var _f = 0, _g = Object.entries(properties); _f < _g.length; _f++) {
var _h = _g[_f], key = _h[0], value = _h[1];
for (var _c = 0, _d = Object.entries(properties); _c < _d.length; _c++) {
var _e = _d[_c], key = _e[0], value = _e[1];
actingProperties[key] = value;

@@ -735,43 +730,7 @@ }

case ID_OP_UNSET:
for (var _j = 0, _k = Object.keys(properties); _j < _k.length; _j++) {
var key = _k[_j];
for (var _f = 0, _g = Object.keys(properties); _f < _g.length; _f++) {
var key = _g[_f];
delete actingProperties[key];
}
break;
case ID_OP_SET_ONCE:
for (var _l = 0, _m = Object.entries(properties); _l < _m.length; _l++) {
var _o = _m[_l], key = _o[0], value = _o[1];
if (!actingProperties[key]) {
actingProperties[key] = value;
}
}
break;
case ID_OP_ADD:
for (var _p = 0, _q = Object.entries(properties); _p < _q.length; _p++) {
var _r = _q[_p], key = _r[0], value = _r[1];
var actingValue = (_a = actingProperties[key]) !== null && _a !== void 0 ? _a : 0;
if (typeof actingValue === 'number' &&
typeof value === 'number') {
actingProperties[key] = actingValue + value;
}
}
break;
case ID_OP_APPEND:
for (var _s = 0, _t = Object.entries(properties); _s < _t.length; _s++) {
var _u = _t[_s], key = _u[0], value = _u[1];
var actingValue = (_b = actingProperties[key]) !== null && _b !== void 0 ? _b : [];
if (Array.isArray(actingValue) && Array.isArray(value)) {
actingProperties[key] = actingValue.concat(value);
}
}
break;
case ID_OP_PREPEND:
for (var _v = 0, _w = Object.entries(properties); _v < _w.length; _v++) {
var _x = _w[_v], key = _x[0], value = _x[1];
var actingValue = (_c = actingProperties[key]) !== null && _c !== void 0 ? _c : [];
if (Array.isArray(actingValue) && Array.isArray(value)) {
actingProperties[key] = value.concat(actingValue);
}
}
break;
case ID_OP_CLEAR_ALL:

@@ -778,0 +737,0 @@ actingProperties = {};

{
"name": "@amplitude/amplitude-core",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"description": "Core package for Amplitide SDKs",

@@ -5,0 +5,0 @@ "main": "dist/core.umd.js",

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