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

kameleoon-client-javascript

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kameleoon-client-javascript - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

1

dist/kameleoonClient.d.ts

@@ -68,2 +68,3 @@ import Configuration from './configurations/configuration';

private checkFeatureKeyOrId;
private getAndClearUnsentData;
}

@@ -70,0 +71,0 @@ declare const KameleoonException: {

30

dist/kameleoonClient.js

@@ -192,8 +192,4 @@ "use strict";

if (visitorCode != null) {
var body_1 = "";
_this.getUnsentData(visitorCode).forEach(function (element) {
body_1 += element.obtainFullPostTextLine() + "\n";
});
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getDataTrackingURL(visitorCode), kameleoonUtils_1.HttpMethod.POST, body_1, null);
_this.emptyUnsentData(visitorCode);
var body = _this.getAndClearUnsentData(visitorCode);
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getDataTrackingURL(visitorCode), kameleoonUtils_1.HttpMethod.POST, body, null);
}

@@ -224,7 +220,4 @@ else {

}
var body_2 = "";
_this.getUnsentData(visitorCode).forEach(function (element) {
body_2 += element.obtainFullPostTextLine() + "\n";
});
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getExperimentRegisterURL(visitorCode, experimentId, variationId, noneVariation), kameleoonUtils_1.HttpMethod.POST, body_2);
var body = _this.getAndClearUnsentData(visitorCode);
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getExperimentRegisterURL(visitorCode, experimentId, variationId, noneVariation), kameleoonUtils_1.HttpMethod.POST, body);
}

@@ -274,7 +267,4 @@ else {

}
var body_3 = "";
_this.getUnsentData(visitorCode).forEach(function (element) {
body_3 += element.obtainFullPostTextLine() + "\n";
});
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getExperimentRegisterURL(visitorCode, featureId, variationId, noneVariation), kameleoonUtils_1.HttpMethod.POST, body_3);
var body = _this.getAndClearUnsentData(visitorCode);
kameleoonUtils_1.default.doRequest(KameleoonClient.API_SSX_URL + _this.getExperimentRegisterURL(visitorCode, featureId, variationId, noneVariation), kameleoonUtils_1.HttpMethod.POST, body);
result = variationId != 0;

@@ -654,2 +644,10 @@ }

};
KameleoonClient.prototype.getAndClearUnsentData = function (visitorCode) {
var body = "";
this.getUnsentData(visitorCode).forEach(function (element) {
body += element.obtainFullPostTextLine() + "\n";
});
this.emptyUnsentData(visitorCode);
return body;
};
KameleoonClient.DEFAULT_MILLISECONDS_BETWEEN_TARGETING_DATA_UPDATE = 1800000;

@@ -656,0 +654,0 @@ KameleoonClient.MINUTES_SESSION_DURATION = 30 * 60 * 1000;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpMethod = void 0;
var VERSION = "1.0.7";
var VERSION = "1.0.8";
var KameleoonUtils = /** @class */ (function () {

@@ -6,0 +6,0 @@ function KameleoonUtils() {

{
"name": "kameleoon-client-javascript",
"version": "1.0.7",
"version": "1.0.8",
"description": "JavaScript SDK client",

@@ -5,0 +5,0 @@ "main": "dist/kameleoonClient.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