Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cerebral

Package Overview
Dependencies
Maintainers
1
Versions
638
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral - npm Package Compare versions

Comparing version 0.17.2 to 0.17.3

1

demo.config.js

@@ -13,2 +13,3 @@ var path = require('path');

resolve: {
fallback: node_modules,
alias: {

@@ -15,0 +16,0 @@ 'cerebral': path.resolve(__dirname, 'src', 'index.js')

1

demo/components/TodosFooter.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;
};
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc