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

@libj/http

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libj/http - npm Package Compare versions

Comparing version 0.2.2 to 0.3.1

2

dist/client/types.d.ts
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

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