New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cerebral

Package Overview
Dependencies
Maintainers
5
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 5.0.0 to 5.0.1-1539631428220

operators/package.json

24

es/Controller.js

@@ -15,2 +15,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

import { ensureStrictPath, extractModuleProp, isComputedValue } from './utils';
import { Compute } from './Compute';

@@ -50,2 +51,5 @@ /*

});
_this.on('mutation', function () {
return _this.flagComputed();
});
_this.on('end', function () {

@@ -73,4 +77,3 @@ return _this.flush();

/*
Whenever components needs to be updated, this method
can be called
Flags computed as dirty related to mutations
*/

@@ -80,2 +83,19 @@

_createClass(Controller, [{
key: 'flagComputed',
value: function flagComputed() {
var changes = this.model.changedPaths;
var entities = this.dependencyStore.getUniqueEntities(changes);
entities.forEach(function (entity) {
if (entity instanceof Compute) {
entity.isDirty = true;
}
});
}
/*
Whenever components needs to be updated, this method
can be called
*/
}, {
key: 'flush',

@@ -82,0 +102,0 @@ value: function flush(force) {

2

es/devtools/index.js

@@ -63,3 +63,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

_this.version = "5.0.0";
_this.version = "5.0.1-1539631428220";
_this.debuggerWatchMap = {};

@@ -66,0 +66,0 @@ _this.debuggerComputedMap = {};

@@ -27,2 +27,4 @@ 'use strict';

var _Compute = require('./Compute');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -68,2 +70,5 @@

});
_this.on('mutation', function () {
return _this.flagComputed();
});
_this.on('end', function () {

@@ -91,4 +96,3 @@ return _this.flush();

/*
Whenever components needs to be updated, this method
can be called
Flags computed as dirty related to mutations
*/

@@ -98,2 +102,19 @@

_createClass(Controller, [{
key: 'flagComputed',
value: function flagComputed() {
var changes = this.model.changedPaths;
var entities = this.dependencyStore.getUniqueEntities(changes);
entities.forEach(function (entity) {
if (entity instanceof _Compute.Compute) {
entity.isDirty = true;
}
});
}
/*
Whenever components needs to be updated, this method
can be called
*/
}, {
key: 'flush',

@@ -100,0 +121,0 @@ value: function flush(force) {

@@ -81,3 +81,3 @@ 'use strict';

_this.version = "5.0.0";
_this.version = "5.0.1-1539631428220";
_this.debuggerWatchMap = {};

@@ -84,0 +84,0 @@ _this.debuggerComputedMap = {};

{
"name": "cerebral",
"version": "5.0.0",
"version": "5.0.1-1539631428220",
"description": "A state controller with its own debugger",

@@ -24,3 +24,3 @@ "main": "index.js",

"es6-error": "^4.0.2",
"function-tree": "^3.3.0"
"function-tree": "^3.3.0-1539631428220"
},

@@ -27,0 +27,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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