Socket
Socket
Sign inDemoInstall

async-map-like

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

2

dist/src/version.js

@@ -7,3 +7,3 @@ "use strict";

*/
exports.VERSION = '0.2.2';
exports.VERSION = '0.2.3';
//# sourceMappingURL=version.js.map
{
"name": "async-map-like",
"version": "0.2.2",
"version": "0.2.3",
"description": "ES6 Map TypeScript Interface with Async Support",

@@ -5,0 +5,0 @@ "main": "dist/src/mod.js",

@@ -23,2 +23,35 @@ # async-map-like

## API Reference
```ts
/**
* ES6 Map like Async API
*/
export interface AsyncMapLike<K = any, V = any> {
size : Promise<number>
get (key: K) : Promise<V | undefined>
set (key: K, value: V) : Promise<void>
has (key: K) : Promise<boolean>
delete (key: K) : Promise<void>
clear () : Promise<void>
entries () : AsyncIterableIterator<[K, V]>
keys () : AsyncIterableIterator<K>
values () : AsyncIterableIterator<V>
[Symbol.asyncIterator]() : AsyncIterableIterator<[K, V]>
forEach (
callbackfn: (
value : V,
key : K,
map : AsyncMapLike<K, V>,
) => void,
thisArg?: AsyncMapLike<K, V>,
): Promise<void>
}
```
## History

@@ -25,0 +58,0 @@

/**
* This file was auto generated from scripts/generate-version.sh
*/
export const VERSION: string = '0.2.2'
export const VERSION: string = '0.2.3'
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc