New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@probot/pino

Package Overview
Dependencies
Maintainers
7
Versions
29
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 3.0.0-beta.1

.taprc

2

index.js
module.exports = { getTransformStream };
const { Transform } = require("readable-stream");
const { Transform } = require("node:stream");

@@ -5,0 +5,0 @@ const prettyFactory = require("pino-pretty");

{
"name": "@probot/pino",
"version": "2.4.0",
"version": "3.0.0-beta.1",
"publishConfig": {

@@ -16,3 +16,3 @@ "access": "public",

"coverage": "tap --coverage-report html",
"test": "tap 'test/*.js'",
"test": "tap",
"lint": "prettier --check '**/*.js' '.github/**/*.yml' '*.md' package.json",

@@ -37,10 +37,7 @@ "lint:fix": "prettier --write '**/*.js' '.github/**/*.yml' '*.md' package.json"

"pump": "^3.0.0",
"readable-stream": "^3.6.0",
"split2": "^4.0.0"
},
"release": {
"branches": [
"main"
]
"engines": {
"node": ">=18"
}
}

@@ -17,2 +17,5 @@ const path = require("path");

const stripAnsiColorRE =
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
const env = {

@@ -31,3 +34,6 @@ // disable colors

child.stdout.on("data", (data) => {
t.equal(data.toString(), `INFO (probot): hello future\n`);
t.equal(
data.toString().replace(stripAnsiColorRE, ""),
`INFO (probot): hello future\n`
);
});

@@ -44,6 +50,12 @@ child.stdin.write(logLine);

child.stdout.on("data", (data) => {
t.match(data.toString(), /event: "installation_repositories.added"/);
t.match(data.toString(), /status: 500/);
t.match(data.toString(), /x-github-request-id: "789"/);
t.match(
data.toString().replace(stripAnsiColorRE, ""),
/event: "installation_repositories.added"/
);
t.match(data.toString().replace(stripAnsiColorRE, ""), /status: 500/);
t.match(
data.toString().replace(stripAnsiColorRE, ""),
/x-github-request-id: "789"/
);
t.match(
data.toString(),

@@ -64,3 +76,3 @@ /url: "https:\/\/api.github.com\/repos\/octocat\/hello-world\/"/

child.stdout.on("data", (data) => {
t.equal(data.toString(), logLine);
t.equal(data.toString().replace(stripAnsiColorRE, ""), logLine);
});

@@ -78,3 +90,6 @@ child.stdin.write(logLine);

child.stdout.on("data", (data) => {
t.equal(data.toString(), logLine.replace('"level":30', '"level":"info"'));
t.equal(
data.toString().replace(stripAnsiColorRE, ""),
logLine.replace('"level":30', '"level":"info"')
);
});

@@ -136,3 +151,6 @@ child.stdin.write(logLine);

child.stdout.on("data", (data) => {
const errorStringLines = data.toString().split(/\n/);
const errorStringLines = data
.toString()
.replace(stripAnsiColorRE, "")
.split(/\n/);
t.equal(errorStringLines[0].trim(), "ERROR (probot): Oops");

@@ -199,3 +217,6 @@

child.stdout.on("data", (data) => {
t.match(data.toString(), /^FATAL \(probot\): Oh no!\n/);
t.match(
data.toString().replace(stripAnsiColorRE, ""),
/^FATAL \(probot\): Oh no!\n/
);
});

@@ -202,0 +223,0 @@ child.stdin.write(fatalErrorLine);

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