Comparing version 4.0.1 to 4.0.2
@@ -0,1 +1,5 @@ | ||
#### v 4.0.2 (2019-04-13) | ||
* fixed: Windows 7 support (Pull Request by https://github.com/ndxbn) | ||
#### v 4.0.1 (2019-03-10) | ||
@@ -2,0 +6,0 @@ * Added docs: changelog, contributing to the project, fixed typos and missing info in the readme file. |
{ | ||
"name": "zookeeper", | ||
"description": "apache zookeeper client (zookeeper async API >= 3.4.0)", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"author": "Yuri Finkelstein <yurif2003@yahoo.com>", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"Roy Cheng <roy.b.cheng@newegg.com>", | ||
"David Vujic github.com/DavidVujic" | ||
"David Vujic (https://github.com/DavidVujic)" | ||
], | ||
@@ -20,0 +20,0 @@ "repository": { |
@@ -44,9 +44,8 @@ const fs = require('fs'); | ||
if (env.isWindows) { | ||
const output = exec(`certutil -hashfile ${fileName} sha1`).split('\r\n'); | ||
const output = exec(`certutil -hashfile ${fileName} SHA1`).split('\r\n'); | ||
const arr = output[0].replace(':', '').split(' '); | ||
const name = arr.find(n => n === fileName); | ||
// `certutil` returns 2byte separated string (e.g. "a9 89 b5 27 f3 f9 90 d4 71 e6 d4 7e e4 10 e5 7d 8b e7 62 0b") | ||
const sha1 = output[1].replace(/ /g, ""); | ||
const sha1 = output[1]; | ||
res = `${sha1} ${name}`; | ||
res = `${sha1} ${fileName}`; | ||
} else { | ||
@@ -53,0 +52,0 @@ res = exec(`shasum -a 1 ${fileName}`).trim(); |
164364
40
2086