@livechat/developer-studio-api 3.0.22 → 3.0.23
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/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2930,9 +2930,10 @@ function getPlatformAccountsClientAuthorization(req) {
|
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
2932
|
function getPlatformAccountsClientConfig(options = {}) {
|
|
2933
|
+
var _a;
|
|
2933
2934
|
const defaultAuthorization = platformAccountsClientInstance.defaults.headers.Authorization;
|
|
2934
2935
|
const headers = {
|
|
2935
|
-
authorization:
|
|
2936
|
+
authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
|
|
2936
2937
|
};
|
|
2937
2938
|
return {
|
|
2938
2939
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
package/dist/index.mjs
CHANGED
|
@@ -2828,9 +2828,10 @@ function getPlatformAccountsClientAuthorization(req) {
|
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
2830
|
function getPlatformAccountsClientConfig(options = {}) {
|
|
2831
|
+
var _a;
|
|
2831
2832
|
const defaultAuthorization = platformAccountsClientInstance.defaults.headers.Authorization;
|
|
2832
2833
|
const headers = {
|
|
2833
|
-
authorization:
|
|
2834
|
+
authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
|
|
2834
2835
|
};
|
|
2835
2836
|
return {
|
|
2836
2837
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|