corestore 7.7.0 → 7.9.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/README.md +1 -1
- package/index.js +4 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Corestore
|
|
2
2
|
|
|
3
|
-
### [See the full API docs at docs.
|
|
3
|
+
### [See the full API docs at docs.pears.com](https://docs.pears.com/helpers/corestore)
|
|
4
4
|
|
|
5
5
|
Corestore is a Hypercore factory that makes it easier to manage large collections of named Hypercores.
|
|
6
6
|
|
package/index.js
CHANGED
|
@@ -396,8 +396,9 @@ class Corestore extends ReadyResource {
|
|
|
396
396
|
if (
|
|
397
397
|
!this.cores.opened(toHex(discoveryKey)) &&
|
|
398
398
|
!(await this.storage.hasCore(discoveryKey, { ifMigrated: true }))
|
|
399
|
-
)
|
|
399
|
+
) {
|
|
400
400
|
return
|
|
401
|
+
}
|
|
401
402
|
if (this.closing) return
|
|
402
403
|
|
|
403
404
|
const core = this._openCore(discoveryKey, { createIfMissing: false })
|
|
@@ -521,6 +522,7 @@ class Corestore extends ReadyResource {
|
|
|
521
522
|
manifest: opts.manifest || null,
|
|
522
523
|
keyPair: opts.keyPair || null,
|
|
523
524
|
onwait: opts.onwait || null,
|
|
525
|
+
pushOnly: opts.pushOnly === true,
|
|
524
526
|
wait: opts.wait !== false,
|
|
525
527
|
timeout: opts.timeout || 0,
|
|
526
528
|
draft: !!opts.draft,
|
|
@@ -635,6 +637,7 @@ class Corestore extends ReadyResource {
|
|
|
635
637
|
eagerUpgrade: true,
|
|
636
638
|
notDownloadingLinger: opts.notDownloadingLinger,
|
|
637
639
|
allowFork: opts.allowFork !== false,
|
|
640
|
+
allowPush: !!opts.allowPush,
|
|
638
641
|
inflightRange: opts.inflightRange,
|
|
639
642
|
compat: false, // no compat for now :)
|
|
640
643
|
force: opts.force,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corestore",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"description": "A Hypercore factory that simplifies managing collections of cores.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"brittle": "^3.7.0",
|
|
22
|
+
"lunte": "^1.3.0",
|
|
22
23
|
"prettier": "^3.6.2",
|
|
23
24
|
"prettier-config-holepunch": "^2.0.0",
|
|
24
25
|
"rache": "^1.0.0",
|
|
@@ -26,8 +27,10 @@
|
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"format": "prettier --write .",
|
|
29
|
-
"test": "
|
|
30
|
-
"test:bare": "bare test
|
|
30
|
+
"test": "npm run test:node && npm run test:bare",
|
|
31
|
+
"test:bare": "brittle-bare --coverage test/*.js",
|
|
32
|
+
"lint": "prettier --check . && lunte",
|
|
33
|
+
"test:node": "brittle-node --coverage test/*.js"
|
|
31
34
|
},
|
|
32
35
|
"repository": {
|
|
33
36
|
"type": "git",
|