@solazah/solazah-runtime 0.1.71 → 0.1.73

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solazah/solazah-runtime",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
4
4
  "main": "index.cjs",
5
5
  "module": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -4,6 +4,14 @@ export declare class IpcRendererException extends Error {
4
4
  constructor(code: string, message?: string);
5
5
  }
6
6
  export default class IpcRenderer {
7
+ /** 已到达但当时尚无订阅者的粘性事件,按频道保留最后一次的完整参数。 */
8
+ private readonly sticky;
9
+ constructor();
10
+ /**
11
+ * 挂一个只负责缓存的监听器。
12
+ * 注意 `on()` 里的 removeAllListeners 会把它一起清掉,所以每次订阅后都要补挂回来。
13
+ */
14
+ private captureSticky;
7
15
  once: (...args: Parameters<typeof ipcRenderer.on>) => Promise<Electron.IpcRenderer>;
8
16
  on: (...args: Parameters<typeof ipcRenderer.on>) => Promise<Electron.IpcRenderer>;
9
17
  off: (...args: Parameters<typeof ipcRenderer.off>) => Promise<Electron.IpcRenderer>;