tego 1.3.19 → 1.3.21

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/bin/tego.js CHANGED
@@ -1,20 +1,8 @@
1
1
  #!/usr/bin/env node
2
- const { existsSync } = require('node:fs');
3
- const { join } = require('node:path');
4
2
  const chalk = require('chalk');
5
3
 
6
- const libEntry = join(__dirname, '../lib/index.js');
7
- const srcEntry = join(__dirname, '../src/index.ts');
8
-
9
4
  if (__dirname.startsWith('/snapshot/')) {
10
5
  console.log(chalk.green('WAIT: ') + 'Engine is loading...');
11
6
  }
12
7
 
13
- if (existsSync(libEntry)) {
14
- require('../lib/index.js');
15
- } else {
16
- console.log(chalk.green('WAIT: ') + 'TypeScript compiling...');
17
- const tsx = require('tsx/cjs/api');
18
- tsx.register();
19
- require('../src/index.ts');
20
- }
8
+ require('../lib/index.js');
@@ -42,7 +42,8 @@ const defaultPlugins = [
42
42
  "full-text-search",
43
43
  "password-policy",
44
44
  "auth-pages",
45
- "manual-notification"
45
+ "manual-notification",
46
+ "auth-main-app"
46
47
  ];
47
48
  // Annotate the CommonJS export names for ESM import in node:
48
49
  0 && (module.exports = {
@@ -90,6 +90,7 @@ const _PluginPresets = class _PluginPresets extends import_server.Plugin {
90
90
  ["password-policy", "0.23.65", true],
91
91
  ["auth-pages", "0.23.65", true],
92
92
  ["manual-notification", "1.0.4", true],
93
+ ["auth-main-app", "1.3.17", true],
93
94
  // default disable
94
95
  ["adapter-bullmq", "0.21.76", false],
95
96
  ["adapter-red-node", "0.22.8", false],
package/lib/preload.js CHANGED
@@ -52,7 +52,6 @@ const defaultWhitelists = [
52
52
  "koa",
53
53
  "koa-bodyparser",
54
54
  "lodash",
55
- "mathjs",
56
55
  "multer",
57
56
  "mysql2",
58
57
  "pg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tego",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "tego",
@@ -25,7 +25,7 @@
25
25
  "@koa/cors": "5.0.0",
26
26
  "@koa/multer": "3.1.0",
27
27
  "@socketregistry/yocto-spinner": "1.0.19",
28
- "async-mutex": "0.3.0",
28
+ "async-mutex": "0.5.0",
29
29
  "axios": "0.29.0",
30
30
  "cache-manager": "5.7.6",
31
31
  "chalk": "^4.1.2",
@@ -38,7 +38,6 @@
38
38
  "koa": "^2.16.1",
39
39
  "koa-bodyparser": "4.4.1",
40
40
  "lodash": "4.17.21",
41
- "mathjs": "^10.6.4",
42
41
  "multer": "2.0.1",
43
42
  "mysql2": "3.14.1",
44
43
  "npm-registry-fetch": "18.0.2",
@@ -48,31 +47,30 @@
48
47
  "sequelize": "6.37.7",
49
48
  "sqlite3": "5.1.7",
50
49
  "tar": "7.4.3",
51
- "tsx": "4.20.3",
52
50
  "umzug": "3.8.2",
53
51
  "winston": "3.17.0",
54
52
  "winston-daily-rotate-file": "^5.0.0",
55
- "@tachybase/acl": "1.3.19",
56
- "@tachybase/actions": "1.3.19",
57
- "@tachybase/auth": "1.3.19",
58
- "@tachybase/cache": "1.3.19",
59
- "@tachybase/data-source": "1.3.19",
60
- "@tachybase/evaluators": "1.3.19",
61
- "@tachybase/globals": "1.3.19",
62
- "@tachybase/loader": "1.3.19",
63
- "@tachybase/database": "1.3.19",
64
- "@tachybase/logger": "1.3.19",
65
- "@tachybase/resourcer": "1.3.19",
66
- "@tachybase/schema": "1.3.19",
67
- "@tachybase/utils": "1.3.19",
68
- "@tachybase/server": "1.3.19"
53
+ "@tachybase/acl": "1.3.21",
54
+ "@tachybase/actions": "1.3.21",
55
+ "@tachybase/cache": "1.3.21",
56
+ "@tachybase/auth": "1.3.21",
57
+ "@tachybase/data-source": "1.3.21",
58
+ "@tachybase/database": "1.3.21",
59
+ "@tachybase/evaluators": "1.3.21",
60
+ "@tachybase/globals": "1.3.21",
61
+ "@tachybase/loader": "1.3.21",
62
+ "@tachybase/logger": "1.3.21",
63
+ "@tachybase/resourcer": "1.3.21",
64
+ "@tachybase/schema": "1.3.21",
65
+ "@tachybase/server": "1.3.21",
66
+ "@tachybase/utils": "1.3.21"
69
67
  },
70
68
  "devDependencies": {
71
- "@types/lodash": "4.17.18",
69
+ "@types/lodash": "4.17.20",
72
70
  "@yao-pkg/pkg": "6.5.1",
73
- "@tachybase/cache": "1.3.19",
74
- "@tachybase/client": "1.3.19",
75
- "@tachybase/logger": "1.3.19"
71
+ "@tachybase/cache": "1.3.21",
72
+ "@tachybase/client": "1.3.21",
73
+ "@tachybase/logger": "1.3.21"
76
74
  },
77
75
  "pkg": {
78
76
  "targets": [
@@ -21,4 +21,5 @@ export const defaultPlugins = [
21
21
  'password-policy',
22
22
  'auth-pages',
23
23
  'manual-notification',
24
+ 'auth-main-app',
24
25
  ];
@@ -54,6 +54,7 @@ export class PluginPresets extends Plugin {
54
54
  ['password-policy', '0.23.65', true],
55
55
  ['auth-pages', '0.23.65', true],
56
56
  ['manual-notification', '1.0.4', true],
57
+ ['auth-main-app', '1.3.17', true],
57
58
  // default disable
58
59
  ['adapter-bullmq', '0.21.76', false],
59
60
  ['adapter-red-node', '0.22.8', false],
package/src/preload.ts CHANGED
@@ -46,7 +46,6 @@ const defaultWhitelists = [
46
46
  'koa',
47
47
  'koa-bodyparser',
48
48
  'lodash',
49
- 'mathjs',
50
49
  'multer',
51
50
  'mysql2',
52
51
  'pg',