@witchcraft/nuxt-electron 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -7,7 +7,9 @@ export function promisifyReply(key, cb, {
|
|
|
7
7
|
ipcMain.on(key, (e, promiseId, ...args) => {
|
|
8
8
|
const win = getEventWindow(e, { defaultToFocused });
|
|
9
9
|
if (!win) {
|
|
10
|
-
|
|
10
|
+
const err = new Error("No window to send reply to.");
|
|
11
|
+
console.error(err, { key, promiseId, args });
|
|
12
|
+
throw err;
|
|
11
13
|
}
|
|
12
14
|
if (debug) {
|
|
13
15
|
console.log({ key, promiseId, args });
|
package/package.json
CHANGED
|
@@ -27,7 +27,10 @@ export function promisifyReply<
|
|
|
27
27
|
) => {
|
|
28
28
|
const win = getEventWindow(e, { defaultToFocused })
|
|
29
29
|
if (!win) {
|
|
30
|
-
|
|
30
|
+
const err = new Error("No window to send reply to.")
|
|
31
|
+
// eslint-disable-next-line no-console
|
|
32
|
+
console.error(err, { key, promiseId, args })
|
|
33
|
+
throw err
|
|
31
34
|
}
|
|
32
35
|
if (debug) {
|
|
33
36
|
// eslint-disable-next-line no-console
|