@peter.naydenov/fsm-hub 1.0.4 → 1.0.6

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.
Files changed (2) hide show
  1. package/README.md +7 -5
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -175,7 +175,7 @@ const
175
175
  return {
176
176
  second : 'second'
177
177
  , state
178
- , 'answer' : resultResponseData
178
+ , 'answer' : resultResponseData.response
179
179
  }
180
180
  }
181
181
  }
@@ -186,14 +186,14 @@ const
186
186
 
187
187
  function showme (transitionResult) {
188
188
  console.log ( 'ShowMe' )
189
- console.log (transitionResult)
189
+ console.log ( transitionResult.answer )
190
190
  } // showme func.
191
191
 
192
192
  hub.addFsm ({ one, two })
193
193
  hub.addFunctions ( { showme })
194
194
 
195
195
  // Start!
196
- oneFsm.update ( 'activate', 'try' )
196
+ oneFsm.update ( 'activate', { response:'try'} )
197
197
 
198
198
  // Result on the screen:
199
199
  // ShowMe
@@ -206,13 +206,15 @@ const
206
206
  ## Release History
207
207
 
208
208
 
209
+ ### 1.0.5 ( 2022-05-27 )
210
+ - [x] Just a dependency update;
209
211
 
210
212
  ### 1.0.4 ( 2021-04-02 )
211
- - [x] Fix: Duplicated update callback if logic contain a chainAction.
213
+ - [x] Fix: Duplicated update callback if logic contain a chainAction;
212
214
 
213
215
  ### 1.0.3 ( 2021-03-26 )
214
216
  - [x] Massive code refactoring;
215
- - [ ] Bug: Duplicated update callback if logic contain a chainAction.
217
+ - [ ] Bug: Duplicated update callback if logic contain a chainAction;
216
218
 
217
219
 
218
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peter.naydenov/fsm-hub",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "FSM orchestration and state-managment tool",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -14,9 +14,9 @@
14
14
  "ask-for-promise": "1.3.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@peter.naydenov/fsm": "2.2.3",
18
- "chai": "4.3.4",
19
- "mocha": "8.3.2",
17
+ "@peter.naydenov/fsm": "3.0.0",
18
+ "chai": "4.3.6",
19
+ "mocha": "10.0.0",
20
20
  "nyc": "15.1.0"
21
21
  },
22
22
  "repository": {