files.com 1.2.96 → 1.2.97

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/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.96
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 fetchWithRetry = /*#__PURE__*/function () {
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", fetchWithRetry(url, options, nextRetries));
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 fetchWithRetry(url, _objectSpread({
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.96';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.96",
3
+ "version": "1.2.97",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.96'
8
+ const version = '1.2.97'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO