@streamorchard/grapevine 0.7.1 → 0.7.2
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 +15 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -157,10 +157,22 @@ peer.link.on('event', (from, name, params) => {
|
|
|
157
157
|
|
|
158
158
|
Give your app the same `GRAPEVINE_DIR` (or `place: { env: { GRAPEVINE_DIR: testDir } }`), so tests never touch the real folder.
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
As a process of its own, for launch tests, it prints a JSON line for everything that happens and takes commands on stdin:
|
|
161
161
|
|
|
162
|
-
```
|
|
163
|
-
npx grapevine-stand-in
|
|
162
|
+
```js
|
|
163
|
+
// The installed copy, by its path: never `npx grapevine-stand-in`, which would fetch a package of
|
|
164
|
+
// that name from npm if Grapevine weren't installed.
|
|
165
|
+
const child = spawn(process.execPath, [
|
|
166
|
+
require.resolve('@streamorchard/grapevine/stand-in-peer'),
|
|
167
|
+
'--as',
|
|
168
|
+
'com.glowingpear.streammultiview',
|
|
169
|
+
'--dir',
|
|
170
|
+
testDir,
|
|
171
|
+
'--uses',
|
|
172
|
+
'drops.farming@1.0',
|
|
173
|
+
'--provides',
|
|
174
|
+
'players@1.0',
|
|
175
|
+
]);
|
|
164
176
|
```
|
|
165
177
|
|
|
166
178
|
Example messages for every capability version, good and bad, are in `@streamorchard/grapevine/fixtures`. Check that what your app sends passes them.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamorchard/grapevine",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Lets desktop apps on the same computer find each other and talk, privately: local sockets, JSON-RPC, pairing and versioned capabilities.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"author": "StreamOrchard",
|