@automerge/automerge-repo-network-websocket 2.0.0-alpha.20 → 2.0.0-alpha.22

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": "@automerge/automerge-repo-network-websocket",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "isomorphic node/browser Websocket network adapter for Automerge Repo",
5
5
  "repository": "https://github.com/automerge/automerge-repo/tree/master/packages/automerge-repo-network-websocket",
6
6
  "author": "Peter van Hardenberg <pvh@pvh.ca>",
@@ -13,7 +13,7 @@
13
13
  "test": "vitest"
14
14
  },
15
15
  "dependencies": {
16
- "@automerge/automerge-repo": "2.0.0-alpha.20",
16
+ "@automerge/automerge-repo": "2.0.0-alpha.22",
17
17
  "cbor-x": "^1.3.0",
18
18
  "debug": "^4.3.4",
19
19
  "eventemitter3": "^5.0.1",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "d53bc37be0fd923ff40f3cf7e2bd06a0496ddb73"
34
+ "gitHead": "b30af9827bed4615ba3c5e9ee93ca483915e4016"
35
35
  }
@@ -520,8 +520,7 @@ describe("Websocket adapters", () => {
520
520
  })
521
521
 
522
522
  // make a change to the handle on the sync server
523
- const handle = repo.find<{ foo: string }>(url)
524
- await handle.whenReady()
523
+ const handle = await repo.find<{ foo: string }>(url)
525
524
  handle.change(d => (d.foo = "baz"))
526
525
 
527
526
  // Okay, so now there is a document on both the client and the server