braid-http 1.0.4 → 1.0.5

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.
@@ -235,7 +235,7 @@ async function braid_fetch (url, params = {}) {
235
235
  // If parents is a function,
236
236
  // call it now to get the latest parents
237
237
  if (typeof params.parents === 'function') {
238
- let parents = params.parents()
238
+ let parents = await params.parents()
239
239
  if (parents) params.headers.set('parents', parents.map(JSON.stringify).join(', '))
240
240
  }
241
241
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"