@octokit/request-error
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -15,3 +15,3 @@ 'use strict'; | ||
class HttpError extends Error { | ||
class RequestError extends Error { | ||
constructor(message, statusCode, options) { | ||
@@ -53,2 +53,2 @@ super(message); // Maintains proper stack trace (only available on V8) | ||
exports.HttpError = HttpError; | ||
exports.RequestError = RequestError; |
@@ -7,3 +7,3 @@ import { Deprecation } from "deprecation"; | ||
*/ | ||
export class HttpError extends Error { | ||
export class RequestError extends Error { | ||
constructor(message, statusCode, options) { | ||
@@ -10,0 +10,0 @@ super(message); |
@@ -1,6 +0,6 @@ | ||
import { RequestOptions, ResponseHeaders, HttpErrorOptions } from "./types"; | ||
import { RequestOptions, ResponseHeaders, RequestErrorOptions } from "./types"; | ||
/** | ||
* Error with extra properties to help with debugging | ||
*/ | ||
export declare class HttpError extends Error { | ||
export declare class RequestError extends Error { | ||
name: "HttpError"; | ||
@@ -25,3 +25,3 @@ /** | ||
request: RequestOptions; | ||
constructor(message: string, statusCode: number, options: HttpErrorOptions); | ||
constructor(message: string, statusCode: number, options: RequestErrorOptions); | ||
} |
@@ -34,5 +34,5 @@ /** | ||
}; | ||
export declare type HttpErrorOptions = { | ||
export declare type RequestErrorOptions = { | ||
headers: ResponseHeaders; | ||
request: RequestOptions; | ||
}; |
@@ -99,3 +99,3 @@ class Deprecation extends Error { | ||
class HttpError extends Error { | ||
class RequestError extends Error { | ||
constructor(message, statusCode, options) { | ||
@@ -137,2 +137,2 @@ super(message); // Maintains proper stack trace (only available on V8) | ||
export { HttpError }; | ||
export { RequestError }; |
@@ -9,3 +9,3 @@ import { Deprecation } from 'deprecation'; | ||
class HttpError extends Error { | ||
class RequestError extends Error { | ||
constructor(message, statusCode, options) { | ||
@@ -47,2 +47,2 @@ super(message); // Maintains proper stack trace (only available on V8) | ||
export { HttpError }; | ||
export { RequestError }; |
{ | ||
"name": "@octokit/request-error", | ||
"description": "Error class for Octokit request errors", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
14180