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

@octokit/request-error

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/request-error - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist-node/index.js

@@ -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": [

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