Huge News!Announcing our $40M Series B led by Abstract Ventures.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-1530374032214 to 5.0.0-1531254621854

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-1530374032214";
_this.version = "5.0.0-1531254621854";
_this.debuggerWatchMap = {};

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

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
import { Tag } from '../tags';
import { isComputedValue } from '../utils';

@@ -16,2 +17,3 @@ var HELP_URL = 'http://cerebraljs.com/docs/api/factories.html#when';

var path = _ref.path,
props = _ref.props,
resolve = _ref.resolve;

@@ -25,4 +27,9 @@

}
var values = valueTemplates.map(function (value) {
return resolve.value(value);
var values = valueTemplates.map(function (tag) {
var value = resolve.value(tag);
if (isComputedValue(value)) {
return value.getValue(props);
} else {
return value;
}
});

@@ -29,0 +36,0 @@ var isTrue = Boolean(whenFunc ? whenFunc.apply(undefined, _toConsumableArray(values)) : values[0]);

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

_this.version = "5.0.0-1530374032214";
_this.version = "5.0.0-1531254621854";
_this.debuggerWatchMap = {};

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

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

var _utils = require('../utils');
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

@@ -23,2 +25,3 @@

var path = _ref.path,
props = _ref.props,
resolve = _ref.resolve;

@@ -32,4 +35,9 @@

}
var values = valueTemplates.map(function (value) {
return resolve.value(value);
var values = valueTemplates.map(function (tag) {
var value = resolve.value(tag);
if ((0, _utils.isComputedValue)(value)) {
return value.getValue(props);
} else {
return value;
}
});

@@ -36,0 +44,0 @@ var isTrue = Boolean(whenFunc ? whenFunc.apply(undefined, _toConsumableArray(values)) : values[0]);

{
"name": "cerebral",
"version": "5.0.0-1530374032214",
"version": "5.0.0-1531254621854",
"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-1530374032214"
"function-tree": "^3.3.0-1531254621854"
},

@@ -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