Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/ocsdk

Package Overview
Dependencies
Maintainers
5
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/ocsdk - npm Package Compare versions

Comparing version 0.5.3-main.f256c62 to 0.5.3

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [0.5.3] - 2024-06-18
### Added
- added axios-retry library support

@@ -9,0 +13,0 @@

9

lib/Utils/axiosRetryHandler.js

@@ -82,3 +82,3 @@ "use strict";

retryDelay: function retryDelay(retryCount, error) {
var _error$response4, _error$response4$head;
var _error$response4, _error$response4$head, _error$response5;

@@ -106,2 +106,7 @@ var timeBetweenRetry = axiosRetryOptions.waitTimeInMsBetweenRetries;

if (((_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : _error$response5.status) === _Constants["default"].tooManyRequestsStatusCode) {
// Retry after 5 seconds for 429 status code
return 5000;
}
return Math.pow(2, retryCount) * timeBetweenRetry;

@@ -118,2 +123,2 @@ }

exports["default"] = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9VdGlscy9heGlvc1JldHJ5SGFuZGxlci50cyJdLCJuYW1lcyI6WyJheGlvc1JldHJ5SGFuZGxlciIsImF4aW9zIiwiYXhpb3NSZXRyeU9wdGlvbnMiLCJyZXRyeU9uNDI5IiwidW5kZWZpbmVkIiwic2hvdWxkUmV0cnkiLCJlcnJvciIsInJlc3BvbnNlIiwic3RhdHVzIiwiQ29uc3RhbnRzIiwidG9vTWFueVJlcXVlc3RzU3RhdHVzQ29kZSIsImlzUmV0cnlhYmxlRXJyb3IiLCJyZXRyaWVzIiwicmV0cnlDb25kaXRpb24iLCJvblJldHJ5IiwicmV0cnlDb3VudCIsInJlcXVlc3RDb25maWciLCJoZWFkZXJPdmVyd3JpdGVzIiwi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VyRGF0ZS5nZXRUaW1lKCkgLSBjdXJyZW50VGltZSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXRyeUFmdGVyVGltZTtcbiAgICAgIH1cbiAgICAgIGlmKGVycm9yLnJlc3BvbnNlPy5zdGF0dXMgPT09IENvbnN0YW50cy50b29NYW55UmVxdWVzdHNTdGF0dXNDb2RlKXtcbiAgICAgICAgLy8gUmV0cnkgYWZ0ZXIgNSBzZWNvbmRzIGZvciA0Mjkgc3RhdHVzIGNvZGVcbiAgICAgICAgcmV0dXJuIDUwMDA7XG4gICAgICB9XG4gICAgICByZXR1cm4gTWF0aC5wb3coMiwgcmV0cnlDb3VudCkgKiB0aW1lQmV0d2VlblJldHJ5O1xuICAgIH0sXG5cbiAgfSk7XG5cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzUmV0cnlhYmxlRXJyb3IoZXJyb3I6IEF4aW9zRXJyb3IpOiBib29sZWFuIHtcbiAgcmV0dXJuIChcbiAgICBlcnJvci5jb2RlICE9PSAnRUNPTk5BQk9SVEVEJyAmJlxuICAgICghZXJyb3IucmVzcG9uc2UgfHxcbiAgICAgIGVycm9yLnJlc3BvbnNlLnN0YXR1cyA9PT0gNDI5IHx8XG4gICAgICAoZXJyb3IucmVzcG9uc2Uuc3RhdHVzID49IDUwMCAmJiBlcnJvci5yZXNwb25zZS5zdGF0dXMgPD0gNTk5KSlcbiAgKTtcbn1cbmV4cG9ydCBkZWZhdWx0IGF4aW9zUmV0cnlIYW5kbGVyOyJdfQ==
{
"name": "@microsoft/ocsdk",
"version": "0.5.3-main.f256c62",
"version": "0.5.3",
"description": "Microsoft Omnichannel SDK",

@@ -5,0 +5,0 @@ "files": [

@@ -67,3 +67,3 @@ # Omnichannel SDK

getChatTokenTimeBetweenRetriesOnFailure: 10000,
maxRequestRetriesOnFailure: 3
maxRequestRetriesOnFailure: 5
};

@@ -247,3 +247,3 @@

*/
maxRequestRetriesOnFailure: 3,
maxRequestRetriesOnFailure: 5,
}

@@ -250,0 +250,0 @@ ```

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc