@amplitude/session-replay-browser
Advanced tools
Comparing version 0.5.0 to 0.6.0
import { FetchTransport } from '@amplitude/analytics-client-common'; | ||
import { Config, Logger } from '@amplitude/analytics-core'; | ||
import { LogLevel } from '@amplitude/analytics-types'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions } from './typings/session-replay'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions, SessionReplayPrivacyConfig } from './typings/session-replay'; | ||
export declare const getDefaultConfig: () => { | ||
@@ -17,4 +17,5 @@ flushMaxRetries: number; | ||
sessionReplayId?: string | undefined; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
constructor(apiKey: string, options: SessionReplayOptions); | ||
} | ||
//# sourceMappingURL=config.d.ts.map |
@@ -36,2 +36,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
if (options.privacyConfig) { | ||
_this.privacyConfig = options.privacyConfig; | ||
} | ||
return _this; | ||
@@ -38,0 +41,0 @@ } |
@@ -31,2 +31,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
getShouldRecord(): boolean; | ||
getBlockSelectors(): string | string[] | undefined; | ||
sendStoredEvents(storedReplaySessions: IDBStore): void; | ||
@@ -33,0 +34,0 @@ recordEvents(): void; |
@@ -220,2 +220,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}; | ||
SessionReplay.prototype.getBlockSelectors = function () { | ||
var _a, _b; | ||
return (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.privacyConfig) === null || _b === void 0 ? void 0 : _b.blockSelector; | ||
}; | ||
SessionReplay.prototype.sendStoredEvents = function (storedReplaySessions) { | ||
@@ -275,2 +279,4 @@ var _a; | ||
blockClass: constants_1.BLOCK_CLASS, | ||
// rrweb only exposes array type through its types, but arrays are also be supported. #class, ['#class', 'id'] | ||
blockSelector: this.getBlockSelectors(), | ||
maskInputFn: helpers_1.maskInputFn, | ||
@@ -277,0 +283,0 @@ recordCanvas: false, |
@@ -27,2 +27,5 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types'; | ||
} | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
} | ||
export interface SessionReplayConfig extends Config { | ||
@@ -37,2 +40,3 @@ apiKey: string; | ||
sessionReplayId?: string; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
} | ||
@@ -39,0 +43,0 @@ export type SessionReplayOptions = Omit<Partial<SessionReplayConfig>, 'apiKey'>; |
import { FetchTransport } from '@amplitude/analytics-client-common'; | ||
import { Config, Logger } from '@amplitude/analytics-core'; | ||
import { LogLevel } from '@amplitude/analytics-types'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions } from './typings/session-replay'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions, SessionReplayPrivacyConfig } from './typings/session-replay'; | ||
export declare const getDefaultConfig: () => { | ||
@@ -17,4 +17,5 @@ flushMaxRetries: number; | ||
sessionReplayId?: string | undefined; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
constructor(apiKey: string, options: SessionReplayOptions); | ||
} | ||
//# sourceMappingURL=config.d.ts.map |
@@ -33,2 +33,5 @@ import { __assign, __extends } from "tslib"; | ||
} | ||
if (options.privacyConfig) { | ||
_this.privacyConfig = options.privacyConfig; | ||
} | ||
return _this; | ||
@@ -35,0 +38,0 @@ } |
@@ -31,2 +31,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
getShouldRecord(): boolean; | ||
getBlockSelectors(): string | string[] | undefined; | ||
sendStoredEvents(storedReplaySessions: IDBStore): void; | ||
@@ -33,0 +34,0 @@ recordEvents(): void; |
@@ -218,2 +218,6 @@ import { __assign, __awaiter, __generator, __read } from "tslib"; | ||
}; | ||
SessionReplay.prototype.getBlockSelectors = function () { | ||
var _a, _b; | ||
return (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.privacyConfig) === null || _b === void 0 ? void 0 : _b.blockSelector; | ||
}; | ||
SessionReplay.prototype.sendStoredEvents = function (storedReplaySessions) { | ||
@@ -273,2 +277,4 @@ var _a; | ||
blockClass: BLOCK_CLASS, | ||
// rrweb only exposes array type through its types, but arrays are also be supported. #class, ['#class', 'id'] | ||
blockSelector: this.getBlockSelectors(), | ||
maskInputFn: maskInputFn, | ||
@@ -275,0 +281,0 @@ recordCanvas: false, |
@@ -27,2 +27,5 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types'; | ||
} | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
} | ||
export interface SessionReplayConfig extends Config { | ||
@@ -37,2 +40,3 @@ apiKey: string; | ||
sessionReplayId?: string; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
} | ||
@@ -39,0 +43,0 @@ export type SessionReplayOptions = Omit<Partial<SessionReplayConfig>, 'apiKey'>; |
import { FetchTransport } from '@amplitude/analytics-client-common'; | ||
import { Config, Logger } from '@amplitude/analytics-core'; | ||
import { LogLevel } from '@amplitude/analytics-types'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions } from './typings/session-replay'; | ||
import { SessionReplayConfig as ISessionReplayConfig, SessionReplayOptions, SessionReplayPrivacyConfig } from './typings/session-replay'; | ||
export declare const getDefaultConfig: () => { | ||
@@ -17,4 +17,5 @@ flushMaxRetries: number; | ||
sessionReplayId?: string | undefined; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
constructor(apiKey: string, options: SessionReplayOptions); | ||
} | ||
//# sourceMappingURL=config.d.ts.map |
@@ -31,2 +31,3 @@ import { Logger as ILogger } from '@amplitude/analytics-types'; | ||
getShouldRecord(): boolean; | ||
getBlockSelectors(): string | string[] | undefined; | ||
sendStoredEvents(storedReplaySessions: IDBStore): void; | ||
@@ -33,0 +34,0 @@ recordEvents(): void; |
@@ -27,2 +27,5 @@ import { AmplitudeReturn, Config, LogLevel, Logger } from '@amplitude/analytics-types'; | ||
} | ||
export interface SessionReplayPrivacyConfig { | ||
blockSelector?: string | string[]; | ||
} | ||
export interface SessionReplayConfig extends Config { | ||
@@ -37,2 +40,3 @@ apiKey: string; | ||
sessionReplayId?: string; | ||
privacyConfig?: SessionReplayPrivacyConfig; | ||
} | ||
@@ -39,0 +43,0 @@ export type SessionReplayOptions = Omit<Partial<SessionReplayConfig>, 'apiKey'>; |
{ | ||
"name": "@amplitude/session-replay-browser", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "", | ||
@@ -60,3 +60,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "16f7655ce30f10de781968208908c08e7e8ec21c" | ||
"gitHead": "e4c3c652af25579538bbbb5980b1515bbee2a580" | ||
} |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
493072
2772
9