@probot/pino
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -79,4 +79,3 @@ module.exports = { getTransformStream }; | ||
Sentry.withScope(function (scope) { | ||
const sentryLevelName = | ||
data.level === 50 ? Sentry.Severity.Error : Sentry.Severity.Fatal; | ||
const sentryLevelName = data.level === 50 ? "error" : "fatal"; | ||
scope.setLevel(sentryLevelName); | ||
@@ -83,0 +82,0 @@ |
{ | ||
"name": "@probot/pino", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"publishConfig": { | ||
@@ -33,3 +33,3 @@ "access": "public", | ||
"dependencies": { | ||
"@sentry/node": "^6.0.0", | ||
"@sentry/node": "^7.119.2", | ||
"pino-pretty": "^6.0.0", | ||
@@ -36,0 +36,0 @@ "pump": "^3.0.0", |
@@ -90,8 +90,8 @@ const path = require("path"); | ||
request.on("end", () => { | ||
const data = JSON.parse(body); | ||
const error = data.exception.values[0]; | ||
const data = body.split("\n").map((line) => JSON.parse(line)); | ||
const error = data[2].exception.values[0]; | ||
t.equal(error.type, "Error"); | ||
t.equal(error.value, "Oops"); | ||
t.strictSame(data.extra, { | ||
t.strictSame(data[2].extra, { | ||
event: { | ||
@@ -170,4 +170,4 @@ event: "installation_repositories.added", | ||
request.on("end", () => { | ||
const data = JSON.parse(body); | ||
const error = data.exception.values[0]; | ||
const data = body.split("\n").map((line) => JSON.parse(line)); | ||
const error = data[2].exception.values[0]; | ||
@@ -174,0 +174,0 @@ t.equal(error.type, "Error"); |
@@ -26,3 +26,3 @@ const Sentry = require("@sentry/node"); | ||
t.test("Sentry integation enabled", (t) => { | ||
t.test("Sentry integration enabled", (t) => { | ||
const transform = getTransformStream({ | ||
@@ -54,3 +54,3 @@ sentryDsn: "http://username@example.com/1234", | ||
scope.addEventProcessor(function (event, hint) { | ||
t.strictSame(event.user, { id: "456", username: undefined }); | ||
t.strictSame(event.user, { id: "456" }); | ||
}); | ||
@@ -57,0 +57,0 @@ |
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
30980
486
+ Added@sentry-internal/tracing@7.120.0(transitive)
+ Added@sentry/core@7.120.0(transitive)
+ Added@sentry/integrations@7.120.0(transitive)
+ Added@sentry/node@7.120.0(transitive)
+ Added@sentry/types@7.120.0(transitive)
+ Added@sentry/utils@7.120.0(transitive)
+ Addedimmediate@3.0.6(transitive)
+ Addedlie@3.1.1(transitive)
+ Addedlocalforage@1.10.0(transitive)
- Removed@sentry/core@6.19.7(transitive)
- Removed@sentry/hub@6.19.7(transitive)
- Removed@sentry/minimal@6.19.7(transitive)
- Removed@sentry/node@6.19.7(transitive)
- Removed@sentry/types@6.19.7(transitive)
- Removed@sentry/utils@6.19.7(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedcookie@0.4.2(transitive)
- Removeddebug@4.3.7(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedlru_map@0.3.3(transitive)
- Removedms@2.1.3(transitive)
- Removedtslib@1.14.1(transitive)
Updated@sentry/node@^7.119.2