@amplitude/plugin-session-replay-browser
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -94,4 +94,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
SessionReplay.prototype.stopRecordingAndSendEvents = function (sessionId) { | ||
this.stopRecordingEvents && this.stopRecordingEvents(); | ||
this.stopRecordingEvents = null; | ||
try { | ||
this.stopRecordingEvents && this.stopRecordingEvents(); | ||
this.stopRecordingEvents = null; | ||
} | ||
catch (error) { | ||
var typedError = error; | ||
this.config.loggerProvider.error("Error occurred while stopping recording: ".concat(typedError.toString())); | ||
} | ||
var sessionIdToSend = sessionId || this.config.sessionId; | ||
@@ -239,2 +245,8 @@ if (this.events.length && sessionIdToSend) { | ||
maskInputFn: helpers_1.maskInputFn, | ||
recordCanvas: false, | ||
errorHandler: function (error) { | ||
var typedError = error; | ||
_this.config.loggerProvider.error('Error while recording: ', typedError.toString()); | ||
return true; | ||
}, | ||
}); | ||
@@ -241,0 +253,0 @@ }; |
@@ -42,2 +42,3 @@ import { BrowserConfig, EnrichmentPlugin } from '@amplitude/analytics-types'; | ||
stopRecordingEvents: ReturnType<typeof record> | null; | ||
stopRecordingAndSendEvents: (sessionId?: number) => void; | ||
maxPersistedEventsSize: number; | ||
@@ -44,0 +45,0 @@ initialize: (shouldSendStoredEvents?: boolean) => Promise<void>; |
@@ -92,4 +92,10 @@ import { __assign, __awaiter, __generator, __read } from "tslib"; | ||
SessionReplay.prototype.stopRecordingAndSendEvents = function (sessionId) { | ||
this.stopRecordingEvents && this.stopRecordingEvents(); | ||
this.stopRecordingEvents = null; | ||
try { | ||
this.stopRecordingEvents && this.stopRecordingEvents(); | ||
this.stopRecordingEvents = null; | ||
} | ||
catch (error) { | ||
var typedError = error; | ||
this.config.loggerProvider.error("Error occurred while stopping recording: ".concat(typedError.toString())); | ||
} | ||
var sessionIdToSend = sessionId || this.config.sessionId; | ||
@@ -237,2 +243,8 @@ if (this.events.length && sessionIdToSend) { | ||
maskInputFn: maskInputFn, | ||
recordCanvas: false, | ||
errorHandler: function (error) { | ||
var typedError = error; | ||
_this.config.loggerProvider.error('Error while recording: ', typedError.toString()); | ||
return true; | ||
}, | ||
}); | ||
@@ -239,0 +251,0 @@ }; |
@@ -42,2 +42,3 @@ import { BrowserConfig, EnrichmentPlugin } from '@amplitude/analytics-types'; | ||
stopRecordingEvents: ReturnType<typeof record> | null; | ||
stopRecordingAndSendEvents: (sessionId?: number) => void; | ||
maxPersistedEventsSize: number; | ||
@@ -44,0 +45,0 @@ initialize: (shouldSendStoredEvents?: boolean) => Promise<void>; |
@@ -42,2 +42,3 @@ import { BrowserConfig, EnrichmentPlugin } from '@amplitude/analytics-types'; | ||
stopRecordingEvents: ReturnType<typeof record> | null; | ||
stopRecordingAndSendEvents: (sessionId?: number) => void; | ||
maxPersistedEventsSize: number; | ||
@@ -44,0 +45,0 @@ initialize: (shouldSendStoredEvents?: boolean) => Promise<void>; |
{ | ||
"name": "@amplitude/plugin-session-replay-browser", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "", | ||
@@ -45,3 +45,3 @@ "author": "Amplitude Inc", | ||
"idb-keyval": "^6.2.1", | ||
"rrweb": "^2.0.0-alpha.9", | ||
"rrweb": "^2.0.0-alpha.11", | ||
"tslib": "^2.4.1" | ||
@@ -61,3 +61,3 @@ }, | ||
], | ||
"gitHead": "a04860f1f658ccf7c0a0786b4cfe3e28a8041d47" | ||
"gitHead": "b6c95e7a74e647b5c784f8a2f13e359a72e17d89" | ||
} |
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 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
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
423032
2219
Updatedrrweb@^2.0.0-alpha.11