Socket
Socket
Sign inDemoInstall

@sentry-internal/tracing

Package Overview
Dependencies
Maintainers
10
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/tracing - npm Package Compare versions

Comparing version 7.56.0 to 7.57.0-beta.0

2

cjs/browser/metrics/index.js

@@ -22,2 +22,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

function getBrowserPerformanceAPI() {
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are
return types.WINDOW && types.WINDOW.addEventListener && types.WINDOW.performance;

@@ -40,2 +41,3 @@ }

if (performance && utils.browserPerformanceTimeOrigin) {
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are
if (performance.mark) {

@@ -42,0 +44,0 @@ types.WINDOW.performance.mark('sentry-tracing-init');

@@ -35,2 +35,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

if (key !== 'navigationStart' && key !== 'toJSON') {
// eslint-disable-next-line deprecation/deprecation
navigationEntry[key] = Math.max((timing[key ] ) - timing.navigationStart, 0);

@@ -37,0 +38,0 @@ }

2

cjs/node/integrations/prisma.js

@@ -8,3 +8,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

function isValidPrismaClient(possibleClient) {
return possibleClient && !!(possibleClient )['$use'];
return !!possibleClient && !!(possibleClient )['$use'];
}

@@ -11,0 +11,0 @@

@@ -20,2 +20,3 @@ import { getActiveTransaction } from '@sentry/core';

function getBrowserPerformanceAPI() {
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are
return WINDOW && WINDOW.addEventListener && WINDOW.performance;

@@ -38,2 +39,3 @@ }

if (performance && browserPerformanceTimeOrigin) {
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are
if (performance.mark) {

@@ -40,0 +42,0 @@ WINDOW.performance.mark('sentry-tracing-init');

@@ -33,2 +33,3 @@ import { WINDOW } from '../../types.js';

if (key !== 'navigationStart' && key !== 'toJSON') {
// eslint-disable-next-line deprecation/deprecation
navigationEntry[key] = Math.max((timing[key ] ) - timing.navigationStart, 0);

@@ -35,0 +36,0 @@ }

@@ -6,3 +6,3 @@ import { trace } from '@sentry/core';

function isValidPrismaClient(possibleClient) {
return possibleClient && !!(possibleClient )['$use'];
return !!possibleClient && !!(possibleClient )['$use'];
}

@@ -9,0 +9,0 @@

{
"name": "@sentry-internal/tracing",
"version": "7.56.0",
"version": "7.57.0-beta.0",
"description": "Sentry Internal Tracing Package",

@@ -15,2 +15,9 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"types": "types/index.d.ts",
"typesVersions": {
"<4.9": {
"build/types/index.d.ts": [
"types-ts3.8/index.d.ts"
]
}
},
"publishConfig": {

@@ -20,6 +27,6 @@ "access": "public"

"dependencies": {
"@sentry/core": "7.56.0",
"@sentry/types": "7.56.0",
"@sentry/utils": "7.56.0",
"tslib": "^1.9.3"
"@sentry/core": "7.57.0-beta.0",
"@sentry/types": "7.57.0-beta.0",
"@sentry/utils": "7.57.0-beta.0",
"tslib": "^2.4.1 || ^1.9.3"
},

@@ -26,0 +33,0 @@ "devDependencies": {

@@ -69,3 +69,3 @@ import type { DynamicSamplingContext, Span } from '@sentry/types';

}
declare type PolymorphicRequestHeaders = Record<string, string | undefined> | Array<[string, string]> | {
type PolymorphicRequestHeaders = Record<string, string | undefined> | Array<[string, string]> | {
[key: string]: any;

@@ -72,0 +72,0 @@ append: (key: string, value: string) => void;

import type { Metric, ReportCallback } from '../types';
export declare const bindReporter: (callback: ReportCallback, metric: Metric, reportAllChanges?: boolean | undefined) => (forceReport?: boolean | undefined) => void;
export declare const bindReporter: (callback: ReportCallback, metric: Metric, reportAllChanges?: boolean) => (forceReport?: boolean) => void;
//# sourceMappingURL=bindReporter.d.ts.map

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

export declare const getNavigationEntry: () => PerformanceNavigationTiming | Pick<PerformanceNavigationTiming, "duration" | "entryType" | "name" | "startTime" | "type" | "domComplete" | "domContentLoadedEventEnd" | "domContentLoadedEventStart" | "domInteractive" | "loadEventEnd" | "loadEventStart" | "unloadEventEnd" | "unloadEventStart" | "activationStart" | "connectEnd" | "connectStart" | "domainLookupEnd" | "domainLookupStart" | "fetchStart" | "redirectEnd" | "redirectStart" | "requestStart" | "responseEnd" | "responseStart" | "secureConnectionStart" | "workerStart"> | undefined;
import type { NavigationTimingPolyfillEntry } from '../types';
export declare const getNavigationEntry: () => PerformanceNavigationTiming | NavigationTimingPolyfillEntry | undefined;
//# sourceMappingURL=getNavigationEntry.d.ts.map

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

declare let firstHiddenTime: number;
export declare const getVisibilityWatcher: () => {
readonly firstHiddenTime: number;
};
export {};
//# sourceMappingURL=getVisibilityWatcher.d.ts.map
import type { Metric } from '../types';
export declare const initMetric: (name: "CLS" | "FCP" | "FID" | "INP" | "LCP" | "TTFB", value?: number | undefined) => Metric;
export declare const initMetric: (name: Metric['name'], value?: number) => Metric;
//# sourceMappingURL=initMetric.d.ts.map

@@ -23,4 +23,4 @@ import type { FirstInputPolyfillEntry, NavigationTimingPolyfillEntry, PerformancePaintTiming } from '../types';

*/
export declare const observe: <K extends "navigation" | "resource" | "paint" | "event" | "layout-shift" | "largest-contentful-paint" | "first-input" | "longtask">(type: K, callback: (entries: PerformanceEntryMap[K]) => void, opts?: PerformanceObserverInit | undefined) => PerformanceObserver | undefined;
export declare const observe: <K extends keyof PerformanceEntryMap>(type: K, callback: (entries: PerformanceEntryMap[K]) => void, opts?: PerformanceObserverInit) => PerformanceObserver | undefined;
export {};
//# sourceMappingURL=observe.d.ts.map
export interface OnHiddenCallback {
(event: Event): void;
}
export declare const onHidden: (cb: OnHiddenCallback, once?: boolean | undefined) => void;
export declare const onHidden: (cb: OnHiddenCallback, once?: boolean) => void;
//# sourceMappingURL=onHidden.d.ts.map

@@ -18,3 +18,3 @@ import type { FirstInputPolyfillCallback } from './types/polyfills';

}
export declare type PerformancePaintTiming = PerformanceEntry;
export type PerformancePaintTiming = PerformanceEntry;
export interface PerformanceEventTiming extends PerformanceEntry {

@@ -35,6 +35,6 @@ processingStart: DOMHighResTimeStamp;

}
declare type ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'mixed' | 'none' | 'other' | 'unknown' | 'wifi' | 'wimax';
declare type EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g';
declare type Megabit = number;
declare type Millisecond = number;
type ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'mixed' | 'none' | 'other' | 'unknown' | 'wifi' | 'wimax';
type EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g';
type Megabit = number;
type Millisecond = number;
interface NetworkInformation extends EventTarget {

@@ -52,3 +52,3 @@ readonly type?: ConnectionType;

}
export declare type NavigationTimingPolyfillEntry = Omit<PerformanceNavigationTiming, 'initiatorType' | 'nextHopProtocol' | 'redirectCount' | 'transferSize' | 'encodedBodySize' | 'decodedBodySize' | 'toJSON'>;
export type NavigationTimingPolyfillEntry = Omit<PerformanceNavigationTiming, 'initiatorType' | 'nextHopProtocol' | 'redirectCount' | 'transferSize' | 'encodedBodySize' | 'decodedBodySize' | 'toJSON'>;
declare global {

@@ -55,0 +55,0 @@ interface Document {

@@ -81,4 +81,4 @@ import type { FirstInputPolyfillEntry, NavigationTimingPolyfillEntry } from './polyfills';

*/
export declare type LoadState = 'loading' | 'dom-interactive' | 'dom-content-loaded' | 'complete';
export declare type StopListening = () => void;
export type LoadState = 'loading' | 'dom-interactive' | 'dom-content-loaded' | 'complete';
export type StopListening = () => void;
//# sourceMappingURL=base.d.ts.map

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

export declare type FirstInputPolyfillEntry = Omit<PerformanceEventTiming, 'processingEnd'>;
export type FirstInputPolyfillEntry = Omit<PerformanceEventTiming, 'processingEnd'>;
export interface FirstInputPolyfillCallback {
(entry: FirstInputPolyfillEntry): void;
}
export declare type NavigationTimingPolyfillEntry = Omit<PerformanceNavigationTiming, 'initiatorType' | 'nextHopProtocol' | 'redirectCount' | 'transferSize' | 'encodedBodySize' | 'decodedBodySize' | 'type'> & {
export type NavigationTimingPolyfillEntry = Omit<PerformanceNavigationTiming, 'initiatorType' | 'nextHopProtocol' | 'redirectCount' | 'transferSize' | 'encodedBodySize' | 'decodedBodySize' | 'type'> & {
type: PerformanceNavigationTiming['type'];
};
//# sourceMappingURL=polyfills.d.ts.map

@@ -7,9 +7,9 @@ import type { Hub } from '@sentry/core';

}
declare type ApolloResolverGroup = {
type ApolloResolverGroup = {
[key: string]: () => unknown;
};
declare type ApolloModelResolvers = {
type ApolloModelResolvers = {
[key: string]: ApolloResolverGroup;
};
declare type GraphQLModule = {
type GraphQLModule = {
GraphQLFactory: {

@@ -21,3 +21,3 @@ prototype: {

};
declare type ApolloModule = {
type ApolloModule = {
ApolloServerBase: {

@@ -24,0 +24,0 @@ prototype: {

import type { Hub, Integration } from '@sentry/types';
declare type Method = 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head' | 'checkout' | 'copy' | 'lock' | 'merge' | 'mkactivity' | 'mkcol' | 'move' | 'm-search' | 'notify' | 'purge' | 'report' | 'search' | 'subscribe' | 'trace' | 'unlock' | 'unsubscribe' | 'use';
declare type Router = {
type Method = 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head' | 'checkout' | 'copy' | 'lock' | 'merge' | 'mkactivity' | 'mkcol' | 'move' | 'm-search' | 'notify' | 'purge' | 'report' | 'search' | 'subscribe' | 'trace' | 'unlock' | 'unsubscribe' | 'use';
type Router = {
[method in Method]: (...args: any) => any;

@@ -5,0 +5,0 @@ };

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';
declare type GraphQLModule = {
type GraphQLModule = {
[method: string]: (...args: unknown[]) => unknown;

@@ -6,0 +6,0 @@ };

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';
declare type Operation = (typeof OPERATIONS)[number];
type Operation = (typeof OPERATIONS)[number];
declare const OPERATIONS: readonly ["aggregate", "bulkWrite", "countDocuments", "createIndex", "createIndexes", "deleteMany", "deleteOne", "distinct", "drop", "dropIndex", "dropIndexes", "estimatedDocumentCount", "find", "findOne", "findOneAndDelete", "findOneAndReplace", "findOneAndUpdate", "indexes", "indexExists", "indexInformation", "initializeOrderedBulkOp", "insertMany", "insertOne", "isCapped", "mapReduce", "options", "parallelCollectionScan", "rename", "replaceOne", "stats", "updateMany", "updateOne"];

@@ -19,3 +19,3 @@ interface MongoCollection {

}
declare type MongoModule = {
type MongoModule = {
Collection: MongoCollection;

@@ -22,0 +22,0 @@ };

@@ -12,3 +12,3 @@ import type { Hub } from '@sentry/core';

}
declare type PGModule = {
type PGModule = {
Client: PgClient;

@@ -15,0 +15,0 @@ native: {

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

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

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

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

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

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

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

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

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