New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/session-replay-browser

Package Overview
Dependencies
Maintainers
21
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplitude/session-replay-browser - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0-beta.0

1

lib/cjs/constants.d.ts
import { IDBStoreSession } from './typings/session-replay';
export declare const DEFAULT_EVENT_PROPERTY_PREFIX = "[Amplitude]";
export declare const NEW_SESSION_REPLAY_PROPERTY: string;
export declare const DEFAULT_SESSION_REPLAY_PROPERTY: string;

@@ -5,0 +4,0 @@ export declare const DEFAULT_SESSION_START_EVENT = "session_start";

5

lib/cjs/constants.js
Object.defineProperty(exports, "__esModule", { value: true });
exports.MAX_IDB_STORAGE_LENGTH = exports.defaultSessionStore = exports.MAX_INTERVAL = exports.MIN_INTERVAL = exports.MAX_EVENT_LIST_SIZE_IN_BYTES = exports.STORAGE_PREFIX = exports.SESSION_REPLAY_EU_URL = exports.SESSION_REPLAY_SERVER_URL = exports.UNMASK_TEXT_CLASS = exports.MASK_TEXT_CLASS = exports.BLOCK_CLASS = exports.DEFAULT_SAMPLE_RATE = exports.DEFAULT_SESSION_END_EVENT = exports.DEFAULT_SESSION_START_EVENT = exports.DEFAULT_SESSION_REPLAY_PROPERTY = exports.NEW_SESSION_REPLAY_PROPERTY = exports.DEFAULT_EVENT_PROPERTY_PREFIX = void 0;
exports.MAX_IDB_STORAGE_LENGTH = exports.defaultSessionStore = exports.MAX_INTERVAL = exports.MIN_INTERVAL = exports.MAX_EVENT_LIST_SIZE_IN_BYTES = exports.STORAGE_PREFIX = exports.SESSION_REPLAY_EU_URL = exports.SESSION_REPLAY_SERVER_URL = exports.UNMASK_TEXT_CLASS = exports.MASK_TEXT_CLASS = exports.BLOCK_CLASS = exports.DEFAULT_SAMPLE_RATE = exports.DEFAULT_SESSION_END_EVENT = exports.DEFAULT_SESSION_START_EVENT = exports.DEFAULT_SESSION_REPLAY_PROPERTY = exports.DEFAULT_EVENT_PROPERTY_PREFIX = void 0;
var analytics_core_1 = require("@amplitude/analytics-core");
exports.DEFAULT_EVENT_PROPERTY_PREFIX = '[Amplitude]';
exports.NEW_SESSION_REPLAY_PROPERTY = "".concat(exports.DEFAULT_EVENT_PROPERTY_PREFIX, " Session Replay ID");
exports.DEFAULT_SESSION_REPLAY_PROPERTY = "".concat(exports.DEFAULT_EVENT_PROPERTY_PREFIX, " Session Recorded");
exports.DEFAULT_SESSION_REPLAY_PROPERTY = "".concat(exports.DEFAULT_EVENT_PROPERTY_PREFIX, " Session Replay ID");
exports.DEFAULT_SESSION_START_EVENT = 'session_start';

@@ -8,0 +7,0 @@ exports.DEFAULT_SESSION_END_EVENT = 'session_end';

@@ -1,6 +0,4 @@

export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionRecordingProperties: () => {
export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, shutdown: () => void;
//# sourceMappingURL=index.d.ts.map
Object.defineProperty(exports, "__esModule", { value: true });
exports.shutdown = exports.getSessionReplayProperties = exports.getSessionRecordingProperties = exports.setSessionId = exports.init = void 0;
exports.shutdown = exports.getSessionReplayProperties = exports.setSessionId = exports.init = void 0;
var tslib_1 = require("tslib");
var session_replay_factory_1 = tslib_1.__importDefault(require("./session-replay-factory"));
exports.init = session_replay_factory_1.default.init, exports.setSessionId = session_replay_factory_1.default.setSessionId, exports.getSessionRecordingProperties = session_replay_factory_1.default.getSessionRecordingProperties, exports.getSessionReplayProperties = session_replay_factory_1.default.getSessionReplayProperties, exports.shutdown = session_replay_factory_1.default.shutdown;
exports.init = session_replay_factory_1.default.init, exports.setSessionId = session_replay_factory_1.default.setSessionId, exports.getSessionReplayProperties = session_replay_factory_1.default.getSessionReplayProperties, exports.shutdown = session_replay_factory_1.default.shutdown;
//# sourceMappingURL=index.js.map

@@ -20,3 +20,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

setSessionId: (0, analytics_core_1.debugWrapper)(sessionReplay.setSessionId.bind(sessionReplay), 'setSessionId', (0, exports.getLogConfig)(sessionReplay)),
getSessionRecordingProperties: (0, analytics_core_1.debugWrapper)(sessionReplay.getSessionRecordingProperties.bind(sessionReplay), 'getSessionRecordingProperties', (0, exports.getLogConfig)(sessionReplay)),
getSessionReplayProperties: (0, analytics_core_1.debugWrapper)(sessionReplay.getSessionReplayProperties.bind(sessionReplay), 'getSessionReplayProperties', (0, exports.getLogConfig)(sessionReplay)),

@@ -23,0 +22,0 @@ shutdown: (0, analytics_core_1.debugWrapper)(sessionReplay.shutdown.bind(sessionReplay), 'teardown', (0, exports.getLogConfig)(sessionReplay)),

@@ -23,7 +23,4 @@ import { Logger as ILogger } from '@amplitude/analytics-types';

getSessionReplayProperties(): {
[x: string]: string | boolean | null;
[x: string]: string | null;
};
getSessionRecordingProperties: () => {
[x: string]: string | boolean | null;
};
blurListener: () => void;

@@ -30,0 +27,0 @@ focusListener: () => void;

@@ -29,6 +29,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

this.timeAtLastSend = null;
this.getSessionRecordingProperties = function () {
_this.loggerProvider.warn('Please use getSessionReplayProperties instead of getSessionRecordingProperties.');
return _this.getSessionReplayProperties();
};
this.blurListener = function () {

@@ -116,4 +112,3 @@ _this.stopRecordingAndSendEvents();

return _a = {},
_a[constants_1.DEFAULT_SESSION_REPLAY_PROPERTY] = true,
_a[constants_1.NEW_SESSION_REPLAY_PROPERTY] = this.config.sessionReplayId ? this.config.sessionReplayId : null,
_a[constants_1.DEFAULT_SESSION_REPLAY_PROPERTY] = this.config.sessionReplayId ? this.config.sessionReplayId : null,
_a;

@@ -120,0 +115,0 @@ }

@@ -41,5 +41,2 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types';

setSessionId: (sessionId: number) => void;
getSessionRecordingProperties: () => {
[key: string]: boolean | string | null;
};
getSessionReplayProperties: () => {

@@ -46,0 +43,0 @@ [key: string]: boolean | string | null;

import { IDBStoreSession } from './typings/session-replay';
export declare const DEFAULT_EVENT_PROPERTY_PREFIX = "[Amplitude]";
export declare const NEW_SESSION_REPLAY_PROPERTY: string;
export declare const DEFAULT_SESSION_REPLAY_PROPERTY: string;

@@ -5,0 +4,0 @@ export declare const DEFAULT_SESSION_START_EVENT = "session_start";

import { AMPLITUDE_PREFIX } from '@amplitude/analytics-core';
export var DEFAULT_EVENT_PROPERTY_PREFIX = '[Amplitude]';
export var NEW_SESSION_REPLAY_PROPERTY = "".concat(DEFAULT_EVENT_PROPERTY_PREFIX, " Session Replay ID");
export var DEFAULT_SESSION_REPLAY_PROPERTY = "".concat(DEFAULT_EVENT_PROPERTY_PREFIX, " Session Recorded");
export var DEFAULT_SESSION_REPLAY_PROPERTY = "".concat(DEFAULT_EVENT_PROPERTY_PREFIX, " Session Replay ID");
export var DEFAULT_SESSION_START_EVENT = 'session_start';

@@ -6,0 +5,0 @@ export var DEFAULT_SESSION_END_EVENT = 'session_end';

@@ -1,6 +0,4 @@

export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionRecordingProperties: () => {
export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, shutdown: () => void;
//# sourceMappingURL=index.d.ts.map
import sessionReplay from './session-replay-factory';
export var init = sessionReplay.init, setSessionId = sessionReplay.setSessionId, getSessionRecordingProperties = sessionReplay.getSessionRecordingProperties, getSessionReplayProperties = sessionReplay.getSessionReplayProperties, shutdown = sessionReplay.shutdown;
export var init = sessionReplay.init, setSessionId = sessionReplay.setSessionId, getSessionReplayProperties = sessionReplay.getSessionReplayProperties, shutdown = sessionReplay.shutdown;
//# sourceMappingURL=index.js.map

@@ -17,3 +17,2 @@ import { debugWrapper } from '@amplitude/analytics-core';

setSessionId: debugWrapper(sessionReplay.setSessionId.bind(sessionReplay), 'setSessionId', getLogConfig(sessionReplay)),
getSessionRecordingProperties: debugWrapper(sessionReplay.getSessionRecordingProperties.bind(sessionReplay), 'getSessionRecordingProperties', getLogConfig(sessionReplay)),
getSessionReplayProperties: debugWrapper(sessionReplay.getSessionReplayProperties.bind(sessionReplay), 'getSessionReplayProperties', getLogConfig(sessionReplay)),

@@ -20,0 +19,0 @@ shutdown: debugWrapper(sessionReplay.shutdown.bind(sessionReplay), 'teardown', getLogConfig(sessionReplay)),

@@ -23,7 +23,4 @@ import { Logger as ILogger } from '@amplitude/analytics-types';

getSessionReplayProperties(): {
[x: string]: string | boolean | null;
[x: string]: string | null;
};
getSessionRecordingProperties: () => {
[x: string]: string | boolean | null;
};
blurListener: () => void;

@@ -30,0 +27,0 @@ focusListener: () => void;

@@ -8,3 +8,3 @@ import { __assign, __awaiter, __generator, __read } from "tslib";

import { SessionReplayConfig } from './config';
import { BLOCK_CLASS, DEFAULT_SAMPLE_RATE, DEFAULT_SESSION_REPLAY_PROPERTY, MASK_TEXT_CLASS, MAX_EVENT_LIST_SIZE_IN_BYTES, MAX_IDB_STORAGE_LENGTH, MAX_INTERVAL, MIN_INTERVAL, NEW_SESSION_REPLAY_PROPERTY, SESSION_REPLAY_EU_URL as SESSION_REPLAY_EU_SERVER_URL, SESSION_REPLAY_SERVER_URL, STORAGE_PREFIX, defaultSessionStore, } from './constants';
import { BLOCK_CLASS, DEFAULT_SAMPLE_RATE, DEFAULT_SESSION_REPLAY_PROPERTY, MASK_TEXT_CLASS, MAX_EVENT_LIST_SIZE_IN_BYTES, MAX_IDB_STORAGE_LENGTH, MAX_INTERVAL, MIN_INTERVAL, SESSION_REPLAY_EU_URL as SESSION_REPLAY_EU_SERVER_URL, SESSION_REPLAY_SERVER_URL, STORAGE_PREFIX, defaultSessionStore, } from './constants';
import { isSessionInSample, maskInputFn, getCurrentUrl, generateSessionReplayId } from './helpers';

@@ -28,6 +28,2 @@ 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';

this.timeAtLastSend = null;
this.getSessionRecordingProperties = function () {
_this.loggerProvider.warn('Please use getSessionReplayProperties instead of getSessionRecordingProperties.');
return _this.getSessionReplayProperties();
};
this.blurListener = function () {

@@ -115,4 +111,3 @@ _this.stopRecordingAndSendEvents();

return _a = {},
_a[DEFAULT_SESSION_REPLAY_PROPERTY] = true,
_a[NEW_SESSION_REPLAY_PROPERTY] = this.config.sessionReplayId ? this.config.sessionReplayId : null,
_a[DEFAULT_SESSION_REPLAY_PROPERTY] = this.config.sessionReplayId ? this.config.sessionReplayId : null,
_a;

@@ -119,0 +114,0 @@ }

@@ -41,5 +41,2 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types';

setSessionId: (sessionId: number) => void;
getSessionRecordingProperties: () => {
[key: string]: boolean | string | null;
};
getSessionReplayProperties: () => {

@@ -46,0 +43,0 @@ [key: string]: boolean | string | null;

import { IDBStoreSession } from './typings/session-replay';
export declare const DEFAULT_EVENT_PROPERTY_PREFIX = "[Amplitude]";
export declare const NEW_SESSION_REPLAY_PROPERTY: string;
export declare const DEFAULT_SESSION_REPLAY_PROPERTY: string;

@@ -5,0 +4,0 @@ export declare const DEFAULT_SESSION_START_EVENT = "session_start";

@@ -1,6 +0,4 @@

export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionRecordingProperties: () => {
export declare const init: (apiKey: string, options: import("./typings/session-replay").SessionReplayOptions) => import("@amplitude/analytics-types").AmplitudeReturn<void>, setSessionId: (sessionId: number) => void, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, getSessionReplayProperties: () => {
[key: string]: string | boolean | null;
}, shutdown: () => void;
//# sourceMappingURL=index.d.ts.map

@@ -23,7 +23,4 @@ import { Logger as ILogger } from '@amplitude/analytics-types';

getSessionReplayProperties(): {
[x: string]: string | boolean | null;
[x: string]: string | null;
};
getSessionRecordingProperties: () => {
[x: string]: string | boolean | null;
};
blurListener: () => void;

@@ -30,0 +27,0 @@ focusListener: () => void;

@@ -41,5 +41,2 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types';

setSessionId: (sessionId: number) => void;
getSessionRecordingProperties: () => {
[key: string]: boolean | string | null;
};
getSessionReplayProperties: () => {

@@ -46,0 +43,0 @@ [key: string]: boolean | string | null;

{
"name": "@amplitude/session-replay-browser",
"version": "0.4.0",
"version": "0.5.0-beta.0",
"description": "",

@@ -60,3 +60,3 @@ "author": "Amplitude Inc",

],
"gitHead": "ace1377ea589fbce177514131396056c9deb738f"
"gitHead": "151a509e1aa6a6bd7f2d4812448a7462ea0abadc"
}

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 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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc