@virid/bridge 0.1.0 → 0.1.1

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 (3) hide show
  1. package/README.md +11 -1
  2. package/README.zh.md +12 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1 +1,11 @@
1
- todo
1
+ # @virid/bridge
2
+
3
+ `@virid/bridge` is responsible for providing a communication bridge between the main process and the rendering process for the Electron application.
4
+
5
+ Usage: Just write one line of code in preload. js
6
+
7
+ ```ts
8
+ import { injectViridBridge } from '@virid/bridge'
9
+ injectViridBridge()
10
+ ```
11
+
package/README.zh.md CHANGED
@@ -1 +1,12 @@
1
- todo
1
+ # @virid/bridge
2
+
3
+ `@virid/brideg` 负责为electron应用提供主进程与渲染进程之间的通讯桥接。
4
+
5
+ 使用方法:仅需在preload.js中写一行代码即可
6
+
7
+ ```ts
8
+ import { injectViridBridge } from '@virid/bridge'
9
+ injectViridBridge()
10
+
11
+ ```
12
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@virid/bridge",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Electron application preloading script",
6
6
  "license": "Apache 2.0",
7
7
  "author": "Ailrid",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/ArisuYuki/virid.git"
15
+ "url": "git+https://github.com/Ailrid/virid.git"
16
16
  },
17
17
  "main": "./dist/index.cjs",
18
18
  "module": "./dist/index.js",