pull/17/merge
Morten Olsrud 7 years ago committed by GitHub
commit 83a7166441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

File diff suppressed because one or more lines are too long

@ -4,10 +4,12 @@
"description": "A simple SHA-256 / SHA-224 hash function for JavaScript supports UTF-8 encoding.",
"main": "src/sha256.js",
"devDependencies": {
"coveralls": "^3.0.0",
"expect.js": "~0.3.1",
"mocha": "~2.3.4",
"nyc": "^11.3.0",
"uglify-js": "^3.1.9",
"uglifyjs": "^2.4.11",
"webworker-threads": "^0.7.13"
},
"scripts": {

@ -510,7 +510,7 @@
root.sha256 = exports.sha256;
root.sha224 = exports.sha224;
if (AMD) {
define(function () {
define("js-sha256",function () {
return exports;
});
}

@ -67,7 +67,10 @@ JS_SHA256_NO_NODE_JS = true;
JS_SHA256_NO_COMMON_JS = true;
JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW = false;
window = global;
define = function (func) {
define = function (id, func) {
if(typeof(id) == "function" && typeof(func) == "undefined" ){
func = id;
}
sha256 = func();
sha224 = sha256.sha224;
require('./test.js');

Loading…
Cancel
Save