corestore 6.15.0 → 6.15.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 +12 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -203,6 +203,18 @@ module.exports = class Corestore extends ReadyResource {
203
203
 
204
204
  const publicKey = opts.publicKey || keyPair.publicKey
205
205
 
206
+ if (opts.compat === false) {
207
+ const manifest = { signer: { publicKey } } // default manifest
208
+ const key = Hypercore.key(manifest)
209
+
210
+ return {
211
+ manifest,
212
+ keyPair,
213
+ key,
214
+ discoveryKey: crypto.discoveryKey(key)
215
+ }
216
+ }
217
+
206
218
  return {
207
219
  manifest: null,
208
220
  keyPair,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corestore",
3
- "version": "6.15.0",
3
+ "version": "6.15.1",
4
4
  "description": "A Hypercore factory that simplifies managing collections of cores.",
5
5
  "main": "index.js",
6
6
  "scripts": {