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

@splitsoftware/browser-suite

Package Overview
Dependencies
Maintainers
8
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitsoftware/browser-suite - npm Package Compare versions

Comparing version 1.0.1-rc.4 to 1.0.1-rc.5

2

CHANGES.txt
1.1.0 (December 22, 2023)
- Added a new `rumAgent` method to the Suite instance, which returns the Browser RUM Agent.
- Updated @splitsoftware/splitio-browserjs package to version 0.13.0, which includes support for flag sets and other improvements.
- Update @splitsoftware/browser-rum-agent package to version 0.4.0, which includes support for flag sets and other improvements.
- Localhost ...
1.0.0 (October 31, 2023)
- Initial public release with @splitsoftware/splitio-browserjs version 0.11.0 and @splitsoftware/browser-rum-agent version 0.3.2.

38

cjs/browserSuite.js

@@ -24,20 +24,2 @@ "use strict";

var settings = sdk.settings;
// Do not setup RUM Agent if not in standalone mode
if (settings.mode !== constants_1.STANDALONE_MODE)
return sdk;
// Setup RUM Agent
if (registerWebVitals) {
browser_rum_agent_1.SplitRumAgent.register((0, browser_rum_agent_1.webVitals)());
registerWebVitals = false;
}
var agentConfig = browser_rum_agent_1.SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
browser_rum_agent_1.SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
browser_rum_agent_1.SplitRumAgent.setup(settings.core.authorizationKey, (0, objectAssign_1.objectAssign)({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
var clients = new sets_1._Set();

@@ -51,3 +33,3 @@ // Override UserConsent.setStatus to update RUM Agent consent

// Create Suite instance extending SDK
return (0, objectAssign_1.objectAssign)({}, sdk, {
var suite = (0, objectAssign_1.objectAssign)({}, sdk, {
client: function () {

@@ -79,3 +61,21 @@ var client = sdk.client.apply(sdk, arguments);

});
// Setup the RUM Agent only in standalone mode
if (settings.mode === constants_1.STANDALONE_MODE) {
if (registerWebVitals) {
browser_rum_agent_1.SplitRumAgent.register((0, browser_rum_agent_1.webVitals)());
registerWebVitals = false;
}
var agentConfig = browser_rum_agent_1.SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
browser_rum_agent_1.SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
browser_rum_agent_1.SplitRumAgent.setup(settings.core.authorizationKey, (0, objectAssign_1.objectAssign)({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
}
return suite;
}
exports.SplitSuite = SplitSuite;

@@ -21,20 +21,2 @@ import { objectAssign } from '@splitsoftware/splitio-commons/esm/utils/lang/objectAssign';

var settings = sdk.settings;
// Do not setup RUM Agent if not in standalone mode
if (settings.mode !== STANDALONE_MODE)
return sdk;
// Setup RUM Agent
if (registerWebVitals) {
SplitRumAgent.register(webVitals());
registerWebVitals = false;
}
var agentConfig = SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
SplitRumAgent.setup(settings.core.authorizationKey, objectAssign({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
var clients = new _Set();

@@ -48,3 +30,3 @@ // Override UserConsent.setStatus to update RUM Agent consent

// Create Suite instance extending SDK
return objectAssign({}, sdk, {
var suite = objectAssign({}, sdk, {
client: function () {

@@ -76,2 +58,20 @@ var client = sdk.client.apply(sdk, arguments);

});
// Setup the RUM Agent only in standalone mode
if (settings.mode === STANDALONE_MODE) {
if (registerWebVitals) {
SplitRumAgent.register(webVitals());
registerWebVitals = false;
}
var agentConfig = SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
SplitRumAgent.setup(settings.core.authorizationKey, objectAssign({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
}
return suite;
}
{
"name": "@splitsoftware/browser-suite",
"version": "1.0.1-rc.4",
"version": "1.0.1-rc.5",
"description": "Split Suite for JavaScript on Browser",

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

@@ -28,21 +28,2 @@ import { objectAssign } from '@splitsoftware/splitio-commons/src/utils/lang/objectAssign';

// Do not setup RUM Agent if not in standalone mode
if (settings.mode !== STANDALONE_MODE) return sdk;
// Setup RUM Agent
if (registerWebVitals) {
SplitRumAgent.register(webVitals());
registerWebVitals = false;
}
const agentConfig = SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
SplitRumAgent.setup(settings.core.authorizationKey, objectAssign({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
const clients = new _Set();

@@ -58,3 +39,3 @@

// Create Suite instance extending SDK
return objectAssign({}, sdk, {
const suite = objectAssign({}, sdk, {
client() {

@@ -93,2 +74,22 @@ const client = sdk.client.apply(sdk, arguments);

});
// Setup the RUM Agent only in standalone mode
if (settings.mode === STANDALONE_MODE) {
if (registerWebVitals) {
SplitRumAgent.register(webVitals());
registerWebVitals = false;
}
const agentConfig = SplitRumAgent.__getConfig();
if (agentConfig.a && agentConfig.a !== settings.core.authorizationKey) {
settings.log.warn('RUM Agent already setup. The new Suite instance will reset the RUM Agent configuration.');
SplitRumAgent.removeIdentities(); // reset identities for new SDK key
}
agentConfig.log = settings.log;
SplitRumAgent.setup(settings.core.authorizationKey, objectAssign({
url: settings.urls.events,
userConsent: settings.userConsent
}, settings.rumAgent));
}
return suite;
}
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