braid-blob 0.0.5 → 0.0.6

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -68,7 +68,7 @@ braid_blob.serve = async (req, res, options = {}) => {
68
68
  if (their_v > our_v) {
69
69
  // Write the file
70
70
  await fs.promises.writeFile(filename, body)
71
- await fs.promises.utimes(filename, new Date(their_v), new Date(their_v))
71
+ await fs.promises.utimes(filename, new Date(), new Date(their_v))
72
72
 
73
73
  // Notify all subscriptions of the update (except the peer which made the PUT request itself)
74
74
  if (key_to_subs[options.key])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-blob",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Library for collaborative blobs over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braid-blob",