filecat 5.22.13 → 5.22.15

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 (22) hide show
  1. package/README.md +7 -4
  2. package/build/dist/{523.663998ba467a7af5fdf9.js → 523.005bcf74e77313ccf2b2.js} +2 -2
  3. package/build/dist/{943.1ede2fa609a1c1720d1b.js → 943.1035dc98f737421e6665.js} +2 -2
  4. package/build/dist/index.html +1 -1
  5. package/build/dist/{main.188b5fb2b62547c6f227.js → main.c35acdc67a88c9e21ecb.js} +2 -2
  6. package/build/main.js +1 -1
  7. package/build/threads.work.filecat.js +1 -1
  8. package/package.json +2 -2
  9. package/shell/build.js +1 -2
  10. package/shell/config/base.webpack.config.js +1 -1
  11. package/shell/config/webpack.worker.get.js +2 -2
  12. package/build/node_modules/@xiaobaidadada/node-pty-prebuilt/build/Release/conpty.node +0 -0
  13. package/build/node_modules/@xiaobaidadada/node-pty-prebuilt/build/Release/conpty_console_list.node +0 -0
  14. package/build/node_modules/@xiaobaidadada/node-pty-prebuilt/build/Release/pty.node +0 -0
  15. package/build/node_modules/@xiaobaidadada/node-tuntap2-wintun/build/Release/tuntap2Addon.node +0 -0
  16. package/build/node_modules/@xiaobaidadada/ssh2-prebuilt/build/Release/sshcrypto.node +0 -0
  17. package/build/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  18. package/build/node_modules/node-process-watcher/build/Release/node-process-watcher.node +0 -0
  19. package/build/node_modules/sqlite3/build/Release/node_sqlite3.node +0 -0
  20. /package/build/dist/{523.663998ba467a7af5fdf9.js.LICENSE.txt → 523.005bcf74e77313ccf2b2.js.LICENSE.txt} +0 -0
  21. /package/build/dist/{943.1ede2fa609a1c1720d1b.js.LICENSE.txt → 943.1035dc98f737421e6665.js.LICENSE.txt} +0 -0
  22. /package/build/dist/{main.188b5fb2b62547c6f227.js.LICENSE.txt → main.c35acdc67a88c9e21ecb.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filecat",
3
- "version": "5.22.13",
3
+ "version": "5.22.15",
4
4
  "description": "FileCat Server Manager",
5
5
  "author": "xiaobaidadada",
6
6
  "scripts": {
@@ -43,7 +43,7 @@
43
43
  "@xiaobaidadada/node-tuntap2-wintun": "^3.0.2",
44
44
  "@xiaobaidadada/ssh2-prebuilt": "^1.16.0",
45
45
  "node-process-watcher": "^1.5.1",
46
- "sqlite3": "^5.1.7"
46
+ "better-sqlite3": "^12.6.2"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@babel/core": "^7.24.3",
package/shell/build.js CHANGED
@@ -58,8 +58,7 @@ const tasksLister = new Listr(
58
58
  webpack(get_webpack_work_config({
59
59
  entry_path:path.join(__dirname, "..", "build", "server", "main","threads","filecat","threads.work.filecat.js"),
60
60
  output_name:'threads.work.filecat.js',
61
- pkg:args[0]==="npm",
62
- docker:args[0]==="docker",
61
+ is_exe
63
62
  }), (err, stats) => {
64
63
  if (err || stats.hasErrors()) {
65
64
  console.error(err || stats.toString());
@@ -56,7 +56,7 @@ const npm_externals = [
56
56
  '@xiaobaidadada/node-tuntap2-wintun': 'commonjs @xiaobaidadada/node-tuntap2-wintun',
57
57
  'node-process-watcher': 'commonjs node-process-watcher',
58
58
  '@xiaobaidadada/ssh2-prebuilt': 'commonjs @xiaobaidadada/ssh2-prebuilt',
59
- 'sqlite3/build/Release/node_sqlite3.node': 'commonjs sqlite3/build/Release/node_sqlite3.node',
59
+ 'better-sqlite3/build/Release/better_sqlite3.node': 'commonjs better-sqlite3/build/Release/better_sqlite3.node',
60
60
  }
61
61
  ]
62
62
  const pkg_externals = [
@@ -5,7 +5,7 @@ const TerserPlugin = require("terser-webpack-plugin");
5
5
  const {base_url} = require("./env");
6
6
  const {plugins, pkg_externals, npm_externals, _node_rules} = require("./base.webpack.config");
7
7
 
8
- function get_webpack_work_config({entry_path,output_name,pkg,docker}) {
8
+ function get_webpack_work_config({entry_path,output_name,is_exe}) {
9
9
  const config = {
10
10
  target: 'node', // 指定打包结果运行在node环境下
11
11
  mode: 'production', // 或者 'production'
@@ -29,7 +29,7 @@ function get_webpack_work_config({entry_path,output_name,pkg,docker}) {
29
29
  plugins,
30
30
  externals: npm_externals
31
31
  }
32
- if(pkg===true || docker===true) {
32
+ if(is_exe) {
33
33
  // 整体打包需要二进制也进去
34
34
  config['module'] = {
35
35
  rules: _node_rules