保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 26fa49f4b0aa658d65a21fffe828f39e78302573
PAMapp/node_modules/babel-loader/lib/cache.js
@@ -33,6 +33,14 @@
let defaultCacheDirectory = null;
let hashType = "md4"; // use md5 hashing if md4 is not available
try {
  crypto.createHash(hashType);
} catch (err) {
  hashType = "md5";
}
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const gunzip = promisify(zlib.gunzip);
@@ -91,7 +99,7 @@
const filename = function (source, identifier, options) {
  const hash = crypto.createHash("md4");
  const hash = crypto.createHash(hashType);
  const contents = JSON.stringify({
    source,
    options,