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

@octokit/plugin-request-log

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-request-log - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

8

dist-src/index.js

@@ -9,9 +9,11 @@ import { VERSION } from "./version.js";

return request(options).then((response) => {
const requestId = response.headers["x-github-request-id"];
octokit.log.info(
`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`
`${requestOptions.method} ${path} - ${response.status} with id ${requestId} in ${Date.now() - start}ms`
);
return response;
}).catch((error) => {
octokit.log.info(
`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`
const requestId = error.response.headers["x-github-request-id"] || "UNKNOWN";
octokit.log.error(
`${requestOptions.method} ${path} - ${error.status} with id ${requestId} in ${Date.now() - start}ms`
);

@@ -18,0 +20,0 @@ throw error;

@@ -1,4 +0,4 @@

const VERSION = "5.1.1";
const VERSION = "5.2.0";
export {
VERSION
};

@@ -1,1 +0,1 @@

export declare const VERSION = "5.1.1";
export declare const VERSION = "5.2.0";
{
"name": "@octokit/plugin-request-log",
"version": "5.1.1",
"version": "5.2.0",
"description": "Log all requests and request errors",

@@ -5,0 +5,0 @@ "type": "module",

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