reactive-di
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="5.0.5"></a> | ||
## [5.0.5](https://github.com/zerkalica/reactive-di/compare/v5.0.4...v5.0.5) (2017-11-06) | ||
<a name="5.0.4"></a> | ||
@@ -7,0 +12,0 @@ ## [5.0.4](https://github.com/zerkalica/reactive-di/compare/v5.0.3...v5.0.4) (2017-11-06) |
@@ -33,5 +33,2 @@ function _defineProperties(target, props) { | ||
function DisposableSheet(key, sheet, remover) { | ||
this.__lom_remover = void 0; | ||
this.__lom_sheet = void 0; | ||
this.__lom_key = void 0; | ||
this.__lom_key = key; | ||
@@ -61,3 +58,2 @@ this.__lom_sheet = sheet; | ||
function SheetManager(sheetProcessor) { | ||
this._sheetProcessor = void 0; | ||
this._cache = new Map(); | ||
@@ -137,3 +133,3 @@ this._sheetProcessor = sheetProcessor; | ||
var _class2; | ||
var _class; | ||
var _temp; | ||
@@ -145,3 +141,2 @@ | ||
var Alias = function Alias(dest) { | ||
this.dest = void 0; | ||
dest[rdiId] = '' + ++depId; | ||
@@ -151,10 +146,6 @@ this.dest = dest; | ||
var Injector = (_temp = _class2 = | ||
var Injector = (_temp = _class = | ||
/*#__PURE__*/ | ||
function () { | ||
function Injector(items, sheetProcessor, state, displayName, instance, cache) { | ||
this.displayName = void 0; | ||
this.instance = void 0; | ||
this._cache = void 0; | ||
this._state = void 0; | ||
this._resolved = false; | ||
@@ -429,3 +420,3 @@ this._listeners = undefined; | ||
return Injector; | ||
}(), _class2.parentContext = undefined, _temp); | ||
}(), _class.parentContext = undefined, _temp); | ||
@@ -481,13 +472,16 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
_this = _BaseComponent.call(this, props, reactContext) || this; | ||
_this.props = void 0; | ||
_this._propsChanged = true; | ||
_this._injector = void 0; | ||
_this._keys = void 0; | ||
_this._render = void 0; | ||
_this._el = undefined; | ||
var keys = undefined; | ||
_this._keys = props && (keys = Object.keys(props)).length > 0 ? keys : undefined; | ||
var injector = rootInjector; | ||
_this._keys = undefined; | ||
if (props) { | ||
_this._keys = Object.keys(props); | ||
if (_this._keys.length === 0) _this._keys = undefined; | ||
if (props.__lom_ctx !== undefined) injector = props.__lom_ctx; | ||
} | ||
var cns = _this.constructor; | ||
_this._render = cns.render; | ||
_this._injector = (props.__lom_ctx || rootInjector).copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
_this._injector = injector.copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
cns.instance++; | ||
@@ -581,3 +575,3 @@ return _this; | ||
return AtomizedComponent; | ||
}(BaseComponent), _class2.displayName = void 0, _class2.render = void 0, _class2.instance = void 0, _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
}(BaseComponent), _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
return function reactWrapper(render) { | ||
@@ -745,11 +739,4 @@ var WrappedComponent = function WrappedComponent(props, context) { | ||
this._reaction = void 0; | ||
this._handler = void 0; | ||
this._cache = void 0; | ||
this._propName = void 0; | ||
this._host = void 0; | ||
this._reactions = void 0; | ||
this._next = undefined; | ||
this._force = undefined; | ||
this._track = void 0; | ||
this._cache = undefined; | ||
@@ -756,0 +743,0 @@ this._host = host; |
@@ -37,5 +37,2 @@ 'use strict'; | ||
function DisposableSheet(key, sheet, remover) { | ||
this.__lom_remover = void 0; | ||
this.__lom_sheet = void 0; | ||
this.__lom_key = void 0; | ||
this.__lom_key = key; | ||
@@ -65,3 +62,2 @@ this.__lom_sheet = sheet; | ||
function SheetManager(sheetProcessor) { | ||
this._sheetProcessor = void 0; | ||
this._cache = new Map(); | ||
@@ -141,3 +137,3 @@ this._sheetProcessor = sheetProcessor; | ||
var _class2; | ||
var _class; | ||
var _temp; | ||
@@ -149,3 +145,2 @@ | ||
var Alias = function Alias(dest) { | ||
this.dest = void 0; | ||
dest[rdiId] = '' + ++depId; | ||
@@ -155,10 +150,6 @@ this.dest = dest; | ||
var Injector = (_temp = _class2 = | ||
var Injector = (_temp = _class = | ||
/*#__PURE__*/ | ||
function () { | ||
function Injector(items, sheetProcessor, state, displayName, instance, cache) { | ||
this.displayName = void 0; | ||
this.instance = void 0; | ||
this._cache = void 0; | ||
this._state = void 0; | ||
this._resolved = false; | ||
@@ -433,3 +424,3 @@ this._listeners = undefined; | ||
return Injector; | ||
}(), _class2.parentContext = undefined, _temp); | ||
}(), _class.parentContext = undefined, _temp); | ||
@@ -485,13 +476,16 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
_this = _BaseComponent.call(this, props, reactContext) || this; | ||
_this.props = void 0; | ||
_this._propsChanged = true; | ||
_this._injector = void 0; | ||
_this._keys = void 0; | ||
_this._render = void 0; | ||
_this._el = undefined; | ||
var keys = undefined; | ||
_this._keys = props && (keys = Object.keys(props)).length > 0 ? keys : undefined; | ||
var injector = rootInjector; | ||
_this._keys = undefined; | ||
if (props) { | ||
_this._keys = Object.keys(props); | ||
if (_this._keys.length === 0) _this._keys = undefined; | ||
if (props.__lom_ctx !== undefined) injector = props.__lom_ctx; | ||
} | ||
var cns = _this.constructor; | ||
_this._render = cns.render; | ||
_this._injector = (props.__lom_ctx || rootInjector).copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
_this._injector = injector.copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
cns.instance++; | ||
@@ -585,3 +579,3 @@ return _this; | ||
return AtomizedComponent; | ||
}(BaseComponent), _class2.displayName = void 0, _class2.render = void 0, _class2.instance = void 0, _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
}(BaseComponent), _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
return function reactWrapper(render) { | ||
@@ -749,11 +743,4 @@ var WrappedComponent = function WrappedComponent(props, context) { | ||
this._reaction = void 0; | ||
this._handler = void 0; | ||
this._cache = void 0; | ||
this._propName = void 0; | ||
this._host = void 0; | ||
this._reactions = void 0; | ||
this._next = undefined; | ||
this._force = undefined; | ||
this._track = void 0; | ||
this._cache = undefined; | ||
@@ -760,0 +747,0 @@ this._host = host; |
@@ -39,5 +39,2 @@ (function (global, factory) { | ||
function DisposableSheet(key, sheet, remover) { | ||
this.__lom_remover = void 0; | ||
this.__lom_sheet = void 0; | ||
this.__lom_key = void 0; | ||
this.__lom_key = key; | ||
@@ -67,3 +64,2 @@ this.__lom_sheet = sheet; | ||
function SheetManager(sheetProcessor) { | ||
this._sheetProcessor = void 0; | ||
this._cache = new Map(); | ||
@@ -143,3 +139,3 @@ this._sheetProcessor = sheetProcessor; | ||
var _class2; | ||
var _class; | ||
var _temp; | ||
@@ -151,3 +147,2 @@ | ||
var Alias = function Alias(dest) { | ||
this.dest = void 0; | ||
dest[rdiId] = '' + ++depId; | ||
@@ -157,10 +152,6 @@ this.dest = dest; | ||
var Injector = (_temp = _class2 = | ||
var Injector = (_temp = _class = | ||
/*#__PURE__*/ | ||
function () { | ||
function Injector(items, sheetProcessor, state, displayName, instance, cache) { | ||
this.displayName = void 0; | ||
this.instance = void 0; | ||
this._cache = void 0; | ||
this._state = void 0; | ||
this._resolved = false; | ||
@@ -435,3 +426,3 @@ this._listeners = undefined; | ||
return Injector; | ||
}(), _class2.parentContext = undefined, _temp); | ||
}(), _class.parentContext = undefined, _temp); | ||
@@ -487,13 +478,16 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
_this = _BaseComponent.call(this, props, reactContext) || this; | ||
_this.props = void 0; | ||
_this._propsChanged = true; | ||
_this._injector = void 0; | ||
_this._keys = void 0; | ||
_this._render = void 0; | ||
_this._el = undefined; | ||
var keys = undefined; | ||
_this._keys = props && (keys = Object.keys(props)).length > 0 ? keys : undefined; | ||
var injector = rootInjector; | ||
_this._keys = undefined; | ||
if (props) { | ||
_this._keys = Object.keys(props); | ||
if (_this._keys.length === 0) _this._keys = undefined; | ||
if (props.__lom_ctx !== undefined) injector = props.__lom_ctx; | ||
} | ||
var cns = _this.constructor; | ||
_this._render = cns.render; | ||
_this._injector = (props.__lom_ctx || rootInjector).copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
_this._injector = injector.copy(cns.displayName + (cns.instance ? '[' + cns.instance + ']' : ''), cns.instance, _this._render.aliases); | ||
cns.instance++; | ||
@@ -587,3 +581,3 @@ return _this; | ||
return AtomizedComponent; | ||
}(BaseComponent), _class2.displayName = void 0, _class2.render = void 0, _class2.instance = void 0, _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
}(BaseComponent), _class2.isFullEqual = isFullEqual, _temp), (_applyDecoratedDescriptor(_class.prototype, "r", [detached], Object.getOwnPropertyDescriptor(_class.prototype, "r"), _class.prototype)), _class); | ||
return function reactWrapper(render) { | ||
@@ -751,11 +745,4 @@ var WrappedComponent = function WrappedComponent(props, context) { | ||
this._reaction = void 0; | ||
this._handler = void 0; | ||
this._cache = void 0; | ||
this._propName = void 0; | ||
this._host = void 0; | ||
this._reactions = void 0; | ||
this._next = undefined; | ||
this._force = undefined; | ||
this._track = void 0; | ||
this._cache = undefined; | ||
@@ -762,0 +749,0 @@ this._host = host; |
{ | ||
"name": "reactive-di", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Reactive dependency injection", | ||
@@ -65,3 +65,3 @@ "publishConfig": { | ||
"flow-bin": "^0.58.0", | ||
"lom_atom": "^2.0.8", | ||
"lom_atom": "^2.0.9", | ||
"mobx": "^3.3.1", | ||
@@ -68,0 +68,0 @@ "mocha": "^4.0.1", |
@@ -34,9 +34,12 @@ // @flow | ||
super(props, reactContext) | ||
let keys: string[] | void = undefined | ||
this._keys = (props && (keys = Object.keys(props)).length > 0) | ||
? keys | ||
: undefined | ||
let injector: Injector = rootInjector | ||
this._keys = undefined | ||
if (props) { | ||
this._keys = Object.keys(props) | ||
if (this._keys.length === 0) this._keys = (undefined: any) | ||
if (props.__lom_ctx !== undefined) injector = props.__lom_ctx | ||
} | ||
const cns = this.constructor | ||
this._render = cns.render | ||
this._injector = (props.__lom_ctx || rootInjector).copy( | ||
this._injector = injector.copy( | ||
cns.displayName + (cns.instance ? ('[' + cns.instance + ']') : ''), | ||
@@ -43,0 +46,0 @@ cns.instance, |
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
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
307222
2704