[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-98-g5b0f823
by Maximilian Krambach
cvs at cvs.gnupg.org
Fri Aug 17 17:43:27 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 5b0f8230b2172bffcb3a3b629a75c9cf1a50a3d8 (commit)
from 8e87790db3499b1625fd65f3272192df47b5dfd0 (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 5b0f8230b2172bffcb3a3b629a75c9cf1a50a3d8
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date: Fri Aug 17 17:44:06 2018 +0200
js: decrypt callback is_mime fix
--
* src/gpgmejs: is_mime should report its' counterpart. Also,
file_name is not optional in specification. We'll send null if
there is no file_name
diff --git a/lang/js/src/gpgmejs.js b/lang/js/src/gpgmejs.js
index 9154979..1816436 100644
--- a/lang/js/src/gpgmejs.js
+++ b/lang/js/src/gpgmejs.js
@@ -193,9 +193,11 @@ export class GpgME {
msg.post().then(function(result){
let _result = {data: result.data};
_result.base64 = result.base64 ? true: false;
- _result.is_mime = result.mime ? true: false;
+ _result.is_mime = result.is_mime ? true: false;
if (result.file_name){
_result.file_name = result.file_name;
+ } else {
+ _result.file_name = null;
}
if (
result.hasOwnProperty('signatures') &&
-----------------------------------------------------------------------
Summary of changes:
lang/js/src/gpgmejs.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list