New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sentry-internal/browser-utils

Package Overview
Dependencies
Maintainers
9
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/browser-utils - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1-alpha.0

15

build/cjs/metrics/browserMetrics.js

@@ -379,9 +379,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });

utils.startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, {
name: entry.name ,
op: entry.entryType ,
attributes,
});
return measureStartTimestamp;
// Measurements from third parties can be off, which would create invalid spans, dropping transactions in the process.
if (measureStartTimestamp <= measureEndTimestamp) {
utils.startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, {
name: entry.name ,
op: entry.entryType ,
attributes,
});
}
}

@@ -388,0 +389,0 @@

@@ -377,9 +377,10 @@ import { browserPerformanceTimeOrigin, getActiveSpan, spanToJSON, setMeasurement, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, parseUrl, htmlTreeAsString, getComponentName } from '@sentry/core';

startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, {
name: entry.name ,
op: entry.entryType ,
attributes,
});
return measureStartTimestamp;
// Measurements from third parties can be off, which would create invalid spans, dropping transactions in the process.
if (measureStartTimestamp <= measureEndTimestamp) {
startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, {
name: entry.name ,
op: entry.entryType ,
attributes,
});
}
}

@@ -386,0 +387,0 @@

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

{"type":"module","version":"9.1.0","sideEffects":false}
{"type":"module","version":"9.1.1-alpha.0","sideEffects":false}

@@ -38,3 +38,3 @@ import { Span } from '@sentry/core';

*/
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): number;
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): void;
/**

@@ -41,0 +41,0 @@ * Create resource-related spans.

@@ -38,3 +38,3 @@ import type { Span } from '@sentry/core';

*/
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): number;
export declare function _addMeasureSpans(span: Span, entry: PerformanceEntry, startTime: number, duration: number, timeOrigin: number): void;
/**

@@ -41,0 +41,0 @@ * Create resource-related spans.

{
"name": "@sentry-internal/browser-utils",
"version": "9.1.0",
"version": "9.1.1-alpha.0",
"description": "Browser Utilities for all Sentry JavaScript SDKs",

@@ -42,3 +42,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "9.1.0"
"@sentry/core": "9.1.1-alpha.0"
},

@@ -45,0 +45,0 @@ "scripts": {

@@ -16,3 +16,2 @@ <p align="center">

- [Official SDK Docs](https://docs.sentry.io/quickstart/)
- [TypeDoc](http://getsentry.github.io/sentry-javascript/)

@@ -19,0 +18,0 @@ ## General

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