files.com 1.2.96 → 1.2.97
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/Api.js +3 -3
- package/lib/Files.js +1 -1
- package/package.json +1 -1
- package/src/Files.js +1 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.97
|
package/lib/Api.js
CHANGED
@@ -37,7 +37,7 @@ var fetchWithTimeout = function fetchWithTimeout(url) {
|
|
37
37
|
return clearTimeout(timeoutId);
|
38
38
|
});
|
39
39
|
};
|
40
|
-
var
|
40
|
+
var _fetchWithRetry = /*#__PURE__*/function () {
|
41
41
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(url, options) {
|
42
42
|
var retries,
|
43
43
|
maxRetries,
|
@@ -76,7 +76,7 @@ var fetchWithRetry = /*#__PURE__*/function () {
|
|
76
76
|
setTimeout(resolve, delaySecs * 1000);
|
77
77
|
});
|
78
78
|
case 22:
|
79
|
-
return _context.abrupt("return",
|
79
|
+
return _context.abrupt("return", _fetchWithRetry(url, options, nextRetries));
|
80
80
|
case 23:
|
81
81
|
case "end":
|
82
82
|
return _context.stop();
|
@@ -118,7 +118,7 @@ _Api = Api;
|
|
118
118
|
_context2.prev = 8;
|
119
119
|
agent = (getAgentForUrl === null || getAgentForUrl === void 0 ? void 0 : getAgentForUrl(url)) || (options === null || options === void 0 ? void 0 : options.agent) || (options === null || options === void 0 ? void 0 : options.httpsAgent) || (options === null || options === void 0 ? void 0 : options.httpAgent);
|
120
120
|
_context2.next = 12;
|
121
|
-
return
|
121
|
+
return _fetchWithRetry(url, _objectSpread({
|
122
122
|
agent: agent,
|
123
123
|
method: verb,
|
124
124
|
timeoutSecs: _Files.default.getNetworkTimeout()
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.2.
|
14
|
+
var version = '1.2.97';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED