@tachybase/plugin-workflow-test 1.3.22 → 1.3.23

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,6 +1,7 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.22",
3
- "@tego/server": "1.3.39",
2
+ "@tachybase/client": "1.3.23",
3
+ "dayjs": "1.11.13",
4
4
  "lodash": "4.17.21",
5
- "@tachybase/test": "1.3.39"
5
+ "@tachybase/test": "1.3.43",
6
+ "@tego/server": "1.3.43"
6
7
  };
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __export = (target, all) => {
6
8
  for (var name in all)
@@ -14,19 +16,27 @@ var __copyProps = (to, from, except, desc) => {
14
16
  }
15
17
  return to;
16
18
  };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
17
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
28
  var instructions_exports = {};
19
29
  __export(instructions_exports, {
20
30
  default: () => instructions_default
21
31
  });
22
32
  module.exports = __toCommonJS(instructions_exports);
23
- var import_server = require("@tego/server");
33
+ var import_lodash = __toESM(require("lodash"));
24
34
  var instructions_default = {
25
35
  echo: {
26
36
  run({ config = {} }, { result }, processor) {
27
37
  return {
28
38
  status: 1,
29
- result: config.path == null ? result : import_server.lodash.get(result, config.path)
39
+ result: config.path == null ? result : import_lodash.default.get(result, config.path)
30
40
  };
31
41
  }
32
42
  },
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.22",
4
+ "version": "1.3.23",
5
5
  "description": "Workflow Test Toolkit",
6
6
  "keywords": [
7
7
  "Workflow"
@@ -9,15 +9,14 @@
9
9
  "license": "Apache-2.0",
10
10
  "main": "dist/server/index.js",
11
11
  "types": "./dist/server/index.d.ts",
12
- "dependencies": {},
13
12
  "devDependencies": {
14
- "@tachybase/test": "^1.3.39",
15
- "@tego/client": "^1.3.39",
16
- "@tego/server": "^1.3.39",
13
+ "@tachybase/test": "^1.3.43",
14
+ "@tego/client": "^1.3.43",
15
+ "@tego/server": "^1.3.43",
16
+ "dayjs": "^1.11.13",
17
17
  "lodash": "4.17.21",
18
- "@tachybase/client": "1.3.22"
18
+ "@tachybase/client": "1.3.23"
19
19
  },
20
20
  "description.zh-CN": "工作流测试工具包",
21
- "displayName.zh-CN": "工作流:测试工具包",
22
- "scripts": {}
21
+ "displayName.zh-CN": "工作流:测试工具包"
23
22
  }
@@ -1,4 +1,4 @@
1
- import { dayjs } from '@tego/server';
1
+ import dayjs from 'dayjs';
2
2
  import { lowerCase } from 'lodash';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { lodash } from '@tego/server';
1
+ import lodash from 'lodash';
2
2
 
3
3
  export default {
4
4
  echo: {