@extrahorizon/javascript-sdk 8.14.2-feat-209-291dd31 → 8.14.2
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 +2 -1
- package/build/index.cjs.js +5 -3
- package/build/index.mjs +5 -3
- 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,8 +8,9 @@ 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, no longer invalidating each other
|
|
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`
|
|
13
14
|
|
|
14
15
|
## [8.14.1]
|
|
15
16
|
|
package/build/index.cjs.js
CHANGED
|
@@ -1752,11 +1752,13 @@ 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
|
+
}
|
|
1755
1758
|
const { config } = error;
|
|
1756
1759
|
const { retry } = config;
|
|
1757
1760
|
// tries includes the initial try. So 5 tries equals 4 retries
|
|
1758
|
-
if ((
|
|
1759
|
-
(retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1761
|
+
if ((retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1760
1762
|
(retry === null || retry === void 0 ? void 0 : retry.retryCondition(error))) {
|
|
1761
1763
|
await delay(retry.retryTimeInMs);
|
|
1762
1764
|
return axios({
|
|
@@ -5781,7 +5783,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5781
5783
|
};
|
|
5782
5784
|
};
|
|
5783
5785
|
|
|
5784
|
-
const version = '8.14.2
|
|
5786
|
+
const version = '8.14.2';
|
|
5785
5787
|
|
|
5786
5788
|
/**
|
|
5787
5789
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -1722,11 +1722,13 @@ 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
|
+
}
|
|
1725
1728
|
const { config } = error;
|
|
1726
1729
|
const { retry } = config;
|
|
1727
1730
|
// tries includes the initial try. So 5 tries equals 4 retries
|
|
1728
|
-
if ((
|
|
1729
|
-
(retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1731
|
+
if ((retry === null || retry === void 0 ? void 0 : retry.tries) > (retry === null || retry === void 0 ? void 0 : retry.current) &&
|
|
1730
1732
|
(retry === null || retry === void 0 ? void 0 : retry.retryCondition(error))) {
|
|
1731
1733
|
await delay(retry.retryTimeInMs);
|
|
1732
1734
|
return axios({
|
|
@@ -5751,7 +5753,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5751
5753
|
};
|
|
5752
5754
|
};
|
|
5753
5755
|
|
|
5754
|
-
const version = '8.14.2
|
|
5756
|
+
const version = '8.14.2';
|
|
5755
5757
|
|
|
5756
5758
|
/**
|
|
5757
5759
|
* Create ExtraHorizon client.
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.14.2
|
|
1
|
+
export declare const version = "8.14.2";
|
package/build/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.14.2
|
|
1
|
+
export declare const version = "8.14.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extrahorizon/javascript-sdk",
|
|
3
|
-
"version": "8.14.2
|
|
3
|
+
"version": "8.14.2",
|
|
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",
|