Comparing version 2.4.1 to 2.4.2
@@ -66,4 +66,4 @@ 'use strict'; | ||
this._injectingMiddleware = new _injectingMiddleware2.default(); | ||
this._injectingMiddleware.register('events', function (obj, props) { | ||
_electrumEvents.EventHandlers.inject(obj, props, function () { | ||
this._injectingMiddleware.register('events', function (obj) { | ||
_electrumEvents.EventHandlers.inject(obj, function () { | ||
return _this.bus; | ||
@@ -70,0 +70,0 @@ }); |
@@ -34,3 +34,3 @@ 'use strict'; | ||
key: 'inject', | ||
value: function inject(obj, props) { | ||
value: function inject(obj) { | ||
var _iteratorNormalCompletion = true; | ||
@@ -46,3 +46,3 @@ var _didIteratorError = false; | ||
if (middleware) { | ||
middleware(obj, props); | ||
middleware(obj); | ||
} | ||
@@ -49,0 +49,0 @@ } |
@@ -40,3 +40,3 @@ 'use strict'; | ||
_index2.default.inject(_this, props); | ||
_index2.default.inject(_this); | ||
return _this; | ||
@@ -43,0 +43,0 @@ } |
{ | ||
"name": "electrum", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Electrum simplifies framework-agnostic declaration of React components.", | ||
@@ -26,4 +26,13 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"react": "^0.14.3" | ||
"react": "^0.14.3", | ||
"react-addons-shallow-compare": "^0.14.3", | ||
"react-dom": "^0.14.3" | ||
}, | ||
"dependencies": { | ||
"electrum-events": "^1.0.5", | ||
"electrum-field": "^1.0.1", | ||
"electrum-store": "^1.0.4", | ||
"electrum-theme": "^1.1.3", | ||
"electrum-utils": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
@@ -38,8 +47,3 @@ "babel-cli": "^6.3.15", | ||
"chai": "^3.4.1", | ||
"electrum-events": "^1.0.3", | ||
"electrum-field": "^1.0.1", | ||
"electrum-require-components": "^1.3.0", | ||
"electrum-store": "^1.0.4", | ||
"electrum-theme": "^1.1.3", | ||
"electrum-utils": "^1.0.0", | ||
"jsdom": "^7.2.0", | ||
@@ -46,0 +50,0 @@ "mai-chai": "^1.1.2", |
@@ -34,4 +34,4 @@ 'use strict'; | ||
this._injectingMiddleware = new InjectingMiddleware (); | ||
this._injectingMiddleware.register ('events', (obj, props) => { | ||
EventHandlers.inject (obj, props, () => this.bus); | ||
this._injectingMiddleware.register ('events', obj => { | ||
EventHandlers.inject (obj, () => this.bus); | ||
}); | ||
@@ -38,0 +38,0 @@ this._wrappers.forEach (x => this.use (x)); |
@@ -8,7 +8,7 @@ 'use strict'; | ||
export default class InjectingMiddleware extends Middleware { | ||
inject (obj, props) { | ||
inject (obj) { | ||
for (let item of this._middlewares) { | ||
const middleware = item.middleware; | ||
if (middleware) { | ||
middleware (obj, props); | ||
middleware (obj); | ||
} | ||
@@ -15,0 +15,0 @@ } |
@@ -15,3 +15,3 @@ 'use strict'; | ||
super (props); | ||
E.inject (this, props); | ||
E.inject (this); | ||
} | ||
@@ -18,0 +18,0 @@ shouldComponentUpdate (nextProps, nextState) { |
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
119140
19
8
+ Addedelectrum-events@^1.0.5
+ Addedelectrum-field@^1.0.1
+ Addedelectrum-store@^1.0.4
+ Addedelectrum-theme@^1.1.3
+ Addedelectrum-utils@^1.0.0
+ Addedelectrum-events@1.6.0(transitive)
+ Addedelectrum-field@1.7.1(transitive)
+ Addedelectrum-store@1.12.0(transitive)
+ Addedelectrum-theme@1.8.0(transitive)
+ Addedelectrum-utils@1.6.7(transitive)
+ Addedreact-addons-shallow-compare@0.14.8(transitive)
+ Addedreact-dom@0.14.10(transitive)