hfs 3.4.0-alpha2 → 3.4.0-beta3
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/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.4.0-
|
|
3
|
+
"version": "3.4.0-beta3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hfs",
|
|
9
|
-
"version": "3.4.0-
|
|
9
|
+
"version": "3.4.0-beta3",
|
|
10
10
|
"license": "GPL-3.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gregoranders/csv": "^0.0.13",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.4.0-
|
|
3
|
+
"version": "3.4.0-beta3",
|
|
4
4
|
"description": "HTTP File Server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"file server",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test-with-ui": "sh -c 'npm run port-is-free -- 3005 && npm run start-frontend & npm run port-is-free -- 3006 && npm run start-admin & cross-env TEST_WITH_UI=1 npx playwright test --ui \"$@\"' --",
|
|
30
30
|
"prepublishOnly": "node -e \"const p=require('./package.json'); if (p.devDependencies || p.workspaces || p.scripts?.postinstall) throw Error('run npm run dist-modules before publishing')\"",
|
|
31
31
|
"pub": "cd dist && npm publish",
|
|
32
|
-
"dist": "STASHED=; STASH_BEFORE=$(git rev-parse -q --verify refs/stash || true); git update-index -q --refresh; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' || exit $?; STASH_AFTER=$(git rev-parse -q --verify refs/stash || true); [ \"$STASH_AFTER\" != \"$STASH_BEFORE\" ] && STASHED=1; fi;
|
|
33
|
-
"dist-uncommitted": "
|
|
32
|
+
"dist": "STASHED=; STASH_BEFORE=$(git rev-parse -q --verify refs/stash || true); git update-index -q --refresh; if ! git diff-index --quiet HEAD --; then git stash push -m 'dist' || exit $?; STASH_AFTER=$(git rev-parse -q --verify refs/stash || true); [ \"$STASH_AFTER\" != \"$STASH_BEFORE\" ] && STASHED=1; fi; CI=1 FORCE_COLOR=1 npm run dist-uncommitted; EXIT_CODE=$?; if [ -n \"$STASHED\" ]; then git stash pop || exit $?; fi; exit $EXIT_CODE",
|
|
33
|
+
"dist-uncommitted": "rm -rf dist && npm run build-server && npm run test-with-server && (npm run build-frontend & fe=$!; npm run build-admin & ad=$!; wait $fe && wait $ad) && npm run test-ui && npm run dist-bin",
|
|
34
34
|
"dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-linux-arm && npm run dist-bin-mac && npm run dist-bin-mac-arm",
|
|
35
35
|
"dist-modules": "cp package.json central.json README.md dist && cd dist && npm pkg delete devDependencies workspaces scripts.postinstall && rm -rf node_modules && npm install --omit=dev && npm shrinkwrap && cd .. && node scripts/prune_modules.js",
|
|
36
36
|
"dist-bin-win": "cd dist && pkg . --public -C gzip -t node24-win-x64 && npx resedit-cli --in hfs.exe --icon 1,../hfs.ico --out hfs.exe && zip hfs-windows-x64-$(jq -r .version ../package.json).zip hfs.exe -r plugins && cd ..",
|
package/src/api.log.js
CHANGED
|
@@ -28,8 +28,7 @@ exports.default = {
|
|
|
28
28
|
(0, serveFile_1.forceDownload)(ctx, log.path);
|
|
29
29
|
if (range)
|
|
30
30
|
ctx.request.header.range = `bytes=${range}`;
|
|
31
|
-
|
|
32
|
-
ctx.method = 'GET';
|
|
31
|
+
ctx.state.getOrHead = true; // API POST is only the transport for this read-only file response
|
|
33
32
|
await (0, serveFile_1.serveFile)(ctx, log.path);
|
|
34
33
|
return null;
|
|
35
34
|
},
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"version": 1.2,
|
|
4
4
|
"translate": {
|
|
5
5
|
"Select": "選擇",
|
|
6
|
-
"n_files": "{n,plural,one{#
|
|
7
|
-
"n_folders": "{n,plural,one{#
|
|
6
|
+
"n_files": "{n,plural,one{# 個檔案} other{# 個檔案}}",
|
|
7
|
+
"n_folders": "{n,plural,one{# 個資料夾} other{# 個資料夾}}",
|
|
8
8
|
"filter_count": "{n,plural, one{# 個已篩選} other{# 個已篩選}}",
|
|
9
9
|
"select_count": "{n,plural, one{# 個已選擇} other{# 個已選擇}}",
|
|
10
10
|
"filter_placeholder": "在此輸入以篩選下方清單",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"version": 1.2,
|
|
4
4
|
"translate": {
|
|
5
5
|
"Select": "选择",
|
|
6
|
-
"n_files": "{n,plural,one{#
|
|
7
|
-
"n_folders": "{n,plural,one{#
|
|
6
|
+
"n_files": "{n,plural,one{# 个文件} other{# 个文件}}",
|
|
7
|
+
"n_folders": "{n,plural,one{# 个文件夹} other{# 个文件夹}}",
|
|
8
8
|
"filter_count": "{n,plural, one{# 个已筛选} other{# 个已筛选}}",
|
|
9
9
|
"select_count": "{n,plural, one{# 个已选择} other{# 个已选择}}",
|
|
10
10
|
"filter_placeholder": "在此输入以筛选下方列表",
|