Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multikey-map

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multikey-map - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

bld/library/index.d.ts

46

package.json
{
"name": "multikey-map",
"version": "0.2.1",
"description": "Multikey Map",
"version": "0.3.0",
"description": "A simple map implementation that supports multiple keys.",
"repository": "https://github.com/vilicvane/multikey-map.git",
"license": "MIT",
"author": "vilicvane",
"type": "module",
"exports": {
"types": "./bld/library/index.d.ts",
"default": "./bld/library/index.js"
},
"scripts": {
"build": "tsc",
"lint": "tslint --project tsconfig.json --type-check",
"test": "ava bld/test"
"3": "pnpm install && pnpm dedupe && pnpm install",
"build": "rimraf ./bld && tsc --build",
"lint": "eslint --no-error-on-unmatched-pattern --report-unused-disable-directives . && run-in-every eslint-project --parallel --echo -- eslint --no-error-on-unmatched-pattern --report-unused-disable-directives .",
"lint-prettier": "prettier --check .",
"bare-test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"test": "pnpm lint-prettier && pnpm build && pnpm lint && pnpm bare-test"
},
"main": "bld/index.js",
"types": "bld/index.d.ts",
"repository": "https://github.com/vilic/multikey-map.git",
"author": "vilicvane",
"license": "MIT",
"dependencies": {
"mixed-map": "^0.1.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"ava": "^0.22.0",
"tslint": "^5.6.0",
"typescript": "^2.4.2",
"vts": "^5.6.1"
},
"dependencies": {
"mixed-map": "^0.1.0"
"@mufan/eslint-plugin": "^0.2.18",
"@types/jest": "^29.5.11",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"run-in-every": "^0.2.0",
"typescript": "^5.3.3"
}
}

@@ -1,13 +0,16 @@

[![NPM Package](https://badge.fury.io/js/multikey-map.svg)](https://www.npmjs.com/package/multikey-map)
[![NPM version](https://img.shields.io/npm/v/multikey-map?color=%23cb3837&style=flat-square)](https://www.npmjs.com/package/multikey-map)
[![Repository package.json version](https://img.shields.io/github/package-json/v/vilicvane/multikey-map?color=%230969da&label=repo&style=flat-square)](./package.json)
[![MIT License](https://img.shields.io/badge/license-MIT-999999?style=flat-square)](./LICENSE)
[![Discord](https://img.shields.io/badge/chat-discord-5662f6?style=flat-square)](https://discord.gg/wEVn2qcf8h)
# Multikey Map
A simple map implementation that supports multiple keys, using ES6 `Map` and `WeakMap` internally.
A simple map implementation that supports multiple keys.
> `multikey-map` uses `mixed-map` internally, which is a map implementation that uses both `Map` and `WeakMap` internally.
## Installation
```sh
yarn add multikey-map
# or
npm install multikey-map --save
npm install multikey-map
```

@@ -36,4 +39,2 @@

map.hasAndGet(['bar', 0]); // [true, undefined]
let weakMap = new MultikeyMap<[object, object], number | undefined>(true);
```

@@ -40,0 +41,0 @@

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