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 0.12.0 to 0.12.1

18

lib/MainAppStore.js

@@ -26,2 +26,18 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -88,3 +104,3 @@ var AppStore_1 = require("event-flux/lib/AppStore");

var deleted = fillShape(payload.deleted, shape);
_a = filterWindowDelta(updated, deleted, winManagerKey, clientId), updated = _a[0], deleted = _a[1];
_a = __read(filterWindowDelta(updated, deleted, winManagerKey, clientId), 2), updated = _a[0], deleted = _a[1];
if (isEmpty(updated) && isEmpty(deleted)) {

@@ -91,0 +107,0 @@ return;

@@ -15,2 +15,22 @@ "use strict";

})();
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -37,3 +57,3 @@ var StoreBase_1 = require("event-flux/lib/StoreBase");

if (clientIds.indexOf(winId) === -1) {
this.setState({ clientIds: clientIds.concat([winId]) });
this.setState({ clientIds: __spread(clientIds, [winId]) });
this.winPackMapStore.add(winId, function (store) {

@@ -49,3 +69,3 @@ store.clientId = winId;

this.setState({
clientIds: clientIds.slice(0, index).concat(clientIds.slice(index + 1))
clientIds: __spread(clientIds.slice(0, index), clientIds.slice(index + 1))
});

@@ -52,0 +72,0 @@ this.winPackMapStore.delete(winId);

2

lib/RendererAppStore.d.ts

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

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

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

@@ -1,2 +0,3 @@

export default function rendererInit(renderHandler: any, actionHandler: any): any;
import RendererStore from './RendererAppStore';
export default function rendererInit(renderHandler: any, actionHandler: any): Promise<RendererStore>;
//# sourceMappingURL=rendererInitializer.d.ts.map
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,3 +24,3 @@ var RendererAppStore_1 = require("./RendererAppStore");

window.location.search.slice(1).split('&').forEach(function (item) {
var _a = item.split('='), key = _a[0], val = _a[1];
var _a = __read(item.split('='), 2), key = _a[0], val = _a[1];
query[key] = val;

@@ -88,3 +104,3 @@ });

return function (url, params) {
return new ChildWindowProxy(store, target[propName](url, window.clientId, params));
return new ChildWindowProxy(store, target[propName](url, window['clientId'], params));
};

@@ -91,0 +107,0 @@ }

@@ -19,2 +19,22 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -41,3 +61,3 @@ var isFunction_1 = require("lodash/isFunction");

_this.setState((_a = {},
_a[stateKey] = oldStates.slice(0, index).concat([
_a[stateKey] = __spread(oldStates.slice(0, index), [
state

@@ -107,3 +127,3 @@ ], oldStates.slice(index + 1)),

var _newTarget = this && this instanceof ExtendStoreClass ? this.constructor : void 0;
var obj = new (StoreClass.bind.apply(StoreClass, [void 0].concat(args)))();
var obj = new (StoreClass.bind.apply(StoreClass, __spread([void 0], args)))();
Object.setPrototypeOf(obj, _newTarget.prototype);

@@ -167,3 +187,3 @@ // or B.prototype, but if you derive from B you'll have to do this dance again

subStoreInfos.forEach(function (_a) {
var type = _a[0], StoreClass = _a[1], storeKey = _a[2], stateKey = _a[3], options = _a[4];
var _b = __read(_a, 5), type = _b[0], StoreClass = _b[1], storeKey = _b[2], stateKey = _b[3], options = _b[4];
storeBuilders[type].call(_this, StoreClass, storeKey, stateKey, options && options.args);

@@ -188,3 +208,3 @@ var store = _this.getStore ? _this.getStore(storeKey) : _this[storeKey];

subStoreInfos.forEach(function (_a) {
var type = _a[0], StoreClass = _a[1], storeKey = _a[2], stateKey = _a[3], options = _a[4];
var _b = __read(_a, 5), type = _b[0], StoreClass = _b[1], storeKey = _b[2], stateKey = _b[3], options = _b[4];
var store = _this.getStore ? _this.getStore(storeKey) : _this[storeKey];

@@ -191,0 +211,0 @@ store.startObserve && store.startObserve();

@@ -13,2 +13,22 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -42,3 +62,3 @@ var isEmpty = require('lodash/isEmpty');

var retIndexFunc = function (index) {
storePath = storePath.slice(0, -1).concat([
storePath = __spread(storePath.slice(0, -1), [
__assign({}, storePath[storePath.length - 1], { index: index })

@@ -65,9 +85,9 @@ ]);

if (type === 'Store') {
names = path.concat([name_1]);
names = __spread(path, [name_1]);
}
else if (type === 'StoreList') {
names = path.concat([{ name: name_1, type: 'List' }]);
names = __spread(path, [{ name: name_1, type: 'List' }]);
}
else if (type === 'StoreMap') {
names = path.concat([{ name: name_1, type: 'Map' }]);
names = __spread(path, [{ name: name_1, type: 'Map' }]);
}

@@ -74,0 +94,0 @@ var childStores = proxyStore(names, filters, forwarder);

export default class StoreMap {
length: number;
storeMap: any;
disposables: any;
storeMap: Map<any, any>;
disposables: Map<any, any>;
builder: any;

@@ -14,9 +14,9 @@ observer: any;

dispose(): void;
forEach(callback: any): any;
forEach(callback: any): void;
get(key: any): any;
has(key: any): any;
keys(): any;
values(): any;
entries(): any;
has(key: any): boolean;
keys(): IterableIterator<any>;
values(): IterableIterator<any>;
entries(): IterableIterator<[any, any]>;
}
//# sourceMappingURL=StoreMap.d.ts.map
"use strict";
var __values = (this && this.__values) || function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -40,13 +50,32 @@ var storeBuilder_1 = require("./storeBuilder");

StoreMap.prototype.clear = function () {
var e_1, _a, e_2, _b;
var stores = this.storeMap.values();
for (var _i = 0, stores_1 = stores; _i < stores_1.length; _i++) {
var store = stores_1[_i];
storeBuilder_1.disposeStore(store);
try {
for (var stores_1 = __values(stores), stores_1_1 = stores_1.next(); !stores_1_1.done; stores_1_1 = stores_1.next()) {
var store = stores_1_1.value;
storeBuilder_1.disposeStore(store);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (stores_1_1 && !stores_1_1.done && (_a = stores_1.return)) _a.call(stores_1);
}
finally { if (e_1) throw e_1.error; }
}
this.storeMap.clear();
var disposables = this.disposables.values();
for (var _a = 0, disposables_1 = disposables; _a < disposables_1.length; _a++) {
var d = disposables_1[_a];
d.dispose();
try {
for (var disposables_1 = __values(disposables), disposables_1_1 = disposables_1.next(); !disposables_1_1.done; disposables_1_1 = disposables_1.next()) {
var d = disposables_1_1.value;
d.dispose();
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (disposables_1_1 && !disposables_1_1.done && (_b = disposables_1.return)) _b.call(disposables_1);
}
finally { if (e_2) throw e_2.error; }
}
this.disposables.clear();

@@ -53,0 +82,0 @@ };

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

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

@@ -98,3 +98,3 @@ import RendererStore from './RendererAppStore';

return function(url, params) {
return new ChildWindowProxy(store, target[propName](url, window.clientId, params));
return new ChildWindowProxy(store, target[propName](url, window['clientId'], params));
}

@@ -101,0 +101,0 @@ } else {

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