@amplitude/plugin-session-replay-browser
Advanced tools
Comparing version 1.3.2 to 1.4.0
@@ -55,6 +55,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
SessionReplayPlugin.prototype.setup = function (config, client) { | ||
var _a; | ||
var _a, _b, _c, _d; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
return tslib_1.__generator(this, function (_e) { | ||
switch (_e.label) { | ||
case 0: | ||
@@ -95,2 +95,5 @@ if (!client) { | ||
blockSelector: (_a = this.options.privacyConfig) === null || _a === void 0 ? void 0 : _a.blockSelector, | ||
maskSelector: (_b = this.options.privacyConfig) === null || _b === void 0 ? void 0 : _b.maskSelector, | ||
unmaskSelector: (_c = this.options.privacyConfig) === null || _c === void 0 ? void 0 : _c.unmaskSelector, | ||
defaultMaskLevel: (_d = this.options.privacyConfig) === null || _d === void 0 ? void 0 : _d.defaultMaskLevel, | ||
}, | ||
@@ -101,3 +104,3 @@ debugMode: this.options.debugMode, | ||
case 1: | ||
_b.sent(); | ||
_e.sent(); | ||
// add enrichment plugin to add session replay properties to events | ||
@@ -107,3 +110,3 @@ return [4 /*yield*/, client.add(new SessionReplayEnrichmentPlugin()).promise]; | ||
// add enrichment plugin to add session replay properties to events | ||
_b.sent(); | ||
_e.sent(); | ||
return [2 /*return*/]; | ||
@@ -110,0 +113,0 @@ } |
@@ -0,3 +1,7 @@ | ||
export type MaskLevel = 'light' | 'medium' | 'conservative'; | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
defaultMaskLevel?: MaskLevel; | ||
maskSelector?: string[]; | ||
unmaskSelector?: string[]; | ||
} | ||
@@ -4,0 +8,0 @@ export interface SessionReplayOptions { |
@@ -53,6 +53,6 @@ import { __assign, __awaiter, __generator } from "tslib"; | ||
SessionReplayPlugin.prototype.setup = function (config, client) { | ||
var _a; | ||
var _a, _b, _c, _d; | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
return __generator(this, function (_e) { | ||
switch (_e.label) { | ||
case 0: | ||
@@ -93,2 +93,5 @@ if (!client) { | ||
blockSelector: (_a = this.options.privacyConfig) === null || _a === void 0 ? void 0 : _a.blockSelector, | ||
maskSelector: (_b = this.options.privacyConfig) === null || _b === void 0 ? void 0 : _b.maskSelector, | ||
unmaskSelector: (_c = this.options.privacyConfig) === null || _c === void 0 ? void 0 : _c.unmaskSelector, | ||
defaultMaskLevel: (_d = this.options.privacyConfig) === null || _d === void 0 ? void 0 : _d.defaultMaskLevel, | ||
}, | ||
@@ -99,3 +102,3 @@ debugMode: this.options.debugMode, | ||
case 1: | ||
_b.sent(); | ||
_e.sent(); | ||
// add enrichment plugin to add session replay properties to events | ||
@@ -105,3 +108,3 @@ return [4 /*yield*/, client.add(new SessionReplayEnrichmentPlugin()).promise]; | ||
// add enrichment plugin to add session replay properties to events | ||
_b.sent(); | ||
_e.sent(); | ||
return [2 /*return*/]; | ||
@@ -108,0 +111,0 @@ } |
@@ -0,3 +1,7 @@ | ||
export type MaskLevel = 'light' | 'medium' | 'conservative'; | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
defaultMaskLevel?: MaskLevel; | ||
maskSelector?: string[]; | ||
unmaskSelector?: string[]; | ||
} | ||
@@ -4,0 +8,0 @@ export interface SessionReplayOptions { |
@@ -0,3 +1,7 @@ | ||
export type MaskLevel = 'light' | 'medium' | 'conservative'; | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
defaultMaskLevel?: MaskLevel; | ||
maskSelector?: string[]; | ||
unmaskSelector?: string[]; | ||
} | ||
@@ -4,0 +8,0 @@ export interface SessionReplayOptions { |
{ | ||
"name": "@amplitude/plugin-session-replay-browser", | ||
"version": "1.3.2", | ||
"version": "1.4.0", | ||
"description": "", | ||
@@ -43,3 +43,3 @@ "author": "Amplitude Inc", | ||
"@amplitude/analytics-types": ">=1 <3", | ||
"@amplitude/session-replay-browser": "^1.5.2", | ||
"@amplitude/session-replay-browser": "^1.6.0", | ||
"idb-keyval": "^6.2.1", | ||
@@ -60,3 +60,3 @@ "tslib": "^2.4.1" | ||
], | ||
"gitHead": "46e26dfab75a0a16cb73cb1650058d5e7c56ddd1" | ||
"gitHead": "aa04246bb16d7c6eb2fb46d246790d56c35a02d0" | ||
} |
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
385542
1410