@sentry/node
Advanced tools
Comparing version 4.0.0-beta.0 to 4.0.0-beta.1
import { Backend, Options } from '@sentry/core'; | ||
import { SentryEvent, SentryResponse } from '@sentry/types'; | ||
import { TransportOptions } from './transports'; | ||
/** | ||
@@ -17,6 +16,2 @@ * Configuration options for the Sentry Node SDK. | ||
onFatalError?(error: Error): void; | ||
/** | ||
* @inheritDoc | ||
*/ | ||
transportOptions?: TransportOptions; | ||
} | ||
@@ -23,0 +18,0 @@ /** The Sentry Node SDK Backend. */ |
@@ -36,3 +36,3 @@ "use strict"; | ||
name: 'sentry-node', | ||
version: '0.5.4', | ||
version: '4.0.0-beta.0', | ||
}; | ||
@@ -39,0 +39,0 @@ }; |
/// <reference types="node" /> | ||
import { DSN } from '@sentry/core'; | ||
import { SentryEvent, SentryResponse, Transport, TransportOptions as BaseOptions } from '@sentry/types'; | ||
import { SentryEvent, SentryResponse, Transport, TransportOptions } from '@sentry/types'; | ||
import * as http from 'http'; | ||
@@ -10,9 +10,2 @@ import * as https from 'https'; | ||
} | ||
/** Transport options */ | ||
export interface TransportOptions extends BaseOptions { | ||
/** Options for http.agent default: { keepAlive: true, maxSockets: 100 } */ | ||
agentOptions?: http.AgentOptions; | ||
/** Define custom headers */ | ||
headers?: http.IncomingHttpHeaders; | ||
} | ||
/** Base Transport class implementation */ | ||
@@ -19,0 +12,0 @@ export declare abstract class BaseTransport implements Transport { |
@@ -48,3 +48,3 @@ "use strict"; | ||
var types_1 = require("@sentry/types"); | ||
var object_1 = require("@sentry/utils/src/object"); | ||
var object_1 = require("@sentry/utils/object"); | ||
var index_1 = require("../index"); | ||
@@ -51,0 +51,0 @@ /** Base Transport class implementation */ |
@@ -1,3 +0,3 @@ | ||
import { SentryEvent, SentryResponse } from '@sentry/types'; | ||
import { BaseTransport, TransportOptions } from './base'; | ||
import { SentryEvent, SentryResponse, TransportOptions } from '@sentry/types'; | ||
import { BaseTransport } from './base'; | ||
/** /** Node http module transport */ | ||
@@ -4,0 +4,0 @@ export declare class HTTPTransport extends BaseTransport { |
@@ -57,5 +57,3 @@ "use strict"; | ||
_this.options = options; | ||
_this.client = new http.Agent(_this.options.agentOptions | ||
? _this.options.agentOptions | ||
: { keepAlive: true, maxSockets: 100 }); | ||
_this.client = new http.Agent({ keepAlive: true, maxSockets: 100 }); | ||
return _this; | ||
@@ -62,0 +60,0 @@ } |
@@ -1,3 +0,3 @@ | ||
import { SentryEvent, SentryResponse } from '@sentry/types'; | ||
import { BaseTransport, TransportOptions } from './base'; | ||
import { SentryEvent, SentryResponse, TransportOptions } from '@sentry/types'; | ||
import { BaseTransport } from './base'; | ||
/** Node https module transport */ | ||
@@ -4,0 +4,0 @@ export declare class HTTPSTransport extends BaseTransport { |
@@ -57,5 +57,3 @@ "use strict"; | ||
_this.options = options; | ||
_this.client = new https.Agent(_this.options.agentOptions | ||
? _this.options.agentOptions | ||
: { keepAlive: true, maxSockets: 100 }); | ||
_this.client = new https.Agent({ keepAlive: true, maxSockets: 100 }); | ||
return _this; | ||
@@ -62,0 +60,0 @@ } |
@@ -1,3 +0,3 @@ | ||
export { BaseTransport, TransportOptions } from './base'; | ||
export { BaseTransport } from './base'; | ||
export { HTTPTransport } from './http'; | ||
export { HTTPSTransport } from './https'; |
{ | ||
"name": "@sentry/node", | ||
"version": "4.0.0-beta.0", | ||
"version": "4.0.0-beta.1", | ||
"description": "Offical Sentry SDK for Node.js", | ||
@@ -18,7 +18,7 @@ "repository": "git://github.com/getsentry/raven-js.git", | ||
"dependencies": { | ||
"@sentry/core": "4.0.0-beta.0", | ||
"@sentry/hub": "4.0.0-beta.0", | ||
"@sentry/minimal": "4.0.0-beta.0", | ||
"@sentry/types": "4.0.0-beta.0", | ||
"@sentry/utils": "4.0.0-beta.0", | ||
"@sentry/core": "4.0.0-beta.1", | ||
"@sentry/hub": "4.0.0-beta.1", | ||
"@sentry/minimal": "4.0.0-beta.1", | ||
"@sentry/types": "4.0.0-beta.1", | ||
"@sentry/utils": "4.0.0-beta.1", | ||
"raven": "^2.6.0" | ||
@@ -67,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "a91da22f8bd3bddb38fab7f868326e376da82d4d" | ||
"gitHead": "20e74471f38babe61b28863c54bc315af71a1f40" | ||
} |
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
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
94116
1175
+ Added@sentry/core@4.0.0-beta.1(transitive)
+ Added@sentry/hub@4.0.0-beta.1(transitive)
+ Added@sentry/minimal@4.0.0-beta.1(transitive)
+ Added@sentry/types@4.0.0-beta.1(transitive)
+ Added@sentry/utils@4.0.0-beta.1(transitive)
- Removed@sentry/core@4.0.0-beta.0(transitive)
- Removed@sentry/hub@4.0.0-beta.0(transitive)
- Removed@sentry/minimal@4.0.0-beta.0(transitive)
- Removed@sentry/types@4.0.0-beta.0(transitive)
- Removed@sentry/utils@4.0.0-beta.0(transitive)
Updated@sentry/core@4.0.0-beta.1
Updated@sentry/hub@4.0.0-beta.1
Updated@sentry/minimal@4.0.0-beta.1
Updated@sentry/types@4.0.0-beta.1
Updated@sentry/utils@4.0.0-beta.1