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

electrum

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

4

lib/electrum.js

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

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