multikey-map
Advanced tools
Comparing version 0.2.1 to 0.3.0
{ | ||
"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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14845
7
256
44
Yes
2
9
2
+ Addedtslib@^2.6.2
+ Addedtslib@2.8.1(transitive)