hypercore-storage 2.4.0 → 2.4.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 +0 -30
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -343,36 +343,6 @@ class HypercoreStorage {
343
343
  return this.atomize(atom)
344
344
  }
345
345
 
346
- async createStaticCore() {
347
- const rx = this.read()
348
-
349
- const headPromise = rx.getHead()
350
- const authPromise = rx.getAuth()
351
-
352
- rx.tryFlush()
353
-
354
- const [head, auth] = await Promise.all([headPromise, authPromise])
355
- if (!head || head.length === 0) throw new Error('Must have data')
356
-
357
- const prologue = {
358
- length: head.length,
359
- hash: head.rootHash
360
- }
361
-
362
- const manifest = {
363
- version: 1,
364
- hash: auth.manifest.hash,
365
- quorum: 0,
366
- signers: [],
367
- prologue
368
- }
369
-
370
- return {
371
- manifest,
372
- core: { ...this.core, dependencies: this.core.dependencies.slice() }
373
- }
374
- }
375
-
376
346
  _addDependency(dep) {
377
347
  const deps = []
378
348
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",