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.1-1577723604565 to 5.2.1-1582187435493

6

es/BaseController.js

@@ -11,9 +11,9 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

import { cleanPath, ensurePath, forceSerializable, getModule, getProviders, isDeveloping, isObject, isSerializable, throwError, getStateChanges } from './utils';
import FunctionTree from 'function-tree';
import Module from './Module';
import DebuggerProvider from './providers/Debugger';
import FunctionTree from 'function-tree';
import GetProvider from './providers/Get';
import Module from './Module';
import ModuleProvider from './providers/Module';
import { cleanPath, ensurePath, forceSerializable, getModule, getProviders, getStateChanges, isDeveloping, isObject, isSerializable, throwError } from './utils';

@@ -20,0 +20,0 @@ /*

@@ -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.1-1577723604565";
_this.version = "5.2.1-1582187435493";
_this.debuggerWatchMap = {};

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

@@ -8,6 +8,6 @@ export { _runSequence as runSequence };

import { Path, Primitive } from 'function-tree';
import { cleanPath, ensurePath } from '../utils';
import Controller from '../Controller';
import Module from '../Module';
import { cleanPath, ensurePath } from '../utils';
import { state } from '..';

@@ -44,3 +44,3 @@

var isSequence = Array.isArray(sequence) || sequence instanceof Primitive;
var controller = options.controller || new Controller(new Module(Object.assign({}, fixtures, isSequence && { sequences: { sequence: sequence } })), { noRethrow: true });
var controller = options.controller || new Controller(new Module(Object.assign({}, fixtures, isSequence && { sequences: { sequence: sequence } })), { noRethrow: true, returnSequencePromise: true });
var response = { controller: controller };

@@ -87,4 +87,2 @@

controller.off('functionEnd', actionEnd);
controller.off('error', error);
controller.off('end', sequenceEnd);
};

@@ -94,7 +92,5 @@

controller.on('functionEnd', actionEnd);
controller.on('error', error);
controller.on('end', sequenceEnd);
var seq = controller.getSequence(isSequence ? 'sequence' : sequence);
if (typeof seq === 'function') {
seq(fixtures.props);
seq(fixtures.props).then(sequenceEnd).catch(error);
} else {

@@ -109,3 +105,3 @@ throw new Error('\'' + (isSequence ? 'sequence' : sequence) + '\' is not a function.');

var controller = new Controller(rootModule, Object.assign({}, { noRethrow: true }, options));
var controller = new Controller(rootModule, Object.assign({}, { noRethrow: true, returnSequencePromise: true }, options));
var model = controller.getModel();

@@ -112,0 +108,0 @@ return {

@@ -11,4 +11,10 @@ 'use strict';

var _utils = require('./utils');
var _functionTree = require('function-tree');
var _functionTree2 = _interopRequireDefault(_functionTree);
var _Module = require('./Module');
var _Module2 = _interopRequireDefault(_Module);
var _Debugger = require('./providers/Debugger');

@@ -18,6 +24,2 @@

var _functionTree = require('function-tree');
var _functionTree2 = _interopRequireDefault(_functionTree);
var _Get = require('./providers/Get');

@@ -27,6 +29,2 @@

var _Module = require('./Module');
var _Module2 = _interopRequireDefault(_Module);
var _Module3 = require('./providers/Module');

@@ -36,2 +34,4 @@

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

@@ -38,0 +38,0 @@

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

_this.version = "5.2.1-1577723604565";
_this.version = "5.2.1-1582187435493";
_this.debuggerWatchMap = {};

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

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

var _utils = require('../utils');
var _Controller = require('../Controller');

@@ -35,2 +33,4 @@

var _utils = require('../utils');
var _ = require('..');

@@ -69,3 +69,3 @@

var isSequence = Array.isArray(sequence) || sequence instanceof _functionTree.Primitive;
var controller = options.controller || new _Controller2.default(new _Module2.default(Object.assign({}, fixtures, isSequence && { sequences: { sequence: sequence } })), { noRethrow: true });
var controller = options.controller || new _Controller2.default(new _Module2.default(Object.assign({}, fixtures, isSequence && { sequences: { sequence: sequence } })), { noRethrow: true, returnSequencePromise: true });
var response = { controller: controller };

@@ -112,4 +112,2 @@

controller.off('functionEnd', actionEnd);
controller.off('error', error);
controller.off('end', sequenceEnd);
};

@@ -119,7 +117,5 @@

controller.on('functionEnd', actionEnd);
controller.on('error', error);
controller.on('end', sequenceEnd);
var seq = controller.getSequence(isSequence ? 'sequence' : sequence);
if (typeof seq === 'function') {
seq(fixtures.props);
seq(fixtures.props).then(sequenceEnd).catch(error);
} else {

@@ -135,3 +131,3 @@ throw new Error('\'' + (isSequence ? 'sequence' : sequence) + '\' is not a function.');

var controller = new _Controller2.default(rootModule, Object.assign({}, { noRethrow: true }, options));
var controller = new _Controller2.default(rootModule, Object.assign({}, { noRethrow: true, returnSequencePromise: true }, options));
var model = controller.getModel();

@@ -138,0 +134,0 @@ return {

{
"name": "cerebral",
"version": "5.2.1-1577723604565",
"version": "5.2.1-1582187435493",
"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-1577723604565"
"function-tree": "^3.3.1-1582187435493"
},

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

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