@amplitude/session-replay-browser
Advanced tools
Comparing version 1.13.8 to 1.13.9
@@ -121,3 +121,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var _d, _e, scrollWatcher, managers, rrwebEventManager, payloadBatcher, interactionEventManager; | ||
var _d, _e, scrollWatcher, managers, rrwebEventManager, error_1, typedError, payloadBatcher, interactionEventManager, error_2, typedError; | ||
return tslib_1.__generator(this, function (_f) { | ||
@@ -147,2 +147,5 @@ switch (_f.label) { | ||
managers = []; | ||
_f.label = 3; | ||
case 3: | ||
_f.trys.push([3, 5, , 6]); | ||
return [4 /*yield*/, (0, events_manager_1.createEventsManager)({ | ||
@@ -153,7 +156,17 @@ config: this.config, | ||
})]; | ||
case 3: | ||
case 4: | ||
rrwebEventManager = _f.sent(); | ||
managers.push({ name: 'replay', manager: rrwebEventManager }); | ||
if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 5]; | ||
return [3 /*break*/, 6]; | ||
case 5: | ||
error_1 = _f.sent(); | ||
typedError = error_1; | ||
this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(typedError.toString())); | ||
return [3 /*break*/, 6]; | ||
case 6: | ||
if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 10]; | ||
payloadBatcher = this.config.interactionConfig.batch ? click_1.clickBatcher : click_1.clickNonBatcher; | ||
_f.label = 7; | ||
case 7: | ||
_f.trys.push([7, 9, , 10]); | ||
return [4 /*yield*/, (0, events_manager_1.createEventsManager)({ | ||
@@ -167,7 +180,12 @@ config: this.config, | ||
})]; | ||
case 4: | ||
case 8: | ||
interactionEventManager = _f.sent(); | ||
managers.push({ name: 'interaction', manager: interactionEventManager }); | ||
_f.label = 5; | ||
case 5: | ||
return [3 /*break*/, 10]; | ||
case 9: | ||
error_2 = _f.sent(); | ||
typedError = error_2; | ||
this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(typedError.toString())); | ||
return [3 /*break*/, 10]; | ||
case 10: | ||
this.eventsManager = new (multi_manager_1.MultiEventManager.bind.apply(multi_manager_1.MultiEventManager, tslib_1.__spreadArray([void 0], tslib_1.__read(managers), false)))(); | ||
@@ -174,0 +192,0 @@ this.loggerProvider.log('Installing @amplitude/session-replay-browser.'); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.13.8"; | ||
export declare const VERSION = "1.13.9"; | ||
//# sourceMappingURL=version.d.ts.map |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
// Autogenerated by `yarn version-file`. DO NOT EDIT | ||
exports.VERSION = '1.13.8'; | ||
exports.VERSION = '1.13.9'; | ||
//# sourceMappingURL=version.js.map |
@@ -119,3 +119,3 @@ import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _d, _e, scrollWatcher, managers, rrwebEventManager, payloadBatcher, interactionEventManager; | ||
var _d, _e, scrollWatcher, managers, rrwebEventManager, error_1, typedError, payloadBatcher, interactionEventManager, error_2, typedError; | ||
return __generator(this, function (_f) { | ||
@@ -145,2 +145,5 @@ switch (_f.label) { | ||
managers = []; | ||
_f.label = 3; | ||
case 3: | ||
_f.trys.push([3, 5, , 6]); | ||
return [4 /*yield*/, createEventsManager({ | ||
@@ -151,7 +154,17 @@ config: this.config, | ||
})]; | ||
case 3: | ||
case 4: | ||
rrwebEventManager = _f.sent(); | ||
managers.push({ name: 'replay', manager: rrwebEventManager }); | ||
if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 5]; | ||
return [3 /*break*/, 6]; | ||
case 5: | ||
error_1 = _f.sent(); | ||
typedError = error_1; | ||
this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(typedError.toString())); | ||
return [3 /*break*/, 6]; | ||
case 6: | ||
if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 10]; | ||
payloadBatcher = this.config.interactionConfig.batch ? clickBatcher : clickNonBatcher; | ||
_f.label = 7; | ||
case 7: | ||
_f.trys.push([7, 9, , 10]); | ||
return [4 /*yield*/, createEventsManager({ | ||
@@ -165,7 +178,12 @@ config: this.config, | ||
})]; | ||
case 4: | ||
case 8: | ||
interactionEventManager = _f.sent(); | ||
managers.push({ name: 'interaction', manager: interactionEventManager }); | ||
_f.label = 5; | ||
case 5: | ||
return [3 /*break*/, 10]; | ||
case 9: | ||
error_2 = _f.sent(); | ||
typedError = error_2; | ||
this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(typedError.toString())); | ||
return [3 /*break*/, 10]; | ||
case 10: | ||
this.eventsManager = new (MultiEventManager.bind.apply(MultiEventManager, __spreadArray([void 0], __read(managers), false)))(); | ||
@@ -172,0 +190,0 @@ this.loggerProvider.log('Installing @amplitude/session-replay-browser.'); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.13.8"; | ||
export declare const VERSION = "1.13.9"; | ||
//# sourceMappingURL=version.d.ts.map |
// Autogenerated by `yarn version-file`. DO NOT EDIT | ||
export var VERSION = '1.13.8'; | ||
export var VERSION = '1.13.9'; | ||
//# sourceMappingURL=version.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "1.13.8"; | ||
export declare const VERSION = "1.13.9"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@amplitude/session-replay-browser", | ||
"version": "1.13.8", | ||
"version": "1.13.9", | ||
"description": "", | ||
@@ -66,3 +66,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "fcbedb1157bbf32cef791906af810e779a8e9c6d" | ||
"gitHead": "e33f45a4f496cb0c01bec3d91137fc62d969ff67" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1036572
7630