@tachybase/plugin-workflow-test 1.3.20 → 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,10 +1,6 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.20",
3
- "@tachybase/utils": "1.3.20",
2
+ "@tachybase/client": "1.3.22",
3
+ "@tego/server": "1.3.39",
4
4
  "lodash": "4.17.21",
5
- "@tachybase/test": "1.3.20",
6
- "@tachybase/data-source": "1.3.20",
7
- "@tachybase/resourcer": "1.3.20",
8
- "@tachybase/server": "1.3.20",
9
- "@tachybase/database": "1.3.20"
5
+ "@tachybase/test": "1.3.39"
10
6
  };
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
  declare const _default: CollectionOptions;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ApplicationOptions, Plugin } from '@tachybase/server';
2
1
  import { MockServer } from '@tachybase/test';
2
+ import { ApplicationOptions, Plugin } from '@tego/server';
3
3
  export interface MockServerOptions extends ApplicationOptions {
4
4
  collectionsPath?: string;
5
5
  }
@@ -32,11 +32,9 @@ __export(server_exports, {
32
32
  sleep: () => sleep
33
33
  });
34
34
  module.exports = __toCommonJS(server_exports);
35
- var import_path = __toESM(require("path"));
36
- var import_data_source = require("@tachybase/data-source");
37
- var import_server = require("@tachybase/server");
35
+ var import_node_path = __toESM(require("node:path"));
38
36
  var import_test = require("@tachybase/test");
39
- var import_utils = require("@tachybase/utils");
37
+ var import_server = require("@tego/server");
40
38
  var import_functions = __toESM(require("./functions"));
41
39
  var import_instructions = __toESM(require("./instructions"));
42
40
  var import_triggers = __toESM(require("./triggers"));
@@ -71,11 +69,11 @@ async function getApp(options = {}) {
71
69
  ]
72
70
  });
73
71
  await app.dataSourceManager.add(
74
- new import_data_source.SequelizeDataSource({
72
+ new import_server.SequelizeDataSource({
75
73
  name: "another",
76
74
  collectionManager: {
77
75
  database: (0, import_test.mockDatabase)({
78
- tablePrefix: `t${(0, import_utils.uid)(5)}`
76
+ tablePrefix: `t${(0, import_server.uid)(5)}`
79
77
  })
80
78
  },
81
79
  resourceManager: {}
@@ -84,7 +82,7 @@ async function getApp(options = {}) {
84
82
  const another = app.dataSourceManager.dataSources.get("another");
85
83
  const anotherDB = another.collectionManager.db;
86
84
  await anotherDB.import({
87
- directory: import_path.default.resolve(__dirname, "collections")
85
+ directory: import_node_path.default.resolve(__dirname, "collections")
88
86
  });
89
87
  await anotherDB.sync();
90
88
  another.acl.allow("*", "*");
@@ -92,7 +90,7 @@ async function getApp(options = {}) {
92
90
  }
93
91
  class WorkflowTestPlugin extends import_server.Plugin {
94
92
  async load() {
95
- await this.importCollections(import_path.default.resolve(__dirname, "collections"));
93
+ await this.importCollections(import_node_path.default.resolve(__dirname, "collections"));
96
94
  }
97
95
  }
98
96
  // Annotate the CommonJS export names for ESM import in node:
@@ -20,13 +20,13 @@ __export(instructions_exports, {
20
20
  default: () => instructions_default
21
21
  });
22
22
  module.exports = __toCommonJS(instructions_exports);
23
- var import_utils = require("@tachybase/utils");
23
+ var import_server = require("@tego/server");
24
24
  var instructions_default = {
25
25
  echo: {
26
26
  run({ config = {} }, { result }, processor) {
27
27
  return {
28
28
  status: 1,
29
- result: config.path == null ? result : import_utils.lodash.get(result, config.path)
29
+ result: config.path == null ? result : import_server.lodash.get(result, config.path)
30
30
  };
31
31
  }
32
32
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-workflow-test",
3
3
  "displayName": "Workflow: test kit",
4
- "version": "1.3.20",
4
+ "version": "1.3.22",
5
5
  "description": "Workflow Test Toolkit",
6
6
  "keywords": [
7
7
  "Workflow"
@@ -11,20 +11,13 @@
11
11
  "types": "./dist/server/index.d.ts",
12
12
  "dependencies": {},
13
13
  "devDependencies": {
14
- "lodash": "4.17.21"
15
- },
16
- "peerDependencies": {
17
- "@tachybase/client": "1.3.20",
18
- "@tachybase/data-source": "1.3.20",
19
- "@tachybase/resourcer": "1.3.20",
20
- "@tachybase/server": "1.3.20",
21
- "@tachybase/test": "1.3.20",
22
- "@tachybase/database": "1.3.20",
23
- "@tachybase/utils": "1.3.20"
14
+ "@tachybase/test": "^1.3.39",
15
+ "@tego/client": "^1.3.39",
16
+ "@tego/server": "^1.3.39",
17
+ "lodash": "4.17.21",
18
+ "@tachybase/client": "1.3.22"
24
19
  },
25
20
  "description.zh-CN": "工作流测试工具包",
26
21
  "displayName.zh-CN": "工作流:测试工具包",
27
- "scripts": {
28
- "build": "tachybase-build --no-dts @tachybase/plugin-workflow-test"
29
- }
22
+ "scripts": {}
30
23
  }
@@ -1,5 +1,4 @@
1
- import { dayjs } from '@tachybase/utils';
2
-
1
+ import { dayjs } from '@tego/server';
3
2
  import { lowerCase } from 'lodash';
4
3
 
5
4
  /**
@@ -1,4 +1,4 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
 
3
3
  export default {
4
4
  name: 'categories',
@@ -1,4 +1,4 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
 
3
3
  export default {
4
4
  name: 'comments',
@@ -1,4 +1,4 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
 
3
3
  export default {
4
4
  name: 'posts',
@@ -1,4 +1,4 @@
1
- import { CollectionOptions } from '@tachybase/database';
1
+ import { CollectionOptions } from '@tego/server';
2
2
 
3
3
  export default {
4
4
  name: 'tags',
@@ -1,9 +1,7 @@
1
- import path from 'path';
2
- import { SequelizeDataSource } from '@tachybase/data-source';
3
- import { Resourcer } from '@tachybase/resourcer';
4
- import { ApplicationOptions, Plugin } from '@tachybase/server';
1
+ import path from 'node:path';
5
2
  import { createMockServer, mockDatabase, MockServer } from '@tachybase/test';
6
- import { uid } from '@tachybase/utils';
3
+
4
+ import { ApplicationOptions, Plugin, Resourcer, SequelizeDataSource, uid } from '@tego/server';
7
5
 
8
6
  import functions from './functions';
9
7
  import instructions from './instructions';
@@ -1,4 +1,4 @@
1
- import { lodash } from '@tachybase/utils';
1
+ import { lodash } from '@tego/server';
2
2
 
3
3
  export default {
4
4
  echo: {