diff --git a/package.json b/package.json index 9ae90fb..71eed36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "appstate", - "version": "2.1.1", + "version": "2.1.2", "description": "Barebone state manager implementation based on Cerebral signals conception", "main": "./src/appstate.js", "devDependencies": { diff --git a/src/appstate.js b/src/appstate.js index 4f39a1c..9aa4b92 100755 --- a/src/appstate.js +++ b/src/appstate.js @@ -509,7 +509,9 @@ function transformSyncBranch (action, parentAction, path, actions, isSync) { * @param {Array} actions */ function analyze (actions) { - + if (!Array.isArray(actions)) { + throw new Error('State: Signal actions should be array'); + } actions.forEach((action, index) => { if (typeof action === 'undefined' || typeof action === 'string') {