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.1.2 to 0.2.0

3

bld/index.d.ts
export declare class MultikeyMap<K extends any[], V> {
private weak;
private map;
constructor(weak?: boolean);
constructor();
get(keys: K): V | undefined;

@@ -6,0 +5,0 @@ has(keys: K): boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var mixed_map_1 = require("mixed-map");
var MultikeyMap = (function () {
function MultikeyMap(weak) {
if (weak === void 0) { weak = false; }
this.weak = weak;
this.map = createMap(weak);
function MultikeyMap() {
this.map = new mixed_map_1.default();
}

@@ -25,3 +24,2 @@ MultikeyMap.prototype.get = function (keys) {

var map = this.map;
var weak = this.weak;
for (var i = 0; i < keys.length; i++) {

@@ -43,3 +41,3 @@ var key = keys[i];

else {
map = mapValue.map = createMap(weak);
map = mapValue.map = new mixed_map_1.default();
}

@@ -105,5 +103,2 @@ continue;

exports.default = MultikeyMap;
function createMap(weak) {
return weak ? new WeakMap() : new Map();
}
//# sourceMappingURL=index.js.map
{
"name": "multikey-map",
"version": "0.1.2",
"version": "0.2.0",
"description": "Multikey Map",

@@ -20,3 +20,6 @@ "scripts": {

"vts": "^5.6.1"
},
"dependencies": {
"mixed-map": "^0.1.0"
}
}

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