@abtnode/util 1.16.41 → 1.16.42-beta-20250402-131159-7647e64d
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/deep-clone.js +8 -0
- package/lib/security.js +2 -1
- package/lib/user.js +1 -1
- package/package.json +6 -6
package/lib/security.js
CHANGED
|
@@ -3,13 +3,14 @@ const crypto = require('crypto');
|
|
|
3
3
|
const AES = require('@ocap/mcrypto/lib/crypter/aes-legacy').default;
|
|
4
4
|
const semver = require('semver');
|
|
5
5
|
const uniq = require('lodash/uniq');
|
|
6
|
-
const cloneDeep = require('lodash/cloneDeep');
|
|
7
6
|
const { dirname, join, sep } = require('path');
|
|
8
7
|
const resolve = require('resolve/sync');
|
|
9
8
|
const { tmpdir, homedir } = require('os');
|
|
10
9
|
const which = require('which');
|
|
11
10
|
const { parseURL, withHttps, withHttp } = require('ufo');
|
|
12
11
|
|
|
12
|
+
const cloneDeep = require('./deep-clone');
|
|
13
|
+
|
|
13
14
|
const encrypt = (m, s, i) => AES.encrypt(m, crypto.pbkdf2Sync(i, s, 256, 32, 'sha512').toString('hex'));
|
|
14
15
|
const decrypt = (m, s, i) => AES.decrypt(m, crypto.pbkdf2Sync(i, s, 256, 32, 'sha512').toString('hex'));
|
|
15
16
|
|
package/lib/user.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const fs = require('fs-extra');
|
|
3
3
|
const { joinURL } = require('ufo');
|
|
4
|
-
const cloneDeep = require('lodash/cloneDeep');
|
|
5
4
|
|
|
6
5
|
const {
|
|
7
6
|
USER_AVATAR_DIR,
|
|
@@ -12,6 +11,7 @@ const {
|
|
|
12
11
|
|
|
13
12
|
const md5 = require('./md5');
|
|
14
13
|
const axios = require('./axios');
|
|
14
|
+
const cloneDeep = require('./deep-clone');
|
|
15
15
|
|
|
16
16
|
const getAvatarFile = (dataDir, fileName) => {
|
|
17
17
|
const result = path.join(dataDir, USER_AVATAR_DIR, fileName.substring(0, 2), fileName.substring(2));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.42-beta-20250402-131159-7647e64d",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.16.
|
|
22
|
-
"@arcblock/did": "^1.19.
|
|
21
|
+
"@abtnode/constant": "1.16.42-beta-20250402-131159-7647e64d",
|
|
22
|
+
"@arcblock/did": "^1.19.16",
|
|
23
23
|
"@arcblock/pm2": "^5.4.0",
|
|
24
|
-
"@blocklet/constant": "1.16.
|
|
25
|
-
"@blocklet/meta": "1.16.
|
|
24
|
+
"@blocklet/constant": "1.16.42-beta-20250402-131159-7647e64d",
|
|
25
|
+
"@blocklet/meta": "1.16.42-beta-20250402-131159-7647e64d",
|
|
26
26
|
"@ocap/client": "1.19.15",
|
|
27
27
|
"@ocap/mcrypto": "1.19.15",
|
|
28
28
|
"@ocap/util": "1.19.15",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"fs-extra": "^11.2.0",
|
|
83
83
|
"jest": "^29.7.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "f90e7dc430b14d99a8861d972967fb4b4c83c8ea"
|
|
86
86
|
}
|