Socket
Socket
Sign inDemoInstall

@datadog/browser-rum

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datadog/browser-rum - npm Package Compare versions

Comparing version 4.26.0 to 4.28.0

2

cjs/domain/segmentCollection/segment.js

@@ -77,2 +77,3 @@ "use strict";

worker.addEventListener('message', listener);
(0, browser_core_1.sendToExtension)('record', { record: initialRecord, segment: this.metadata });
this.worker.postMessage({ data: "{\"records\":[".concat(JSON.stringify(initialRecord)), id: this.id, action: 'write' });

@@ -87,2 +88,3 @@ }

(_a = this.metadata).has_full_snapshot || (_a.has_full_snapshot = record.type === types_1.RecordType.FullSnapshot);
(0, browser_core_1.sendToExtension)('record', { record: record, segment: this.metadata });
this.worker.postMessage({ data: ",".concat(JSON.stringify(record)), id: this.id, action: 'write' });

@@ -89,0 +91,0 @@ };

4

esm/domain/segmentCollection/segment.js

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

import { addTelemetryDebug, assign, monitor } from '@datadog/browser-core';
import { addTelemetryDebug, assign, monitor, sendToExtension } from '@datadog/browser-core';
import { RecordType } from '../../types';

@@ -51,2 +51,3 @@ import * as replayStats from '../replayStats';

worker.addEventListener('message', listener);
sendToExtension('record', { record: initialRecord, segment: this.metadata });
this.worker.postMessage({ data: "{\"records\":[".concat(JSON.stringify(initialRecord)), id: this.id, action: 'write' });

@@ -61,2 +62,3 @@ }

(_a = this.metadata).has_full_snapshot || (_a.has_full_snapshot = record.type === RecordType.FullSnapshot);
sendToExtension('record', { record: record, segment: this.metadata });
this.worker.postMessage({ data: ",".concat(JSON.stringify(record)), id: this.id, action: 'write' });

@@ -63,0 +65,0 @@ };

{
"name": "@datadog/browser-rum",
"version": "4.26.0",
"version": "4.28.0",
"license": "Apache-2.0",

@@ -15,7 +15,7 @@ "main": "cjs/entries/main.js",

"dependencies": {
"@datadog/browser-core": "4.26.0",
"@datadog/browser-rum-core": "4.26.0"
"@datadog/browser-core": "4.28.0",
"@datadog/browser-rum-core": "4.28.0"
},
"peerDependencies": {
"@datadog/browser-logs": "4.26.0"
"@datadog/browser-logs": "4.27.1"
},

@@ -36,3 +36,3 @@ "peerDependenciesMeta": {

},
"gitHead": "d00b17d0484fee1a1e880987aa314a113dff0da6"
"gitHead": "4bfb514cfa622a2bd99de4a0665156eda47fcbb1"
}

@@ -52,3 +52,3 @@ import type { TimeStamp, HttpRequest } from '@datadog/browser-core'

findView() {
return { id: viewId, featureFlagEvaluations: {} }
return { id: viewId }
},

@@ -55,0 +55,0 @@ })

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

import { addTelemetryDebug, assign, monitor } from '@datadog/browser-core'
import { addTelemetryDebug, assign, monitor, sendToExtension } from '@datadog/browser-core'
import type { BrowserRecord, BrowserSegmentMetadata, CreationReason, SegmentContext } from '../../types'

@@ -71,2 +71,3 @@ import { RecordType } from '../../types'

worker.addEventListener('message', listener)
sendToExtension('record', { record: initialRecord, segment: this.metadata })
this.worker.postMessage({ data: `{"records":[${JSON.stringify(initialRecord)}`, id: this.id, action: 'write' })

@@ -81,2 +82,3 @@ }

this.metadata.has_full_snapshot ||= record.type === RecordType.FullSnapshot
sendToExtension('record', { record, segment: this.metadata })
this.worker.postMessage({ data: `,${JSON.stringify(record)}`, id: this.id, action: 'write' })

@@ -83,0 +85,0 @@ }

@@ -340,3 +340,3 @@ import type { HttpRequest, TimeStamp } from '@datadog/browser-core'

describe('computeSegmentContext', () => {
const DEFAULT_VIEW_CONTEXT: ViewContext = { id: '123', featureFlagEvaluations: {} }
const DEFAULT_VIEW_CONTEXT: ViewContext = { id: '123' }
const DEFAULT_SESSION = createRumSessionManagerMock().setId('456')

@@ -343,0 +343,0 @@

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

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