interface-store
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -70,9 +70,9 @@ /** | ||
* ```js | ||
* for await (const value of store.getMany([new Key('awesome')])) { | ||
* console.log('got content:', new TextDecoder('utf8').decode(value)) | ||
* // => got content: datastore | ||
* for await (const { key, value } of store.getMany([new Key('awesome')])) { | ||
* console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`') | ||
* // => got "/awesome" = "datastore" | ||
* } | ||
* ``` | ||
*/ | ||
getMany: (source: AwaitIterable<Key>, options?: AbortOptions & GetManyOptionsExtension) => AwaitIterable<Value>; | ||
getMany: (source: AwaitIterable<Key>, options?: AbortOptions & GetManyOptionsExtension) => AwaitIterable<Pair>; | ||
/** | ||
@@ -79,0 +79,0 @@ * Remove the record for the passed key |
{ | ||
"name": "interface-store", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"description": "A generic interface for storing and retrieving data", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -84,5 +84,5 @@ | ||
* ```js | ||
* for await (const value of store.getMany([new Key('awesome')])) { | ||
* console.log('got content:', new TextDecoder('utf8').decode(value)) | ||
* // => got content: datastore | ||
* for await (const { key, value } of store.getMany([new Key('awesome')])) { | ||
* console.log(`got "${key}" = "${new TextDecoder('utf8').decode(value)}"`') | ||
* // => got "/awesome" = "datastore" | ||
* } | ||
@@ -94,3 +94,3 @@ * ``` | ||
options?: AbortOptions & GetManyOptionsExtension | ||
) => AwaitIterable<Value> | ||
) => AwaitIterable<Pair> | ||
@@ -97,0 +97,0 @@ /** |
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
42732