@extrahorizon/javascript-sdk 8.14.2-dev-211-13941b3 → 8.14.2-dev-210-e06ba47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -2
- package/build/index.cjs.js +3 -5
- package/build/index.mjs +3 -5
- package/build/types/version.d.ts +1 -1
- package/build/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,9 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## [8.14.2]
|
|
9
9
|
|
|
10
10
|
### Fixed
|
|
11
|
-
- OAuth2 token refreshes are now shared between parallel requests
|
|
11
|
+
- OAuth2 token refreshes are now shared between parallel requests
|
|
12
12
|
- Response transformations are no longer applied twice to retried requests
|
|
13
|
-
- Retry handling no longer masks internally generated errors as `TypeError: Cannot destructure property 'retry' of 'config' as it is undefined`
|
|
14
13
|
|
|
15
14
|
## [8.14.1]
|
|
16
15
|
|
package/build/index.cjs.js
CHANGED
|
@@ -1752,13 +1752,11 @@ function typeReceivedError(error) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
1754
|
const retryInterceptor = (axios) => async (error) => {
|
|
1755
|
-
if (!error || !error.isAxiosError || !error.config) {
|
|
1756
|
-
throw error;
|
|
1757
|
-
}
|
|
1758
1755
|
const { config } = error;
|
|
1759
1756
|
const { retry } = config;
|
|
1760
1757
|
// tries includes the initial try. So 5 tries equals 4 retries
|
|
1761
|
-
if ((
|
|
1758
|
+
if ((error === null || error === void 0 ? void 0 : error.isAxiosError) &&
|
|
1759
|
+
(retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1762
1760
|
(retry === null || retry === void 0 ? void 0 : retry.retryCondition(error))) {
|
|
1763
1761
|
await delay(retry.retryTimeInMs);
|
|
1764
1762
|
return axios({
|
|
@@ -5783,7 +5781,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5783
5781
|
};
|
|
5784
5782
|
};
|
|
5785
5783
|
|
|
5786
|
-
const version = '8.14.2-dev-
|
|
5784
|
+
const version = '8.14.2-dev-210-e06ba47';
|
|
5787
5785
|
|
|
5788
5786
|
/**
|
|
5789
5787
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -1722,13 +1722,11 @@ function typeReceivedError(error) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
const retryInterceptor = (axios) => async (error) => {
|
|
1725
|
-
if (!error || !error.isAxiosError || !error.config) {
|
|
1726
|
-
throw error;
|
|
1727
|
-
}
|
|
1728
1725
|
const { config } = error;
|
|
1729
1726
|
const { retry } = config;
|
|
1730
1727
|
// tries includes the initial try. So 5 tries equals 4 retries
|
|
1731
|
-
if ((
|
|
1728
|
+
if ((error === null || error === void 0 ? void 0 : error.isAxiosError) &&
|
|
1729
|
+
(retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1732
1730
|
(retry === null || retry === void 0 ? void 0 : retry.retryCondition(error))) {
|
|
1733
1731
|
await delay(retry.retryTimeInMs);
|
|
1734
1732
|
return axios({
|
|
@@ -5753,7 +5751,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5753
5751
|
};
|
|
5754
5752
|
};
|
|
5755
5753
|
|
|
5756
|
-
const version = '8.14.2-dev-
|
|
5754
|
+
const version = '8.14.2-dev-210-e06ba47';
|
|
5757
5755
|
|
|
5758
5756
|
/**
|
|
5759
5757
|
* Create ExtraHorizon client.
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.14.2-dev-
|
|
1
|
+
export declare const version = "8.14.2-dev-210-e06ba47";
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.14.2-dev-
|
|
1
|
+
export declare const version = "8.14.2-dev-210-e06ba47";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/javascript-sdk",
|
|
3
|
-
"version": "8.14.2-dev-
|
|
3
|
+
"version": "8.14.2-dev-210-e06ba47",
|
|
4
4
|
"description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
|
|
5
5
|
"main": "build/index.cjs.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|