[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-55-g7a07227
by Maximilian Krambach
cvs at cvs.gnupg.org
Wed Jun 6 15:29:14 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, javascript-binding has been updated
via 7a072270ac031152ee034df0f5b6ef5e8bf7d394 (commit)
from bfd3799d39df265882deedeee083fd5246a2f35d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7a072270ac031152ee034df0f5b6ef5e8bf7d394
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date: Wed Jun 6 15:29:21 2018 +0200
js: change Keyinfo timestamps into javascript date
--
* src/Key.js
diff --git a/lang/js/src/Key.js b/lang/js/src/Key.js
index 8c8726a..5986254 100644
--- a/lang/js/src/Key.js
+++ b/lang/js/src/Key.js
@@ -115,6 +115,9 @@ export class GPGME_Key {
new GPGME_UserId(data.userids[i]));
}
break;
+ case 'last_update':
+ this._data[dataKeys[i]] = new Date( data[dataKeys[i]] * 1000 );
+ break;
default:
this._data[dataKeys[i]] = data[dataKeys[i]];
}
@@ -124,7 +127,6 @@ export class GPGME_Key {
/**
* Query any property of the Key list
- * (TODO: armor not in here, might be unexpected)
* @param {String} property Key property to be retreived
* @param {*} cached (optional) if false, the data will be directly queried
* from gnupg.
@@ -313,7 +315,11 @@ class GPGME_Subkey {
}
if (validSubKeyProperties.hasOwnProperty(property)){
if (validSubKeyProperties[property](value) === true) {
- this._data[property] = value;
+ if (property === 'timestamp' || property === 'expires'){
+ this._data[property] = new Date(value * 1000);
+ } else {
+ this._data[property] = value;
+ }
}
}
}
@@ -346,9 +352,14 @@ class GPGME_UserId {
}
if (validUserIdProperties.hasOwnProperty(property)){
if (validUserIdProperties[property](value) === true) {
- this._data[property] = value;
+ if (property === 'last_update'){
+ this._data[property] = new Date(value*1000);
+ } else {
+ this._data[property] = value;
+ }
}
}
+
}
/**
-----------------------------------------------------------------------
Summary of changes:
lang/js/src/Key.js | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list