[Pkg-javascript-commits] [node-browserify-aes] 86/92: consistency with node crypto api for setAutoPadding
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Jun 4 09:35:22 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browserify-aes.
commit 3ffb079c9bf795cdbfc78de6b67c36833d38dbde
Author: Justin Tormey <jrtormey at gmail.com>
Date: Thu Jan 21 13:34:55 2016 -0500
consistency with node crypto api for setAutoPadding
---
decrypter.js | 1 +
encrypter.js | 1 +
2 files changed, 2 insertions(+)
diff --git a/decrypter.js b/decrypter.js
index 6e6f51d..b7b8bb0 100644
--- a/decrypter.js
+++ b/decrypter.js
@@ -41,6 +41,7 @@ Decipher.prototype._final = function () {
}
Decipher.prototype.setAutoPadding = function (setTo) {
this._autopadding = !!setTo
+ return this
}
function Splitter () {
if (!(this instanceof Splitter)) {
diff --git a/encrypter.js b/encrypter.js
index 046cde5..3d3f561 100644
--- a/encrypter.js
+++ b/encrypter.js
@@ -42,6 +42,7 @@ Cipher.prototype._final = function () {
}
Cipher.prototype.setAutoPadding = function (setTo) {
this._autopadding = !!setTo
+ return this
}
function Splitter () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git
More information about the Pkg-javascript-commits
mailing list