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

axios-extra

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-extra - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

test/demo.js

11

create.js
const Queue = require('promise-queue-plus/create')(Promise);
const apis_arg2 = new Set(['request', 'get', 'delete', 'head', 'options']);
const apis_arg1 = new Set(['request']);
const apis_arg2 = new Set(['get', 'delete', 'head', 'options']);
const apis_arg3 = new Set(['post', 'put', 'patch']);

@@ -74,3 +75,9 @@ const DEF_MAX_CONCURRENT = 10;

let attr = Reflect.get(target, property, receiver);
let i = apis_arg2.has(property) ? 1 : apis_arg3.has(property) ? 2 : null;
let i = apis_arg1.has(property)
? 0
: apis_arg2.has(property)
? 1
: apis_arg3.has(property)
? 2
: null;
if (i) {

@@ -77,0 +84,0 @@ return function(...args) {

2

package.json
{
"name": "axios-extra",
"version": "0.0.3",
"version": "0.0.4",
"description": "Extend \"Axios\"; add concurrency limits, retry, etc.",

@@ -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