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

@kameleoon/javascript-sdk-core

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kameleoon/javascript-sdk-core - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

9

dist/kameleoonClient.d.ts

@@ -162,2 +162,9 @@ import { JSONType } from './campaignConfiguration';

/**
* @method getEngineTrackingCode - returns Kameleoon tracking code for the current visitor. Tracking code is built of the experiments that were triggered and feature flag variations that were assigned during the last 5 seconds
* See [Kameleoon Automation API](https://developers.kameleoon.com/apis/activation-api-js/api-reference#trigger-1) for the details
* @param {string} visitorCode - unique visitor identification string, can't exceed 255 characters length
* @returns {string} Kameleoon tracking code
*/
getEngineTrackingCode: (visitorCode: string) => string;
/**
* @method onConfigurationUpdate - fires a callback on client configuration update. Note: this method only works for server sent events of real time update.

@@ -203,4 +210,4 @@ * @param {() => void} callback - callback function with no parameters that will be called upon configuration update

onConfigurationUpdate(callback: () => void): void;
protected _getEngineTrackingCode(visitorCode: string): string;
getEngineTrackingCode(visitorCode: string): string;
private _getFeatureFlagVariation;
}

18

dist/kameleoonClient.js

@@ -136,10 +136,8 @@ "use strict";

}, trackingParameters));
if (this.internalConfiguration.externalPackageInfo.type === _constants.SDKType.NodeJS) {
_utilities.Utilities.updateCache({
cacheManager: this.trackingCache,
visitorCode,
experimentId,
variationId
});
}
_utilities.Utilities.updateCache({
cacheManager: this.trackingCache,
visitorCode,
experimentId,
variationId
});
return variationId;

@@ -336,3 +334,3 @@ }

}
_getEngineTrackingCode(visitorCode) {
getEngineTrackingCode(visitorCode) {
return _utilities.Utilities.getTrackingCode(this.trackingCache, visitorCode);

@@ -361,3 +359,3 @@ }

} = variationData;
if (this.internalConfiguration.externalPackageInfo.type === _constants.SDKType.NodeJS && typeof variationId === 'number' && typeof experimentId === 'number') {
if (typeof variationId === 'number' && typeof experimentId === 'number') {
_utilities.Utilities.updateCache({

@@ -364,0 +362,0 @@ cacheManager: this.trackingCache,

{
"name": "@kameleoon/javascript-sdk-core",
"version": "2.1.1",
"version": "2.2.0",
"description": "Kameleoon JS SDK Core",

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

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