@sentry/types
Advanced tools
Comparing version 4.4.2 to 4.5.0
@@ -214,5 +214,18 @@ /** Supported Sentry transport protocols in a Dsn. */ | ||
} | ||
/** JSDoc */ | ||
/** Transport used sending data to Sentry */ | ||
export interface Transport { | ||
captureEvent(event: SentryEvent): Promise<SentryResponse>; | ||
/** | ||
* Sends the body to the Store endpoint in Sentry. | ||
* | ||
* @param body String body that should be sent to Sentry. | ||
*/ | ||
sendEvent(body: string): Promise<SentryResponse>; | ||
/** | ||
* Call this function to wait until all pending requests have been sent. | ||
* | ||
* @param timeout Number time in ms to wait until the buffer is drained. | ||
*/ | ||
close(timeout?: number): Promise<boolean>; | ||
/** @deprecated Implement sendEvent instead */ | ||
captureEvent?(event: SentryEvent): Promise<SentryResponse>; | ||
} | ||
@@ -219,0 +232,0 @@ /** JSDoc */ |
{ | ||
"name": "@sentry/types", | ||
"version": "4.4.2", | ||
"version": "4.5.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
"repository": "git://github.com/getsentry/raven-js.git", | ||
"homepage": "https://github.com/getsentry/raven-js/tree/master/packages/types", | ||
"repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/types", | ||
"author": "Sentry", | ||
@@ -22,6 +22,10 @@ "license": "BSD-3-Clause", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.1" | ||
"typescript": "^3.2.0" | ||
}, | ||
"scripts": { | ||
"build": "tsc -p tsconfig.build.json", | ||
"build": "run-p build:es5 build:esm", | ||
"build:es5": "tsc -p tsconfig.build.json", | ||
"build:esm": "run-s build:esm:transpile build:esm:rewrite", | ||
"build:esm:transpile": "tsc -p tsconfig.esm.json", | ||
"build:esm:rewrite": "node ../../scripts/esm-rewrite.js", | ||
"build:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput", | ||
@@ -36,3 +40,4 @@ "lint": "run-s lint:prettier lint:tslint", | ||
}, | ||
"gitHead": "a91da22f8bd3bddb38fab7f868326e376da82d4d" | ||
"gitHead": "a91da22f8bd3bddb38fab7f868326e376da82d4d", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
41489
9
732