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.3 to 1.3.4

1

lib/MultiWinCacheStore.d.ts

@@ -23,2 +23,3 @@ import MultiWinStore from './MultiWinStore';

init(): void;
filterClients(clients: any): any;
getDefaultClients(): {

@@ -25,0 +26,0 @@ clientId: string;

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

}
else {
clients = this.filterClients(clients);
}
this.windowManager = new WindowManager(this);

@@ -99,2 +102,13 @@ electron_1.app.whenReady().then(function () {

};
MultiWinCacheStore.prototype.filterClients = function (clients) {
var clientIds = new Set();
clients = clients.filter(function (client) {
if (!clientIds.has(client.clientId)) {
clientIds.add(client.clientId);
return true;
}
return false;
});
return clients;
};
MultiWinCacheStore.prototype.getDefaultClients = function () {

@@ -155,2 +169,5 @@ return [{ clientId: 'mainClient', url: '/', winState: { isMaximized: true } }];

var _this = this;
if (clientId && this.clientIds.indexOf(clientId) !== -1) {
return;
}
var winState = new ElectronWindowState_1.default(null, params, null);

@@ -157,0 +174,0 @@ var winInfo = this.getElectronWin(url, clientId, parentId, winState.state);

1

lib/MultiWinStore.d.ts

@@ -12,3 +12,2 @@ import StoreBase from 'event-flux/lib/StoreBase';

createOrOpenWin(winId: any, url: any, parentClientId: any, params: any): any;
getWinName(clientId: any): string;
closeWin(clientId: any): void;

@@ -15,0 +14,0 @@ closeWinByWinId(winId: any): void;

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

};
MultiWinStore.prototype.getWinName = function (clientId) {
return this.clientNamedWinIdMap[clientId];
};
MultiWinStore.prototype.closeWin = function (clientId) {

@@ -100,0 +97,0 @@ if (typeof window === 'object') {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ The MIT License (MIT)

{
"name": "electron-event-flux",
"version": "1.3.3",
"version": "1.3.4",
"description": "Redux store which synchronizes between instances in multiple process",

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

@@ -0,0 +0,0 @@ # redux-electron-store

@@ -0,0 +0,0 @@ import StoreBase from 'event-flux/lib/StoreBase';

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@ let {

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ const {

@@ -0,0 +0,0 @@ const {

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ import AppStore from 'event-flux/lib/AppStore';

export default typeof window !== 'object' ?
require('./ElectronMainClient').default :
require('./BrowserMainClient').default;

@@ -0,0 +0,0 @@ import StoreBase from 'event-flux/lib/StoreBase';

@@ -68,2 +68,4 @@ import MultiWinStore from './MultiWinStore';

clients = this.getDefaultClients();
} else {
clients = this.filterClients(clients);
}

@@ -77,2 +79,14 @@ this.windowManager = new WindowManager(this);

filterClients(clients) {
let clientIds = new Set();
clients = clients.filter(client => {
if (!clientIds.has(client.clientId)) {
clientIds.add(client.clientId);
return true;
}
return false;
});
return clients;
}
getDefaultClients() {

@@ -138,2 +152,5 @@ return [{ clientId: 'mainClient', url: '/', winState: { isMaximized: true } }];

createElectronWin(url, clientId, parentId, params) {
if (clientId && this.clientIds.indexOf(clientId) !== -1) {
return;
}
let winState = new ElectronWindowState(null, params, null);

@@ -140,0 +157,0 @@

@@ -0,0 +0,0 @@ import StoreBase from './MainStoreBase';

@@ -75,6 +75,2 @@ import StoreBase from 'event-flux/lib/StoreBase';

getWinName(clientId) {
return this.clientNamedWinIdMap[clientId];
}
closeWin(clientId) {

@@ -81,0 +77,0 @@ if (typeof window === 'object') {

@@ -0,0 +0,0 @@ import AppStore from 'event-flux/lib/AppStore';

export default window['process'] ?
require('./ElectronRendererClient').default :
require('./BrowserRendererClient').default;

@@ -0,0 +0,0 @@ import buildRendererAppStore from './RendererAppStore';

@@ -0,0 +0,0 @@ const Store = require('electron-store');

export default typeof window === 'object' ?
require('./LocalStore').default :
require('./ElectronStore').default;

@@ -0,0 +0,0 @@ export default class AsyncStorage {

@@ -0,0 +0,0 @@ interface StoreDeclarerOptions {

@@ -0,0 +0,0 @@ import StoreBase from 'event-flux/lib/StoreBase';

@@ -0,0 +0,0 @@ import filterApply from '../filterApply';

@@ -0,0 +0,0 @@ import filterDifference from '../filterDifference';

@@ -0,0 +0,0 @@ import { filterWindowStore, filterWindowState, filterWindowDelta } from '../filterWindowStore';

@@ -0,0 +0,0 @@ import objectDifference from '../objectDifference';

@@ -0,0 +0,0 @@ import objectDifference from '../objectDifference';

@@ -0,0 +0,0 @@ import StoreProxyHandler from '../StoreProxyHandler';

@@ -0,0 +0,0 @@ import { addStateFilter, addStateFilterForMap } from '../stateFilterDecorator';

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ import { addStateFilterForMap } from './stateFilterDecorator';

@@ -0,0 +0,0 @@ import { List, Map } from 'immutable';

@@ -0,0 +0,0 @@ import { Emitter } from 'event-kit';

@@ -0,0 +0,0 @@ export function beforeInit(store, parentStore) {

@@ -0,0 +0,0 @@ import { initStore, disposeStore } from './storeBuilder';

@@ -0,0 +0,0 @@ import { initStore, disposeStore } from './storeBuilder';

@@ -0,0 +0,0 @@ const isEmpty = require('lodash/isEmpty');

@@ -0,0 +0,0 @@ import StoreBase from './MainStoreBase';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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