@beforeyoubid/error-adapter
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,2 @@ | ||
import Sentry from '@sentry/node'; | ||
import * as Sentry from '@sentry/node'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Initialise Sentry based on provided options |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Sentry = void 0; | ||
const node_1 = require("@sentry/node"); | ||
const Sentry = require("@sentry/node"); | ||
const utils_1 = require("../utils"); | ||
@@ -17,6 +17,6 @@ let isSentryInitialised = false; | ||
if (sendToSentry) { | ||
node_1.default.init(sentryOptions); | ||
Sentry.init(sentryOptions); | ||
} | ||
else { | ||
node_1.default.init({ dsn: '', enabled: false }); | ||
Sentry.init({ dsn: '', enabled: false }); | ||
} | ||
@@ -27,5 +27,5 @@ } | ||
// attach custom initialise function | ||
const SentryWithInitialise = Object.assign({}, node_1.default !== null && node_1.default !== void 0 ? node_1.default : {}, { | ||
const SentryWithInitialise = Object.assign({}, Sentry !== null && Sentry !== void 0 ? Sentry : {}, { | ||
initialise, | ||
}); | ||
exports.Sentry = SentryWithInitialise; |
{ | ||
"name": "@beforeyoubid/error-adapter", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A module to standardize error handling across the BYB platform", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
45971