@essentials/one-key-map
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,4 +8,3 @@ 'use strict' | ||
constructor() { | ||
let key = void 0 | ||
let val = void 0 | ||
let key, val | ||
@@ -12,0 +11,0 @@ this.get = k => (k === key ? val : void 0) |
class OneKeyMap { | ||
constructor() { | ||
let key = void 0 | ||
let val = void 0 | ||
let key, val | ||
@@ -6,0 +5,0 @@ this.get = k => (k === key ? val : void 0) |
{ | ||
"name": "@essentials/one-key-map", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/jaredLunde/essentials/tree/master/packages/one-key-map#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/essentials", |
@@ -6,4 +6,3 @@ class OneKeyMap<K extends any = any, V extends any = any> { | ||
constructor() { | ||
let key: K | undefined = void 0 | ||
let val: V | undefined = void 0 | ||
let key: K | undefined, val: V | undefined | ||
this.get = (k: K): V | undefined => (k === key ? val : void 0) | ||
@@ -10,0 +9,0 @@ this.set = (k: K, v: V): void => { |
@@ -5,4 +5,3 @@ 'use strict' | ||
function OneKeyMap() { | ||
var key = void 0 | ||
var val = void 0 | ||
var key, val | ||
this.get = function(k) { | ||
@@ -9,0 +8,0 @@ return k === key ? val : void 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
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
6897
81