@aiot-toolkit/shared-utils 2.0.2-beta.8 → 2.0.2-beta.9
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/lib/utils/CommonUtil.js +1 -1
- package/package.json +2 -2
package/lib/utils/CommonUtil.js
CHANGED
|
@@ -28,7 +28,7 @@ class CommonUtil {
|
|
|
28
28
|
static calcImageDigest(filePath) {
|
|
29
29
|
const data = fs_1.default.readFileSync(filePath);
|
|
30
30
|
const hash = crypto_1.default.createHash('md5').update(data);
|
|
31
|
-
return hash.digest('hex');
|
|
31
|
+
return hash.digest('hex').substring(0, 8);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* 从开发者项目的 node_module 中加载指定依赖;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/shared-utils",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.9",
|
|
4
4
|
"description": "The common method functions of the aiot-toolkit.",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"@types/fs-extra": "^11.0.4",
|
|
27
27
|
"@types/qrcode-terminal": "^0.12.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "19f19b20ca63800f2403cc89d9a8edb6a102a765"
|
|
30
30
|
}
|