🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sentry/node

Package Overview
Dependencies
Maintainers
9
Versions
613
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/node - npm Package Compare versions

Comparing version

to
4.6.0

3

dist/handlers.js

@@ -179,3 +179,4 @@ "use strict";

}
core_1.captureException(error);
var eventId = core_1.captureException(error);
_res.sentry = eventId;
next(error);

@@ -182,0 +183,0 @@ };

@@ -5,3 +5,3 @@ export { Breadcrumb, Request, SdkInfo, SentryEvent, SentryException, SentryResponse, Severity, StackFrame, Stacktrace, Status, Thread, User, } from '@sentry/types';

export { NodeClient } from './client';
export { defaultIntegrations, init } from './sdk';
export { defaultIntegrations, init, flush, close } from './sdk';
export { SDK_NAME, SDK_VERSION } from './version';

@@ -8,0 +8,0 @@ import { Integrations as CoreIntegrations } from '@sentry/core';

@@ -26,2 +26,4 @@ "use strict";

exports.init = sdk_1.init;
exports.flush = sdk_1.flush;
exports.close = sdk_1.close;
var version_1 = require("./version");

@@ -28,0 +30,0 @@ exports.SDK_NAME = version_1.SDK_NAME;

@@ -56,1 +56,15 @@ import { Integrations as CoreIntegrations } from '@sentry/core';

export declare function lastEventId(): string | undefined;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
export declare function flush(timeout?: number): Promise<boolean>;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
export declare function close(timeout?: number): Promise<boolean>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("@sentry/core");

@@ -72,2 +73,5 @@ var hub_1 = require("@sentry/hub");

}
if (options.dsn === undefined && process.env.SENTRY_DSN) {
options.dsn = process.env.SENTRY_DSN;
}
if (domain.active) {

@@ -88,2 +92,30 @@ hub_1.setHubOnCarrier(hub_1.getMainCarrier(), core_1.getCurrentHub());

exports.lastEventId = lastEventId;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
function flush(timeout) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, core_1.getCurrentHub().getClient().flush(timeout)];
});
});
}
exports.flush = flush;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
function close(timeout) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, core_1.getCurrentHub().getClient().close(timeout)];
});
});
}
exports.close = close;
//# sourceMappingURL=sdk.js.map
export declare const SDK_NAME = "sentry.javascript.node";
export declare const SDK_VERSION = "4.5.4";
export declare const SDK_VERSION = "4.6.0";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_NAME = 'sentry.javascript.node';
exports.SDK_VERSION = '4.5.4';
exports.SDK_VERSION = '4.6.0';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/node",
"version": "4.5.4",
"version": "4.6.0",
"description": "Offical Sentry SDK for Node.js",

@@ -18,4 +18,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "4.5.4",
"@sentry/hub": "4.5.4",
"@sentry/core": "4.6.0",
"@sentry/hub": "4.6.0",
"@sentry/types": "4.5.3",

@@ -22,0 +22,0 @@ "@sentry/utils": "4.5.4",

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