@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.
- package/README.md +11 -1
- package/README.zh.md +12 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virid/bridge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
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/
|
|
15
|
+
"url": "git+https://github.com/Ailrid/virid.git"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist/index.cjs",
|
|
18
18
|
"module": "./dist/index.js",
|