assistsx-js 0.0.2043 → 0.0.2044

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.js CHANGED
@@ -23,7 +23,14 @@ export class Step {
23
23
  let nextStep;
24
24
  try {
25
25
  //步骤开始
26
- this._stepId = stepId !== null && stepId !== void 0 ? stepId : generateUUID();
26
+ if (stepId) {
27
+ this._stepId = stepId;
28
+ console.log(`使用传入步骤ID: ${this._stepId}`);
29
+ }
30
+ else {
31
+ this._stepId = generateUUID();
32
+ console.log(`生成步骤ID: ${this._stepId}`);
33
+ }
27
34
  stepStore.startStep(this._stepId, tag, data);
28
35
  currentStep = new Step({
29
36
  stepId: this._stepId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.2043",
3
+ "version": "0.0.2044",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/Step.ts CHANGED
@@ -62,7 +62,13 @@ export class Step {
62
62
  let nextStep: Step | undefined;
63
63
  try {
64
64
  //步骤开始
65
- this._stepId = stepId ?? generateUUID();
65
+ if (stepId) {
66
+ this._stepId = stepId;
67
+ console.log(`使用传入步骤ID: ${this._stepId}`);
68
+ } else {
69
+ this._stepId = generateUUID();
70
+ console.log(`生成步骤ID: ${this._stepId}`);
71
+ }
66
72
 
67
73
  stepStore.startStep(this._stepId, tag, data);
68
74
  currentStep = new Step({