Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
async-map-like
Advanced tools
ECMAScript Map
like type definition (plus Async).
It has same API Interface with Map - JavaScript | MDN, with additional Async support.
import { MapLike } from 'async-map-like'
const mapLike: MapLike<string, number> = new Map<string, number>
That's it, enjoy the Duck Typing!
/**
* 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>
}
[Symbol.toStringTag]()
and [Symbol.iterator]()
[Symbol.asyncIterator]()
MapLike
interface for ES6 MapAsyncMapLike
for ES6 Map like Async interfaceHuan LI (李卓桓), Microsoft AI MVP, zixia@zixia.net
FAQs
ES6 Map TypeScript Interface with Async Support
The npm package async-map-like receives a total of 213 weekly downloads. As such, async-map-like popularity was classified as not popular.
We found that async-map-like demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.