babel-loader 7.1.4 → 7.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/fs-cache.js +3 -3
  2. package/package.json +1 -1
package/lib/fs-cache.js CHANGED
@@ -73,16 +73,16 @@ var write = function write(filename, result, callback) {
73
73
  * @return {String}
74
74
  */
75
75
  var filename = function filename(source, identifier, options) {
76
- var hash = crypto.createHash("SHA1");
76
+ var hash = crypto.createHash("md4");
77
77
  var contents = JSON.stringify({
78
78
  source: source,
79
79
  options: options,
80
80
  identifier: identifier
81
81
  });
82
82
 
83
- hash.end(contents);
83
+ hash.update(contents);
84
84
 
85
- return hash.read().toString("hex") + ".json.gz";
85
+ return hash.digest("hex") + ".json.gz";
86
86
  };
87
87
 
88
88
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-loader",
3
- "version": "7.1.4",
3
+ "version": "7.1.5",
4
4
  "description": "babel module loader for webpack",
5
5
  "files": [
6
6
  "lib"