zusbdll 0.0.1 → 0.0.2
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.
- package/index.js +3 -2
- package/package.json +1 -1
- package/test.js +1 -0
package/index.js
CHANGED
|
@@ -420,11 +420,12 @@ async function autoMD5() {
|
|
|
420
420
|
msg:'error'
|
|
421
421
|
}
|
|
422
422
|
try {
|
|
423
|
-
|
|
423
|
+
const dllpath = path.join(__dirname, "lib", "SG.dll");
|
|
424
|
+
let md5v=await calculateMD5(dllpath)
|
|
424
425
|
res.code=0;
|
|
425
426
|
res.data=md5v;
|
|
426
427
|
res.msg='success';
|
|
427
|
-
} catch (
|
|
428
|
+
} catch (err) {
|
|
428
429
|
res.data=err;
|
|
429
430
|
res.msg=err.message;
|
|
430
431
|
}
|
package/package.json
CHANGED