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.2 to 0.0.3

3

dist/response/SuccessHttpResponse.d.ts

@@ -5,2 +5,4 @@ import { HttpResponseBody, HttpResponseHeaders, HttpResponseInterface, HttpStatus } from '../index';

] | [HttpStatus] | [HttpResponseOptions<B>] | [HttpStatus, HttpResponseOptions<B>];
declare const DEFAULT_STATUS = HttpStatus.OK;
export { DEFAULT_STATUS as DEFAULT_SUCCESS_HTTP_RESPONSE_STATUS };
export declare class SuccessHttpResponse<B extends HttpResponseBody = HttpResponseBody> implements HttpResponseInterface {

@@ -12,2 +14,1 @@ constructor(...params: Params<B>);

}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SuccessHttpResponse = void 0;
exports.SuccessHttpResponse = exports.DEFAULT_SUCCESS_HTTP_RESPONSE_STATUS = void 0;
var index_1 = require("../index");
var isType_1 = require("../common/isType/isType");
var DEFAULT_STATUS = index_1.HttpStatus.OK;
exports.DEFAULT_SUCCESS_HTTP_RESPONSE_STATUS = DEFAULT_STATUS;
var SuccessHttpResponse = /** @class */ (function () {

@@ -25,3 +27,3 @@ function SuccessHttpResponse() {

if (params.length === 0) {
status = index_1.HttpStatus.OK;
status = DEFAULT_STATUS;
}

@@ -32,2 +34,3 @@ else if (params.length === 1 && Number.isInteger(params[0])) {

else if (params.length === 1 && isType_1.isObj(params[0])) {
status = DEFAULT_STATUS;
(_a = params[0], headers = _a.headers, body = _a.body);

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

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

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

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

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