@libj/http-meta
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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
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
35008
499