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 +8 -1
- package/package.json +1 -1
- package/src/Step.ts +7 -1
package/dist/Step.js
CHANGED
|
@@ -23,7 +23,14 @@ export class Step {
|
|
|
23
23
|
let nextStep;
|
|
24
24
|
try {
|
|
25
25
|
//步骤开始
|
|
26
|
-
|
|
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
package/src/Step.ts
CHANGED
|
@@ -62,7 +62,13 @@ export class Step {
|
|
|
62
62
|
let nextStep: Step | undefined;
|
|
63
63
|
try {
|
|
64
64
|
//步骤开始
|
|
65
|
-
|
|
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({
|