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.1.9 to 0.1.10

18

lib/httpUtils.js

@@ -22,20 +22,20 @@ var axios = require('axios');

async get(url, opts, { priority, debug, logger}) {
return this._callRequest("get", url, opts, { priority, debug, logger });
async get(url, opts, context) {
return this._callRequest("get", url, opts, context);
}
async put(url, opts, { priority, debug, logger }) {
return this._callRequest("put", url, opts, { priority, debug, logger });
async put(url, opts, context) {
return this._callRequest("put", url, opts, context);
}
async post(url, opts, { priority, debug, logger }) {
return this._callRequest("post", url, opts, { priority, debug, logger });
async post(url, opts, context) {
return this._callRequest("post", url, opts, context);
}
async downloadUrlAttachment(uri, { priority, debug, logger }) {
var res = await this.get(uri, {responseType : 'arraybuffer'}, { priority, debug, logger });
async downloadUrlAttachment(uri, context) {
var res = await this.get(uri, {responseType : 'arraybuffer'}, context);
return res && (new Uint8Array(res));
}
async _callRequest(method, url, opts = {}, { priority, debug, logger}){
async _callRequest(method, url, opts = {}, { priority, debug, logger } = {}){
const requestLog = logger || this.logger;

@@ -42,0 +42,0 @@ return new Promise((resolve, reject)=>{

{
"name": "@capriza/http-utils",
"version": "0.1.9",
"version": "0.1.10",
"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