From 5cf0347d770982cfc483aeaf0d28cebecc6757f0 Mon Sep 17 00:00:00 2001 From: dobobaie Date: Thu, 25 May 2017 15:13:20 +0200 Subject: [PATCH] Update sha256 NW.js compatibility. I don't know why but "module.exports" doesn't works with nw.js. So I added 2 external variables. --- src/sha256.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sha256.js b/src/sha256.js index d64b001..340c81c 100644 --- a/src/sha256.js +++ b/src/sha256.js @@ -7,6 +7,7 @@ * @license MIT */ /*jslint bitwise: true */ +var sha224, sha256; (function () { 'use strict'; @@ -364,6 +365,9 @@ exports.sha256 = exports; exports.sha224 = createMethod(true); + sha224 = exports.sha224; + sha256 = exports.sha256; + if (COMMON_JS) { module.exports = exports; } else {