meteor-desktop-plugin-test-suite
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -68,2 +68,3 @@ /* eslint-disable import/no-unresolved, no-param-reassign */ | ||
let mainWindow = null; | ||
let sender = null; | ||
@@ -85,6 +86,5 @@ app.on('ready', () => { | ||
'constructPlugin', | ||
( | ||
event, | ||
...args | ||
) => { | ||
(event, | ||
...args) => { | ||
sender = event.sender; | ||
args = args.map(arg => ((arg === null) ? undefined : arg)); | ||
@@ -105,2 +105,3 @@ const [$log = new Logger(false, false), | ||
ipcMain.on('fireSystemEvent', (event, systemEvent, ...args) => { | ||
sender = event.sender; | ||
eventsBus.emit(systemEvent, ...args); | ||
@@ -110,2 +111,10 @@ event.returnValue = true; | ||
ipcMain.on('listenToEvent', (event, systemEvent) => { | ||
sender = event.sender; | ||
eventsBus.on(systemEvent, (...args) => { | ||
sender.send('event', systemEvent, ...args); | ||
}); | ||
event.returnValue = true; | ||
}); | ||
app.on('window-all-closed', () => app.quit()); |
@@ -140,5 +140,20 @@ 'use strict'; | ||
args.unshift(`${ module }__${ event }`); | ||
return app.electron.ipcRenderer.sendSync.apply(app.electron.ipcRenderer, args); | ||
return app.electron.ipcRenderer.send.apply(app.electron.ipcRenderer, args); | ||
} | ||
/* | ||
export function listenAndWait(app, event, timeout = 2000) { | ||
app.electron.ipcRenderer.sendSync.apply(app.electron.ipcRenderer, ['listenToEvent', event]); | ||
return new Promise((resolve, reject) => { | ||
let timeoutRef; | ||
app.electron.ipcMain.on(event, (...args) => { | ||
resolve(...args); | ||
clearTimeout(timeoutRef); | ||
}); | ||
timeoutRef = setTimeout(() => reject(), timeout); | ||
}); | ||
} | ||
*/ | ||
class Logger { | ||
@@ -199,3 +214,9 @@ constructor(show, showErrors) { | ||
exports.Logger = Logger; | ||
module.exports = { getElectronPath: getElectronPath, sendIpc: sendIpc, createTestApp: createTestApp, sendModuleEvent: sendModuleEvent, Logger: Logger }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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JzKVxuICAgICAgICB9O1xuICAgIH1cblxuICAgIGluZm8oLi4uYXJncykge1xuICAgICAgICBpZiAodGhpcy5zaG93KSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyguLi5hcmdzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHZlcmJvc2UoLi4uYXJncykge1xuICAgICAgICBpZiAodGhpcy5zaG93KSB7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyguLi5hcmdzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGRlYnVnKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKHRoaXMuc2hvdykge1xuICAgICAgICAgICAgY29uc29sZS5sb2coLi4uYXJncyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB3YXJuKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKHRoaXMuc2hvdykge1xuICAgICAgICAgICAgY29uc29sZS53YXJuKC4uLmFyZ3MpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZXJyb3IoLi4uYXJncykge1xuICAgICAgICBpZiAodGhpcy5zaG93IHx8IHRoaXMuc2hvd0Vycm9ycykge1xuICAgICAgICAgICAgY29uc29sZS5lcnJvciguLi5hcmdzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGdldExvZ2dlckZvcigpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBMb2dnZXIodGhpcy5zaG93LCB0aGlzLnNob3dFcnJvcnMpO1xuICAgIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSB7IGdldEVsZWN0cm9uUGF0aCwgc2VuZElwYywgY3JlYXRlVGVzdEFwcCwgc2VuZE1vZHVsZUV2ZW50LCBMb2dnZXIgfTtcbiJdfQ== | ||
module.exports = { | ||
getElectronPath: getElectronPath, | ||
sendIpc: sendIpc, | ||
createTestApp: createTestApp, | ||
sendModuleEvent: sendModuleEvent, | ||
Logger: Logger | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICBsZXQgdGltZW91dFJlZjtcbiAgICAgICAgYXBwLmVsZWN0cm9uLmlwY01haW4ub24oZXZlbnQsICguLi5hcmdzKSA9PiB7XG4gICAgICAgICAgICByZXNvbHZlKC4uLmFyZ3MpO1xuICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRpbWVvdXRSZWYpO1xuICAgICAgICB9KTtcbiAgICAgICAgdGltZW91dFJlZiA9IHNldFRpbWVvdXQoKCkgPT4gcmVqZWN0KCksIHRpbWVvdXQpO1xuICAgIH0pO1xufVxuKi9cblxuZXhwb3J0IGNsYXNzIExvZ2dlciB7XG4gICAgY29uc3RydWN0b3Ioc2hvdywgc2hvd0Vycm9ycykge1xuICAgICAgICB0aGlzLnNob3cgPSBzaG93O1xuICAgICAgICB0aGlzLnNob3dFcnJvcnMgPSBzaG93RXJyb3JzO1xuICAgICAgICB0aGlzLmxvZ2dlcnMgPSB7XG4gICAgICAgICAgICBnZXQ6ICgpID0+IG5ldyBMb2dnZXIoc2hvdywgc2hvd0Vycm9ycylcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBpbmZvKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKHRoaXMuc2hvdykge1xuICAgICAgICAgICAgY29uc29sZS5sb2coLi4uYXJncyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB2ZXJib3NlKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKHRoaXMuc2hvdykge1xuICAgICAgICAgICAgY29uc29sZS5sb2coLi4uYXJncyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBkZWJ1ZyguLi5hcmdzKSB7XG4gICAgICAgIGlmICh0aGlzLnNob3cpIHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKC4uLmFyZ3MpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgd2FybiguLi5hcmdzKSB7XG4gICAgICAgIGlmICh0aGlzLnNob3cpIHtcbiAgICAgICAgICAgIGNvbnNvbGUud2FybiguLi5hcmdzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGVycm9yKC4uLmFyZ3MpIHtcbiAgICAgICAgaWYgKHRoaXMuc2hvdyB8fCB0aGlzLnNob3dFcnJvcnMpIHtcbiAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoLi4uYXJncyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXRMb2dnZXJGb3IoKSB7XG4gICAgICAgIHJldHVybiBuZXcgTG9nZ2VyKHRoaXMuc2hvdywgdGhpcy5zaG93RXJyb3JzKTtcbiAgICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0ge1xuICAgIGdldEVsZWN0cm9uUGF0aCxcbiAgICBzZW5kSXBjLFxuICAgIGNyZWF0ZVRlc3RBcHAsXG4gICAgc2VuZE1vZHVsZUV2ZW50LFxuICAgIExvZ2dlclxufTtcbiJdfQ== |
{ | ||
"name": "meteor-desktop-plugin-test-suite", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=4.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33963
13
401