@vueuse/electron 14.2.0 → 14.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -7
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { isRef, ref, shallowRef, watch } from "vue";
2
2
  import { tryOnScopeDispose } from "@vueuse/shared";
3
-
4
3
  //#region useIpcRendererInvoke/index.ts
5
4
  /**
6
5
  * Returns Promise<any> - Resolves with the response from the main process.
@@ -27,7 +26,6 @@ function useIpcRendererInvoke(...args) {
27
26
  });
28
27
  return result;
29
28
  }
30
-
31
29
  //#endregion
32
30
  //#region useIpcRendererOn/index.ts
33
31
  function useIpcRendererOn(...args) {
@@ -44,7 +42,6 @@ function useIpcRendererOn(...args) {
44
42
  });
45
43
  return ipcRenderer.on(channel, listener);
46
44
  }
47
-
48
45
  //#endregion
49
46
  //#region useIpcRenderer/index.ts
50
47
  /**
@@ -80,7 +77,6 @@ function useIpcRenderer(ipcRenderer) {
80
77
  sendToHost: ipcRenderer.sendToHost
81
78
  };
82
79
  }
83
-
84
80
  //#endregion
85
81
  //#region useZoomFactor/index.ts
86
82
  /**
@@ -109,7 +105,6 @@ function useZoomFactor(...args) {
109
105
  }, { immediate: true });
110
106
  return factor;
111
107
  }
112
-
113
108
  //#endregion
114
109
  //#region useZoomLevel/index.ts
115
110
  /**
@@ -136,6 +131,5 @@ function useZoomLevel(...args) {
136
131
  }, { immediate: true });
137
132
  return level;
138
133
  }
139
-
140
134
  //#endregion
141
- export { useIpcRenderer, useIpcRendererInvoke, useIpcRendererOn, useZoomFactor, useZoomLevel };
135
+ export { useIpcRenderer, useIpcRendererInvoke, useIpcRendererOn, useZoomFactor, useZoomLevel };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vueuse/electron",
3
3
  "type": "module",
4
- "version": "14.2.0",
4
+ "version": "14.3.0",
5
5
  "description": "Electron renderer process modules for VueUse",
6
6
  "author": "Archer Gu<https://github.com/ArcherGu>",
7
7
  "license": "MIT",
@@ -25,7 +25,8 @@
25
25
  "sideEffects": false,
26
26
  "exports": {
27
27
  ".": "./dist/index.js",
28
- "./*": "./dist/*"
28
+ "./*": "./dist/*",
29
+ "./package.json": "./package.json"
29
30
  },
30
31
  "main": "./dist/index.js",
31
32
  "module": "./dist/index.js",
@@ -38,13 +39,12 @@
38
39
  "vue": "^3.5.0"
39
40
  },
40
41
  "dependencies": {
41
- "@vueuse/shared": "14.2.0"
42
+ "@vueuse/shared": "14.3.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "electron": "^13.1.0"
45
46
  },
46
47
  "scripts": {
47
- "build": "tsdown",
48
- "test:attw": "attw --pack --config-path ../../.attw.json ."
48
+ "build": "tsdown"
49
49
  }
50
50
  }