@ludens-reklame/profiler-client
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -205,7 +205,7 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var firstParty, thirdParty, response, json, error_6; | ||
var firstParty, thirdParty, json, error_6; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_a.trys.push([0, 4, , 5]); | ||
_a.trys.push([0, 3, , 4]); | ||
if (!(document && | ||
@@ -215,3 +215,3 @@ 'referrer' in document && | ||
'location' in window && | ||
!this.sid)) return [3 /*break*/, 3]; | ||
!this.sid)) return [3 /*break*/, 2]; | ||
firstParty = window.location.href; | ||
@@ -225,17 +225,14 @@ thirdParty = document.referrer; | ||
case 1: | ||
response = _a.sent(); | ||
json = _a.sent(); | ||
this.handlePersonalizations(); | ||
return [4 /*yield*/, response.json()]; | ||
case 2: | ||
json = _a.sent(); | ||
if (json && 'sessionId' in json) { | ||
this.setSid(json.sessionId); | ||
} | ||
_a.label = 3; | ||
case 3: return [3 /*break*/, 5]; | ||
case 4: | ||
_a.label = 2; | ||
case 2: return [3 /*break*/, 4]; | ||
case 3: | ||
error_6 = _a.sent(); | ||
console.error(error_6); | ||
return [3 /*break*/, 5]; | ||
case 5: return [2 /*return*/]; | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
} | ||
@@ -382,3 +379,3 @@ }); | ||
} | ||
return [2 /*return*/, response]; | ||
return [2 /*return*/, responseJSON]; | ||
} | ||
@@ -385,0 +382,0 @@ }); |
{ | ||
"name": "@ludens-reklame/profiler-client", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Profiler for all", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
32658
550