tego 1.3.43 → 1.3.44

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/lib/index.js CHANGED
@@ -24,8 +24,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  var import_preload = require("./preload");
25
25
  var import_node_perf_hooks = require("node:perf_hooks");
26
26
  var import_globals = __toESM(require("@tachybase/globals"));
27
- var import_server = require("@tachybase/server");
28
27
  var import_utils = require("@tachybase/utils");
28
+ var import_core = require("@tego/core");
29
29
  var import_commander = require("commander");
30
30
  var import_config = require("./config");
31
31
  var import_plugin_presets = __toESM(require("./plugin-presets"));
@@ -41,7 +41,7 @@ const run = /* @__PURE__ */ __name(async () => {
41
41
  await (0, import_utils.createDevPluginsSymlink)();
42
42
  await (0, import_utils.createStoragePluginsSymlink)();
43
43
  console.log(`Engine loaded at ${import_node_perf_hooks.performance.now().toFixed(2)} ms`);
44
- await import_server.Gateway.getInstance().run({
44
+ await import_core.Gateway.getInstance().run({
45
45
  mainAppOptions: await (0, import_config.getConfig)()
46
46
  });
47
47
  }, "run");
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/core';
2
2
  export declare class PluginPresets extends Plugin {
3
3
  splitNames(name: string): string[];
4
4
  getBuiltInPlugins(): string[];
@@ -22,8 +22,8 @@ __export(plugin_presets_exports, {
22
22
  default: () => plugin_presets_default
23
23
  });
24
24
  module.exports = __toCommonJS(plugin_presets_exports);
25
- var import_server = require("@tachybase/server");
26
- const _PluginPresets = class _PluginPresets extends import_server.Plugin {
25
+ var import_core = require("@tego/core");
26
+ const _PluginPresets = class _PluginPresets extends import_core.Plugin {
27
27
  splitNames(name) {
28
28
  return (name || "").split(",").filter(Boolean);
29
29
  }
@@ -55,11 +55,11 @@ const _PluginPresets = class _PluginPresets extends import_server.Plugin {
55
55
  async getPackageJson(name) {
56
56
  let packageName = name;
57
57
  try {
58
- packageName = await import_server.PluginManager.getPackageName(name);
58
+ packageName = await import_core.PluginManager.getPackageName(name);
59
59
  } catch (error) {
60
60
  packageName = name;
61
61
  }
62
- const packageJson = await import_server.PluginManager.getPackageJson(packageName);
62
+ const packageJson = await import_core.PluginManager.getPackageJson(packageName);
63
63
  return packageJson;
64
64
  }
65
65
  async allPlugins() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tego",
3
- "version": "1.3.43",
3
+ "version": "1.3.44",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "tego",
@@ -49,20 +49,20 @@
49
49
  "umzug": "3.8.2",
50
50
  "winston": "3.17.0",
51
51
  "winston-daily-rotate-file": "^5.0.0",
52
- "@tachybase/acl": "1.3.43",
53
- "@tachybase/auth": "1.3.43",
54
- "@tachybase/cache": "1.3.43",
55
- "@tachybase/data-source": "1.3.43",
56
- "@tachybase/database": "1.3.43",
57
- "@tachybase/actions": "1.3.43",
58
- "@tachybase/evaluators": "1.3.43",
59
- "@tachybase/globals": "1.3.43",
60
- "@tachybase/loader": "1.3.43",
61
- "@tachybase/logger": "1.3.43",
62
- "@tachybase/server": "1.3.43",
63
- "@tachybase/schema": "1.3.43",
64
- "@tachybase/utils": "1.3.43",
65
- "@tachybase/resourcer": "1.3.43"
52
+ "@tachybase/acl": "1.3.44",
53
+ "@tachybase/cache": "1.3.44",
54
+ "@tachybase/auth": "1.3.44",
55
+ "@tachybase/actions": "1.3.44",
56
+ "@tachybase/data-source": "1.3.44",
57
+ "@tachybase/evaluators": "1.3.44",
58
+ "@tachybase/globals": "1.3.44",
59
+ "@tachybase/loader": "1.3.44",
60
+ "@tachybase/database": "1.3.44",
61
+ "@tachybase/logger": "1.3.44",
62
+ "@tachybase/resourcer": "1.3.44",
63
+ "@tachybase/schema": "1.3.44",
64
+ "@tachybase/utils": "1.3.44",
65
+ "@tego/core": "1.3.44"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/lodash": "4.17.20",
package/src/index.ts CHANGED
@@ -2,9 +2,9 @@ import './preload';
2
2
 
3
3
  import { performance } from 'node:perf_hooks';
4
4
  import TachybaseGlobal from '@tachybase/globals';
5
- import { Gateway } from '@tachybase/server';
6
5
  import { createDevPluginsSymlink, createStoragePluginsSymlink } from '@tachybase/utils';
7
6
 
7
+ import { Gateway } from '@tego/core';
8
8
  import { Command } from 'commander';
9
9
 
10
10
  import { getConfig } from './config';
@@ -1,5 +1,4 @@
1
- import { Plugin, PluginManager } from '@tachybase/server';
2
-
1
+ import { Plugin, PluginManager } from '@tego/core';
3
2
  import _ from 'lodash';
4
3
 
5
4
  export class PluginPresets extends Plugin {