Comparing version 5.0.2 to 5.0.3-1541875455582
@@ -200,13 +200,2 @@ var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; | ||
if (!this.isDirty && this.computedTags.length) { | ||
var getters = this.controller.createContext(this.props, this.modulePath); | ||
this.isDirty = this.computedTags.reduce(function (isDirty, tag) { | ||
if (isDirty) { | ||
return true; | ||
} | ||
return tag.getValue(getters).isDirty; | ||
}, false); | ||
} | ||
if (this.isDirty) { | ||
@@ -213,0 +202,0 @@ this.getters = this.controller.createContext(props); |
@@ -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.2"; | ||
_this.version = "5.0.3-1541875455582"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -66,0 +66,0 @@ _this.debuggerComputedMap = {}; |
@@ -5,2 +5,4 @@ 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 Compute from './Compute'; | ||
var Watch = function () { | ||
@@ -65,3 +67,7 @@ function Watch(type) { | ||
this.subscribers.push(subscription); | ||
if (watcher instanceof Compute) { | ||
this.subscribers.unshift(subscription); | ||
} else { | ||
this.subscribers.push(subscription); | ||
} | ||
@@ -68,0 +74,0 @@ if (this.controller.devtools) { |
@@ -213,13 +213,2 @@ 'use strict'; | ||
if (!this.isDirty && this.computedTags.length) { | ||
var getters = this.controller.createContext(this.props, this.modulePath); | ||
this.isDirty = this.computedTags.reduce(function (isDirty, tag) { | ||
if (isDirty) { | ||
return true; | ||
} | ||
return tag.getValue(getters).isDirty; | ||
}, false); | ||
} | ||
if (this.isDirty) { | ||
@@ -226,0 +215,0 @@ this.getters = this.controller.createContext(props); |
@@ -81,3 +81,3 @@ 'use strict'; | ||
_this.version = "5.0.2"; | ||
_this.version = "5.0.3-1541875455582"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -84,0 +84,0 @@ _this.debuggerComputedMap = {}; |
@@ -9,2 +9,8 @@ 'use strict'; | ||
var _Compute = require('./Compute'); | ||
var _Compute2 = _interopRequireDefault(_Compute); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -71,3 +77,7 @@ | ||
this.subscribers.push(subscription); | ||
if (watcher instanceof _Compute2.default) { | ||
this.subscribers.unshift(subscription); | ||
} else { | ||
this.subscribers.push(subscription); | ||
} | ||
@@ -74,0 +84,0 @@ if (this.controller.devtools) { |
{ | ||
"name": "cerebral", | ||
"version": "5.0.2", | ||
"version": "5.0.3-1541875455582", | ||
"description": "A state controller with its own debugger", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"es6-error": "^4.0.2", | ||
"function-tree": "^3.3.1" | ||
"function-tree": "^3.3.1-1541875455582" | ||
}, | ||
@@ -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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
796661
7993
1