corestore 6.2.1 → 6.3.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 +3 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -210,6 +210,9 @@ module.exports = class Corestore extends EventEmitter {
|
|
|
210
210
|
core.once('close', () => {
|
|
211
211
|
this.cores.delete(id)
|
|
212
212
|
})
|
|
213
|
+
core.on('conflict', (len, fork, proof) => {
|
|
214
|
+
this.emit('conflict', core, len, fork, proof)
|
|
215
|
+
})
|
|
213
216
|
|
|
214
217
|
return { from: core, keyPair, auth }
|
|
215
218
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corestore",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "A Hypercore factory that simplifies managing collections of cores.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"b4a": "^1.3.1",
|
|
33
|
-
"hypercore": "^10.3
|
|
33
|
+
"hypercore": "^10.5.3",
|
|
34
34
|
"hypercore-crypto": "^3.2.1",
|
|
35
35
|
"safety-catch": "^1.0.1",
|
|
36
36
|
"sodium-universal": "^3.0.4",
|