corestore 7.1.0 → 7.2.0
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.
- package/index.js +2 -3
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -238,12 +238,11 @@ class Corestore extends ReadyResource {
|
|
|
238
238
|
this.globalCache = this.root ? this.root.globalCache : (opts.globalCache || null)
|
|
239
239
|
this.primaryKey = this.root ? this.root.primaryKey : (opts.primaryKey || null)
|
|
240
240
|
this.ns = opts.namespace || DEFAULT_NAMESPACE
|
|
241
|
+
this.manifestVersion = opts.manifestVersion || 1
|
|
241
242
|
|
|
242
243
|
this.watchers = null
|
|
243
244
|
this.watchIndex = -1
|
|
244
245
|
|
|
245
|
-
this.manifestVersion = 1 // just compat
|
|
246
|
-
|
|
247
246
|
this._findingPeers = null // here for legacy
|
|
248
247
|
this._ongcBound = this._ongc.bind(this)
|
|
249
248
|
|
|
@@ -521,7 +520,7 @@ class Corestore extends ReadyResource {
|
|
|
521
520
|
if (opts.manifest) {
|
|
522
521
|
result.manifest = opts.manifest
|
|
523
522
|
} else if (result.keyPair && !result.discoveryKey) {
|
|
524
|
-
result.manifest = { version:
|
|
523
|
+
result.manifest = { version: this.manifestVersion, signers: [{ publicKey: result.keyPair.publicKey }] }
|
|
525
524
|
}
|
|
526
525
|
|
|
527
526
|
if (opts.key) result.key = ID.decode(opts.key)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corestore",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "A Hypercore factory that simplifies managing collections of cores.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"test-tmp": "^1.3.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"test": "standard && brittle test/*.js"
|
|
26
|
+
"test": "standard && brittle test/*.js",
|
|
27
|
+
"test:bare": "bare test/basic.js"
|
|
27
28
|
},
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|