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.7.0 to 0.7.1

4

dist/client/HttpClient.d.ts

@@ -1,2 +0,2 @@

import { GetRequestOptions, HttpClientConfig, HttpRequestOptions, HttpResponse, HttpSubmitArgs } from './types';
import { GetRequestOptions, HttpClientConfig, HttpRequestOptions, HttpResponse, HttpRetryConfig, HttpSubmitArgs } from './types';
import { LooseObject } from '../common/types';

@@ -13,6 +13,8 @@ export declare class HttpClient {

};
setRetry(config: HttpRetryConfig): void;
/*** Private ***/
private agent;
private retryConfig;
private processRequestOptions;
private extractSubmitArgs;
}

@@ -67,2 +67,5 @@ "use strict";

});
HttpClient.prototype.setRetry = function (config) {
this.retryConfig = config;
};
HttpClient.prototype.processRequestOptions = function (inOptions) {

@@ -92,6 +95,14 @@ var options = __assign({}, inOptions);

}
// Handle retry config
var retryConfig = {};
if (this.retryConfig) {
Object.assign(retryConfig, this.retryConfig);
}
if (options.retry) {
options['axios-retry'] = __assign({}, options.retry);
Object.assign(retryConfig, options.retry);
delete options.retry;
}
if (Object.keys(retryConfig).length) {
options['axios-retry'] = retryConfig;
}
return options;

@@ -98,0 +109,0 @@ };

{
"dependencies": {
"@libj/http-meta": "0.1.23",
"@libj/logger": "0.2.2",
"@libj/http-meta": "0.1.24",
"@libj/logger": "0.2.3",
"@libj/make-uri": "1.1.15",

@@ -12,3 +12,3 @@ "axios": "^0.21.1",

"name": "@libj/http",
"version": "0.7.0",
"version": "0.7.1",
"description": "Http toolbox",

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

],
"gitHead": "ae203452a0377a3d2b7a3638d8c4ff8951de7565"
"gitHead": "1c40a140cd12ddce9c1e9b5eb8c5cc5ac66a2eb7"
}

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