jssm 5.70.35 → 5.71.1
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/CHANGELOG.md +42 -38
- package/dist/es6/jssm.js +13 -11
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/package.json +1 -1
- package/typedoc-options.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
917 merges; 114 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ All notable changes to this project will be documented in this file.
|
|
|
12
12
|
|
|
13
13
|
Published tags:
|
|
14
14
|
|
|
15
|
-
<a href="#5__70__31">5.70.31</a>, <a href="#5__70__30">5.70.30</a>, <a href="#5__70__29">5.70.29</a>, <a href="#5__70__28">5.70.28</a>, <a href="#5__70__27">5.70.27</a>, <a href="#5__70__26">5.70.26</a>, <a href="#5__70__25">5.70.25</a>, <a href="#5__70__24">5.70.24</a>, <a href="#5__70__23">5.70.23</a>, <a href="#5__70__22">5.70.22</a>, <a href="#5__70__21">5.70.21</a>, <a href="#5__70__20">5.70.20</a>, <a href="#5__70__19">5.70.19</a>, <a href="#5__70__18">5.70.18</a>, <a href="#5__70__16">5.70.16</a>, <a href="#5__70__15">5.70.15</a>, <a href="#5__70__14">5.70.14</a>, <a href="#5__70__13">5.70.13</a>, <a href="#5__70__12">5.70.12</a>, <a href="#5__70__11">5.70.11</a>, <a href="#5__70__10">5.70.10</a>, <a href="#5__70__9">5.70.9</a>, <a href="#5__70__8">5.70.8</a>, <a href="#5__70__7">5.70.7</a>, <a href="#5__70__6">5.70.6</a>, <a href="#5__70__5">5.70.5</a>, <a href="#5__70__4">5.70.4</a>, <a href="#5__70__3">5.70.3</a>, <a href="#5__70__2">5.70.2</a>, <a href="#5__70__1">5.70.1</a>, <a href="#5__70__0">5.70.0</a>, <a href="#5__69__4">5.69.4</a>, <a href="#5__69__3">5.69.3</a>, <a href="#5__69__2">5.69.2</a>, <a href="#5__69__0">5.69.0</a>, <a href="#5__68__0">5.68.0</a>, <a href="#5__67__2">5.67.2</a>, <a href="#5__67__0">5.67.0</a>, <a href="#5__66__0">5.66.0</a>, <a href="#5__65__14">5.65.14</a>, <a href="#5__65__12">5.65.12</a>, <a href="#5__65__11">5.65.11</a>, <a href="#5__65__10">5.65.10</a>, <a href="#5__65__9">5.65.9</a>, <a href="#5__65__8">5.65.8</a>, <a href="#5__65__7">5.65.7</a>, <a href="#5__65__5">5.65.5</a>, <a href="#5__65__4">5.65.4</a>, <a href="#5__65__3">5.65.3</a>, <a href="#5__65__2">5.65.2</a>, <a href="#5__65__1">5.65.1</a>, <a href="#5__65__0">5.65.0</a>, <a href="#5__64__2">5.64.2</a>, <a href="#5__64__1">5.64.1</a>, <a href="#5__64__0">5.64.0</a>, <a href="#5__63__0">5.63.0</a>, <a href="#5__62__0">5.62.0</a>, <a href="#5__61__4">5.61.4</a>, <a href="#5__61__3">5.61.3</a>, <a href="#5__61__2">5.61.2</a>, <a href="#5__61__1">5.61.1</a>, <a href="#5__60__4">5.60.4</a>, <a href="#5__60__3">5.60.3</a>, <a href="#5__60__0">5.60.0</a>, <a href="#5__59__1">5.59.1</a>, <a href="#5__59__0">5.59.0</a>, <a href="#5__58__1">5.58.1</a>, <a href="#5__58__0">5.58.0</a>, <a href="#5__57__1">5.57.1</a>, <a href="#5__57__0">5.57.0</a>, <a href="#5__56__2">5.56.2</a>, <a href="#5__56__1">5.56.1</a>, <a href="#5__55__0">5.55.0</a>, <a href="#5__54__0">5.54.0</a>, <a href="#5__53__0">5.53.0</a>, <a href="#5__52__0">5.52.0</a>, <a href="#5__51__0">5.51.0</a>, <a href="#5__50__0">5.50.0</a>, <a href="#5__49__0">5.49.0</a>, <a href="#5__48__0">5.48.0</a>, <a href="#5__47__0">5.47.0</a>, <a href="#5__46__0">5.46.0</a>, <a href="#5__45__2">5.45.2</a>, <a href="#5__45__0">5.45.0</a>, <a href="#5__44__0">5.44.0</a>, <a href="#5__43__2">5.43.2</a>, <a href="#v5__42__0">v5.42.0</a>, <a href="#5__42__0">5.42.0</a>, <a href="#v5__41__15">v5.41.15</a>, <a href="#5__41__15">5.41.15</a>, <a href="#v5__41__14">v5.41.14</a>, <a href="#5__41__14">5.41.14</a>, <a href="#v5__41__12">v5.41.12</a>, <a href="#5__41__12">5.41.12</a>, <a href="#v5__41__10">v5.41.10</a>, <a href="#5__41__10">5.41.10</a>, <a href="#v5__41__9">v5.41.9</a>, <a href="#5__41__9">5.41.9</a>, <a href="#v5__41__8">v5.41.8</a>, <a href="#5__41__8">5.41.8</a>, <a href="#v5__41__7">v5.41.7</a>, <a href="#v5__41__2">v5.41.2</a>, <a href="#v5__41__1">v5.41.1</a>, <a href="#v5__32__14">v5.32.14</a>, <a href="#5__14__0">5.14.0</a>, <a href="#5__12__0">5.12.0</a>, <a href="#5__11__12">5.11.12</a>, <a href="#5__11__1">5.11.1</a>, <a href="#5__11__0">5.11.0</a>
|
|
15
|
+
<a href="#5__70__36">5.70.36</a>, <a href="#5__70__35">5.70.35</a>, <a href="#5__70__34">5.70.34</a>, <a href="#5__70__33">5.70.33</a>, <a href="#5__70__32">5.70.32</a>, <a href="#5__70__31">5.70.31</a>, <a href="#5__70__30">5.70.30</a>, <a href="#5__70__29">5.70.29</a>, <a href="#5__70__28">5.70.28</a>, <a href="#5__70__27">5.70.27</a>, <a href="#5__70__26">5.70.26</a>, <a href="#5__70__25">5.70.25</a>, <a href="#5__70__24">5.70.24</a>, <a href="#5__70__23">5.70.23</a>, <a href="#5__70__22">5.70.22</a>, <a href="#5__70__21">5.70.21</a>, <a href="#5__70__20">5.70.20</a>, <a href="#5__70__19">5.70.19</a>, <a href="#5__70__18">5.70.18</a>, <a href="#5__70__16">5.70.16</a>, <a href="#5__70__15">5.70.15</a>, <a href="#5__70__14">5.70.14</a>, <a href="#5__70__13">5.70.13</a>, <a href="#5__70__12">5.70.12</a>, <a href="#5__70__11">5.70.11</a>, <a href="#5__70__10">5.70.10</a>, <a href="#5__70__9">5.70.9</a>, <a href="#5__70__8">5.70.8</a>, <a href="#5__70__7">5.70.7</a>, <a href="#5__70__6">5.70.6</a>, <a href="#5__70__5">5.70.5</a>, <a href="#5__70__4">5.70.4</a>, <a href="#5__70__3">5.70.3</a>, <a href="#5__70__2">5.70.2</a>, <a href="#5__70__1">5.70.1</a>, <a href="#5__70__0">5.70.0</a>, <a href="#5__69__4">5.69.4</a>, <a href="#5__69__3">5.69.3</a>, <a href="#5__69__2">5.69.2</a>, <a href="#5__69__0">5.69.0</a>, <a href="#5__68__0">5.68.0</a>, <a href="#5__67__2">5.67.2</a>, <a href="#5__67__0">5.67.0</a>, <a href="#5__66__0">5.66.0</a>, <a href="#5__65__14">5.65.14</a>, <a href="#5__65__12">5.65.12</a>, <a href="#5__65__11">5.65.11</a>, <a href="#5__65__10">5.65.10</a>, <a href="#5__65__9">5.65.9</a>, <a href="#5__65__8">5.65.8</a>, <a href="#5__65__7">5.65.7</a>, <a href="#5__65__5">5.65.5</a>, <a href="#5__65__4">5.65.4</a>, <a href="#5__65__3">5.65.3</a>, <a href="#5__65__2">5.65.2</a>, <a href="#5__65__1">5.65.1</a>, <a href="#5__65__0">5.65.0</a>, <a href="#5__64__2">5.64.2</a>, <a href="#5__64__1">5.64.1</a>, <a href="#5__64__0">5.64.0</a>, <a href="#5__63__0">5.63.0</a>, <a href="#5__62__0">5.62.0</a>, <a href="#5__61__4">5.61.4</a>, <a href="#5__61__3">5.61.3</a>, <a href="#5__61__2">5.61.2</a>, <a href="#5__61__1">5.61.1</a>, <a href="#5__60__4">5.60.4</a>, <a href="#5__60__3">5.60.3</a>, <a href="#5__60__0">5.60.0</a>, <a href="#5__59__1">5.59.1</a>, <a href="#5__59__0">5.59.0</a>, <a href="#5__58__1">5.58.1</a>, <a href="#5__58__0">5.58.0</a>, <a href="#5__57__1">5.57.1</a>, <a href="#5__57__0">5.57.0</a>, <a href="#5__56__2">5.56.2</a>, <a href="#5__56__1">5.56.1</a>, <a href="#5__55__0">5.55.0</a>, <a href="#5__54__0">5.54.0</a>, <a href="#5__53__0">5.53.0</a>, <a href="#5__52__0">5.52.0</a>, <a href="#5__51__0">5.51.0</a>, <a href="#5__50__0">5.50.0</a>, <a href="#5__49__0">5.49.0</a>, <a href="#5__48__0">5.48.0</a>, <a href="#5__47__0">5.47.0</a>, <a href="#5__46__0">5.46.0</a>, <a href="#5__45__2">5.45.2</a>, <a href="#5__45__0">5.45.0</a>, <a href="#5__44__0">5.44.0</a>, <a href="#5__43__2">5.43.2</a>, <a href="#v5__42__0">v5.42.0</a>, <a href="#5__42__0">5.42.0</a>, <a href="#v5__41__15">v5.41.15</a>, <a href="#5__41__15">5.41.15</a>, <a href="#v5__41__14">v5.41.14</a>, <a href="#5__41__14">5.41.14</a>, <a href="#v5__41__12">v5.41.12</a>, <a href="#5__41__12">5.41.12</a>, <a href="#v5__41__10">v5.41.10</a>, <a href="#5__41__10">5.41.10</a>, <a href="#v5__41__9">v5.41.9</a>, <a href="#5__41__9">5.41.9</a>, <a href="#v5__41__8">v5.41.8</a>, <a href="#5__41__8">5.41.8</a>, <a href="#v5__41__7">v5.41.7</a>, <a href="#v5__41__2">v5.41.2</a>, <a href="#v5__41__1">v5.41.1</a>, <a href="#v5__32__14">v5.32.14</a>, <a href="#5__14__0">5.14.0</a>, <a href="#5__12__0">5.12.0</a>, <a href="#5__11__12">5.11.12</a>, <a href="#5__11__1">5.11.1</a>, <a href="#5__11__0">5.11.0</a>
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -22,13 +22,13 @@ Published tags:
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
## [Untagged] - 6/
|
|
25
|
+
## [Untagged] - 6/23/2022 1:41:18 PM
|
|
26
26
|
|
|
27
|
-
Commit [
|
|
27
|
+
Commit [67c3240798d31933413aab27db7ea9fbb5de3b2a](https://github.com/StoneCypher/jssm/commit/67c3240798d31933413aab27db7ea9fbb5de3b2a)
|
|
28
28
|
|
|
29
29
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
30
30
|
|
|
31
|
-
*
|
|
31
|
+
* Normalize arguments to hooks, fixes StoneCypher/fsl#895; more docs
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -37,13 +37,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
<a name="5__70__36" />
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
## [5.70.36] - 6/21/2022 6:53:36 PM
|
|
43
|
+
|
|
44
|
+
Commit [093db23b719161e35e477cc0fe7d9f1132bc28b8](https://github.com/StoneCypher/jssm/commit/093db23b719161e35e477cc0fe7d9f1132bc28b8)
|
|
43
45
|
|
|
44
46
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
45
47
|
|
|
46
|
-
*
|
|
48
|
+
* Another trivial build - this one to cause chain publishment
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
|
|
@@ -52,13 +54,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
52
54
|
|
|
53
55
|
|
|
54
56
|
|
|
55
|
-
|
|
57
|
+
<a name="5__70__35" />
|
|
56
58
|
|
|
57
|
-
|
|
59
|
+
## [5.70.35] - 6/19/2022 10:56:41 AM
|
|
60
|
+
|
|
61
|
+
Commit [13ee9eb71ca9ab868699e535abf6ba30c8ad5829](https://github.com/StoneCypher/jssm/commit/13ee9eb71ca9ab868699e535abf6ba30c8ad5829)
|
|
58
62
|
|
|
59
63
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
60
64
|
|
|
61
|
-
*
|
|
65
|
+
* new trigger with replaced token - this time with a bump
|
|
62
66
|
|
|
63
67
|
|
|
64
68
|
|
|
@@ -67,13 +71,13 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
67
71
|
|
|
68
72
|
|
|
69
73
|
|
|
70
|
-
## [Untagged] - 6/
|
|
74
|
+
## [Untagged] - 6/19/2022 10:37:04 AM
|
|
71
75
|
|
|
72
|
-
Commit [
|
|
76
|
+
Commit [b3e69d9745b92d845bedcfbc08f342997137af3d](https://github.com/StoneCypher/jssm/commit/b3e69d9745b92d845bedcfbc08f342997137af3d)
|
|
73
77
|
|
|
74
78
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
75
79
|
|
|
76
|
-
*
|
|
80
|
+
* new trigger with replaced token
|
|
77
81
|
|
|
78
82
|
|
|
79
83
|
|
|
@@ -82,15 +86,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
82
86
|
|
|
83
87
|
|
|
84
88
|
|
|
85
|
-
<a name="
|
|
89
|
+
<a name="5__70__34" />
|
|
86
90
|
|
|
87
|
-
## [5.70.
|
|
91
|
+
## [5.70.34] - 6/18/2022 9:40:31 PM
|
|
88
92
|
|
|
89
|
-
Commit [
|
|
93
|
+
Commit [a0f295f060c7f08a8b10b2208dd1c95dc7f3c97a](https://github.com/StoneCypher/jssm/commit/a0f295f060c7f08a8b10b2208dd1c95dc7f3c97a)
|
|
90
94
|
|
|
91
95
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
92
96
|
|
|
93
|
-
* another
|
|
97
|
+
* another trigger commit with mild doc extension
|
|
94
98
|
|
|
95
99
|
|
|
96
100
|
|
|
@@ -99,15 +103,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
99
103
|
|
|
100
104
|
|
|
101
105
|
|
|
102
|
-
<a name="
|
|
106
|
+
<a name="5__70__33" />
|
|
103
107
|
|
|
104
|
-
## [5.70.
|
|
108
|
+
## [5.70.33] - 6/18/2022 8:57:42 PM
|
|
105
109
|
|
|
106
|
-
Commit [
|
|
110
|
+
Commit [ca254f455f2c19f21e77834e993c310e05272822](https://github.com/StoneCypher/jssm/commit/ca254f455f2c19f21e77834e993c310e05272822)
|
|
107
111
|
|
|
108
112
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
109
113
|
|
|
110
|
-
*
|
|
114
|
+
* holy another facile build for triggering, batman
|
|
111
115
|
|
|
112
116
|
|
|
113
117
|
|
|
@@ -116,15 +120,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
116
120
|
|
|
117
121
|
|
|
118
122
|
|
|
119
|
-
<a name="
|
|
123
|
+
<a name="5__70__32" />
|
|
120
124
|
|
|
121
|
-
## [5.70.
|
|
125
|
+
## [5.70.32] - 6/18/2022 8:48:07 PM
|
|
122
126
|
|
|
123
|
-
Commit [
|
|
127
|
+
Commit [8115e8b62d8ac1cff3c7eb07afabced097f1be42](https://github.com/StoneCypher/jssm/commit/8115e8b62d8ac1cff3c7eb07afabced097f1be42)
|
|
124
128
|
|
|
125
129
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
126
130
|
|
|
127
|
-
*
|
|
131
|
+
* yet another small commit as a trigger, this time to get the extended diff
|
|
128
132
|
|
|
129
133
|
|
|
130
134
|
|
|
@@ -133,15 +137,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
133
137
|
|
|
134
138
|
|
|
135
139
|
|
|
136
|
-
<a name="
|
|
140
|
+
<a name="5__70__31" />
|
|
137
141
|
|
|
138
|
-
## [5.70.
|
|
142
|
+
## [5.70.31] - 6/18/2022 8:00:06 PM
|
|
139
143
|
|
|
140
|
-
Commit [
|
|
144
|
+
Commit [de3d8a105aa85045a9f19ed46b4b3c5e5fb1e235](https://github.com/StoneCypher/jssm/commit/de3d8a105aa85045a9f19ed46b4b3c5e5fb1e235)
|
|
141
145
|
|
|
142
146
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
143
147
|
|
|
144
|
-
*
|
|
148
|
+
* another small commit as a trigger, this time to get the diff
|
|
145
149
|
|
|
146
150
|
|
|
147
151
|
|
|
@@ -150,15 +154,15 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
150
154
|
|
|
151
155
|
|
|
152
156
|
|
|
153
|
-
<a name="
|
|
157
|
+
<a name="5__70__30" />
|
|
154
158
|
|
|
155
|
-
## [5.70.
|
|
159
|
+
## [5.70.30] - 6/18/2022 10:54:02 AM
|
|
156
160
|
|
|
157
|
-
Commit [
|
|
161
|
+
Commit [3211f94bb943a63ae07f202eb168916d73f94f90](https://github.com/StoneCypher/jssm/commit/3211f94bb943a63ae07f202eb168916d73f94f90)
|
|
158
162
|
|
|
159
163
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
160
164
|
|
|
161
|
-
*
|
|
165
|
+
* missing closing div tag was breaking examples page
|
|
162
166
|
|
|
163
167
|
|
|
164
168
|
|
|
@@ -167,12 +171,12 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
167
171
|
|
|
168
172
|
|
|
169
173
|
|
|
170
|
-
<a name="
|
|
174
|
+
<a name="5__70__29" />
|
|
171
175
|
|
|
172
|
-
## [5.70.
|
|
176
|
+
## [5.70.29] - 6/18/2022 8:40:30 AM
|
|
173
177
|
|
|
174
|
-
Commit [
|
|
178
|
+
Commit [7373cfa90383dc2adbe0649be86cb89bef1c0518](https://github.com/StoneCypher/jssm/commit/7373cfa90383dc2adbe0649be86cb89bef1c0518)
|
|
175
179
|
|
|
176
180
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
177
181
|
|
|
178
|
-
*
|
|
182
|
+
* One more build to trigger remote.
|
package/dist/es6/jssm.js
CHANGED
|
@@ -1287,7 +1287,7 @@ class Machine {
|
|
|
1287
1287
|
transition_impl(newStateOrAction, newData, wasForced, wasAction) {
|
|
1288
1288
|
// TODO the forced-ness behavior needs to be cleaned up a lot here
|
|
1289
1289
|
// TODO all the callbacks are wrong on forced, action, etc
|
|
1290
|
-
let valid = false, trans_type, newState;
|
|
1290
|
+
let valid = false, trans_type, newState, fromAction = undefined;
|
|
1291
1291
|
if (wasForced) {
|
|
1292
1292
|
if (this.valid_force_transition(newStateOrAction, newData)) {
|
|
1293
1293
|
valid = true;
|
|
@@ -1301,6 +1301,7 @@ class Machine {
|
|
|
1301
1301
|
valid = true;
|
|
1302
1302
|
trans_type = edge.kind;
|
|
1303
1303
|
newState = edge.to;
|
|
1304
|
+
fromAction = newStateOrAction;
|
|
1304
1305
|
}
|
|
1305
1306
|
}
|
|
1306
1307
|
else {
|
|
@@ -1316,24 +1317,25 @@ class Machine {
|
|
|
1316
1317
|
// todo major incomplete whargarbl comeback
|
|
1317
1318
|
if (valid) {
|
|
1318
1319
|
if (this._has_hooks) {
|
|
1320
|
+
const hook_args = { action: fromAction, from: this._state, to: newState, forced: wasForced };
|
|
1319
1321
|
if (wasAction) {
|
|
1320
1322
|
// 1. any action hook
|
|
1321
1323
|
if (this._any_action_hook !== undefined) {
|
|
1322
|
-
if (this._any_action_hook() === false) {
|
|
1324
|
+
if (this._any_action_hook(hook_args) === false) {
|
|
1323
1325
|
return false;
|
|
1324
1326
|
}
|
|
1325
1327
|
}
|
|
1326
1328
|
// 2. global specific action hook
|
|
1327
1329
|
const maybe_ga_hook = this._global_action_hooks.get(newStateOrAction);
|
|
1328
1330
|
if (maybe_ga_hook !== undefined) {
|
|
1329
|
-
if (maybe_ga_hook(
|
|
1331
|
+
if (maybe_ga_hook(hook_args) === false) {
|
|
1330
1332
|
return false;
|
|
1331
1333
|
}
|
|
1332
1334
|
}
|
|
1333
1335
|
}
|
|
1334
1336
|
// 3. any transition hook
|
|
1335
1337
|
if (this._any_transition_hook !== undefined) {
|
|
1336
|
-
if (this._any_transition_hook() === false) {
|
|
1338
|
+
if (this._any_transition_hook(hook_args) === false) {
|
|
1337
1339
|
return false;
|
|
1338
1340
|
}
|
|
1339
1341
|
}
|
|
@@ -1341,7 +1343,7 @@ class Machine {
|
|
|
1341
1343
|
if (this._has_exit_hooks) {
|
|
1342
1344
|
const maybe_ex_hook = this._exit_hooks.get(this._state);
|
|
1343
1345
|
if (maybe_ex_hook !== undefined) {
|
|
1344
|
-
if (maybe_ex_hook(
|
|
1346
|
+
if (maybe_ex_hook(hook_args) === false) {
|
|
1345
1347
|
return false;
|
|
1346
1348
|
}
|
|
1347
1349
|
}
|
|
@@ -1351,7 +1353,7 @@ class Machine {
|
|
|
1351
1353
|
if (wasAction) {
|
|
1352
1354
|
const nhn = named_hook_name(this._state, newState, newStateOrAction), n_maybe_hook = this._named_hooks.get(nhn);
|
|
1353
1355
|
if (n_maybe_hook !== undefined) {
|
|
1354
|
-
if (n_maybe_hook(
|
|
1356
|
+
if (n_maybe_hook(hook_args) === false) {
|
|
1355
1357
|
return false;
|
|
1356
1358
|
}
|
|
1357
1359
|
}
|
|
@@ -1361,7 +1363,7 @@ class Machine {
|
|
|
1361
1363
|
if (this._has_basic_hooks) {
|
|
1362
1364
|
const hn = hook_name(this._state, newState), maybe_hook = this._hooks.get(hn);
|
|
1363
1365
|
if (maybe_hook !== undefined) {
|
|
1364
|
-
if (maybe_hook(
|
|
1366
|
+
if (maybe_hook(hook_args) === false) {
|
|
1365
1367
|
return false;
|
|
1366
1368
|
}
|
|
1367
1369
|
}
|
|
@@ -1372,7 +1374,7 @@ class Machine {
|
|
|
1372
1374
|
if (this._standard_transition_hook !== undefined) {
|
|
1373
1375
|
// todo handle actions
|
|
1374
1376
|
// todo handle forced
|
|
1375
|
-
if (this._standard_transition_hook(
|
|
1377
|
+
if (this._standard_transition_hook(hook_args) === false) {
|
|
1376
1378
|
return false;
|
|
1377
1379
|
}
|
|
1378
1380
|
}
|
|
@@ -1382,7 +1384,7 @@ class Machine {
|
|
|
1382
1384
|
if (this._main_transition_hook !== undefined) {
|
|
1383
1385
|
// todo handle actions
|
|
1384
1386
|
// todo handle forced
|
|
1385
|
-
if (this._main_transition_hook(
|
|
1387
|
+
if (this._main_transition_hook(hook_args) === false) {
|
|
1386
1388
|
return false;
|
|
1387
1389
|
}
|
|
1388
1390
|
}
|
|
@@ -1392,7 +1394,7 @@ class Machine {
|
|
|
1392
1394
|
if (this._forced_transition_hook !== undefined) {
|
|
1393
1395
|
// todo handle actions
|
|
1394
1396
|
// todo handle forced
|
|
1395
|
-
if (this._forced_transition_hook(
|
|
1397
|
+
if (this._forced_transition_hook(hook_args) === false) {
|
|
1396
1398
|
return false;
|
|
1397
1399
|
}
|
|
1398
1400
|
}
|
|
@@ -1401,7 +1403,7 @@ class Machine {
|
|
|
1401
1403
|
if (this._has_entry_hooks) {
|
|
1402
1404
|
const maybe_en_hook = this._entry_hooks.get(newState);
|
|
1403
1405
|
if (maybe_en_hook !== undefined) {
|
|
1404
|
-
if (maybe_en_hook(
|
|
1406
|
+
if (maybe_en_hook(hook_args) === false) {
|
|
1405
1407
|
return false;
|
|
1406
1408
|
}
|
|
1407
1409
|
}
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.
|
|
1
|
+
const version = "5.71.1";
|
|
2
2
|
export { version };
|