@abtnode/util 1.16.47-beta-20250724-080141-d80ab374 → 1.16.47-beta-20250729-045152-0bde0f98
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/upload-component.js +4 -0
- package/package.json +7 -7
package/lib/upload-component.js
CHANGED
|
@@ -376,6 +376,10 @@ const removeUploadFile = async (url) => {
|
|
|
376
376
|
const releaseDir = path.dirname(url.replace('file://', ''));
|
|
377
377
|
// 获取上传的文件夹
|
|
378
378
|
const componentDir = path.dirname(releaseDir, '..');
|
|
379
|
+
// 如果目标需要删除的文件不在当前 blocklet server 的目录下,则不删除
|
|
380
|
+
if (componentDir && process.env.ABT_NODE_DATA_DIR && !componentDir.includes(process.env.ABT_NODE_DATA_DIR)) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
379
383
|
// 判断是否有这个文件夹,如果有在进行删除
|
|
380
384
|
if (await fs.pathExists(componentDir)) {
|
|
381
385
|
await fs.remove(componentDir);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.47-beta-
|
|
6
|
+
"version": "1.16.47-beta-20250729-045152-0bde0f98",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,13 +18,13 @@
|
|
|
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.47-beta-
|
|
22
|
-
"@abtnode/db-cache": "1.16.47-beta-
|
|
21
|
+
"@abtnode/constant": "1.16.47-beta-20250729-045152-0bde0f98",
|
|
22
|
+
"@abtnode/db-cache": "1.16.47-beta-20250729-045152-0bde0f98",
|
|
23
23
|
"@arcblock/did": "1.21.0",
|
|
24
|
-
"@arcblock/pm2": "^6.0.
|
|
25
|
-
"@blocklet/constant": "1.16.47-beta-
|
|
24
|
+
"@arcblock/pm2": "^6.0.12",
|
|
25
|
+
"@blocklet/constant": "1.16.47-beta-20250729-045152-0bde0f98",
|
|
26
26
|
"@blocklet/error": "^0.2.5",
|
|
27
|
-
"@blocklet/meta": "1.16.47-beta-
|
|
27
|
+
"@blocklet/meta": "1.16.47-beta-20250729-045152-0bde0f98",
|
|
28
28
|
"@blocklet/xss": "^0.2.2",
|
|
29
29
|
"@ocap/client": "1.21.0",
|
|
30
30
|
"@ocap/mcrypto": "1.21.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"fs-extra": "^11.2.0",
|
|
90
90
|
"jest": "^29.7.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "554bd257e6e9aaa2c63d2b6558871f632f7f8ea4"
|
|
93
93
|
}
|