corestore 6.1.0 → 6.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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -381,6 +381,7 @@ function isStream (s) {
381
381
  return typeof s === 'object' && s && typeof s.pipe === 'function'
382
382
  }
383
383
 
384
- function forceClose (core) {
384
+ async function forceClose (core) {
385
+ await core.ready()
385
386
  return Promise.all(core.sessions.map(s => s.close()))
386
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "scripts": {