[Pkg-javascript-commits] [node-browserify-aes] 14/43: browser: consistent module.exports
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 14:41:57 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 1da4813e224959dc00b8e5df6d58465dffa6ba29
Author: Daniel Cousens <github at dcousens.com>
Date: Thu May 18 17:44:41 2017 +1000
browser: consistent module.exports
---
browser.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/browser.js b/browser.js
index 2583539..dcb10cd 100644
--- a/browser.js
+++ b/browser.js
@@ -1,11 +1,13 @@
var ciphers = require('./encrypter')
-exports.createCipher = exports.Cipher = ciphers.createCipher
-exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
var deciphers = require('./decrypter')
-exports.createDecipher = exports.Decipher = deciphers.createDecipher
-exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
var modes = require('./modes.json')
+
function getCiphers () {
return Object.keys(modes)
}
+
+exports.createCipher = exports.Cipher = ciphers.createCipher
+exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
+exports.createDecipher = exports.Decipher = deciphers.createDecipher
+exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
exports.listCiphers = exports.getCiphers = getCiphers
--
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