@wovin/storage-fs 0.2.0 → 0.2.2

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/README.md +5 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -113,17 +113,17 @@ Get a specific applog by CID.
113
113
 
114
114
  Check if an applog exists.
115
115
 
116
- ### Block Methods
116
+ ### Block Methods (BlockStore interface)
117
117
 
118
- #### `storeBlock(cid: CID | string, bytes: Uint8Array): Promise<void>`
118
+ #### `put(cid: CID, bytes: Uint8Array): Promise<void>`
119
119
 
120
120
  Store raw bytes by CID.
121
121
 
122
- #### `getBlock(cid: CID | string): Uint8Array | null`
122
+ #### `get(cid: CID): Promise<Uint8Array>`
123
123
 
124
- Get block bytes by CID.
124
+ Get block bytes by CID. Throws if the block is not found.
125
125
 
126
- #### `hasBlock(cid: CID | string): boolean`
126
+ #### `has(cid: CID): Promise<boolean>`
127
127
 
128
128
  Check if a block exists.
129
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wovin/storage-fs",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "besonders-logger": "1.0.1",
28
28
  "lmdb": "^3.0.0",
29
29
  "multiformats": "^13.0.1",
30
- "@wovin/core": "^0.2.0"
30
+ "@wovin/core": "^0.2.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "concurrently": "^8.2.2",