Socket
Socket
Sign inDemoInstall

@splitsoftware/browser-rum-agent

Package Overview
Dependencies
Maintainers
8
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitsoftware/browser-rum-agent - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1-rc.0

3

CHANGES.txt

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

0.7.1 (May 16, 2024)
- Bugfixing - Fixed an issue in the `SplitRumAgent.setup` method where the `prefix` option was been overwritten by undefined when not provided in the config object param.
0.7.0 (May 16, 2024)

@@ -2,0 +5,0 @@ - Added '@splitsoftware/browser-rum-agent/slim' sub-package for ES Modules and CommonJS builds, to support a smaller bundle size by excluding the event collectors that are registered by default in the main package, like `errors` and `navigationTiming`. This package is recommended for users who want to manually register only the event collectors they need.

2

cjs/slim/config.js

@@ -55,3 +55,3 @@ "use strict";

_config.log = log_2;
if (!prefix || (0, validateEvent_1.validateEventTypeId)(prefix, _config.log, 'prefix'))
if ((0, isString_1.isString)(prefix) && (prefix === '' || (0, validateEvent_1.validateEventTypeId)(prefix, _config.log, 'prefix')))
_config.prefix = prefix;

@@ -58,0 +58,0 @@ if ((0, isString_1.isString)(url))

@@ -38,2 +38,2 @@ "use strict";

exports.userAgent = getUserAgent();
exports.languageVersion = 'jsrum-' + '0.7.0';
exports.languageVersion = 'jsrum-' + '0.7.1-rc.0';

@@ -52,3 +52,3 @@ import { setSchedule, flush, track, queue } from '../utils/queue';

_config.log = log_1;
if (!prefix || validateEventTypeId(prefix, _config.log, 'prefix'))
if (isString(prefix) && (prefix === '' || validateEventTypeId(prefix, _config.log, 'prefix')))
_config.prefix = prefix;

@@ -55,0 +55,0 @@ if (isString(url))

@@ -31,2 +31,2 @@ /* eslint-disable compat/compat */

export var userAgent = getUserAgent();
export var languageVersion = 'jsrum-' + '0.7.0';
export var languageVersion = 'jsrum-' + '0.7.1-rc.0';
{
"name": "@splitsoftware/browser-rum-agent",
"version": "0.7.0",
"version": "0.7.1-rc.0",
"description": "Split Software RUM Agent for Browsers.",

@@ -5,0 +5,0 @@ "main": "cjs/index.js",

@@ -73,3 +73,3 @@ /* eslint-disable no-use-before-define */

* For example, if you set the prefix to 'my-app', the event type 'error' will be sent as 'my-app.error'.
* If you set the prefix to a falsy value, like an empty string, the event type 'error' will be sent as 'error'.
* If you set the prefix to an empty string '', the event type 'error' will be sent as 'error', without prefix.
*

@@ -76,0 +76,0 @@ * @defaultValue `'split.rum'`

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