@datadog/browser-rum
Advanced tools
Comparing version 4.26.0 to 4.28.0
@@ -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 @@ }; |
@@ -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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
1496778
24976
1
+ Added@datadog/browser-core@4.28.0(transitive)
+ Added@datadog/browser-rum-core@4.28.0(transitive)
- Removed@datadog/browser-core@4.26.0(transitive)
- Removed@datadog/browser-logs@4.26.0(transitive)
- Removed@datadog/browser-rum-core@4.26.0(transitive)
Updated@datadog/browser-core@4.28.0