Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/node

Package Overview
Dependencies
Maintainers
8
Versions
532
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 4.2.1 to 4.2.2

18

dist/handlers.d.ts
/// <reference types="node" />
import { SentryEvent } from '@sentry/types';
import * as http from 'http';
declare type TransactionTypes = 'path' | 'methodPath' | 'handler';
/**
* Enriches passed event with request data.
*
*
* @param event Will be mutated and enriched with req data
* @param req Request object
* @param options object containing flags to enable functionality
*/
export declare function parseRequest(event: SentryEvent, req: {
[key: string]: any;
}, options?: {
request?: boolean;
serverName?: boolean;
transaction?: boolean | TransactionTypes;
user?: boolean | string[];
version?: boolean;
}): SentryEvent;
/** JSDoc */

@@ -5,0 +23,0 @@ export declare function requestHandler(options?: {

10

dist/handlers.js

@@ -160,3 +160,10 @@ "use strict";

}
/** JSDoc */
/**
* Enriches passed event with request data.
*
*
* @param event Will be mutated and enriched with req data
* @param req Request object
* @param options object containing flags to enable functionality
*/
function parseRequest(event, req, options) {

@@ -185,2 +192,3 @@ // tslint:disable-next-line:no-parameter-reassignment

}
exports.parseRequest = parseRequest;
/** JSDoc */

@@ -187,0 +195,0 @@ function requestHandler(options) {

4

dist/index.d.ts

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

Transaction: typeof NodeIntegrations.Transaction;
getIntegrationsToSetup(options: import("@sentry/core/dist/interfaces").Options): import("@sentry/types").Integration[];
setupIntegration(integration: import("@sentry/types").Integration, options: import("@sentry/core/dist/interfaces").Options): void;
setupIntegrations<O extends import("@sentry/core/dist/interfaces").Options>(options: O): CoreIntegrations.IntegrationIndex;
Dedupe: typeof CoreIntegrations.Dedupe;

@@ -29,4 +26,3 @@ FunctionToString: typeof CoreIntegrations.FunctionToString;

RewriteFrames: typeof CoreIntegrations.RewriteFrames;
installedIntegrations: string[];
};
export { INTEGRATIONS as Integrations, Transports, Handlers };

@@ -33,3 +33,3 @@ "use strict";

*/
this.name = 'Console';
this.name = Console.id;
}

@@ -36,0 +36,0 @@ /**

@@ -13,3 +13,3 @@ "use strict";

*/
this.name = 'Http';
this.name = Http.id;
}

@@ -16,0 +16,0 @@ /**

@@ -72,3 +72,3 @@ "use strict";

*/
this.name = 'LinkedErrors';
this.name = LinkedErrors.id;
this.key = options.key || DEFAULT_KEY;

@@ -75,0 +75,0 @@ this.limit = options.limit || DEFAULT_LIMIT;

@@ -53,3 +53,3 @@ "use strict";

*/
this.name = 'OnUncaughtException';
this.name = OnUncaughtException.id;
/**

@@ -56,0 +56,0 @@ * @inheritDoc

@@ -10,3 +10,3 @@ "use strict";

*/
this.name = 'OnUnhandledRejection';
this.name = OnUnhandledRejection.id;
}

@@ -13,0 +13,0 @@ /**

@@ -58,3 +58,3 @@ "use strict";

*/
this.name = 'Modules';
this.name = Modules.id;
}

@@ -61,0 +61,0 @@ /**

@@ -45,3 +45,3 @@ "use strict";

*/
this.name = 'Transaction';
this.name = Transaction.id;
}

@@ -48,0 +48,0 @@ /**

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

* scope.setExtra({ battery: 0.7 });
* scope.setTags({ user_mode: 'admin' });
* scope.setTag({ user_mode: 'admin' });
* scope.setUser({ id: '4711' });

@@ -28,0 +28,0 @@ * });

@@ -42,3 +42,3 @@ "use strict";

* scope.setExtra({ battery: 0.7 });
* scope.setTags({ user_mode: 'admin' });
* scope.setTag({ user_mode: 'admin' });
* scope.setUser({ id: '4711' });

@@ -45,0 +45,0 @@ * });

export declare const SDK_NAME = "sentry.javascript.node";
export declare const SDK_VERSION = "4.2.1";
export declare const SDK_VERSION = "4.2.2";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_NAME = 'sentry.javascript.node';
exports.SDK_VERSION = '4.2.1';
exports.SDK_VERSION = '4.2.2';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/node",
"version": "4.2.1",
"version": "4.2.2",
"description": "Offical Sentry SDK for Node.js",

@@ -18,6 +18,6 @@ "repository": "git://github.com/getsentry/raven-js.git",

"dependencies": {
"@sentry/core": "4.2.1",
"@sentry/hub": "4.2.1",
"@sentry/types": "4.2.1",
"@sentry/utils": "4.2.1",
"@sentry/core": "4.2.2",
"@sentry/hub": "4.2.2",
"@sentry/types": "4.2.2",
"@sentry/utils": "4.2.2",
"cookie": "0.3.1",

@@ -32,2 +32,3 @@ "lsmod": "1.0.0",

"@types/stack-trace": "0.0.29",
"express": "^4.16.4",
"jest": "^22.4.3",

@@ -34,0 +35,0 @@ "npm-run-all": "^4.1.2",

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc