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.23.0 to 0.23.1

2

demo/components/AddTodo.js

@@ -15,3 +15,3 @@ import React from 'react';

onNewTodoTitleChange(event) {
this.props.signals.newTodoTitleChanged(true, {
this.props.signals.newTodoTitleChanged.sync({
title: event.target.value

@@ -18,0 +18,0 @@ });

{
"name": "cerebral",
"version": "0.23.0",
"version": "0.23.1",
"description": "A state controller with its own debugger",

@@ -20,3 +20,3 @@ "main": "src/index.js",

"cerebral-react": "^0.2.0",
"cerebral-router": "^0.4.2",
"cerebral-router": "^0.7.0",
"classnames": "^2.1.1",

@@ -30,2 +30,3 @@ "css-loader": "^0.9.1",

"nodeunit-watcher": "0.0.3",
"path-to-regexp": "^1.2.1",
"react": "^0.14.0",

@@ -32,0 +33,0 @@ "react-dom": "^0.14.0",

@@ -75,4 +75,5 @@ var utils = require('./utils.js');

// TODO: Do I need this? Not in use?
resetState: function () {
controller.emit('recorderReset', currentRecording.initialState);
controller.emit('recorderReset', currentRecording);
},

@@ -106,3 +107,3 @@

record: function () {
record: function (options) {

@@ -113,2 +114,3 @@ if (signalStore.isRemembering()) {

options = options || {};

@@ -120,6 +122,14 @@ // If we are recording over the previous stuff, go back to start

var state = model.accessors.export && model.accessors.export();
var path = options.path || [];
var traversePath = path.slice();
while (traversePath.length) {
state = state[traversePath.shift()];
}
currentRecording = {
initialState: model.accessors.export && model.accessors.export(),
initialState: state,
start: Date.now(),
signals: []
signals: [],
path: path
};

@@ -126,0 +136,0 @@

@@ -92,2 +92,5 @@ var utils = require('./utils.js');

disableDebugger = !disableDebugger;
if (disableDebugger && signalStore.willKeepState()) {
signalStore.toggleKeepState();
}
var event = new CustomEvent('cerebral.dev.update', {

@@ -94,0 +97,0 @@ detail: getDetail()

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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