Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplitude/session-replay-browser

Package Overview
Dependencies
Maintainers
21
Versions
79
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 1.7.0 to 1.8.0

1

lib/cjs/config/local-config.d.ts

@@ -18,4 +18,5 @@ import { FetchTransport } from '@amplitude/analytics-client-common';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
constructor(apiKey: string, options: SessionReplayOptions);
}
//# sourceMappingURL=local-config.d.ts.map

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

_this.configEndpointUrl = options.configEndpointUrl;
_this.shouldInlineStylesheet = options.shouldInlineStylesheet;
if (options.privacyConfig) {

@@ -31,0 +32,0 @@ _this.privacyConfig = options.privacyConfig;

@@ -32,2 +32,3 @@ import { Config, LogLevel, Logger } from '@amplitude/analytics-types';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
}

@@ -34,0 +35,0 @@ export interface SessionReplayJoinedConfig extends SessionReplayLocalConfig {

6

lib/cjs/session-replay.js

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

SessionReplay.prototype.removeInvalidSelectors = function () {
var _this = this;
var _a;

@@ -56,3 +57,3 @@ if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.privacyConfig)) {

catch (_a) {
console.warn("[session-replay-browser] omitting selector \"".concat(selector, "\" because it is invalid"));
_this.loggerProvider.warn("[session-replay-browser] omitting selector \"".concat(selector, "\" because it is invalid"));
return false;

@@ -87,3 +88,3 @@ }

_b.config = _d.sent();
this.loggerProvider.debug(JSON.stringify({ name: 'joined privacy config', privacyConfig: this.config.privacyConfig }, null, 2));
this.loggerProvider.debug(JSON.stringify({ name: 'session replay joined privacy config', privacyConfig: this.config.privacyConfig }, null, 2));
this.removeInvalidSelectors();

@@ -281,2 +282,3 @@ _c = this;

packFn: rrweb_1.pack,
inlineStylesheet: this.config.shouldInlineStylesheet,
maskAllInputs: true,

@@ -283,0 +285,0 @@ maskTextClass: constants_1.MASK_TEXT_CLASS,

@@ -18,4 +18,5 @@ import { FetchTransport } from '@amplitude/analytics-client-common';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
constructor(apiKey: string, options: SessionReplayOptions);
}
//# sourceMappingURL=local-config.d.ts.map

@@ -26,2 +26,3 @@ import { __assign, __extends } from "tslib";

_this.configEndpointUrl = options.configEndpointUrl;
_this.shouldInlineStylesheet = options.shouldInlineStylesheet;
if (options.privacyConfig) {

@@ -28,0 +29,0 @@ _this.privacyConfig = options.privacyConfig;

@@ -32,2 +32,3 @@ import { Config, LogLevel, Logger } from '@amplitude/analytics-types';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
}

@@ -34,0 +35,0 @@ export interface SessionReplayJoinedConfig extends SessionReplayLocalConfig {

@@ -37,2 +37,3 @@ import { __awaiter, __generator } from "tslib";

SessionReplay.prototype.removeInvalidSelectors = function () {
var _this = this;
var _a;

@@ -54,3 +55,3 @@ if (!((_a = this.config) === null || _a === void 0 ? void 0 : _a.privacyConfig)) {

catch (_a) {
console.warn("[session-replay-browser] omitting selector \"".concat(selector, "\" because it is invalid"));
_this.loggerProvider.warn("[session-replay-browser] omitting selector \"".concat(selector, "\" because it is invalid"));
return false;

@@ -85,3 +86,3 @@ }

_b.config = _d.sent();
this.loggerProvider.debug(JSON.stringify({ name: 'joined privacy config', privacyConfig: this.config.privacyConfig }, null, 2));
this.loggerProvider.debug(JSON.stringify({ name: 'session replay joined privacy config', privacyConfig: this.config.privacyConfig }, null, 2));
this.removeInvalidSelectors();

@@ -279,2 +280,3 @@ _c = this;

packFn: pack,
inlineStylesheet: this.config.shouldInlineStylesheet,
maskAllInputs: true,

@@ -281,0 +283,0 @@ maskTextClass: MASK_TEXT_CLASS,

@@ -18,4 +18,5 @@ import { FetchTransport } from '@amplitude/analytics-client-common';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
constructor(apiKey: string, options: SessionReplayOptions);
}
//# sourceMappingURL=local-config.d.ts.map

@@ -32,2 +32,3 @@ import { Config, LogLevel, Logger } from '@amplitude/analytics-types';

configEndpointUrl?: string;
shouldInlineStylesheet?: boolean;
}

@@ -34,0 +35,0 @@ export interface SessionReplayJoinedConfig extends SessionReplayLocalConfig {

{
"name": "@amplitude/session-replay-browser",
"version": "1.7.0",
"version": "1.8.0",
"description": "",

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

],
"gitHead": "caddb328ae0826dd8ef453d1152032c43c2012ad"
"gitHead": "0fb81b5ab9736d9761912b85f4b86931f4d0f2a5"
}

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

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