braid-text 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 (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -159,6 +159,8 @@ braid_text.serve = async (req, res, options = {}) => {
159
159
  }
160
160
 
161
161
  await braid_text.put(resource, { peer, version: req.version, parents: req.parents, patches, body, merge_type })
162
+
163
+ res.setHeader("Version", resource.doc.getRemoteVersion().map((x) => x.join("-")).sort())
162
164
 
163
165
  options.put_cb(options.key, resource.val)
164
166
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-text",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Library for collaborative text over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braidjs",