@sentry/node
Advanced tools
Comparing version
@@ -24,2 +24,3 @@ export { Breadcrumb, Request, SdkInfo, SentryEvent, SentryException, SentryResponse, Severity, StackFrame, Stacktrace, Status, Thread, User, } from '@sentry/types'; | ||
InboundFilters: typeof CoreIntegrations.InboundFilters; | ||
ExtraErrorData: typeof CoreIntegrations.ExtraErrorData; | ||
Debug: typeof CoreIntegrations.Debug; | ||
@@ -26,0 +27,0 @@ RewriteFrames: typeof CoreIntegrations.RewriteFrames; |
@@ -222,5 +222,5 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var e_1, _a, _b, name, exception, event, errorKeys, extraErrorInfo, errorKeys_1, errorKeys_1_1, key; | ||
return tslib_1.__generator(this, function (_c) { | ||
switch (_c.label) { | ||
var name, exception; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
@@ -230,30 +230,9 @@ name = error.name || error.constructor.name; | ||
case 1: | ||
exception = _c.sent(); | ||
event = { | ||
exception: { | ||
values: [exception], | ||
}, | ||
message: name + ": " + (error.message || '<no message>'), | ||
}; | ||
errorKeys = Object.keys(error).filter(function (key) { return !(key in ['name', 'message', 'stack', 'domain']); }); | ||
if (errorKeys.length) { | ||
extraErrorInfo = {}; | ||
try { | ||
for (errorKeys_1 = tslib_1.__values(errorKeys), errorKeys_1_1 = errorKeys_1.next(); !errorKeys_1_1.done; errorKeys_1_1 = errorKeys_1.next()) { | ||
key = errorKeys_1_1.value; | ||
extraErrorInfo[key] = error[key]; | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (errorKeys_1_1 && !errorKeys_1_1.done && (_a = errorKeys_1.return)) _a.call(errorKeys_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
event.extra = (_b = {}, | ||
_b[name] = extraErrorInfo, | ||
_b); | ||
} | ||
return [2 /*return*/, event]; | ||
exception = _a.sent(); | ||
return [2 /*return*/, { | ||
exception: { | ||
values: [exception], | ||
}, | ||
message: name + ": " + (error.message || '<no message>'), | ||
}]; | ||
} | ||
@@ -260,0 +239,0 @@ }); |
import { Integrations as CoreIntegrations } from '@sentry/core'; | ||
import { NodeOptions } from './backend'; | ||
import { Console, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection } from './integrations'; | ||
export declare const defaultIntegrations: (CoreIntegrations.Dedupe | CoreIntegrations.FunctionToString | CoreIntegrations.InboundFilters | Console | Http | OnUncaughtException | OnUnhandledRejection | LinkedErrors)[]; | ||
export declare const defaultIntegrations: (CoreIntegrations.Dedupe | CoreIntegrations.FunctionToString | CoreIntegrations.InboundFilters | CoreIntegrations.ExtraErrorData | Console | Http | OnUncaughtException | OnUnhandledRejection | LinkedErrors)[]; | ||
/** | ||
@@ -6,0 +6,0 @@ * The Sentry Node SDK Client. |
@@ -13,2 +13,3 @@ "use strict"; | ||
new core_1.Integrations.FunctionToString(), | ||
new core_1.Integrations.ExtraErrorData(), | ||
// Native Wrappers | ||
@@ -15,0 +16,0 @@ new integrations_1.Console(), |
export declare const SDK_NAME = "sentry.javascript.node"; | ||
export declare const SDK_VERSION = "4.4.1"; | ||
export declare const SDK_VERSION = "4.4.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SDK_NAME = 'sentry.javascript.node'; | ||
exports.SDK_VERSION = '4.4.1'; | ||
exports.SDK_VERSION = '4.4.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@sentry/node", | ||
"version": "4.4.1", | ||
"version": "4.4.2", | ||
"description": "Offical Sentry SDK for Node.js", | ||
@@ -18,6 +18,6 @@ "repository": "git://github.com/getsentry/raven-js.git", | ||
"dependencies": { | ||
"@sentry/core": "4.4.1", | ||
"@sentry/hub": "4.4.1", | ||
"@sentry/types": "4.4.1", | ||
"@sentry/utils": "4.4.1", | ||
"@sentry/core": "4.4.2", | ||
"@sentry/hub": "4.4.2", | ||
"@sentry/types": "4.4.2", | ||
"@sentry/utils": "4.4.2", | ||
"@types/stack-trace": "0.0.29", | ||
@@ -56,3 +56,3 @@ "cookie": "0.3.1", | ||
"test:watch": "jest --watch --notify", | ||
"test:express": "node test/manual/express.js", | ||
"test:express": "node test/manual/express-scope-separation/start.js", | ||
"version": "node ../../scripts/versionbump.js src/version.ts" | ||
@@ -59,0 +59,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
166105
-1.09%1972
-0.95%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated