axios-extra
Advanced tools
Comparing version 0.0.3 to 0.0.4
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) { |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8342
9
205