Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cerebral

Package Overview
Dependencies
Maintainers
6
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.2.0-1570295904659 to 5.2.0-1570305862640

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.2.0-1570295904659";
_this.version = "5.2.0-1570305862640";
_this.debuggerWatchMap = {};

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

@@ -71,7 +71,7 @@ import * as tags from './tags';

export default function App(rootModule, options) {
if (options && options.hotReloading === false) {
if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'production' || options && options.hotReloading === false) {
return new ControllerClass(rootModule, options);
}
if (options && !options.hotReloading && existingInstance) {
if (existingInstance && (!options || !options.hotReloading)) {
console.warn('Cerebral has detected HOT RELOADING in your app. If you want to remove this message set "hotReloading" to true, or false to turn off hot reloading completely');

@@ -85,4 +85,4 @@ }

return new ControllerClass(rootModule, options);
return existingInstance = new ControllerClass(rootModule, options);
}
//# sourceMappingURL=index.js.map

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

_this.version = "5.2.0-1570295904659";
_this.version = "5.2.0-1570305862640";
_this.debuggerWatchMap = {};

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

@@ -228,7 +228,7 @@ 'use strict';

function App(rootModule, options) {
if (options && options.hotReloading === false) {
if (process.env.NODE_ENV === 'test' || process.env.NODE_ENV === 'production' || options && options.hotReloading === false) {
return new _Controller2.default(rootModule, options);
}
if (options && !options.hotReloading && existingInstance) {
if (existingInstance && (!options || !options.hotReloading)) {
console.warn('Cerebral has detected HOT RELOADING in your app. If you want to remove this message set "hotReloading" to true, or false to turn off hot reloading completely');

@@ -242,4 +242,4 @@ }

return new _Controller2.default(rootModule, options);
return existingInstance = new _Controller2.default(rootModule, options);
}
//# sourceMappingURL=index.js.map
{
"name": "cerebral",
"version": "5.2.0-1570295904659",
"version": "5.2.0-1570305862640",
"description": "A state controller with its own debugger",

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

"es6-error": "^4.0.2",
"function-tree": "^3.3.1-1570295904659"
"function-tree": "^3.3.1-1570305862640"
},
"scripts": {
"test": "cross-env BABEL_ENV=test mocha -r test/setup --require babel-register \"src/**/*.test.js\" \"test/**/*.test.js\"",
"test": "cross-env NODE_ENV=test BABEL_ENV=test mocha -r test/setup --require babel-register \"src/**/*.test.js\" \"test/**/*.test.js\"",
"test:watch": "npm run test -- --watch",

@@ -30,0 +30,0 @@ "build:cjs": "cross-env BABEL_ENV=cjs babel src/ --out-dir=lib/ -s",

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