From 8fbe71ee51c6d9bb4867477f2f9b2c47a5219e40 Mon Sep 17 00:00:00 2001 From: Ian Del Giudice Date: Wed, 14 Jun 2017 15:37:34 -0400 Subject: [PATCH 1/2] Adds license meta --- license.txt => LICENSE | 0 package.json | 1 + 2 files changed, 1 insertion(+) rename license.txt => LICENSE (100%) diff --git a/license.txt b/LICENSE similarity index 100% rename from license.txt rename to LICENSE diff --git a/package.json b/package.json index c22ae33..7f25fe5 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "description": "An in-browser prototyping tool built on top of webpack and kss-node", "author": "Alley Interactive", "version": "2.2.0", + "license": "GPL-2.0", "repository": { "type": "git", "url": "https://github.com/alleyinteractive/huron" From bc5ecbdb345b69c0003ca1ea4a7c209ef6e4e31a Mon Sep 17 00:00:00 2001 From: Gabriel Luethje Date: Wed, 14 Jun 2017 15:26:55 -0500 Subject: [PATCH 2/2] Use crypto instead of js-md5 for generateModuleHash --- package.json | 1 - src/web/huron.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c22ae33..0f5680c 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "html-loader": "^0.4.3", "html-webpack-plugin": "^2.28.0", "immutable": "^3.8.1", - "js-md5": "^0.4.1", "json-loader": "^0.5.4", "kss": "^3.0.0-beta.14", "style-loader": "^0.13.1", diff --git a/src/web/huron.js b/src/web/huron.js index 1664f28..167af4b 100644 --- a/src/web/huron.js +++ b/src/web/huron.js @@ -1,4 +1,4 @@ -const md5 = require('js-md5'); +const crypto = require('crypto'); /* eslint-disable no-underscore-dangle */ // Accept the huron.js module for Huron development @@ -119,7 +119,7 @@ class InsertNodes { * @return {string} key - generated MD5 Hash */ static generateModuleHash(key) { - return md5(key); + return crypto.createHash('md5').update(key).digest("hex"); } /**