[Pkg-javascript-commits] [node-ripemd160] 08/71: removed AMD
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:25:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-ripemd160.
commit 1be7213bfb730c8a70958ac5272ce7073ab5b93b
Author: JP Richardson <jprichardson at gmail.com>
Date: Thu Nov 21 00:48:53 2013 -0600
removed AMD
---
lib/ripemd160.js | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/lib/ripemd160.js b/lib/ripemd160.js
index dff622b..03d75ca 100644
--- a/lib/ripemd160.js
+++ b/lib/ripemd160.js
@@ -3,28 +3,16 @@
var _imports = {}
-//*** UMD BEGIN
-if (typeof define !== 'undefined' && define.amd) { //require.js / AMD
- define(['cryptocoin-convert-hex', 'cryptocoin-convert-string'], function(convertHex, convertString) {
- _imports.convertString = convertString
- _imports.bytesToHex = convertHex.bytesToHex
- return ripemd160
- })
-} else if (typeof module !== 'undefined' && module.exports) { //CommonJS
- try { //Node.js
- _imports.bytesToHex = require('cryptocoin-convert-hex').bytesToHex
- _imports.convertString = require('cryptocoin-convert-string')
- } catch (e) { //Component
+if (typeof module !== 'undefined' && module.exports) { //CommonJS
_imports.bytesToHex = require('convert-hex').bytesToHex
_imports.convertString = require('convert-string')
- }
module.exports = ripemd160
} else {
_imports.convertString = globals.convertString
_imports.bytesToHex = globals.convertHex.bytesToHex
globals.ripemd160 = ripemd160
}
-//*** UMD END
+
/*
CryptoJS v3.1.2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ripemd160.git
More information about the Pkg-javascript-commits
mailing list