Comparing version 5.0.0-1531922479412 to 5.0.0-1532201453503
@@ -305,3 +305,3 @@ 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"); } }; }(); | ||
var parentModule = getModule(pathArray, this.module); | ||
var newModule = module.create(this, ensurePath(path)); | ||
var newModule = module instanceof Module ? module.create(this, ensurePath(path)) : new Module(module).create(this, ensurePath(path)); | ||
parentModule.modules[moduleKey] = newModule; | ||
@@ -308,0 +308,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.0.0-1531922479412"; | ||
_this.version = "5.0.0-1532201453503"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -66,0 +66,0 @@ _this.debuggerComputedMap = {}; |
@@ -150,3 +150,3 @@ import { DevTools } from './devtools' | ||
stateChanges?: any | ||
returnSequencePromise: boolean | ||
returnSequencePromise?: boolean | ||
Model?: any | ||
@@ -161,3 +161,3 @@ } | ||
getSequence<T = any>(path: string): RunableSequence<T> | ||
addModule(path: string, module: ModuleClass): void | ||
addModule(path: string, module: ModuleClass | ModuleDefinition): void | ||
removeModule(path: string): void | ||
@@ -170,3 +170,3 @@ } | ||
constructor( | ||
rootModule: ModuleClass, | ||
rootModule: ModuleClass | ModuleDefinition, | ||
options: ControllerOptions, | ||
@@ -202,3 +202,3 @@ functionTreeOptions: any | ||
export function UniversalController( | ||
rootModule: ModuleClass, | ||
rootModule: ModuleClass | ModuleDefinition, | ||
config?: ControllerOptions | ||
@@ -208,3 +208,3 @@ ): UniversalControllerClass | ||
export function UniversalApp( | ||
rootModule: ModuleClass, | ||
rootModule: ModuleClass | ModuleDefinition, | ||
config?: ControllerOptions | ||
@@ -211,0 +211,0 @@ ): UniversalControllerClass |
@@ -326,3 +326,3 @@ 'use strict'; | ||
var parentModule = (0, _utils.getModule)(pathArray, this.module); | ||
var newModule = module.create(this, (0, _utils.ensurePath)(path)); | ||
var newModule = module instanceof _Module2.default ? module.create(this, (0, _utils.ensurePath)(path)) : new _Module2.default(module).create(this, (0, _utils.ensurePath)(path)); | ||
parentModule.modules[moduleKey] = newModule; | ||
@@ -329,0 +329,0 @@ |
@@ -81,3 +81,3 @@ 'use strict'; | ||
_this.version = "5.0.0-1531922479412"; | ||
_this.version = "5.0.0-1532201453503"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -84,0 +84,0 @@ _this.debuggerComputedMap = {}; |
{ | ||
"name": "cerebral", | ||
"version": "5.0.0-1531922479412", | ||
"version": "5.0.0-1532201453503", | ||
"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-1531922479412" | ||
"function-tree": "^3.3.0-1532201453503" | ||
}, | ||
@@ -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
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
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
781325