New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/experiment-js-client

Package Overview
Dependencies
Maintainers
20
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/experiment-js-client - npm Package Compare versions

Comparing version 1.9.0 to 1.9.1

24

dist/experiment.es2015.js

@@ -293,3 +293,3 @@ import { AnalyticsConnector } from '@amplitude/analytics-connector';

var version = "1.9.0";
var version = "1.9.1";

@@ -1061,3 +1061,3 @@ class ConnectorUserProvider {

// Local storage
const localStorageVariant = this.variants.getAll()[key];
const localStorageVariant = this.variants.get(key);
const isLocalStorageDefault = (_a = localStorageVariant === null || localStorageVariant === void 0 ? void 0 : localStorageVariant.metadata) === null || _a === void 0 ? void 0 : _a.default;

@@ -1130,3 +1130,3 @@ if (!isNullOrUndefined(localStorageVariant) && !isLocalStorageDefault) {

// Local storage
const localStorageVariant = this.variants.getAll()[key];
const localStorageVariant = this.variants.get(key);
const isLocalStorageDefault = (_a = localStorageVariant === null || localStorageVariant === void 0 ? void 0 : localStorageVariant.metadata) === null || _a === void 0 ? void 0 : _a.default;

@@ -1346,11 +1346,13 @@ if (!isNullOrUndefined(localStorageVariant) && !isLocalStorageDefault) {

var _a, _b, _c, _d, _e;
const user = this.addContext(this.getUser());
const event = exposureEvent(user, key, variant, source);
if (isFallback(source) || !(variant === null || variant === void 0 ? void 0 : variant.value)) {
(_b = (_a = this.analyticsProvider) === null || _a === void 0 ? void 0 : _a.unsetUserProperty) === null || _b === void 0 ? void 0 : _b.call(_a, event);
if (this.analyticsProvider) {
const user = this.addContext(this.getUser());
const event = exposureEvent(user, key, variant, source);
if (isFallback(source) || !(variant === null || variant === void 0 ? void 0 : variant.value)) {
(_b = (_a = this.analyticsProvider) === null || _a === void 0 ? void 0 : _a.unsetUserProperty) === null || _b === void 0 ? void 0 : _b.call(_a, event);
}
else if (variant === null || variant === void 0 ? void 0 : variant.value) {
(_d = (_c = this.analyticsProvider) === null || _c === void 0 ? void 0 : _c.setUserProperty) === null || _d === void 0 ? void 0 : _d.call(_c, event);
(_e = this.analyticsProvider) === null || _e === void 0 ? void 0 : _e.track(event);
}
}
else if (variant === null || variant === void 0 ? void 0 : variant.value) {
(_d = (_c = this.analyticsProvider) === null || _c === void 0 ? void 0 : _c.setUserProperty) === null || _d === void 0 ? void 0 : _d.call(_c, event);
(_e = this.analyticsProvider) === null || _e === void 0 ? void 0 : _e.track(event);
}
}

@@ -1357,0 +1359,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

{
"name": "@amplitude/experiment-js-client",
"version": "1.9.0",
"version": "1.9.1",
"description": "Amplitude Experiment Javascript Client SDK",

@@ -50,3 +50,3 @@ "keywords": [

],
"gitHead": "f26065481f9a8668722e6995d437d49aa1f45413"
"gitHead": "1bb5390bb7f5a88b10df0c271e8c924ea5a0821a"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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