Browse Source

fix: use sha256 to checkout external files

Paul Frazee 5 years ago
parent
commit
bfc579a584
3 changed files with 4 additions and 3 deletions
  1. 1
    1
      app/lib/blobs.js
  2. 2
    1
      app/lib/windows.js
  3. 1
    1
      package.json

+ 1
- 1
app/lib/blobs.js View File

@@ -95,7 +95,7 @@ module.exports = function (sbot, checkout_dir) {
95 95
           return cb(null, dst, false)
96 96
 
97 97
         // yes, check its hash
98
-        var hasher = createHash()
98
+        var hasher = createHash('sha256')
99 99
         pull(
100 100
           toPull.source(fs.createReadStream(dst)),
101 101
           hasher,

+ 2
- 1
app/lib/windows.js View File

@@ -40,8 +40,9 @@ module.exports.open = function (url, sbot, blobs, opts, params) {
40 40
             )
41 41
           } else
42 42
             console.log(err) // :TODO: something nicer
43
-        } else
43
+        } else {
44 44
           shell.openItem(filepath)
45
+        }
45 46
       })
46 47
     } else {
47 48
       // open in the browser

+ 1
- 1
package.json View File

@@ -25,7 +25,7 @@
25 25
     "electron-prebuilt": "^0.28.2"
26 26
   },
27 27
   "dependencies": {
28
-    "multiblob": "^1.4.3",
28
+    "multiblob": "^1.5.0",
29 29
     "multicb": "^1.1.0",
30 30
     "muxrpc": "^5.0.1",
31 31
     "phoenix-api": "~8.1.0",

Loading…
Cancel
Save