dal-engine-core-js-lib-dev 0.0.6 → 0.0.7
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/index.cjs
CHANGED
|
@@ -467,8 +467,7 @@ class Behavior extends Base {
|
|
|
467
467
|
|
|
468
468
|
class TransitionAlreadyExistsError extends DALEngineError {
|
|
469
469
|
constructor (behaviorName, transitionName) {
|
|
470
|
-
let msg = `Node with behavior named "${behaviorName}" already has a transition
|
|
471
|
-
to behavior "${transitionName}".`;
|
|
470
|
+
let msg = `Node with behavior named "${behaviorName}" already has a transition to behavior "${transitionName}".`;
|
|
472
471
|
super(msg);
|
|
473
472
|
}
|
|
474
473
|
}
|
|
@@ -550,7 +549,7 @@ class GraphNode extends Base {
|
|
|
550
549
|
*/
|
|
551
550
|
addGoToBehavior (behaviorId) {
|
|
552
551
|
if (this._goToBehaviorIds.includes(behaviorId)) {
|
|
553
|
-
throw new TransitionAlreadyExistsError(this.
|
|
552
|
+
throw new TransitionAlreadyExistsError(this._behavior.name, behaviorId);
|
|
554
553
|
}
|
|
555
554
|
this._goToBehaviorIds.push(behaviorId);
|
|
556
555
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -465,8 +465,7 @@ class Behavior extends Base {
|
|
|
465
465
|
|
|
466
466
|
class TransitionAlreadyExistsError extends DALEngineError {
|
|
467
467
|
constructor (behaviorName, transitionName) {
|
|
468
|
-
let msg = `Node with behavior named "${behaviorName}" already has a transition
|
|
469
|
-
to behavior "${transitionName}".`;
|
|
468
|
+
let msg = `Node with behavior named "${behaviorName}" already has a transition to behavior "${transitionName}".`;
|
|
470
469
|
super(msg);
|
|
471
470
|
}
|
|
472
471
|
}
|
|
@@ -548,7 +547,7 @@ class GraphNode extends Base {
|
|
|
548
547
|
*/
|
|
549
548
|
addGoToBehavior (behaviorId) {
|
|
550
549
|
if (this._goToBehaviorIds.includes(behaviorId)) {
|
|
551
|
-
throw new TransitionAlreadyExistsError(this.
|
|
550
|
+
throw new TransitionAlreadyExistsError(this._behavior.name, behaviorId);
|
|
552
551
|
}
|
|
553
552
|
this._goToBehaviorIds.push(behaviorId);
|
|
554
553
|
}
|
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ class GraphNode extends Base {
|
|
|
83
83
|
*/
|
|
84
84
|
addGoToBehavior (behaviorId) {
|
|
85
85
|
if (this._goToBehaviorIds.includes(behaviorId)) {
|
|
86
|
-
throw new TransitionAlreadyExistsError(this.
|
|
86
|
+
throw new TransitionAlreadyExistsError(this._behavior.name, behaviorId);
|
|
87
87
|
}
|
|
88
88
|
this._goToBehaviorIds.push(behaviorId);
|
|
89
89
|
}
|
|
@@ -2,8 +2,7 @@ import DALEngineError from "./DALEngineError";
|
|
|
2
2
|
|
|
3
3
|
class TransitionAlreadyExistsError extends DALEngineError {
|
|
4
4
|
constructor (behaviorName, transitionName) {
|
|
5
|
-
let msg = `Node with behavior named "${behaviorName}" already has a transition
|
|
6
|
-
to behavior "${transitionName}".`;
|
|
5
|
+
let msg = `Node with behavior named "${behaviorName}" already has a transition to behavior "${transitionName}".`;
|
|
7
6
|
super(msg);
|
|
8
7
|
}
|
|
9
8
|
}
|