files.com 1.1.17 → 1.1.18

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.17
1
+ 1.1.18
@@ -8,6 +8,7 @@
8
8
  "title": "My public key",
9
9
  "created_at": "2000-01-01T01:00:00Z",
10
10
  "fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
11
+ "fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
11
12
  "username": "User",
12
13
  "user_id": 1
13
14
  }
@@ -16,7 +17,8 @@
16
17
  * `id` (int64): Public key ID
17
18
  * `title` (string): Public key title
18
19
  * `created_at` (date-time): Public key created at date/time
19
- * `fingerprint` (string): Public key fingerprint
20
+ * `fingerprint` (string): Public key fingerprint (MD5)
21
+ * `fingerprint_sha256` (string): Public key fingerprint (SHA256)
20
22
  * `username` (string): Username of the user this public key is associated with
21
23
  * `user_id` (int64): User ID this public key is associated with
22
24
  * `public_key` (string): Actual contents of SSH key.
@@ -96,6 +98,7 @@ await public_key.update({
96
98
  "title": "My public key",
97
99
  "created_at": "2000-01-01T01:00:00Z",
98
100
  "fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
101
+ "fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
99
102
  "username": "User",
100
103
  "user_id": 1
101
104
  }
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.1.17';
14
+ var version = '1.1.18';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -51,13 +51,20 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
51
51
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
52
52
  return _this.attributes.created_at;
53
53
  });
54
- // string # Public key fingerprint
54
+ // string # Public key fingerprint (MD5)
55
55
  (0, _defineProperty2.default)(this, "getFingerprint", function () {
56
56
  return _this.attributes.fingerprint;
57
57
  });
58
58
  (0, _defineProperty2.default)(this, "setFingerprint", function (value) {
59
59
  _this.attributes.fingerprint = value;
60
60
  });
61
+ // string # Public key fingerprint (SHA256)
62
+ (0, _defineProperty2.default)(this, "getFingerprintSha256", function () {
63
+ return _this.attributes.fingerprint_sha256;
64
+ });
65
+ (0, _defineProperty2.default)(this, "setFingerprintSha256", function (value) {
66
+ _this.attributes.fingerprint_sha256 = value;
67
+ });
61
68
  // string # Username of the user this public key is associated with
62
69
  (0, _defineProperty2.default)(this, "getUsername", function () {
63
70
  return _this.attributes.username;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
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.1.17'
8
+ const version = '1.1.18'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -41,13 +41,20 @@ class PublicKey {
41
41
  // date-time # Public key created at date/time
42
42
  getCreatedAt = () => this.attributes.created_at
43
43
 
44
- // string # Public key fingerprint
44
+ // string # Public key fingerprint (MD5)
45
45
  getFingerprint = () => this.attributes.fingerprint
46
46
 
47
47
  setFingerprint = value => {
48
48
  this.attributes.fingerprint = value
49
49
  }
50
50
 
51
+ // string # Public key fingerprint (SHA256)
52
+ getFingerprintSha256 = () => this.attributes.fingerprint_sha256
53
+
54
+ setFingerprintSha256 = value => {
55
+ this.attributes.fingerprint_sha256 = value
56
+ }
57
+
51
58
  // string # Username of the user this public key is associated with
52
59
  getUsername = () => this.attributes.username
53
60