@microsoft/ocsdk
Advanced tools
Comparing version 0.4.3 to 0.4.4-main.8994342
@@ -19,2 +19,3 @@ export default interface IAxiosRetryOptions { | ||
headerOverwrites?: string[]; | ||
waitTimeInMsBetweenRetries: number | 1000; | ||
} |
@@ -33,2 +33,6 @@ import { RequestTimeoutConfig } from "../Common/RequestTimeoutConfig"; | ||
useUnauthReconnectIdSigQueryParam: boolean; | ||
/** | ||
* Time in milliseconds between call retries. | ||
*/ | ||
waitTimeBetweenRetriesConfig: RequestTimeoutConfig; | ||
} |
@@ -11,6 +11,6 @@ import FetchChatTokenResponse from "./Model/FetchChatTokenResponse"; | ||
import IReconnectableChatsParams from "./Interfaces/IReconnectableChatsParams"; | ||
import ISendTypingIndicatorOptionalParams from "./Interfaces/ISendTypingIndicatorOptionalParams"; | ||
import ISDK from "./Interfaces/ISDK"; | ||
import ISDKConfiguration from "./Interfaces/ISDKConfiguration"; | ||
import ISecondaryChannelEventOptionalParams from "./Interfaces/ISecondaryChannelEventOptionalParams"; | ||
import ISendTypingIndicatorOptionalParams from "./Interfaces/ISendTypingIndicatorOptionalParams"; | ||
import ISessionCloseOptionalParams from "./Interfaces/ISessionCloseOptionalParams"; | ||
@@ -17,0 +17,0 @@ import ISessionInitOptionalParams from "./Interfaces/ISessionInitOptionalParams"; |
@@ -28,5 +28,3 @@ "use strict"; | ||
// eslint-disable-line @typescript-eslint/explicit-module-boundary-types | ||
var retryInterval = 1000; // 1 second interval between retries | ||
// Default values | ||
if (axiosRetryOptions.retryOn429 === undefined || axiosRetryOptions.retryOn429 === null) { | ||
@@ -45,3 +43,3 @@ axiosRetryOptions.retryOn429 = true; | ||
axiosRetryOptions.shouldRetry = function (response) { | ||
if (response && response.status && response.status === _Constants["default"].tooManyRequestsStatusCode && axiosRetryOptions.retryOn429 === false) { | ||
if (response !== null && response !== void 0 && response.status && response.status === _Constants["default"].tooManyRequestsStatusCode && axiosRetryOptions.retryOn429 === false) { | ||
return false; | ||
@@ -96,3 +94,3 @@ } | ||
return new Promise(function (resolve) { | ||
return (0, _sleep["default"])(retryInterval).then(function () { | ||
return (0, _sleep["default"])(axiosRetryOptions.waitTimeInMsBetweenRetries).then(function () { | ||
return resolve(axios(config)); | ||
@@ -111,2 +109,2 @@ }); | ||
exports["default"] = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9heGlvc1JldHJ5LnRzIl0sIm5hbWVzIjpbImF4aW9zUmV0cnkiLCJheGlvcyIsImF4aW9zUmV0cnlPcHRpb25zIiwicmV0cnlJbnRlcnZhbCIsInJldHJ5T240MjkiLCJ1bmRlZmluZWQiLCJyZXRyaWVzIiwiaGVhZGVyT3ZlcndyaXRlcyIsImN1cnJlbnRUcnkiLCJvblN1Y2Nlc3MiLCJzaG91bGRSZXRyeSIsInJlc3BvbnNlIiwic3RhdHVzIiwiQ29uc3RhbnRzIiwidG9vTWFueVJlcXVlc3RzU3RhdHVzQ29kZSIsIm9uRXJyb3IiLCJlcnJvciIsImNvbmZpZyIsIlByb21pc2UiLCJyZWplY3QiLCJoZWFkZXJzIiwiaGVhZGVyTmFtZSIsInJlc3BvbnNlSGVhZGVyIiwidG9Mb2NhbGVMb3dlckNhc2UiLCJyZXNvbHZlIiwidGhlbiIsImludGVyY2VwdG9ycyIsInVzZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQ0E7O0FBRUE7Ozs7Ozs7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsSUFBTUEsVUFBVSxHQUFHLFNBQWJBLFVBQWEsQ0FBQ0MsS0FBRCxFQUF1QkMsaUJBQXZCLEVBQWlFO0FBQUU7QUFDcEYsTUFBTUMsYUFBYSxHQUFHLElBQXRCLENBRGtGLENBQ3REO0FBRTVCOztBQUNBLE1BQUlELGlCQUFpQixDQUFDRSxVQUFsQixLQUFpQ0MsU0FBakMsSUFBOENILGl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lLnRvTG9jYWxlTG93ZXJDYXNlKCldO1xuICAgICAgICAgIGlmIChyZXNwb25zZUhlYWRlcikge1xuICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHNlY3VyaXR5L2RldGVjdC1vYmplY3QtaW5qZWN0aW9uXG4gICAgICAgICAgICBjb25maWcuaGVhZGVyc1toZWFkZXJOYW1lXSA9IHJlc3BvbnNlSGVhZGVyO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUpID0+IHNsZWVwKHJldHJ5SW50ZXJ2YWwgYXMgbnVtYmVyIHwgMTAwMCkudGhlbigoKSA9PiByZXNvbHZlKGF4aW9zKGNvbmZpZykpKSk7XG4gICAgfVxuICAgIHJldHVybiBQcm9taXNlLnJlamVjdChlcnJvcik7XG4gIH07XG5cbiAgYXhpb3MuaW50ZXJjZXB0b3JzLnJlc3BvbnNlLnVzZShvblN1Y2Nlc3MsIG9uRXJyb3IpOyAvLyBJbnRlcmNlcHQgcmVzcG9uc2UgYmVmb3JlIHJldHVybmluZ1xufTtcbmV4cG9ydCBkZWZhdWx0IGF4aW9zUmV0cnk7Il19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9heGlvc1JldHJ5LnRzIl0sIm5hbWVzIjpbImF4aW9zUmV0cnkiLCJheGlvcyIsImF4aW9zUmV0cnlPcHRpb25zIiwicmV0cnlPbjQyOSIsInVuZGVmaW5lZCIsInJldHJpZXMiLCJoZWFkZXJPdmVyd3JpdGVzIiwiY3VycmVudFRyeSIsIm9uU3VjY2VzcyIsInNob3VsZFJldHJ5IiwicmVzcG9uc2UiLCJzdGF0dXMiLCJDb25zdGFudHMiLCJ0b29NYW55UmVxdWVzdHNTdGF0dXNDb2RlIiwib25FcnJvciIsImVycm9yIiwiY29uZml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ldHJ5OyJdfQ== |
{ | ||
"name": "@microsoft/ocsdk", | ||
"version": "0.4.3", | ||
"version": "0.4.4-main.8994342", | ||
"description": "Microsoft Omnichannel SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6111816
189
7112