@sentry/node
Advanced tools
Comparing version 4.0.1 to 4.0.3
@@ -1,2 +0,3 @@ | ||
import { BaseClient } from '@sentry/core'; | ||
import { BaseClient, Scope } from '@sentry/core'; | ||
import { SentryEvent, SentryEventHint } from '@sentry/types'; | ||
import { NodeBackend, NodeOptions } from './backend'; | ||
@@ -15,2 +16,6 @@ /** | ||
constructor(options: NodeOptions); | ||
/** | ||
* @inheritDoc | ||
*/ | ||
protected prepareEvent(event: SentryEvent, scope?: Scope, hint?: SentryEventHint): Promise<SentryEvent | null>; | ||
} |
@@ -15,2 +15,37 @@ "use strict"; | ||
})(); | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
function step(op) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
if (y = 0, t) op = [op[0] & 2, t.value]; | ||
switch (op[0]) { | ||
case 0: case 1: t = op; break; | ||
case 4: _.label++; return { value: op[1], done: false }; | ||
case 5: _.label++; y = op[1]; op = [0]; continue; | ||
case 7: op = _.ops.pop(); _.trys.pop(); continue; | ||
default: | ||
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | ||
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | ||
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | ||
if (t[2]) _.ops.pop(); | ||
_.trys.pop(); continue; | ||
} | ||
op = body.call(thisArg, _); | ||
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | ||
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -34,2 +69,16 @@ var core_1 = require("@sentry/core"); | ||
} | ||
/** | ||
* @inheritDoc | ||
*/ | ||
NodeClient.prototype.prepareEvent = function (event, scope, hint) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
event.platform = event.platform || 'node'; | ||
if (this.getOptions().serverName) { | ||
event.server_name = this.getOptions().serverName; | ||
} | ||
return [2 /*return*/, _super.prototype.prepareEvent.call(this, event, scope, hint)]; | ||
}); | ||
}); | ||
}; | ||
return NodeClient; | ||
@@ -36,0 +85,0 @@ }(core_1.BaseClient)); |
@@ -17,8 +17,10 @@ export { Breadcrumb, Request, SdkInfo, SentryEvent, SentryException, SentryResponse, Severity, StackFrame, Stacktrace, Status, Thread, User, } from '@sentry/types'; | ||
OnUnhandledRejection: typeof NodeIntegrations.OnUnhandledRejection; | ||
ClientOptions: typeof NodeIntegrations.ClientOptions; | ||
SDKInformation: typeof NodeIntegrations.SDKInformation; | ||
LinkedErrors: typeof NodeIntegrations.LinkedErrors; | ||
Modules: typeof NodeIntegrations.Modules; | ||
Dedupe: typeof CoreIntegrations.Dedupe; | ||
FunctionToString: typeof CoreIntegrations.FunctionToString; | ||
SDKInformation: typeof CoreIntegrations.SDKInformation; | ||
InboundFilters: typeof CoreIntegrations.InboundFilters; | ||
Debug: typeof CoreIntegrations.Debug; | ||
}; | ||
export { INTEGRATIONS as Integrations, Transports, Handlers }; |
@@ -5,5 +5,3 @@ export { Console } from './console'; | ||
export { OnUnhandledRejection } from './onunhandledrejection'; | ||
export { ClientOptions } from './clientoptions'; | ||
export { SDKInformation } from './sdkinformation'; | ||
export { LinkedErrors } from './linkederrors'; | ||
export { Modules } from './modules'; | ||
export { Modules } from './pluggable/modules'; |
@@ -11,10 +11,6 @@ "use strict"; | ||
exports.OnUnhandledRejection = onunhandledrejection_1.OnUnhandledRejection; | ||
var clientoptions_1 = require("./clientoptions"); | ||
exports.ClientOptions = clientoptions_1.ClientOptions; | ||
var sdkinformation_1 = require("./sdkinformation"); | ||
exports.SDKInformation = sdkinformation_1.SDKInformation; | ||
var linkederrors_1 = require("./linkederrors"); | ||
exports.LinkedErrors = linkederrors_1.LinkedErrors; | ||
var modules_1 = require("./modules"); | ||
var modules_1 = require("./pluggable/modules"); | ||
exports.Modules = modules_1.Modules; | ||
//# sourceMappingURL=index.js.map |
@@ -0,4 +1,5 @@ | ||
import { Integrations as CoreIntegrations } from '@sentry/core'; | ||
import { NodeOptions } from './backend'; | ||
import { ClientOptions, Console, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection, SDKInformation } from './integrations'; | ||
export declare const defaultIntegrations: (Console | Http | OnUncaughtException | OnUnhandledRejection | ClientOptions | SDKInformation | LinkedErrors)[]; | ||
import { Console, Http, LinkedErrors, OnUncaughtException, OnUnhandledRejection } from './integrations'; | ||
export declare const defaultIntegrations: (CoreIntegrations.Dedupe | CoreIntegrations.FunctionToString | CoreIntegrations.SDKInformation | CoreIntegrations.InboundFilters | Console | Http | OnUncaughtException | OnUnhandledRejection | LinkedErrors)[]; | ||
/** | ||
@@ -5,0 +6,0 @@ * The Sentry Node SDK Client. |
@@ -6,10 +6,21 @@ "use strict"; | ||
var integrations_1 = require("./integrations"); | ||
var version_1 = require("./version"); | ||
exports.defaultIntegrations = [ | ||
// Common | ||
new core_1.Integrations.Dedupe(), | ||
new core_1.Integrations.InboundFilters(), | ||
new core_1.Integrations.FunctionToString(), | ||
new core_1.Integrations.SDKInformation({ | ||
name: 'npm:@sentry/node', | ||
sdkName: version_1.SDK_NAME, | ||
sdkVersion: version_1.SDK_VERSION, | ||
}), | ||
// Native Wrappers | ||
new integrations_1.Console(), | ||
new integrations_1.Http(), | ||
// Global Handlers | ||
new integrations_1.OnUncaughtException(), | ||
new integrations_1.OnUnhandledRejection(), | ||
new integrations_1.ClientOptions(), | ||
// Misc | ||
new integrations_1.LinkedErrors(), | ||
new integrations_1.SDKInformation(), | ||
]; | ||
@@ -16,0 +27,0 @@ /** |
export declare const SDK_NAME = "sentry.javascript.node"; | ||
export declare const SDK_VERSION = "4.0.1"; | ||
export declare const SDK_VERSION = "4.0.3"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SDK_NAME = 'sentry.javascript.node'; | ||
exports.SDK_VERSION = '4.0.1'; | ||
exports.SDK_VERSION = '4.0.3'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@sentry/node", | ||
"version": "4.0.1", | ||
"version": "4.0.3", | ||
"description": "Offical Sentry SDK for Node.js", | ||
@@ -18,5 +18,5 @@ "repository": "git://github.com/getsentry/raven-js.git", | ||
"dependencies": { | ||
"@sentry/core": "4.0.1", | ||
"@sentry/core": "4.0.3", | ||
"@sentry/hub": "4.0.1", | ||
"@sentry/types": "4.0.0", | ||
"@sentry/types": "4.0.1", | ||
"@sentry/utils": "4.0.1", | ||
@@ -23,0 +23,0 @@ "cookie": "0.3.1", |
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
176647
60
2193
+ Added@sentry/core@4.0.3(transitive)
+ Added@sentry/types@4.0.1(transitive)
- Removed@sentry/core@4.0.1(transitive)
Updated@sentry/core@4.0.3
Updated@sentry/types@4.0.1