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

@libj/http-meta

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libj/http-meta - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

dist/common/isType/isType.d.ts

7

dist/error/HttpError.d.ts

@@ -1,7 +0,6 @@

import { HttpResponseInterface } from '../responseInterface/HttpResponseInterface';
import { HttpResponseBody, HttpResponseHeaders } from '../responseInterface/types';
import { HttpResponseInterface } from '../response/HttpResponseInterface';
import { HttpResponseBody, HttpResponseHeaders, HttpResponseOptions } from '../response/types';
import { HttpStatus } from '../status/HttpStatus';
import { HttpErrorOptions } from './types';
export declare class HttpError<B extends HttpResponseBody = HttpResponseBody> extends Error implements HttpResponseInterface<B> {
constructor(status: HttpStatus, { body, headers }?: HttpErrorOptions<B>);
constructor(status: HttpStatus, { headers, body }?: HttpResponseOptions<B>);
readonly status: HttpStatus;

@@ -8,0 +7,0 @@ readonly body: B;

@@ -21,3 +21,3 @@ "use strict";

function HttpError(status, _a) {
var _b = _a === void 0 ? {} : _a, body = _b.body, headers = _b.headers;
var _b = _a === void 0 ? {} : _a, headers = _b.headers, body = _b.body;
var _this = _super.call(this, msg(status, body)) || this;

@@ -30,4 +30,4 @@ _this.body = {};

_this.status = status;
_this.headers = headers;
_this.body = body;
_this.headers = headers;
return _this;

@@ -34,0 +34,0 @@ }

import { HttpError } from './HttpError';
import { HttpErrorOptions } from './types';
import { HttpResponseBody } from '../responseInterface/types';
import { HttpResponseBody, HttpResponseOptions } from '../response/types';
export { HttpError };
export declare class BadRequestHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class UnauthorizedHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class ForbiddenHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class NotFoundHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class MethodNotAllowedHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class NotAcceptableHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class ConflictHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class PreconditionFailedHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class InternalServerHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class NotImplementedHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class BadGatewayHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class ServiceUnavailableHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
export declare class GatewayTimeoutHttpError<B extends HttpResponseBody = HttpResponseBody> extends HttpError {
constructor(options?: HttpErrorOptions<B>);
constructor(options?: HttpResponseOptions<B>);
}
import { HttpStatus } from './status/HttpStatus';
import { HttpMethod } from './HttpMethod';
import { HttpResponseInterface } from './responseInterface/HttpResponseInterface';
import { HttpResponseBody, HttpResponseHeaders } from './responseInterface/types';
import { HttpResponseInterface } from './response/HttpResponseInterface';
import { SuccessHttpResponse } from './response/SuccessHttpResponse';
import { HttpResponseBody, HttpResponseHeaders } from './response/types';
import { HttpError, BadRequestHttpError, UnauthorizedHttpError, ForbiddenHttpError, NotFoundHttpError, MethodNotAllowedHttpError, NotAcceptableHttpError, ConflictHttpError, PreconditionFailedHttpError, InternalServerHttpError, NotImplementedHttpError, BadGatewayHttpError, ServiceUnavailableHttpError, GatewayTimeoutHttpError } from './error';

@@ -9,2 +10,2 @@ export { HttpStatus };

export { HttpError, BadRequestHttpError, UnauthorizedHttpError, ForbiddenHttpError, NotFoundHttpError, MethodNotAllowedHttpError, NotAcceptableHttpError, ConflictHttpError, PreconditionFailedHttpError, InternalServerHttpError, NotImplementedHttpError, BadGatewayHttpError, ServiceUnavailableHttpError, GatewayTimeoutHttpError, };
export { HttpResponseInterface, HttpResponseBody, HttpResponseHeaders, };
export { HttpResponseInterface, SuccessHttpResponse, HttpResponseBody, HttpResponseHeaders, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GatewayTimeoutHttpError = exports.ServiceUnavailableHttpError = exports.BadGatewayHttpError = exports.NotImplementedHttpError = exports.InternalServerHttpError = exports.PreconditionFailedHttpError = exports.ConflictHttpError = exports.NotAcceptableHttpError = exports.MethodNotAllowedHttpError = exports.NotFoundHttpError = exports.ForbiddenHttpError = exports.UnauthorizedHttpError = exports.BadRequestHttpError = exports.HttpError = exports.HttpMethod = exports.HttpStatus = void 0;
exports.SuccessHttpResponse = exports.GatewayTimeoutHttpError = exports.ServiceUnavailableHttpError = exports.BadGatewayHttpError = exports.NotImplementedHttpError = exports.InternalServerHttpError = exports.PreconditionFailedHttpError = exports.ConflictHttpError = exports.NotAcceptableHttpError = exports.MethodNotAllowedHttpError = exports.NotFoundHttpError = exports.ForbiddenHttpError = exports.UnauthorizedHttpError = exports.BadRequestHttpError = exports.HttpError = exports.HttpMethod = exports.HttpStatus = void 0;
var HttpStatus_1 = require("./status/HttpStatus");

@@ -8,2 +8,4 @@ Object.defineProperty(exports, "HttpStatus", { enumerable: true, get: function () { return HttpStatus_1.HttpStatus; } });

Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return HttpMethod_1.HttpMethod; } });
var SuccessHttpResponse_1 = require("./response/SuccessHttpResponse");
Object.defineProperty(exports, "SuccessHttpResponse", { enumerable: true, get: function () { return SuccessHttpResponse_1.SuccessHttpResponse; } });
var error_1 = require("./error");

@@ -10,0 +12,0 @@ Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return error_1.HttpError; } });

{
"dependencies": {},
"name": "@libj/http-meta",
"version": "0.0.1",
"version": "0.0.2",
"description": "Http meta kit",

@@ -24,3 +24,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>",

],
"gitHead": "ef5577c4f0fa87c1b47e30aeed43f8e285dc7c31"
"gitHead": "5e5863bbd0eb73cfcbea171052dead5e0b775c88"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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