New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electron-event-flux

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-event-flux - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

2

lib/RendererAppStore.d.ts

@@ -17,2 +17,3 @@ import AppStore from 'event-flux/lib/AppStore';

storeProxyHandler: StoreProxyHandler;
storeResolve: () => void;
winInitParams: any;

@@ -23,2 +24,3 @@ log: Log;

asyncInit(): Promise<{}>;
handleStorePromise: (state: any, store: any) => void;
handleStore(resolve: any, filter: any, state: any, store: any): void;

@@ -25,0 +27,0 @@ handleAction(action: any): void;

@@ -42,2 +42,5 @@ "use strict";

_this.storeProxyHandler = new StoreProxyHandler_1.default();
_this.handleStorePromise = function (state, store) {
_this.handleStore(_this.storeResolve, true, state, store);
};
_this.log = log;

@@ -51,4 +54,6 @@ return _this;

var filter = true;
// 先初始化,防止由于promise的异步 漏掉某些消息
this.client = new RendererClient_1.default(filter, this.handleStorePromise, this.handleAction.bind(this), this.handleResult.bind(this), this.handleMessage.bind(this), this.handleWinMessage.bind(this), this.handleInitWindow.bind(this));
return new Promise(function (resolve) {
_this.client = new RendererClient_1.default(filter, _this.handleStore.bind(_this, resolve, filter), _this.handleAction.bind(_this), _this.handleResult.bind(_this), _this.handleMessage.bind(_this), _this.handleWinMessage.bind(_this), _this.handleInitWindow.bind(_this));
_this.storeResolve = resolve;
});

@@ -55,0 +60,0 @@ };

2

package.json
{
"name": "electron-event-flux",
"version": "1.3.7",
"version": "1.3.8",
"description": "Redux store which synchronizes between instances in multiple process",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -29,2 +29,3 @@ import AppStore from 'event-flux/lib/AppStore';

storeResolve: () => void;
winInitParams: any;

@@ -45,15 +46,22 @@ log: Log;

let filter = true;
// 先初始化,防止由于promise的异步 漏掉某些消息
this.client = new RendererClient(
filter,
this.handleStorePromise,
this.handleAction.bind(this),
this.handleResult.bind(this),
this.handleMessage.bind(this),
this.handleWinMessage.bind(this),
this.handleInitWindow.bind(this)
);
return new Promise((resolve) => {
this.client = new RendererClient(
filter,
this.handleStore.bind(this, resolve, filter),
this.handleAction.bind(this),
this.handleResult.bind(this),
this.handleMessage.bind(this),
this.handleWinMessage.bind(this),
this.handleInitWindow.bind(this)
);
this.storeResolve = resolve;
});
}
handleStorePromise = (state, store) => {
this.handleStore(this.storeResolve, true, state, store);
};
handleStore(resolve, filter, state, store) {

@@ -60,0 +68,0 @@ const storeData = deserialize(state);

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