Socket
Socket
Sign inDemoInstall

api-client-wrapper

Package Overview
Dependencies
4
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "api-client-wrapper",
"version": "0.0.5",
"version": "0.0.6",
"description": "Easy to use REST client that manage all the basics out of the box: Response homogenization, bulk calls, simultaneos calls, timeout and error management.",

@@ -5,0 +5,0 @@ "author": "Roberto Langarica <roberto.langarica@gmail.com>",

const uuidv4 = require('uuid/v4');
export default class RequestObject {
static Status = {
waiting:0,
executing:1,
completed:2,
failed:3
}
class RequestObject {
constructor({method = 'get',url = '',attempts = 1, params={},data = {},alias = null, continueWithFailure = false, onProgress = null, ...rest}={}){

@@ -152,2 +145,11 @@ this.maxAttempts = attempts < 1 ? 1 : attempts;

}
}
}
RequestObject.prototype.Status = {
waiting:0,
executing:1,
completed:2,
failed:3
}
export default RequestObject
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc