From 2901f06318014092797b2e983b68da7ac2bb4251 Mon Sep 17 00:00:00 2001 From: Corey Vollmer Date: Mon, 18 Jul 2022 13:59:38 -0400 Subject: [PATCH] [DEV-9619] Return sha256 This fixes the implementation of sha256 to be compatible with our system. --- src/js/sha256.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/js/sha256.js b/src/js/sha256.js index fc0aef02..cc82d8ce 100644 --- a/src/js/sha256.js +++ b/src/js/sha256.js @@ -23,7 +23,7 @@ * @license MIT */ /*jslint bitwise: true */ -(function () { +var sha256 = (function () { 'use strict'; var ERROR = 'input is invalid type'; @@ -520,15 +520,5 @@ exports.sha256.hmac = createHmacMethod(); exports.sha224.hmac = createHmacMethod(true); - if (COMMON_JS) { - module.exports = exports; - } else { - root.sha256 = exports.sha256; - root.sha224 = exports.sha224; - if (AMD) { - define(function () { - return exports; - }); - } - } + return exports.sha256; })();