@octokit/plugin-request-log
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -15,3 +15,3 @@ import { VERSION } from "./version.js"; | ||
}).catch((error) => { | ||
const requestId = error.response.headers["x-github-request-id"] || "UNKNOWN"; | ||
const requestId = error.response?.headers["x-github-request-id"] || "UNKNOWN"; | ||
octokit.log.error( | ||
@@ -18,0 +18,0 @@ `${requestOptions.method} ${path} - ${error.status} with id ${requestId} in ${Date.now() - start}ms` |
@@ -1,4 +0,4 @@ | ||
const VERSION = "5.3.0"; | ||
const VERSION = "5.3.1"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "5.3.0"; | ||
export declare const VERSION = "5.3.1"; |
{ | ||
"name": "@octokit/plugin-request-log", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "Log all requests and request errors", | ||
@@ -24,7 +24,7 @@ "type": "module", | ||
"@types/node": "^20.0.0", | ||
"esbuild": "^0.21.0", | ||
"esbuild": "^0.23.0", | ||
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", | ||
"glob": "^10.2.7", | ||
"glob": "^11.0.0", | ||
"jest": "^29.0.0", | ||
"prettier": "3.3.1", | ||
"prettier": "3.3.3", | ||
"semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
@@ -31,0 +31,0 @@ "ts-jest": "^29.0.0", |
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
6001