@octokit/request
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -0,1 +1,4 @@ | ||
const Deprecation = require('deprecation') | ||
const logOnce = require('once')(deprecation => console.warn(deprecation)) | ||
module.exports = class HttpError extends Error { | ||
@@ -15,3 +18,3 @@ constructor (message, statusCode, headers, request) { | ||
get () { | ||
console.warn('`error.code` is deprecated, use `error.status`.') | ||
logOnce(new Deprecation('[@octokit/request] `error.code` is deprecated, use `error.status`.')) | ||
return statusCode | ||
@@ -18,0 +21,0 @@ } |
{ | ||
"name": "@octokit/request", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"publishConfig": { | ||
@@ -40,4 +40,6 @@ "access": "public" | ||
"@octokit/endpoint": "^3.1.1", | ||
"deprecation": "^1.0.1", | ||
"is-plain-object": "^2.0.4", | ||
"node-fetch": "^2.3.0", | ||
"once": "^1.4.0", | ||
"universal-user-agent": "^2.0.1" | ||
@@ -44,0 +46,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
21670
135
6
+ Addeddeprecation@^1.0.1
+ Addedonce@^1.4.0
+ Addeddeprecation@1.0.1(transitive)