blockstore-core
Advanced tools
Comparing version 4.1.1 to 4.2.0
{ | ||
"BaseBlockstore": "https://ipfs.github.io/js-stores/classes/base.BaseBlockstore.html", | ||
"BlackHoleBlockstore": "https://ipfs.github.io/js-stores/classes/black_hole.BlackHoleBlockstore.html", | ||
"abortedError": "https://ipfs.github.io/js-stores/functions/errors.abortedError.html", | ||
@@ -4,0 +5,0 @@ "closeFailedError": "https://ipfs.github.io/js-stores/functions/errors.closeFailedError.html", |
{ | ||
"name": "blockstore-core", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "Contains various implementations of the API contract described in interface-blockstore", | ||
@@ -58,2 +58,6 @@ "author": "Alex Potsides <alex.potsides@protocol.ai>", | ||
}, | ||
"./black-hole": { | ||
"types": "./dist/src/black-hole.d.ts", | ||
"import": "./dist/src/black-hole.js" | ||
}, | ||
"./errors": { | ||
@@ -60,0 +64,0 @@ "types": "./dist/src/errors.d.ts", |
@@ -18,2 +18,3 @@ # blockstore-core <!-- omit in toc --> | ||
- [MemoryBlockstore](#memoryblockstore) | ||
- [BlackHoleBlockstore](#blackholeblockstore) | ||
- [API Docs](#api-docs) | ||
@@ -39,4 +40,5 @@ - [License](#license) | ||
- Base: [`src/base`](src/base.js) | ||
- Memory: [`src/memory`](src/memory.js) | ||
- Base: [`src/base`](src/base.ts) | ||
- Memory: [`src/memory`](src/memory.ts) | ||
- BlackHole: ['src/blackhole](src/blackhole.ts) | ||
@@ -75,2 +77,12 @@ ## Usage | ||
### BlackHoleBlockstore | ||
A Blockstore that does not store any blocks. | ||
```js | ||
import { BlackHoleBlockstore } from 'blockstore-core/black-hole' | ||
const store = new BlackHoleBlockstore() | ||
``` | ||
## API Docs | ||
@@ -77,0 +89,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42830
30
403
107