@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron",
3
3
  "configKey": "electron",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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
- throw new Error("No window to send reply to.");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witchcraft/nuxt-electron",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Nuxt module for working with electron.",
5
5
  "repository": "witchcraftjs/nuxt-electron",
6
6
  "license": "MIT",
@@ -27,7 +27,10 @@ export function promisifyReply<
27
27
  ) => {
28
28
  const win = getEventWindow(e, { defaultToFocused })
29
29
  if (!win) {
30
- throw new Error("No window to send reply to.")
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