@blocklet/uploader-server 0.1.84 → 0.1.86
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.
|
@@ -78,7 +78,7 @@ export const initStaticResourceMiddleware = ({
|
|
|
78
78
|
}
|
|
79
79
|
mappingResource();
|
|
80
80
|
return (req, res, next) => {
|
|
81
|
-
const fileName = basename(req.url);
|
|
81
|
+
const fileName = basename(req.path || req.url?.split("?")[0]);
|
|
82
82
|
const matchCanUseResourceItem = canUseResources.find((item) => {
|
|
83
83
|
const normalizedPath = join(item.dir, fileName);
|
|
84
84
|
if (!normalizedPath.startsWith(item.dir)) {
|
|
@@ -88,7 +88,7 @@ const initStaticResourceMiddleware = ({
|
|
|
88
88
|
}
|
|
89
89
|
mappingResource();
|
|
90
90
|
return (req, res, next) => {
|
|
91
|
-
const fileName = (0, _path.basename)(req.url);
|
|
91
|
+
const fileName = (0, _path.basename)(req.path || req.url?.split("?")[0]);
|
|
92
92
|
const matchCanUseResourceItem = canUseResources.find(item => {
|
|
93
93
|
const normalizedPath = (0, _path.join)(item.dir, fileName);
|
|
94
94
|
if (!normalizedPath.startsWith(item.dir)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/uploader-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.86",
|
|
4
4
|
"description": "blocklet upload server",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"axios": "^1.7.8"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@abtnode/cron": "^1.16.
|
|
53
|
-
"@blocklet/constant": "^1.16.
|
|
54
|
-
"@blocklet/logger": "^1.16.
|
|
55
|
-
"@blocklet/sdk": "^1.16.
|
|
52
|
+
"@abtnode/cron": "^1.16.39",
|
|
53
|
+
"@blocklet/constant": "^1.16.39",
|
|
54
|
+
"@blocklet/logger": "^1.16.39",
|
|
55
|
+
"@blocklet/sdk": "^1.16.39",
|
|
56
56
|
"@tus/file-store": "1.0.0",
|
|
57
57
|
"@tus/server": "1.0.0",
|
|
58
58
|
"@uppy/companion": "4.15.1",
|