Socket
Socket
Sign inDemoInstall

interface-store

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interface-store - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

8

dist/src/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc