@amplitude/session-replay-browser
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -9,4 +9,4 @@ import { IDBStoreSession } from './typings/session-replay'; | ||
export declare const UNMASK_TEXT_CLASS = "amp-unmask"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-secure.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api.eu.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-sr.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api-sr.eu.amplitude.com/sessions/track"; | ||
export declare const STORAGE_PREFIX: string; | ||
@@ -13,0 +13,0 @@ export declare const MAX_EVENT_LIST_SIZE_IN_BYTES: number; |
@@ -11,4 +11,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UNMASK_TEXT_CLASS = 'amp-unmask'; | ||
exports.SESSION_REPLAY_SERVER_URL = 'https://api-secure.amplitude.com/sessions/track'; | ||
exports.SESSION_REPLAY_EU_URL = 'https://api.eu.amplitude.com/sessions/track'; | ||
exports.SESSION_REPLAY_SERVER_URL = 'https://api-sr.amplitude.com/sessions/track'; | ||
exports.SESSION_REPLAY_EU_URL = 'https://api-sr.eu.amplitude.com/sessions/track'; | ||
exports.STORAGE_PREFIX = "".concat(analytics_core_1.AMPLITUDE_PREFIX, "_replay_unsent"); | ||
@@ -15,0 +15,0 @@ var PAYLOAD_ESTIMATED_SIZE_IN_BYTES_WITHOUT_EVENTS = 500; // derived by JSON stringifying an example payload without events |
export declare const getSuccessMessage: (sessionId: number) => string; | ||
export declare const UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred"; | ||
export declare const UNEXPECTED_NETWORK_ERROR_MESSAGE = "Network error occurred, event batch rejected"; | ||
export declare const MAX_RETRIES_EXCEEDED_MESSAGE = "Session replay event batch rejected due to exceeded retry count"; | ||
@@ -4,0 +5,0 @@ export declare const STORAGE_FAILURE = "Failed to store session replay events in IndexedDB"; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MISSING_API_KEY_MESSAGE = exports.MISSING_DEVICE_ID_MESSAGE = exports.STORAGE_FAILURE = exports.MAX_RETRIES_EXCEEDED_MESSAGE = exports.UNEXPECTED_ERROR_MESSAGE = exports.getSuccessMessage = void 0; | ||
exports.MISSING_API_KEY_MESSAGE = exports.MISSING_DEVICE_ID_MESSAGE = exports.STORAGE_FAILURE = exports.MAX_RETRIES_EXCEEDED_MESSAGE = exports.UNEXPECTED_NETWORK_ERROR_MESSAGE = exports.UNEXPECTED_ERROR_MESSAGE = exports.getSuccessMessage = void 0; | ||
var getSuccessMessage = function (sessionId) { | ||
@@ -8,2 +8,3 @@ return "Session replay event batch tracked successfully for session id ".concat(sessionId); | ||
exports.UNEXPECTED_ERROR_MESSAGE = 'Unexpected error occurred'; | ||
exports.UNEXPECTED_NETWORK_ERROR_MESSAGE = 'Network error occurred, event batch rejected'; | ||
exports.MAX_RETRIES_EXCEEDED_MESSAGE = 'Session replay event batch rejected due to exceeded retry count'; | ||
@@ -10,0 +11,0 @@ exports.STORAGE_FAILURE = 'Failed to store session replay events in IndexedDB'; |
@@ -51,3 +51,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
flush(useRetry?: boolean): Promise<void>; | ||
getServerUrl(): "https://api-secure.amplitude.com/sessions/track" | "https://api.eu.amplitude.com/sessions/track"; | ||
getServerUrl(): "https://api-sr.amplitude.com/sessions/track" | "https://api-sr.eu.amplitude.com/sessions/track"; | ||
getDeviceId(): string | undefined; | ||
@@ -54,0 +54,0 @@ send(context: SessionReplayContext, useRetry?: boolean): Promise<void>; |
@@ -446,4 +446,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
break; | ||
case analytics_types_1.Status.Failed: | ||
this.handleOtherResponse(context); | ||
break; | ||
default: | ||
this.handleOtherResponse(context); | ||
this.completeRequest({ context: context, err: messages_1.UNEXPECTED_NETWORK_ERROR_MESSAGE }); | ||
} | ||
@@ -450,0 +453,0 @@ }; |
@@ -9,4 +9,4 @@ import { IDBStoreSession } from './typings/session-replay'; | ||
export declare const UNMASK_TEXT_CLASS = "amp-unmask"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-secure.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api.eu.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-sr.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api-sr.eu.amplitude.com/sessions/track"; | ||
export declare const STORAGE_PREFIX: string; | ||
@@ -13,0 +13,0 @@ export declare const MAX_EVENT_LIST_SIZE_IN_BYTES: number; |
@@ -9,4 +9,4 @@ import { AMPLITUDE_PREFIX } from '@amplitude/analytics-core'; | ||
export var UNMASK_TEXT_CLASS = 'amp-unmask'; | ||
export var SESSION_REPLAY_SERVER_URL = 'https://api-secure.amplitude.com/sessions/track'; | ||
export var SESSION_REPLAY_EU_URL = 'https://api.eu.amplitude.com/sessions/track'; | ||
export var SESSION_REPLAY_SERVER_URL = 'https://api-sr.amplitude.com/sessions/track'; | ||
export var SESSION_REPLAY_EU_URL = 'https://api-sr.eu.amplitude.com/sessions/track'; | ||
export var STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_replay_unsent"); | ||
@@ -13,0 +13,0 @@ var PAYLOAD_ESTIMATED_SIZE_IN_BYTES_WITHOUT_EVENTS = 500; // derived by JSON stringifying an example payload without events |
export declare const getSuccessMessage: (sessionId: number) => string; | ||
export declare const UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred"; | ||
export declare const UNEXPECTED_NETWORK_ERROR_MESSAGE = "Network error occurred, event batch rejected"; | ||
export declare const MAX_RETRIES_EXCEEDED_MESSAGE = "Session replay event batch rejected due to exceeded retry count"; | ||
@@ -4,0 +5,0 @@ export declare const STORAGE_FAILURE = "Failed to store session replay events in IndexedDB"; |
@@ -5,2 +5,3 @@ export var getSuccessMessage = function (sessionId) { | ||
export var UNEXPECTED_ERROR_MESSAGE = 'Unexpected error occurred'; | ||
export var UNEXPECTED_NETWORK_ERROR_MESSAGE = 'Network error occurred, event batch rejected'; | ||
export var MAX_RETRIES_EXCEEDED_MESSAGE = 'Session replay event batch rejected due to exceeded retry count'; | ||
@@ -7,0 +8,0 @@ export var STORAGE_FAILURE = 'Failed to store session replay events in IndexedDB'; |
@@ -51,3 +51,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
flush(useRetry?: boolean): Promise<void>; | ||
getServerUrl(): "https://api-secure.amplitude.com/sessions/track" | "https://api.eu.amplitude.com/sessions/track"; | ||
getServerUrl(): "https://api-sr.amplitude.com/sessions/track" | "https://api-sr.eu.amplitude.com/sessions/track"; | ||
getDeviceId(): string | undefined; | ||
@@ -54,0 +54,0 @@ send(context: SessionReplayContext, useRetry?: boolean): Promise<void>; |
@@ -10,3 +10,3 @@ import { __assign, __awaiter, __generator, __read } from "tslib"; | ||
import { isSessionInSample, maskInputFn } from './helpers'; | ||
import { MAX_RETRIES_EXCEEDED_MESSAGE, MISSING_API_KEY_MESSAGE, MISSING_DEVICE_ID_MESSAGE, STORAGE_FAILURE, UNEXPECTED_ERROR_MESSAGE, getSuccessMessage, } from './messages'; | ||
import { MAX_RETRIES_EXCEEDED_MESSAGE, MISSING_API_KEY_MESSAGE, MISSING_DEVICE_ID_MESSAGE, STORAGE_FAILURE, UNEXPECTED_ERROR_MESSAGE, UNEXPECTED_NETWORK_ERROR_MESSAGE, getSuccessMessage, } from './messages'; | ||
import { RecordingStatus, } from './typings/session-replay'; | ||
@@ -445,4 +445,7 @@ var SessionReplay = /** @class */ (function () { | ||
break; | ||
case Status.Failed: | ||
this.handleOtherResponse(context); | ||
break; | ||
default: | ||
this.handleOtherResponse(context); | ||
this.completeRequest({ context: context, err: UNEXPECTED_NETWORK_ERROR_MESSAGE }); | ||
} | ||
@@ -449,0 +452,0 @@ }; |
@@ -9,4 +9,4 @@ import { IDBStoreSession } from './typings/session-replay'; | ||
export declare const UNMASK_TEXT_CLASS = "amp-unmask"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-secure.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api.eu.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_SERVER_URL = "https://api-sr.amplitude.com/sessions/track"; | ||
export declare const SESSION_REPLAY_EU_URL = "https://api-sr.eu.amplitude.com/sessions/track"; | ||
export declare const STORAGE_PREFIX: string; | ||
@@ -13,0 +13,0 @@ export declare const MAX_EVENT_LIST_SIZE_IN_BYTES: number; |
export declare const getSuccessMessage: (sessionId: number) => string; | ||
export declare const UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred"; | ||
export declare const UNEXPECTED_NETWORK_ERROR_MESSAGE = "Network error occurred, event batch rejected"; | ||
export declare const MAX_RETRIES_EXCEEDED_MESSAGE = "Session replay event batch rejected due to exceeded retry count"; | ||
@@ -4,0 +5,0 @@ export declare const STORAGE_FAILURE = "Failed to store session replay events in IndexedDB"; |
@@ -51,3 +51,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
flush(useRetry?: boolean): Promise<void>; | ||
getServerUrl(): "https://api-secure.amplitude.com/sessions/track" | "https://api.eu.amplitude.com/sessions/track"; | ||
getServerUrl(): "https://api-sr.amplitude.com/sessions/track" | "https://api-sr.eu.amplitude.com/sessions/track"; | ||
getDeviceId(): string | undefined; | ||
@@ -54,0 +54,0 @@ send(context: SessionReplayContext, useRetry?: boolean): Promise<void>; |
{ | ||
"name": "@amplitude/session-replay-browser", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "", | ||
@@ -59,3 +59,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "1486b2860019c9c4bac9a4db1a2d660d4a3c107c" | ||
"gitHead": "f30d116fdd253e3d0fca2eeed605cd4cb7806a03" | ||
} |
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 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
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
491886
2703