@crawly/handler-exception-lambda
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -15,7 +15,10 @@ "use strict"; | ||
var Raven = require("raven"); | ||
Raven.config(process.env.SENTRY_DSN).install(); | ||
exports.Raven = Raven; | ||
Raven.config(process.env.SENTRY_DSN, { | ||
shouldSendCallback: function (data) { | ||
return !exports.isOffline(); | ||
}, | ||
}).install(); | ||
/** | ||
* Check application is running offline. | ||
* | ||
* @param isOffline | ||
*/ | ||
@@ -22,0 +25,0 @@ exports.isOffline = function () { return process.env.IS_OFFLINE === 'true'; }; |
{ | ||
"name": "@crawly/handler-exception-lambda", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
18185
1
484