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
0
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.14.0-srtargeting.1 to 1.14.0-srtargeting.2

1

lib/cjs/config/types.d.ts

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

enabled: boolean;
batch: boolean;
}

@@ -12,0 +13,0 @@ export type TargetingConfig = TargetingFlag;

@@ -27,3 +27,9 @@ import { PrivacyConfig, SessionReplayJoinedConfig } from './config/types';

[key: string]: any;
} | undefined;
} | undefined; /**
* Checks if the given element set to be masked by rrweb
*
* Priority is:
* 1. [In code] Element/class based masking/unmasking <> [Config based] Selector based masking/unmasking
* 2. Use app defaults
*/
flushIntervalMillis: number;

@@ -30,0 +36,0 @@ flushQueueSize: number;

@@ -22,2 +22,3 @@ import { mouseInteractionCallBack } from '@amplitude/rrweb-types';

};
export declare const clickNonBatcher: PayloadBatcher;
export declare const clickBatcher: PayloadBatcher;

@@ -24,0 +25,0 @@ export declare const clickHook: (options: Options) => mouseInteractionCallBack;

Object.defineProperty(exports, "__esModule", { value: true });
exports.clickHook = exports.clickBatcher = void 0;
exports.clickHook = exports.clickBatcher = exports.clickNonBatcher = void 0;
var tslib_1 = require("tslib");

@@ -9,2 +9,15 @@ var rrweb_types_1 = require("@amplitude/rrweb-types");

var HOUR_IN_MILLISECONDS = 3600000;
var clickNonBatcher = function (_a) {
var version = _a.version, events = _a.events;
var clickEvents = [];
events.forEach(function (evt) {
var record = JSON.parse(evt);
record.count = 1;
if (record.type === 'click') {
clickEvents.push(record);
}
});
return { version: version, events: clickEvents };
};
exports.clickNonBatcher = clickNonBatcher;
var clickBatcher = function (_a) {

@@ -11,0 +24,0 @@ var version = _a.version, events = _a.events;

5

lib/cjs/session-replay.js

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

return tslib_1.__awaiter(this, void 0, void 0, function () {
var _d, _e, scrollWatcher, managers, rrwebEventManager, interactionEventManager;
var _d, _e, scrollWatcher, managers, rrwebEventManager, payloadBatcher, interactionEventManager;
return tslib_1.__generator(this, function (_f) {

@@ -205,2 +205,3 @@ switch (_f.label) {

if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 5];
payloadBatcher = this.config.interactionConfig.batch ? click_1.clickBatcher : click_1.clickNonBatcher;
return [4 /*yield*/, (0, events_manager_1.createEventsManager)({

@@ -212,3 +213,3 @@ config: this.config,

maxInterval: constants_1.INTERACTION_MAX_INTERVAL,
payloadBatcher: click_1.clickBatcher,
payloadBatcher: payloadBatcher,
})];

@@ -215,0 +216,0 @@ case 4:

@@ -1,2 +0,2 @@

export declare const VERSION = "1.14.0-srtargeting.1";
export declare const VERSION = "1.14.0-srtargeting.2";
//# sourceMappingURL=version.d.ts.map
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
// Autogenerated by `yarn version-file`. DO NOT EDIT
exports.VERSION = '1.14.0-srtargeting.1';
exports.VERSION = '1.14.0-srtargeting.2';
//# sourceMappingURL=version.js.map

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

enabled: boolean;
batch: boolean;
}

@@ -12,0 +13,0 @@ export type TargetingConfig = TargetingFlag;

@@ -27,3 +27,9 @@ import { PrivacyConfig, SessionReplayJoinedConfig } from './config/types';

[key: string]: any;
} | undefined;
} | undefined; /**
* Checks if the given element set to be masked by rrweb
*
* Priority is:
* 1. [In code] Element/class based masking/unmasking <> [Config based] Selector based masking/unmasking
* 2. Use app defaults
*/
flushIntervalMillis: number;

@@ -30,0 +36,0 @@ flushQueueSize: number;

@@ -22,2 +22,3 @@ import { mouseInteractionCallBack } from '@amplitude/rrweb-types';

};
export declare const clickNonBatcher: PayloadBatcher;
export declare const clickBatcher: PayloadBatcher;

@@ -24,0 +25,0 @@ export declare const clickHook: (options: Options) => mouseInteractionCallBack;

@@ -7,2 +7,14 @@ import { __assign } from "tslib";

var HOUR_IN_MILLISECONDS = 3600000;
export var clickNonBatcher = function (_a) {
var version = _a.version, events = _a.events;
var clickEvents = [];
events.forEach(function (evt) {
var record = JSON.parse(evt);
record.count = 1;
if (record.type === 'click') {
clickEvents.push(record);
}
});
return { version: version, events: clickEvents };
};
export var clickBatcher = function (_a) {

@@ -9,0 +21,0 @@ var version = _a.version, events = _a.events;

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

import { generateHashCode, getDebugConfig, getStorageSize, isSessionInSample, maskFn } from './helpers';
import { clickBatcher, clickHook } from './hooks/click';
import { clickBatcher, clickHook, clickNonBatcher } from './hooks/click';
import { ScrollWatcher } from './hooks/scroll';

@@ -169,3 +169,3 @@ import { SessionIdentifiers } from './identifiers';

return __awaiter(this, void 0, void 0, function () {
var _d, _e, scrollWatcher, managers, rrwebEventManager, interactionEventManager;
var _d, _e, scrollWatcher, managers, rrwebEventManager, payloadBatcher, interactionEventManager;
return __generator(this, function (_f) {

@@ -204,2 +204,3 @@ switch (_f.label) {

if (!((_b = this.config.interactionConfig) === null || _b === void 0 ? void 0 : _b.enabled)) return [3 /*break*/, 5];
payloadBatcher = this.config.interactionConfig.batch ? clickBatcher : clickNonBatcher;
return [4 /*yield*/, createEventsManager({

@@ -211,3 +212,3 @@ config: this.config,

maxInterval: INTERACTION_MAX_INTERVAL,
payloadBatcher: clickBatcher,
payloadBatcher: payloadBatcher,
})];

@@ -214,0 +215,0 @@ case 4:

@@ -1,2 +0,2 @@

export declare const VERSION = "1.14.0-srtargeting.1";
export declare const VERSION = "1.14.0-srtargeting.2";
//# sourceMappingURL=version.d.ts.map
// Autogenerated by `yarn version-file`. DO NOT EDIT
export var VERSION = '1.14.0-srtargeting.1';
export var VERSION = '1.14.0-srtargeting.2';
//# sourceMappingURL=version.js.map

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

enabled: boolean;
batch: boolean;
}

@@ -12,0 +13,0 @@ export type TargetingConfig = TargetingFlag;

@@ -27,3 +27,9 @@ import { PrivacyConfig, SessionReplayJoinedConfig } from './config/types';

[key: string]: any;
} | undefined;
} | undefined; /**
* Checks if the given element set to be masked by rrweb
*
* Priority is:
* 1. [In code] Element/class based masking/unmasking <> [Config based] Selector based masking/unmasking
* 2. Use app defaults
*/
flushIntervalMillis: number;

@@ -30,0 +36,0 @@ flushQueueSize: number;

@@ -22,2 +22,3 @@ import { mouseInteractionCallBack } from '@amplitude/rrweb-types';

};
export declare const clickNonBatcher: PayloadBatcher;
export declare const clickBatcher: PayloadBatcher;

@@ -24,0 +25,0 @@ export declare const clickHook: (options: Options) => mouseInteractionCallBack;

@@ -1,2 +0,2 @@

export declare const VERSION = "1.14.0-srtargeting.1";
export declare const VERSION = "1.14.0-srtargeting.2";
//# sourceMappingURL=version.d.ts.map
{
"name": "@amplitude/session-replay-browser",
"version": "1.14.0-srtargeting.1",
"version": "1.14.0-srtargeting.2",
"description": "",

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

"@amplitude/analytics-core": ">=1 <3",
"@amplitude/analytics-remote-config": "^0.3.5",
"@amplitude/analytics-remote-config": "^0.4.0",
"@amplitude/analytics-types": ">=1 <3",

@@ -68,3 +68,3 @@ "@amplitude/rrweb": "2.0.0-alpha.20",

],
"gitHead": "7f48cc2272cc0b1e652957d52f78127aa1b5eb00"
"gitHead": "6fa590f6c4e09e8cc0748aa0b04ac74345e2175c"
}

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

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