datastore-level
Advanced tools
Comparing version 10.0.1 to 10.0.2
@@ -13,3 +13,3 @@ import { Batch, Key, KeyQuery, Pair, Query } from 'interface-datastore'; | ||
open(): Promise<void>; | ||
put(key: Key, value: Uint8Array): Promise<void>; | ||
put(key: Key, value: Uint8Array): Promise<Key>; | ||
get(key: Key): Promise<Uint8Array>; | ||
@@ -16,0 +16,0 @@ has(key: Key): Promise<boolean>; |
@@ -38,2 +38,3 @@ import { Key } from 'interface-datastore'; | ||
await this.db.put(key.toString(), value); | ||
return key; | ||
} | ||
@@ -40,0 +41,0 @@ catch (err) { |
{ | ||
"name": "datastore-level", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"description": "Datastore implementation with level(up|down) backend", | ||
@@ -148,4 +148,4 @@ "author": "Friedel Ziegelmayer<dignifiedquire@gmail.com>", | ||
"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", | ||
@@ -159,3 +159,3 @@ "it-map": "^2.0.0", | ||
"aegir": "^38.1.7", | ||
"interface-datastore-tests": "^4.0.0", | ||
"interface-datastore-tests": "^5.0.0", | ||
"ipfs-utils": "^9.0.4", | ||
@@ -162,0 +162,0 @@ "memory-level": "^1.0.0" |
@@ -56,5 +56,7 @@ import { Batch, Key, KeyQuery, Pair, Query } from 'interface-datastore' | ||
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) { | ||
@@ -61,0 +63,0 @@ throw Errors.dbWriteFailedError(err) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
138955
892
Updateddatastore-core@^9.0.4
Updatedinterface-datastore@^8.1.2