jssm 5.45.0 → 5.45.2
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/es6/jssm.js +3 -6
- 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 +2 -3
- package/src/ts/jssm.ts +14 -10
- package/src/ts/version.ts +1 -1
package/dist/es6/jssm.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { reduce as reduce_to_639 } from 'reduce-to-639-1';
|
|
3
3
|
import { seq, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key, array_box_if_string, hook_name, named_hook_name } from './jssm_util';
|
|
4
4
|
import { parse } from './jssm-dot'; // TODO FIXME WHARGARBL this could be post-typed
|
|
5
|
-
import { version } from './version'; // replaced from package.js in build
|
|
5
|
+
import { version } from './version'; // replaced from package.js in build
|
|
6
6
|
/* eslint-disable complexity */
|
|
7
7
|
function arrow_direction(arrow) {
|
|
8
8
|
switch (String(arrow)) {
|
|
@@ -404,7 +404,7 @@ class Machine {
|
|
|
404
404
|
// set up the action mapping, so that actions can be looked up by origin
|
|
405
405
|
if (tr.action) {
|
|
406
406
|
// forward mapping first by action name
|
|
407
|
-
let actionMap = this._actions.get(tr.action);
|
|
407
|
+
let actionMap = this._actions.get(tr.action);
|
|
408
408
|
if (!(actionMap)) {
|
|
409
409
|
actionMap = new Map();
|
|
410
410
|
this._actions.set(tr.action, actionMap);
|
|
@@ -416,7 +416,7 @@ class Machine {
|
|
|
416
416
|
actionMap.set(tr.from, thisEdgeId);
|
|
417
417
|
}
|
|
418
418
|
// reverse mapping first by state origin name
|
|
419
|
-
let rActionMap = this._reverse_actions.get(tr.from);
|
|
419
|
+
let rActionMap = this._reverse_actions.get(tr.from);
|
|
420
420
|
if (!(rActionMap)) {
|
|
421
421
|
rActionMap = new Map();
|
|
422
422
|
this._reverse_actions.set(tr.from, rActionMap);
|
|
@@ -832,13 +832,11 @@ class Machine {
|
|
|
832
832
|
return this._edges[idx];
|
|
833
833
|
}
|
|
834
834
|
valid_action(action, _newData) {
|
|
835
|
-
// todo whargarbl implement hooks
|
|
836
835
|
// todo whargarbl implement data stuff
|
|
837
836
|
// todo major incomplete whargarbl comeback
|
|
838
837
|
return this.current_action_for(action) !== undefined;
|
|
839
838
|
}
|
|
840
839
|
valid_transition(newState, _newData) {
|
|
841
|
-
// todo whargarbl implement hooks
|
|
842
840
|
// todo whargarbl implement data stuff
|
|
843
841
|
// todo major incomplete whargarbl comeback
|
|
844
842
|
const transition_for = this.lookup_transition_for(this.state(), newState);
|
|
@@ -851,7 +849,6 @@ class Machine {
|
|
|
851
849
|
return true;
|
|
852
850
|
}
|
|
853
851
|
valid_force_transition(newState, _newData) {
|
|
854
|
-
// todo whargarbl implement hooks
|
|
855
852
|
// todo whargarbl implement data stuff
|
|
856
853
|
// todo major incomplete whargarbl comeback
|
|
857
854
|
return (this.lookup_transition_for(this.state(), newState) !== undefined);
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.45.
|
|
1
|
+
const version = "5.45.2";
|
|
2
2
|
export { version };
|