[Pkg-javascript-commits] [node-sha.js] 121/237: Fixes disparity between 'SHA1' working on node but failing in browser
Bastien Roucariès
rouca at moszumanska.debian.org
Fri May 5 09:03:46 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-sha.js.
commit f1d60ee4e424f0a86bb2226913a80cc0f058940c
Author: Mudit Ameta <zeusdeux at gmail.com>
Date: Sat Jul 19 17:09:14 2014 +0530
Fixes disparity between 'SHA1' working on node but failing in browser
---
browserify.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browserify.js b/browserify.js
index cea44fe..7ed7c93 100644
--- a/browserify.js
+++ b/browserify.js
@@ -1,5 +1,5 @@
var exports = module.exports = function (alg) {
- var Alg = exports[alg]
+ var Alg = exports[alg.toLowerCase()]
if(!Alg) throw new Error(alg + ' is not supported (we accept pull requests)')
return new Alg()
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sha.js.git
More information about the Pkg-javascript-commits
mailing list