Comparing version 0.17.2 to 0.17.3
@@ -13,2 +13,3 @@ var path = require('path'); | ||
resolve: { | ||
fallback: node_modules, | ||
alias: { | ||
@@ -15,0 +16,0 @@ 'cerebral': path.resolve(__dirname, 'src', 'index.js') |
@@ -5,3 +5,2 @@ import React from 'react/addons'; | ||
@Cerebral((props) => { | ||
console.log(props); | ||
return { | ||
@@ -8,0 +7,0 @@ remainingCount: ['remainingCount'], |
@@ -10,2 +10,3 @@ import './../node_modules/todomvc-common/base.css'; | ||
import {Container} from 'cerebral-react'; | ||
import CerebralRouter from './../../cerebral-router/index.js'; | ||
@@ -47,3 +48,3 @@ // ACTIONS | ||
controller.signal('toggleAllChanged', toggleAllChecked, setVisibleTodos, setCounters); | ||
controller.signal('routeChanged', setUrl, setFilter, setVisibleTodos); | ||
controller.signal('routeChanged', setFilter, setVisibleTodos); | ||
controller.signal('clearCompletedClicked', clearCompleted, setVisibleTodos, setAllChecked, setCounters); | ||
@@ -58,2 +59,8 @@ controller.signal('todoDoubleClicked', editTodo); | ||
// ROUTER | ||
CerebralRouter(controller, { | ||
'/': 'routeChanged', | ||
'/:filter': 'routeChanged' | ||
}); | ||
/* | ||
const router = ReactiveRouter({ | ||
@@ -73,1 +80,2 @@ '/': controller.signals.routeChanged, | ||
}); | ||
*/ |
{ | ||
"name": "cerebral", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "A state controller with its own debugger", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -25,3 +25,3 @@ var utils = require('./utils.js'); | ||
return function () { | ||
var signalChain = function () { | ||
@@ -118,2 +118,6 @@ var executionArray = actions.slice(); | ||
if (typeof actionFunc !== 'function') { | ||
throw new Error('Cerebral - There is something wrong with the chain in signal "' + signalName + '". Please verify outputs and that async signals are defined within an array.'); | ||
} | ||
var next = createNext.async(actionFunc); | ||
@@ -173,2 +177,6 @@ actionFunc.apply(null, actionArgs.concat(next.fn, services)); | ||
if (typeof actionFunc !== 'function') { | ||
throw new Error('Cerebral - There is something wrong with the chain in signal "' + signalName + '". Please verify outputs and that async signals are defined within an array.'); | ||
} | ||
var next = createNext.sync(actionFunc, signal.name); | ||
@@ -237,4 +245,8 @@ actionFunc.apply(null, actionArgs.concat(next, services)); | ||
signalChain.chain = actions; | ||
return signalChain; | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3527558
36695