files.com 1.2.49 → 1.2.50
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.
|
1
|
+
1.2.50
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"error_message": "example",
|
14
14
|
"user_agent": "example",
|
15
15
|
"response_code": 1,
|
16
|
+
"success": true,
|
16
17
|
"duration_ms": 1
|
17
18
|
}
|
18
19
|
```
|
@@ -26,6 +27,7 @@
|
|
26
27
|
* `error_message` (string): Error message, if applicable
|
27
28
|
* `user_agent` (string): User-Agent
|
28
29
|
* `response_code` (int64): HTTP Response Code
|
30
|
+
* `success` (boolean): `false` if HTTP Response Code is 4xx or 5xx
|
29
31
|
* `duration_ms` (int64): Duration (in milliseconds)
|
30
32
|
|
31
33
|
---
|
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.50';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -69,6 +69,10 @@ var ExavaultApiRequestLog = /*#__PURE__*/(0, _createClass2.default)(function Exa
|
|
69
69
|
(0, _defineProperty2.default)(this, "getResponseCode", function () {
|
70
70
|
return _this.attributes.response_code;
|
71
71
|
});
|
72
|
+
// boolean # `false` if HTTP Response Code is 4xx or 5xx
|
73
|
+
(0, _defineProperty2.default)(this, "getSuccess", function () {
|
74
|
+
return _this.attributes.success;
|
75
|
+
});
|
72
76
|
// int64 # Duration (in milliseconds)
|
73
77
|
(0, _defineProperty2.default)(this, "getDurationMs", function () {
|
74
78
|
return _this.attributes.duration_ms;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
@@ -55,6 +55,9 @@ class ExavaultApiRequestLog {
|
|
55
55
|
// int64 # HTTP Response Code
|
56
56
|
getResponseCode = () => this.attributes.response_code
|
57
57
|
|
58
|
+
// boolean # `false` if HTTP Response Code is 4xx or 5xx
|
59
|
+
getSuccess = () => this.attributes.success
|
60
|
+
|
58
61
|
// int64 # Duration (in milliseconds)
|
59
62
|
getDurationMs = () => this.attributes.duration_ms
|
60
63
|
|