@octokit/request-error
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -21,3 +21,6 @@ class RequestError extends Error { | ||
this.name = "HttpError"; | ||
this.status = statusCode; | ||
this.status = Number.parseInt(statusCode); | ||
if (Number.isNaN(this.status)) { | ||
this.status = 0; | ||
} | ||
if ("response" in options) { | ||
@@ -24,0 +27,0 @@ this.response = options.response; |
{ | ||
"name": "@octokit/request-error", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"publishConfig": { | ||
@@ -26,6 +26,6 @@ "access": "public", | ||
"@types/node": "^20.0.0", | ||
"esbuild": "^0.20.0", | ||
"glob": "^10.2.6", | ||
"esbuild": "^0.23.0", | ||
"glob": "^11.0.0", | ||
"jest": "^29.0.0", | ||
"prettier": "3.2.5", | ||
"prettier": "3.3.2", | ||
"ts-jest": "^29.0.0", | ||
@@ -32,0 +32,0 @@ "typescript": "^5.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
6428
69