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.19.2 to 0.19.3

2

package.json
{
"name": "cerebral",
"version": "0.19.2",
"version": "0.19.3",
"description": "A state controller with its own debugger",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -29,2 +29,3 @@ /*

var currentIndex = signals.length - 1;
var hasRememberedInitial = false;

@@ -57,2 +58,3 @@ return {

// keep the latest one
/* ALWAYS KEEP STATE
if (!willKeepState) {

@@ -62,2 +64,3 @@ signals = [];

}
*/

@@ -101,2 +104,12 @@ // If we have travelled back and start adding new signals the signals not triggered should

rememberInitial: function (index) {
// Both router and debugger might try to do initial remembering
if (hasRememberedInitial) {
return;
}
hasRememberedInitial = true;
this.remember(index);
},
remember: function(index) {

@@ -103,0 +116,0 @@

@@ -36,3 +36,3 @@ var utils = require('./utils.js');

} else {
signalStore.remember(signalStore.getSignals().length - 1);
signalStore.rememberInitial(signalStore.getSignals().length - 1);
window.dispatchEvent(event);

@@ -39,0 +39,0 @@ }

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