Socket
Socket
Sign inDemoInstall

@ambassify/ambassify-client

Package Overview
Dependencies
7
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.3 to 3.3.0

49

CHANGELOG.md

@@ -14,44 +14,9 @@ # Changelog

## 3.2.3
## 3.3.0
## 3.2.2
#### :rocket: New Feature
## 3.2.1
- Update `@ambassify/fetch-api` for fetch retry and concurrency features
- Set defaults for retrying requests
## 3.2.1
## 3.2.1
## 3.2.1
## 3.2.1
## 3.2.1
## 3.2.1
## 3.2.1
## 3.2.0
## 3.2.0
## 3.2.0
## 3.2.0
## 3.1.2
## 3.1.2
## 3.1.1
## 3.1.1
## 3.1.1
## 3.1.1
## 3.1.1
## 3.1.0

@@ -63,4 +28,2 @@

## 3.0.1
## 3.0.0

@@ -71,1 +34,5 @@

- Add default implementations for `_getResources` and `_getNextUrl` (required to use `FetchApi.prototype.getAll`) that work with most if not all Ambassify API's.

14

lib/index.js

@@ -167,4 +167,16 @@ 'use strict';

var retry = options.retry;
if (typeof retry === 'number') retry = { retries: options.retry };
if (retry !== false) {
retry = (0, _extends3.default)({
retries: 3,
delay: 100
}, retry);
}
var _this = (0, _possibleConstructorReturn3.default)(this, (AmbassifyApi.__proto__ || (0, _getPrototypeOf2.default)(AmbassifyApi)).call(this, (0, _extends3.default)({}, options, {
contentType: options.contentType || FetchApi.ContentTypes.JSON
contentType: options.contentType || FetchApi.ContentTypes.JSON,
retry: retry
})));

@@ -171,0 +183,0 @@

{
"name": "@ambassify/ambassify-client",
"version": "3.2.3",
"version": "3.3.0",
"description": "Base API client library for all Ambassify clients",

@@ -23,3 +23,3 @@ "engines": {

"@ambassify/error": "^1.0.1",
"@ambassify/fetch-api": "^3.2.0",
"@ambassify/fetch-api": "^3.3.0",
"@ambassify/json-parse-safe": "^1.1.0",

@@ -58,3 +58,3 @@ "@ambassify/throttle": "^0.1.8",

"homepage": "https://github.com/ambassify/api-clients#readme",
"gitHead": "c831a4bf88f6e32e57f9d9e1ae403d9ac9dd6df4"
"gitHead": "5088e950b34f66bea6deafaf7c58189de618d086"
}

@@ -104,5 +104,19 @@ const _get = require('lodash/get');

let retry = options.retry;
if (typeof retry === 'number')
retry = { retries: options.retry };
if (retry !== false) {
retry = {
retries: 3,
delay: 100,
...retry,
};
}
super({
...options,
contentType: options.contentType || FetchApi.ContentTypes.JSON
contentType: options.contentType || FetchApi.ContentTypes.JSON,
retry,
});

@@ -109,0 +123,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc