@extrahorizon/javascript-sdk 8.14.2-feat-209-291dd31 → 8.14.3-dev-213-b162e5b

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 CHANGED
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [8.14.3]
9
+
10
+ ### Fixed
11
+ - Updated `qs` and `fflate` to resolve vulnerability warnings (vulnerable code was not in use)
12
+
8
13
  ## [8.14.2]
9
14
 
10
15
  ### Fixed
11
- - OAuth2 token refreshes are now shared between parallel requests
16
+ - OAuth2 token refreshes are now shared between parallel requests, no longer invalidating each other
12
17
  - Response transformations are no longer applied twice to retried requests
18
+ - Retry handling no longer masks internally generated errors as `TypeError: Cannot destructure property 'retry' of 'config' as it is undefined`
13
19
 
14
20
  ## [8.14.1]
15
21
 
@@ -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 ((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) &&
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-feat-209-291dd31';
5786
+ const version = '8.14.3-dev-213-b162e5b';
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 ((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) &&
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-feat-209-291dd31';
5756
+ const version = '8.14.3-dev-213-b162e5b';
5755
5757
 
5756
5758
  /**
5757
5759
  * Create ExtraHorizon client.
@@ -1 +1 @@
1
- export declare const version = "8.14.2-feat-209-291dd31";
1
+ export declare const version = "8.14.3-dev-213-b162e5b";
@@ -1 +1 @@
1
- export declare const version = "8.14.2-feat-209-291dd31";
1
+ export declare const version = "8.14.3-dev-213-b162e5b";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.14.2-feat-209-291dd31",
3
+ "version": "8.14.3-dev-213-b162e5b",
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",
@@ -34,10 +34,10 @@
34
34
  "dependencies": {
35
35
  "axios": "0.33.0",
36
36
  "buffer": "6.0.3",
37
- "fflate": "0.8.2",
37
+ "fflate": "0.8.3",
38
38
  "form-data": "4.0.6",
39
39
  "platform-specific": "1.1.0",
40
- "qs": "6.15.2",
40
+ "qs": "6.16.0",
41
41
  "typescript-json-decoder": "1.0.11"
42
42
  },
43
43
  "devDependencies": {