Socket
Socket
Sign inDemoInstall

@sentry/types

Package Overview
Dependencies
Maintainers
11
Versions
463
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/types - npm Package Compare versions

Comparing version 7.81.1 to 7.82.0

types-ts3.8/webfetchapi.d.ts

2

package.json
{
"name": "@sentry/types",
"version": "7.81.1",
"version": "7.82.0",
"description": "Types for all Sentry JavaScript SDKs",

@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

@@ -8,2 +8,3 @@ import { Attachment } from './attachment';

import { Measurements } from './measurement';
import { Mechanism } from './mechanism';
import { Primitive } from './misc';

@@ -78,2 +79,3 @@ import { Request } from './request';

captureContext?: CaptureContext;
mechanism?: Partial<Mechanism>;
syntheticException?: Error | null;

@@ -80,0 +82,0 @@ originalException?: unknown;

@@ -43,7 +43,8 @@ export { Attachment } from './attachment';

export { User, UserFeedback } from './user';
export { WebFetchHeaders, WebFetchRequest } from './webfetchapi';
export { WrappedFunction } from './wrappedfunction';
export { Instrumenter } from './instrumenter';
export { HandlerDataFetch, HandlerDataXhr, SentryXhrData, SentryWrappedXMLHttpRequest } from './instrument';
export { HandlerDataFetch, HandlerDataXhr, HandlerDataDom, HandlerDataConsole, HandlerDataHistory, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, SentryXhrData, SentryWrappedXMLHttpRequest, } from './instrument';
export { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './browseroptions';
export { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
//# sourceMappingURL=index.d.ts.map

@@ -0,9 +1,15 @@

/// <reference types="react" />
import { WebFetchHeaders } from './webfetchapi';
type XHRSendInput = unknown;
export type ConsoleLevel = 'debug' | 'info' | 'warn' | 'error' | 'log' | 'assert' | 'trace';
export interface SentryWrappedXMLHttpRequest {
__sentry_xhr_v2__?: SentryXhrData;
__sentry_xhr_v3__?: SentryXhrData;
__sentry_own_request__?: boolean;
__sentry_xhr_span_id__?: string;
setRequestHeader?: (key: string, val: string) => void;
getResponseHeader?: (key: string) => string | null;
}
export interface SentryXhrData {
method?: string;
url?: string;
method: string;
url: string;
status_code?: number;

@@ -16,2 +22,5 @@ body?: XHRSendInput;

export interface HandlerDataXhr {
/**
* @deprecated This property will be removed in v8.
*/
args: [

@@ -41,13 +50,30 @@ string,

readonly url: string;
headers: {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
};
headers: WebFetchHeaders;
};
error?: unknown;
}
export interface HandlerDataDom {
event: Event | {
target: EventTarget;
};
name: string;
global?: boolean;
}
export interface HandlerDataConsole {
level: ConsoleLevel;
args: any[];
}
export interface HandlerDataHistory {
from: string | undefined;
to: string;
}
export interface HandlerDataError {
column?: number;
error?: Error;
line?: number;
msg: string | Event;
url?: string;
}
export type HandlerDataUnhandledRejection = unknown;
export {};
//# sourceMappingURL=instrument.d.ts.map

@@ -25,2 +25,11 @@ import { Client } from './client';

/**
* Set up an integration for the given client.
* Receives the client as argument.
*
* Whenever possible, prefer this over `setupOnce`, as that is only run for the first client,
* whereas `setup` runs for each client. Only truly global things (e.g. registering global handlers)
* should be done in `setupOnce`.
*/
setup?(client: Client): void;
/**
* An optional hook that allows to preprocess an event _before_ it is passed to all other event processors.

@@ -27,0 +36,0 @@ */

@@ -8,2 +8,3 @@ import type { Attachment } from './attachment';

import type { Measurements } from './measurement';
import type { Mechanism } from './mechanism';
import type { Primitive } from './misc';

@@ -78,2 +79,3 @@ import type { Request } from './request';

captureContext?: CaptureContext;
mechanism?: Partial<Mechanism>;
syntheticException?: Error | null;

@@ -80,0 +82,0 @@ originalException?: unknown;

@@ -43,7 +43,8 @@ export type { Attachment } from './attachment';

export type { User, UserFeedback } from './user';
export type { WebFetchHeaders, WebFetchRequest } from './webfetchapi';
export type { WrappedFunction } from './wrappedfunction';
export type { Instrumenter } from './instrumenter';
export type { HandlerDataFetch, HandlerDataXhr, SentryXhrData, SentryWrappedXMLHttpRequest } from './instrument';
export type { HandlerDataFetch, HandlerDataXhr, HandlerDataDom, HandlerDataConsole, HandlerDataHistory, HandlerDataError, HandlerDataUnhandledRejection, ConsoleLevel, SentryXhrData, SentryWrappedXMLHttpRequest, } from './instrument';
export type { BrowserClientReplayOptions, BrowserClientProfilingOptions } from './browseroptions';
export type { CheckIn, MonitorConfig, FinishedCheckIn, InProgressCheckIn, SerializedCheckIn } from './checkin';
//# sourceMappingURL=index.d.ts.map

@@ -0,9 +1,15 @@

/// <reference types="react" />
import type { WebFetchHeaders } from './webfetchapi';
type XHRSendInput = unknown;
export type ConsoleLevel = 'debug' | 'info' | 'warn' | 'error' | 'log' | 'assert' | 'trace';
export interface SentryWrappedXMLHttpRequest {
__sentry_xhr_v2__?: SentryXhrData;
__sentry_xhr_v3__?: SentryXhrData;
__sentry_own_request__?: boolean;
__sentry_xhr_span_id__?: string;
setRequestHeader?: (key: string, val: string) => void;
getResponseHeader?: (key: string) => string | null;
}
export interface SentryXhrData {
method?: string;
url?: string;
method: string;
url: string;
status_code?: number;

@@ -16,2 +22,5 @@ body?: XHRSendInput;

export interface HandlerDataXhr {
/**
* @deprecated This property will be removed in v8.
*/
args: [string, string];

@@ -38,13 +47,30 @@ xhr: SentryWrappedXMLHttpRequest;

readonly url: string;
headers: {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
};
headers: WebFetchHeaders;
};
error?: unknown;
}
export interface HandlerDataDom {
event: Event | {
target: EventTarget;
};
name: string;
global?: boolean;
}
export interface HandlerDataConsole {
level: ConsoleLevel;
args: any[];
}
export interface HandlerDataHistory {
from: string | undefined;
to: string;
}
export interface HandlerDataError {
column?: number;
error?: Error;
line?: number;
msg: string | Event;
url?: string;
}
export type HandlerDataUnhandledRejection = unknown;
export {};
//# sourceMappingURL=instrument.d.ts.map

@@ -25,2 +25,11 @@ import type { Client } from './client';

/**
* Set up an integration for the given client.
* Receives the client as argument.
*
* Whenever possible, prefer this over `setupOnce`, as that is only run for the first client,
* whereas `setup` runs for each client. Only truly global things (e.g. registering global handlers)
* should be done in `setupOnce`.
*/
setup?(client: Client): void;
/**
* An optional hook that allows to preprocess an event _before_ it is passed to all other event processors.

@@ -27,0 +36,0 @@ */

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