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

@capriza/http-utils

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capriza/http-utils - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

8

lib/httpUtils.js

@@ -53,9 +53,9 @@ var axios = require('axios');

if (err.response){
requestLog.error(`[HttpUtils] HTTP ${method} response error: ${err.response.status} ${err.response.statusText} on ${this.baseURL}${url}`);
requestLog.error(`[HttpUtils] HTTP ${method} response error: ${err.response.status} ${err.response.statusText} on ${opts.baseURL || this.baseURL}${url}`);
reject(err.response);
} else if (err.code){
requestLog.error(`[HttpUtils] HTTP ${method} error: ${err.code} on ${this.baseURL}${url}`);
requestLog.error(`[HttpUtils] HTTP ${method} error: ${err.code} on ${opts.baseURL || this.baseURL}${url}`);
reject(err);
} else {
requestLog.error(`[HttpUtils] HTTP ${method} error: ${err} on ${this.baseURL}${url}`);
requestLog.error(`[HttpUtils] HTTP ${method} error: ${err} on ${opts.baseURL || this.baseURL}${url}`);
reject(err);

@@ -70,3 +70,3 @@ }

if(debug){
requestLog.info(`[HttpUtils] HTTP ${method} request: ${this.baseURL}${url}`);
requestLog.info(`[HttpUtils] HTTP ${method} request: ${opts.baseURL || this.baseURL}${url}`);
requestLog.info(`[HttpUtils] PRIORITY[${priority}] OPTS: ${JSON.stringify(opts)}`);

@@ -73,0 +73,0 @@ }

{
"name": "@capriza/http-utils",
"version": "0.2.1",
"version": "0.2.2",
"description": "HTTP Request utils that handles, request-response, errors, concurrency, priority and authentication",

@@ -5,0 +5,0 @@ "main": "index.js",

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