fdb2 1.0.14 → 1.0.16

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.
Files changed (2) hide show
  1. package/bin/fdb2.js +10 -0
  2. package/package.json +12 -12
package/bin/fdb2.js CHANGED
@@ -57,6 +57,10 @@ switch (command) {
57
57
  case 'restart':
58
58
  restartProject();
59
59
  break;
60
+ case '-v':
61
+ case '--version':
62
+ showVersion();
63
+ break;
60
64
  default:
61
65
  showHelp();
62
66
  break;
@@ -307,6 +311,12 @@ function restartProject() {
307
311
  startProject();
308
312
  }
309
313
 
314
+ // 显示版本号
315
+ function showVersion() {
316
+ const pkg = JSON.parse(fs.readFileSync(path.join(projectRoot, 'package.json'), 'utf8'));
317
+ console.log(pkg.version);
318
+ }
319
+
310
320
  // 显示帮助信息
311
321
  function showHelp() {
312
322
  console.log('FDB2 Database Tool');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fdb2",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "view/index.html",
@@ -54,10 +54,10 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@fefeding/common": "^1.0.58",
57
- "axios": "^1.14.0",
57
+ "axios": "^1.15.0",
58
58
  "dayjs": "^1.11.20",
59
59
  "express": "^5.2.1",
60
- "mysql2": "^3.20.0",
60
+ "mysql2": "^3.22.1",
61
61
  "oracledb": "^6.10.0",
62
62
  "pg": "^8.20.0",
63
63
  "reflect-metadata": "^0.2.2",
@@ -74,43 +74,43 @@
74
74
  "@codemirror/language": "^6.12.3",
75
75
  "@codemirror/state": "^6.6.0",
76
76
  "@codemirror/theme-one-dark": "^6.1.3",
77
- "@codemirror/view": "^6.40.0",
77
+ "@codemirror/view": "^6.41.0",
78
78
  "@fefeding/eventemitter": "^1.0.5",
79
79
  "@fefeding/vite-nunjucks-plugin": "^1.0.2",
80
80
  "@popperjs/core": "^2.11.8",
81
81
  "@rollup/pluginutils": "^5.3.0",
82
82
  "@types/bootstrap": "^5.2.10",
83
83
  "@types/jsdom": "^21.1.7",
84
- "@types/node": "^24.12.0",
84
+ "@types/node": "^24.12.2",
85
85
  "@types/vue": "^2.0.0",
86
- "@vitejs/plugin-vue": "^6.0.5",
86
+ "@vitejs/plugin-vue": "^6.0.6",
87
87
  "@vitejs/plugin-vue-jsx": "^5.1.5",
88
88
  "@vue/tsconfig": "^0.8.1",
89
89
  "@vueuse/core": "^13.9.0",
90
90
  "@zumer/snapdom": "^1.9.14",
91
- "autoprefixer": "^10.4.27",
91
+ "autoprefixer": "^10.5.0",
92
92
  "bootstrap": "^5.3.8",
93
93
  "bootstrap-icons": "^1.13.1",
94
94
  "codemirror": "^6.0.2",
95
- "dotenv": "^17.3.1",
95
+ "dotenv": "^17.4.2",
96
96
  "echarts": "^6.0.0",
97
97
  "exceljs": "^4.4.0",
98
98
  "js-cookie": "^3.0.5",
99
99
  "jsdom": "^26.1.0",
100
100
  "jszip": "^3.10.1",
101
101
  "nw": "^0.107.0",
102
- "nw-builder": "^4.17.5",
102
+ "nw-builder": "^4.17.7",
103
103
  "pinia": "^3.0.4",
104
104
  "pinia-plugin-persistedstate": "^4.7.1",
105
- "postcss": "^8.5.8",
106
- "sass": "^1.98.0",
105
+ "postcss": "^8.5.10",
106
+ "sass": "^1.99.0",
107
107
  "tailwindcss": "^3.4.19",
108
108
  "typescript": "^5.9.3",
109
109
  "vconsole": "^3.15.1",
110
110
  "vite": "latest",
111
111
  "vite-plugin-files-copy": "^3.8.0",
112
112
  "vitest": "^3.2.4",
113
- "vue": "^3.5.31",
113
+ "vue": "^3.5.32",
114
114
  "vue-router": "^4.6.4",
115
115
  "vue-tsc": "^3.2.6",
116
116
  "vuex": "^4.1.0",