@dcloudio/vue-cli-plugin-uni 2.0.2-alpha-4010320240417001 → 2.0.2-alpha-4010320240419002
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 +16 -0
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
const path = require('path')
|
|
2
2
|
|
|
3
|
+
const crypto = require('crypto')
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The MD4 algorithm is not available anymore in Node.js 17+ (because of library SSL 3).
|
|
7
|
+
* In that case, silently replace MD4 by the MD5 algorithm.
|
|
8
|
+
*/
|
|
9
|
+
try {
|
|
10
|
+
crypto.createHash('md4')
|
|
11
|
+
} catch (e) {
|
|
12
|
+
// console.warn('Crypto "MD4" is not supported anymore by this Node.js version');
|
|
13
|
+
const origCreateHash = crypto.createHash
|
|
14
|
+
crypto.createHash = (alg, opts) => {
|
|
15
|
+
return origCreateHash(alg === 'md4' ? 'md5' : alg, opts)
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
const {
|
|
4
20
|
manifestPlatformOptions
|
|
5
21
|
} = require('./lib/env')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/vue-cli-plugin-uni",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-4010320240419002",
|
|
4
4
|
"description": "uni-app plugin for vue-cli 3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "fxy060608",
|
|
18
18
|
"license": "Apache-2.0",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dcloudio/uni-stat": "^2.0.2-alpha-
|
|
20
|
+
"@dcloudio/uni-stat": "^2.0.2-alpha-4010320240419002",
|
|
21
21
|
"buffer-json": "^2.0.0",
|
|
22
22
|
"clone-deep": "^4.0.1",
|
|
23
23
|
"cross-env": "^5.2.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"copy-webpack-plugin": ">=5",
|
|
42
42
|
"postcss": ">=7"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a80020697eeabe512d66d781e65809490cfbf11f"
|
|
45
45
|
}
|