Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
deps: update interface-store to 5.x.x (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Mar 23, 2023
1 parent 2c1f4b5 commit 2c89f37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
"dep-check": "aegir dep-check"
},
"dependencies": {
"datastore-core": "^9.0.1",
"interface-datastore": "^8.0.0",
"datastore-core": "^9.0.4",
"interface-datastore": "^8.1.2",
"it-filter": "^2.0.0",
"it-map": "^2.0.0",
"it-sort": "^2.0.0",
Expand All @@ -155,7 +155,7 @@
},
"devDependencies": {
"aegir": "^38.1.7",
"interface-datastore-tests": "^4.0.0",
"interface-datastore-tests": "^5.0.0",
"ipfs-utils": "^9.0.4",
"memory-level": "^1.0.0"
}
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ export class LevelDatastore extends BaseDatastore {
}
}

async put (key: Key, value: Uint8Array): Promise<void> {
async put (key: Key, value: Uint8Array): Promise<Key> {
try {
await this.db.put(key.toString(), value)

return key
} catch (err: any) {
throw Errors.dbWriteFailedError(err)
}
Expand Down

0 comments on commit 2c89f37

Please sign in to comment.