@abtnode/util 1.16.31-beta-4246ab25 → 1.16.31-beta-53480e26
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/security.js +3 -0
- package/lib/user.js +4 -0
- package/package.json +6 -6
package/lib/security.js
CHANGED
|
@@ -104,6 +104,8 @@ const getSecurityNodeOptions = (blocklet, enableFileSystemIsolation = true) => {
|
|
|
104
104
|
const meiliSearchPath = findExecutable('meilisearch');
|
|
105
105
|
const meiliSearchPathAlt = fs.existsSync('/data/bin/meilisearch') ? '/data/bin/meilisearch' : '';
|
|
106
106
|
const blockletCliPath = findExecutable('blocklet');
|
|
107
|
+
const pnpmPath = findExecutable('pnpm');
|
|
108
|
+
const pnpmGlobalPath = pnpmPath ? join(dirname(pnpmPath), 'global') : '';
|
|
107
109
|
|
|
108
110
|
options.push(
|
|
109
111
|
'--experimental-permission',
|
|
@@ -143,6 +145,7 @@ const getSecurityNodeOptions = (blocklet, enableFileSystemIsolation = true) => {
|
|
|
143
145
|
dirname(dirname(process.execPath)),
|
|
144
146
|
process.cwd(),
|
|
145
147
|
tmpdir(),
|
|
148
|
+
pnpmGlobalPath,
|
|
146
149
|
]
|
|
147
150
|
.filter(Boolean)
|
|
148
151
|
.filter((x) => x !== sep)
|
package/lib/user.js
CHANGED
|
@@ -178,6 +178,10 @@ function updateConnectedAccount(connectedAccounts = [], connectedAccount = {}) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
const getAvatarByUrl = async (url) => {
|
|
181
|
+
if (url.startsWith('bn:')) {
|
|
182
|
+
return url;
|
|
183
|
+
}
|
|
184
|
+
|
|
181
185
|
try {
|
|
182
186
|
const { data } = await axios.get(url, {
|
|
183
187
|
responseType: 'arraybuffer',
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.31-beta-
|
|
6
|
+
"version": "1.16.31-beta-53480e26",
|
|
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.31-beta-
|
|
22
|
-
"@abtnode/logger": "1.16.31-beta-
|
|
21
|
+
"@abtnode/constant": "1.16.31-beta-53480e26",
|
|
22
|
+
"@abtnode/logger": "1.16.31-beta-53480e26",
|
|
23
23
|
"@arcblock/pm2": "^5.4.0",
|
|
24
|
-
"@blocklet/constant": "1.16.31-beta-
|
|
25
|
-
"@blocklet/meta": "1.16.31-beta-
|
|
24
|
+
"@blocklet/constant": "1.16.31-beta-53480e26",
|
|
25
|
+
"@blocklet/meta": "1.16.31-beta-53480e26",
|
|
26
26
|
"@ocap/client": "1.18.135",
|
|
27
27
|
"@ocap/mcrypto": "1.18.135",
|
|
28
28
|
"@ocap/util": "1.18.135",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"fs-extra": "^11.2.0",
|
|
83
83
|
"jest": "^29.7.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "203544964d01a856dc380147ba938755f629429f"
|
|
86
86
|
}
|