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

@probot/pino

Package Overview
Dependencies
Maintainers
7
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@probot/pino - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

3

index.js

@@ -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

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