mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
add missing dep: async (#37)
This commit is contained in:
parent
3a0076c86f
commit
a10db61d8e
@ -26,7 +26,7 @@ const proxyCmds = apiEnums.proxyCmds;
|
||||
* Note: The "real" instance should implement a destroy method (e.g., close) that
|
||||
* should be used to destroy the instance held in main process, otherwise a
|
||||
* memory leak will occur - as renderer can not know when instance is no longer
|
||||
* used.
|
||||
* used. Would like to incorporate: https://github.com/EvolveLabs/electron-weak
|
||||
*
|
||||
* @param {Class} ApiClass reference to prototype/class constructor.
|
||||
* @return {object} proxy for ApiClass.
|
||||
@ -62,6 +62,11 @@ let constructorHandler = {
|
||||
set: instanceSetHandler
|
||||
}
|
||||
|
||||
|
||||
// work like to incorporate something like https://github.com/EvolveLabs/electron-weak
|
||||
// here to tell when object is destroyed so we can ipc main process to
|
||||
// loss ref to liveObj.
|
||||
|
||||
return new Proxy(ProxyClass, instanceHandler);
|
||||
},
|
||||
|
||||
|
@ -8,16 +8,13 @@
|
||||
"scripts": {
|
||||
"dev": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron .",
|
||||
"demo": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html",
|
||||
|
||||
"dist-mac": "npm run prebuild && build --mac",
|
||||
"dist-win": "npm run prebuild && build --win --x64",
|
||||
"dist-win-x86": "npm run prebuild && build --win --ia32",
|
||||
|
||||
"unpacked-win": "npm run prebuild && build --win --x64 --dir",
|
||||
"unpacked-win-x86": "npm run prebuild && build --win --ia32 --dir",
|
||||
|
||||
"prebuild": "npm run lint && npm run test && npm run browserify-preload",
|
||||
"lint": "eslint js/**",
|
||||
"lint": "eslint --ext .js js/",
|
||||
"test": "jest --coverage --testPathPattern tests",
|
||||
"browserify-preload": "browserify -o js/preload/_preloadMain.js -x electron js/preload/preloadMain.js && browserify -o js/preload/_preloadChild.js -x electron js/preload/preloadChild.js"
|
||||
},
|
||||
@ -78,6 +75,7 @@
|
||||
"jest": "^19.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^2.1.5",
|
||||
"electron-squirrel-startup": "^1.0.0",
|
||||
"keymirror": "0.1.1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user