@tachybase/module-web 1.4.0 → 1.5.0
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/dist/externalVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cronstrue","title":"cRonstrue","version":"3.2.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2025-11-
|
|
1
|
+
{"name":"cronstrue","title":"cRonstrue","version":"3.2.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2025-11-11T06:40:06.220Z"}
|
package/dist/server/server.js
CHANGED
|
@@ -43,15 +43,29 @@ async function getLang(ctx) {
|
|
|
43
43
|
}
|
|
44
44
|
function readAppVersionFromPackageJson() {
|
|
45
45
|
try {
|
|
46
|
-
const
|
|
46
|
+
const versionJsonCandidates = [
|
|
47
|
+
(0, import_node_path.join)(process.cwd(), ".version.json"),
|
|
48
|
+
// fallback: relative to compiled file location
|
|
49
|
+
(0, import_node_path.join)(__dirname, "../../../../.version.json"),
|
|
50
|
+
(0, import_node_path.join)(__dirname, "../../../.version.json")
|
|
51
|
+
];
|
|
52
|
+
for (const versionPath of versionJsonCandidates) {
|
|
53
|
+
if ((0, import_node_fs.existsSync)(versionPath)) {
|
|
54
|
+
const versionInfo = JSON.parse((0, import_node_fs.readFileSync)(versionPath, "utf-8"));
|
|
55
|
+
if (versionInfo == null ? void 0 : versionInfo.version) {
|
|
56
|
+
return versionInfo.version;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const packageJsonCandidates = [
|
|
47
61
|
(0, import_node_path.join)(process.cwd(), "package.json"),
|
|
48
62
|
// fallback: relative to compiled file location
|
|
49
63
|
(0, import_node_path.join)(__dirname, "../../../../package.json"),
|
|
50
64
|
(0, import_node_path.join)(__dirname, "../../../package.json")
|
|
51
65
|
];
|
|
52
|
-
for (const
|
|
53
|
-
if ((0, import_node_fs.existsSync)(
|
|
54
|
-
const pkg = JSON.parse((0, import_node_fs.readFileSync)(
|
|
66
|
+
for (const pkgPath of packageJsonCandidates) {
|
|
67
|
+
if ((0, import_node_fs.existsSync)(pkgPath)) {
|
|
68
|
+
const pkg = JSON.parse((0, import_node_fs.readFileSync)(pkgPath, "utf-8"));
|
|
55
69
|
if (pkg == null ? void 0 : pkg.version) {
|
|
56
70
|
return pkg.version;
|
|
57
71
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/module-web",
|
|
3
3
|
"displayName": "WEB client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description": "Provides a client interface for the TachyBase server",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"System management"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1",
|
|
31
31
|
"react-i18next": "16.2.1",
|
|
32
32
|
"react-router-dom": "6.28.1",
|
|
33
|
-
"@tachybase/client": "1.
|
|
33
|
+
"@tachybase/client": "1.5.0"
|
|
34
34
|
},
|
|
35
35
|
"description.zh-CN": "为 TachyBase 服务端提供客户端界面",
|
|
36
36
|
"displayName.zh-CN": "WEB 客户端",
|