braid-text 0.0.16 → 0.0.17

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 (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -514,8 +514,9 @@ braid_text.put = async (key, options) => {
514
514
  }
515
515
  } else {
516
516
  if (resource.simpleton_clients.size) {
517
+ let version = resource.doc.getRemoteVersion().map((x) => x.join("-"))
517
518
  patches = get_xf_patches(resource.doc, v_before)
518
- let x = { version: [og_v], parents, patches }
519
+ let x = { version, parents, patches }
519
520
  console.log(`sending: ${JSON.stringify(x)}`)
520
521
  for (let client of resource.simpleton_clients) {
521
522
  if (client.my_timeout) continue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-text",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Library for collaborative text over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braidjs",