@tachybase/plugin-devtools 1.3.21 → 1.3.22

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.
@@ -1,13 +1,10 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.21",
4
- "@tachybase/sdk": "1.3.21",
3
+ "@tachybase/client": "1.3.22",
4
+ "@tego/client": "1.3.39",
5
5
  "antd": "5.22.5",
6
6
  "ahooks": "3.9.0",
7
- "@ant-design/icons": "5.5.2",
8
- "@tachybase/actions": "1.3.21",
9
- "@tachybase/server": "1.3.21",
10
- "react-i18next": "15.2.0",
11
- "@tachybase/utils": "1.3.21",
12
- "@tachybase/database": "1.3.21"
7
+ "@ant-design/icons": "5.6.1",
8
+ "@tego/server": "1.3.39",
9
+ "react-i18next": "15.2.0"
13
10
  };
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  declare const ENVResource: {
3
3
  name: string;
4
4
  actions: {
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  declare const MiddlewareOrderResource: {
3
3
  name: string;
4
4
  actions: {
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  import { SwaggerManager } from './swagger';
3
3
  export declare class PluginDevToolServer extends Plugin {
4
4
  swagger: SwaggerManager;
@@ -21,7 +21,7 @@ __export(plugin_exports, {
21
21
  default: () => plugin_default
22
22
  });
23
23
  module.exports = __toCommonJS(plugin_exports);
24
- var import_server = require("@tachybase/server");
24
+ var import_server = require("@tego/server");
25
25
  var import_ENV_controller = require("./actions/ENV-controller");
26
26
  var import_middleware_controller = require("./actions/middleware-controller");
27
27
  var import_swagger = require("./swagger");
@@ -1,4 +1,4 @@
1
- import { Field } from '@tachybase/database';
1
+ import { Field } from '@tego/server';
2
2
  declare const fieldTypeMap: {
3
3
  bigint: {
4
4
  type: string;
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare const _default: (collection: Collection, options: any) => {
3
3
  parameters: {};
4
4
  schemas: {
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare const _default: (collection: Collection) => {
3
3
  parameters: {};
4
4
  };
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare const _default: (collection: Collection, options: any) => {
3
3
  schemas: {
4
4
  [x: string]: {
@@ -20,7 +20,7 @@ __export(schemas_exports, {
20
20
  default: () => schemas_default
21
21
  });
22
22
  module.exports = __toCommonJS(schemas_exports);
23
- var import_database = require("@tachybase/database");
23
+ var import_server = require("@tego/server");
24
24
  var import_associations = require("../paths/associations");
25
25
  var import_field_type_map = require("./field-type-map");
26
26
  function getCollectionReadOnlyFields(collection) {
@@ -64,7 +64,7 @@ function collectionToSchema(collection) {
64
64
  [collection.name]: {
65
65
  type: "object",
66
66
  properties: Array.from(collection.fields).filter(([key, value]) => {
67
- return !(value instanceof import_database.RelationField);
67
+ return !(value instanceof import_server.RelationField);
68
68
  }).reduce((obj, [key, value]) => {
69
69
  obj[key] = {
70
70
  ...getFieldTypeAttributes(value)
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare function collectionToSwaggerObject(collection: Collection, options: any): {
3
3
  paths: any;
4
4
  components: {
@@ -1,4 +1,4 @@
1
- import { Collection, RelationField } from '@tachybase/database';
1
+ import { Collection, RelationField } from '@tego/server';
2
2
  declare const _default: (collection: Collection) => {
3
3
  [x: string]: object;
4
4
  };
@@ -31,7 +31,7 @@ __export(associations_exports, {
31
31
  default: () => associations_default
32
32
  });
33
33
  module.exports = __toCommonJS(associations_exports);
34
- var import_database = require("@tachybase/database");
34
+ var import_server = require("@tego/server");
35
35
  var import__ = require("..");
36
36
  var import_multiple_association = __toESM(require("./multiple-association"));
37
37
  var import_single_association = __toESM(require("./single-association"));
@@ -52,7 +52,7 @@ function associationFields(collection) {
52
52
  if ((0, import__.isViewCollection)(collection)) {
53
53
  return [];
54
54
  }
55
- return Array.from(collection.fields.values()).filter((field) => field instanceof import_database.RelationField).filter((field) => field.name !== "createdBy" && field.name !== "updatedBy");
55
+ return Array.from(collection.fields.values()).filter((field) => field instanceof import_server.RelationField).filter((field) => field.name !== "createdBy" && field.name !== "updatedBy");
56
56
  }
57
57
  // Annotate the CommonJS export names for ESM import in node:
58
58
  0 && (module.exports = {
@@ -1,4 +1,4 @@
1
- import { BelongsToManyField, Collection, HasManyField } from '@tachybase/database';
1
+ import { BelongsToManyField, Collection, HasManyField } from '@tego/server';
2
2
  export declare function appendCollectionIndexParams(apiDef: object): object;
3
3
  declare const _default: (collection: Collection, relationField: HasManyField | BelongsToManyField) => {
4
4
  [x: string]: object;
@@ -1,4 +1,4 @@
1
- import { BelongsToField, Collection, HasOneField } from '@tachybase/database';
1
+ import { BelongsToField, Collection, HasOneField } from '@tego/server';
2
2
  declare const _default: (collection: Collection, relationField: HasOneField | BelongsToField) => {
3
3
  [x: string]: object;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { Collection, RelationField } from '@tachybase/database';
1
+ import { Collection, RelationField } from '@tego/server';
2
2
  type TemplateOptions = {
3
3
  collection: Collection;
4
4
  relationField?: RelationField;
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare const _default: (collection: Collection, options: any) => any;
3
3
  export default _default;
4
4
  export declare function hasSortField(collection: Collection): boolean;
@@ -1,4 +1,4 @@
1
- import { Collection } from '@tachybase/database';
1
+ import { Collection } from '@tego/server';
2
2
  declare const _default: (collection: Collection, options: any) => {
3
3
  name: string;
4
4
  description: string;
@@ -23,7 +23,7 @@ __export(loader_exports, {
23
23
  mergeObjects: () => mergeObjects
24
24
  });
25
25
  module.exports = __toCommonJS(loader_exports);
26
- var import_utils = require("@tachybase/utils");
26
+ var import_server = require("@tego/server");
27
27
  var import_merge = require("./merge");
28
28
  const loadSwagger = (packageName) => {
29
29
  const prefixes = ["src", "lib", "dist"];
@@ -34,7 +34,7 @@ const loadSwagger = (packageName) => {
34
34
  const file = `${packageName}/${prefix}/${dict}`;
35
35
  const filePath = require.resolve(file);
36
36
  delete require.cache[filePath];
37
- return (0, import_utils.requireModule)(file);
37
+ return (0, import_server.requireModule)(file);
38
38
  } catch (error) {
39
39
  }
40
40
  }
@@ -20,10 +20,10 @@ __export(merge_exports, {
20
20
  merge: () => merge
21
21
  });
22
22
  module.exports = __toCommonJS(merge_exports);
23
- var import_utils = require("@tachybase/utils");
23
+ var import_server = require("@tego/server");
24
24
  const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray.concat(destinationArray);
25
25
  function merge(obj1, obj2, opts) {
26
- return (0, import_utils.merge)(obj1, obj2, {
26
+ return (0, import_server.merge)(obj1, obj2, {
27
27
  arrayMerge: overwriteMerge,
28
28
  ...opts
29
29
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-devtools",
3
3
  "displayName": "Devtools",
4
- "version": "1.3.21",
4
+ "version": "1.3.22",
5
5
  "description": "Development tools for viewing API documentation, middleware, environment variables, events, and more",
6
6
  "keywords": [
7
7
  "Logging and monitoring"
@@ -9,24 +9,17 @@
9
9
  "main": "dist/server/index.js",
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "@ant-design/icons": "^5.5.2",
12
+ "@ant-design/icons": "^5.6.1",
13
+ "@tachybase/test": "^1.3.39",
14
+ "@tego/client": "^1.3.39",
15
+ "@tego/server": "^1.3.39",
13
16
  "ahooks": "^3.9.0",
14
17
  "antd": "5.22.5",
15
- "react-i18next": "^15.2.0",
16
- "swagger-ui-dist": "^5.26.2"
17
- },
18
- "peerDependencies": {
19
- "@tachybase/actions": "1.3.21",
20
- "@tachybase/client": "1.3.21",
21
- "@tachybase/database": "1.3.21",
22
- "@tachybase/server": "1.3.21",
23
- "@tachybase/sdk": "1.3.21",
24
- "@tachybase/test": "1.3.21",
25
- "@tachybase/utils": "1.3.21"
18
+ "react-i18next": "15.2.0",
19
+ "swagger-ui-dist": "^5.26.2",
20
+ "@tachybase/client": "1.3.22"
26
21
  },
27
22
  "description.zh-CN": "开发工具,用于查看Api文档,中间件,环境变量,事件等信息",
28
23
  "displayName.zh-CN": "开发工具",
29
- "scripts": {
30
- "build": "tachybase-build --no-dts @tachybase/plugin-devtools"
31
- }
24
+ "scripts": {}
32
25
  }