@sentry/node
Advanced tools
Comparing version 0.5.0-beta.4 to 0.5.0-beta.5
@@ -5,2 +5,2 @@ export { Breadcrumb, Context, Request, SdkInfo, SentryEvent, SentryException, Severity, StackFrame, Stacktrace, Thread, User } from '@sentry/shim'; | ||
export { NodeFrontend } from './frontend'; | ||
export { create, getCurrentFrontend } from './sdk'; | ||
export { init, getCurrentFrontend } from './sdk'; |
@@ -22,4 +22,4 @@ "use strict"; | ||
var sdk_1 = require("./sdk"); | ||
exports.create = sdk_1.create; | ||
exports.init = sdk_1.init; | ||
exports.getCurrentFrontend = sdk_1.getCurrentFrontend; | ||
//# sourceMappingURL=index.js.map |
@@ -6,3 +6,3 @@ import { NodeOptions } from './backend'; | ||
* | ||
* To use this SDK, call the {@link create} function as early as possible in the | ||
* To use this SDK, call the {@link init} function as early as possible in the | ||
* main entry module. To set context information or send manual events, use the | ||
@@ -12,5 +12,5 @@ * provided methods. | ||
* @example | ||
* const { create } = require('@sentry/node'); | ||
* const { init } = require('@sentry/node'); | ||
* | ||
* create({ | ||
* init({ | ||
* dsn: '__DSN__', | ||
@@ -48,4 +48,4 @@ * // ... | ||
*/ | ||
export declare function create(options: NodeOptions): void; | ||
export declare function init(options: NodeOptions): void; | ||
/** Returns the current NodeFrontend, if any. */ | ||
export declare function getCurrentFrontend(): NodeFrontend; |
@@ -9,3 +9,3 @@ "use strict"; | ||
* | ||
* To use this SDK, call the {@link create} function as early as possible in the | ||
* To use this SDK, call the {@link init} function as early as possible in the | ||
* main entry module. To set context information or send manual events, use the | ||
@@ -15,5 +15,5 @@ * provided methods. | ||
* @example | ||
* const { create } = require('@sentry/node'); | ||
* const { init } = require('@sentry/node'); | ||
* | ||
* create({ | ||
* init({ | ||
* dsn: '__DSN__', | ||
@@ -51,6 +51,6 @@ * // ... | ||
*/ | ||
function create(options) { | ||
core_1.createAndBind(frontend_1.NodeFrontend, options); | ||
function init(options) { | ||
core_1.initAndBind(frontend_1.NodeFrontend, options); | ||
} | ||
exports.create = create; | ||
exports.init = init; | ||
/** Returns the current NodeFrontend, if any. */ | ||
@@ -57,0 +57,0 @@ function getCurrentFrontend() { |
{ | ||
"name": "@sentry/node", | ||
"version": "0.5.0-beta.4", | ||
"version": "0.5.0-beta.5", | ||
"description": "Offical Sentry SDK for Node.js", | ||
@@ -17,4 +17,4 @@ "repository": "https://github.com/getsentry/raven-js/tree/next", | ||
"dependencies": { | ||
"@sentry/core": "0.5.0-beta.4", | ||
"@sentry/shim": "0.5.0-beta.4", | ||
"@sentry/core": "0.5.0-beta.5", | ||
"@sentry/shim": "0.5.0-beta.5", | ||
"raven": "^2.4.2" | ||
@@ -21,0 +21,0 @@ }, |
@@ -22,3 +22,3 @@ <p align="center"> | ||
To use this SDK, call `create(options)` as early as possible in the main entry | ||
To use this SDK, call `init(options)` as early as possible in the main entry | ||
module. This will initialize the SDK and hook into the environment. Note that | ||
@@ -30,3 +30,3 @@ you can turn off almost all side effects using the respective options. | ||
Sentry.create({ | ||
Sentry.init({ | ||
dsn: '__DSN__', | ||
@@ -39,3 +39,3 @@ // ... | ||
`@sentry/node`. Note that these functions will not perform any action before you | ||
have called `create()`: | ||
have called `init()`: | ||
@@ -42,0 +42,0 @@ ```javascript |
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
31247
+ Added@sentry/core@0.5.0-beta.5(transitive)
+ Added@sentry/shim@0.5.0-beta.5(transitive)
- Removed@sentry/core@0.5.0-beta.4(transitive)
- Removed@sentry/shim@0.5.0-beta.4(transitive)
Updated@sentry/core@0.5.0-beta.5
Updated@sentry/shim@0.5.0-beta.5