@libj/http
Advanced tools
Comparing version 0.2.2 to 0.3.1
import { AxiosRequestConfig, AxiosResponse } from 'axios'; | ||
import { LooseObject } from '../common/types'; | ||
import { LoggerInterface } from '../common/LoggerInterface'; | ||
import { LoggerInterface } from '@libj/logger'; | ||
export interface HttpRequestOptions extends AxiosRequestConfig { | ||
@@ -5,0 +5,0 @@ method?: any; |
export declare const isStr: (val: any) => boolean, isNum: (val: any) => boolean, isBool: (val: any) => boolean, isNull: (val: any) => boolean, isArr: (val: any) => boolean, isObj: (val: any) => boolean, isFn: (val: any) => boolean; | ||
export declare const isEnumVal: (Enum: Object, val: string | number) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFn = exports.isObj = exports.isArr = exports.isNull = exports.isBool = exports.isNum = exports.isStr = void 0; | ||
exports.isEnumVal = exports.isFn = exports.isObj = exports.isArr = exports.isNull = exports.isBool = exports.isNum = exports.isStr = void 0; | ||
exports.isStr = function (val) { return typeof val === 'string'; }, exports.isNum = function (val) { return typeof val === 'number'; }, exports.isBool = function (val) { return typeof val === 'boolean'; }, exports.isNull = function (val) { return val === null; }, exports.isArr = function (val) { return Array.isArray(val); }, exports.isObj = function (val) { return typeof val === 'object' && !exports.isArr(val) && !exports.isNull(val); }, exports.isFn = function (val) { return typeof val === 'function'; }; | ||
exports.isEnumVal = function (Enum, val) { return (Object.values(Enum).indexOf(val) > -1); }; | ||
//# sourceMappingURL=isType.js.map |
import { AxiosInstance } from 'axios'; | ||
import { LoggerInterface } from '../common/LoggerInterface'; | ||
import { LoggerInterface } from '@libj/logger'; | ||
export declare function httpLoggerInterceptor(agent: AxiosInstance, logger: LoggerInterface): void; |
{ | ||
"dependencies": { | ||
"@libj/http-meta": "0.1.2", | ||
"@libj/http-meta": "0.1.3", | ||
"axios": "^0.21.1", | ||
"form-data": "^4.0.0", | ||
"fs-extra": "^8.1.0" | ||
"fs-extra": "^8.1.0", | ||
"@libj/logger": "0.0.3" | ||
}, | ||
"name": "@libj/http", | ||
"version": "0.2.2", | ||
"version": "0.3.1", | ||
"description": "Http toolbox", | ||
@@ -33,3 +34,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "2808ff2fa1ccd76aa725a407263f792d1a851a73" | ||
"gitHead": "54f8b070b985801949cdd703345ec2c27748bb74" | ||
} |
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
18497
5
29
255
+ Added@libj/logger@0.0.3
+ Added@libj/http-meta@0.1.3(transitive)
+ Added@libj/logger@0.0.3(transitive)
- Removed@libj/http-meta@0.1.2(transitive)
Updated@libj/http-meta@0.1.3