assistsx-js 0.0.2044 → 0.0.2046

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/dist/Step.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare class Step {
28
28
  tag?: string | undefined;
29
29
  data?: any | undefined;
30
30
  delayMs?: number;
31
- }): Promise<Step>;
31
+ }): Promise<Step | undefined>;
32
32
  /**
33
33
  * 获取当前步骤ID
34
34
  */
package/dist/Step.js CHANGED
@@ -25,11 +25,15 @@ export class Step {
25
25
  //步骤开始
26
26
  if (stepId) {
27
27
  this._stepId = stepId;
28
- console.log(`使用传入步骤ID: ${this._stepId}`);
28
+ if (Step.showLog) {
29
+ console.log(`使用传入步骤ID: ${this._stepId}`);
30
+ }
29
31
  }
30
32
  else {
31
33
  this._stepId = generateUUID();
32
- console.log(`生成步骤ID: ${this._stepId}`);
34
+ if (Step.showLog) {
35
+ console.log(`生成步骤ID: ${this._stepId}`);
36
+ }
33
37
  }
34
38
  stepStore.startStep(this._stepId, tag, data);
35
39
  currentStep = new Step({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.2044",
3
+ "version": "0.0.2046",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/Step.ts CHANGED
@@ -55,7 +55,7 @@ export class Step {
55
55
  data?: any | undefined;
56
56
  delayMs?: number;
57
57
  } = {}
58
- ): Promise<Step> {
58
+ ): Promise<Step | undefined> {
59
59
  const stepStore = useStepStore();
60
60
  let implnName = impl.name;
61
61
  let currentStep: Step | undefined;
@@ -64,10 +64,14 @@ export class Step {
64
64
  //步骤开始
65
65
  if (stepId) {
66
66
  this._stepId = stepId;
67
- console.log(`使用传入步骤ID: ${this._stepId}`);
67
+ if (Step.showLog) {
68
+ console.log(`使用传入步骤ID: ${this._stepId}`);
69
+ }
68
70
  } else {
69
71
  this._stepId = generateUUID();
70
- console.log(`生成步骤ID: ${this._stepId}`);
72
+ if (Step.showLog) {
73
+ console.log(`生成步骤ID: ${this._stepId}`);
74
+ }
71
75
  }
72
76
 
73
77
  stepStore.startStep(this._stepId, tag, data);