@extrahorizon/javascript-sdk 8.14.2-dev-208-aa6da5c → 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 -0
- package/build/index.cjs.js +10 -10
- package/build/index.mjs +10 -10
- package/build/types/version.d.ts +1 -1
- package/build/version.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/build/index.cjs.js
CHANGED
|
@@ -2235,11 +2235,11 @@ function createOAuth1HttpClient(http, options) {
|
|
|
2235
2235
|
{}),
|
|
2236
2236
|
},
|
|
2237
2237
|
}));
|
|
2238
|
-
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2239
|
-
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2240
2238
|
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2241
2239
|
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2242
2240
|
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2241
|
+
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2242
|
+
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2243
2243
|
async function authenticate(data) {
|
|
2244
2244
|
// If the user has passed in a token/tokenSecret combination.
|
|
2245
2245
|
// Validate it against /users/me on the unauthenticated Axios client unless skipTokenCheck is true
|
|
@@ -2455,6 +2455,9 @@ function createOAuth2HttpClient(http, options) {
|
|
|
2455
2455
|
},
|
|
2456
2456
|
};
|
|
2457
2457
|
});
|
|
2458
|
+
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2459
|
+
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2460
|
+
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2458
2461
|
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2459
2462
|
// If we receive a expired/unknown access token error, refresh the tokens
|
|
2460
2463
|
httpWithAuth.interceptors.response.use(null, async (error) => {
|
|
@@ -2474,9 +2477,6 @@ function createOAuth2HttpClient(http, options) {
|
|
|
2474
2477
|
throw error;
|
|
2475
2478
|
});
|
|
2476
2479
|
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2477
|
-
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2478
|
-
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2479
|
-
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2480
2480
|
/**
|
|
2481
2481
|
* - Adds a creationTimestamp to the token
|
|
2482
2482
|
* - Notifies the user
|
|
@@ -2642,11 +2642,11 @@ function createProxyHttpClient(http, options) {
|
|
|
2642
2642
|
return Promise.reject(error);
|
|
2643
2643
|
});
|
|
2644
2644
|
}
|
|
2645
|
-
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2646
|
-
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2647
2645
|
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2648
2646
|
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2649
2647
|
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2648
|
+
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2649
|
+
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2650
2650
|
async function logout() {
|
|
2651
2651
|
try {
|
|
2652
2652
|
await httpWithAuth.post('/logout');
|
|
@@ -2707,11 +2707,11 @@ function createHttpClient({ packageVersion, host, requestLogger, responseLogger,
|
|
|
2707
2707
|
return Promise.reject(error);
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
|
-
http.interceptors.response.use(null, retryInterceptor(http));
|
|
2711
|
-
http.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2712
2710
|
http.interceptors.response.use(camelizeResponseData);
|
|
2713
2711
|
http.interceptors.response.use(transformResponseData);
|
|
2714
2712
|
http.interceptors.response.use(transformKeysResponseData);
|
|
2713
|
+
http.interceptors.response.use(null, retryInterceptor(http));
|
|
2714
|
+
http.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2715
2715
|
return http;
|
|
2716
2716
|
}
|
|
2717
2717
|
|
|
@@ -5781,7 +5781,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5781
5781
|
};
|
|
5782
5782
|
};
|
|
5783
5783
|
|
|
5784
|
-
const version = '8.14.2-dev-
|
|
5784
|
+
const version = '8.14.2-dev-210-e06ba47';
|
|
5785
5785
|
|
|
5786
5786
|
/**
|
|
5787
5787
|
* Create ExtraHorizon client.
|
package/build/index.mjs
CHANGED
|
@@ -2205,11 +2205,11 @@ function createOAuth1HttpClient(http, options) {
|
|
|
2205
2205
|
{}),
|
|
2206
2206
|
},
|
|
2207
2207
|
}));
|
|
2208
|
-
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2209
|
-
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2210
2208
|
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2211
2209
|
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2212
2210
|
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2211
|
+
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2212
|
+
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2213
2213
|
async function authenticate(data) {
|
|
2214
2214
|
// If the user has passed in a token/tokenSecret combination.
|
|
2215
2215
|
// Validate it against /users/me on the unauthenticated Axios client unless skipTokenCheck is true
|
|
@@ -2425,6 +2425,9 @@ function createOAuth2HttpClient(http, options) {
|
|
|
2425
2425
|
},
|
|
2426
2426
|
};
|
|
2427
2427
|
});
|
|
2428
|
+
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2429
|
+
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2430
|
+
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2428
2431
|
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2429
2432
|
// If we receive a expired/unknown access token error, refresh the tokens
|
|
2430
2433
|
httpWithAuth.interceptors.response.use(null, async (error) => {
|
|
@@ -2444,9 +2447,6 @@ function createOAuth2HttpClient(http, options) {
|
|
|
2444
2447
|
throw error;
|
|
2445
2448
|
});
|
|
2446
2449
|
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2447
|
-
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2448
|
-
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2449
|
-
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2450
2450
|
/**
|
|
2451
2451
|
* - Adds a creationTimestamp to the token
|
|
2452
2452
|
* - Notifies the user
|
|
@@ -2612,11 +2612,11 @@ function createProxyHttpClient(http, options) {
|
|
|
2612
2612
|
return Promise.reject(error);
|
|
2613
2613
|
});
|
|
2614
2614
|
}
|
|
2615
|
-
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2616
|
-
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2617
2615
|
httpWithAuth.interceptors.response.use(camelizeResponseData);
|
|
2618
2616
|
httpWithAuth.interceptors.response.use(transformResponseData);
|
|
2619
2617
|
httpWithAuth.interceptors.response.use(transformKeysResponseData);
|
|
2618
|
+
httpWithAuth.interceptors.response.use(null, retryInterceptor(httpWithAuth));
|
|
2619
|
+
httpWithAuth.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2620
2620
|
async function logout() {
|
|
2621
2621
|
try {
|
|
2622
2622
|
await httpWithAuth.post('/logout');
|
|
@@ -2677,11 +2677,11 @@ function createHttpClient({ packageVersion, host, requestLogger, responseLogger,
|
|
|
2677
2677
|
return Promise.reject(error);
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
2680
|
-
http.interceptors.response.use(null, retryInterceptor(http));
|
|
2681
|
-
http.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2682
2680
|
http.interceptors.response.use(camelizeResponseData);
|
|
2683
2681
|
http.interceptors.response.use(transformResponseData);
|
|
2684
2682
|
http.interceptors.response.use(transformKeysResponseData);
|
|
2683
|
+
http.interceptors.response.use(null, retryInterceptor(http));
|
|
2684
|
+
http.interceptors.response.use(null, typeReceivedErrorsInterceptor);
|
|
2685
2685
|
return http;
|
|
2686
2686
|
}
|
|
2687
2687
|
|
|
@@ -5751,7 +5751,7 @@ const templatesV2Service = (httpWithAuth) => {
|
|
|
5751
5751
|
};
|
|
5752
5752
|
};
|
|
5753
5753
|
|
|
5754
|
-
const version = '8.14.2-dev-
|
|
5754
|
+
const version = '8.14.2-dev-210-e06ba47';
|
|
5755
5755
|
|
|
5756
5756
|
/**
|
|
5757
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",
|