@tabcat/encrypted-docstore
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "@tabcat/encrypted-docstore", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "mount encrypted docstores with a key", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -194,4 +194,8 @@ | ||
// only return first deletion to keep same api as docstore | ||
return Promise.all( | ||
matches.map(res => this._docstore.del(res.external[this._indexBy])) | ||
return matches.reduce( | ||
async (a, c) => [ | ||
...await a, | ||
this._docstore.del(c.external[this._indexBy]) | ||
], | ||
[] | ||
).then(arr => arr[0]) | ||
@@ -198,0 +202,0 @@ } |
@@ -8,5 +8,5 @@ | ||
const crypto = require('@tabcat/peer-account-crypto') | ||
const wtf = require('wtfnode') | ||
// const wtf = require('wtfnode') | ||
wtf.setLogger('info', console.log) | ||
// wtf.setLogger('info', console.log) | ||
@@ -43,5 +43,5 @@ describe('EncryptedDocstore', function () { | ||
await ipfs.stop() | ||
wtf.dump() | ||
setTimeout(wtf.dump, 3000) | ||
// console.log(process._getActiveHandles()) | ||
console.log('UNFORTUNATELY TESTS DO NOT EXIT ON THEIR OWN') | ||
// wtf.dump() | ||
// setTimeout(wtf.dump, 3000) | ||
}) | ||
@@ -48,0 +48,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24322
482