kameleoon-client-javascript
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -68,2 +68,3 @@ import Configuration from './configurations/configuration'; | ||
private checkFeatureKeyOrId; | ||
private getAndClearUnsentData; | ||
} | ||
@@ -70,0 +71,0 @@ declare const KameleoonException: { |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89104
1945