@formatjs/fast-memoize
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -11,3 +11,2 @@ declare type Func = (...args: any[]) => any; | ||
set(key: K, value: V): void; | ||
has(key: K): boolean; | ||
} | ||
@@ -14,0 +13,0 @@ export declare type Serializer = (args: any[]) => string; |
@@ -67,5 +67,2 @@ "use strict"; | ||
} | ||
ObjectWithoutPrototypeCache.prototype.has = function (key) { | ||
return key in this.cache; | ||
}; | ||
ObjectWithoutPrototypeCache.prototype.get = function (key) { | ||
@@ -72,0 +69,0 @@ return this.cache[key]; |
@@ -11,3 +11,2 @@ declare type Func = (...args: any[]) => any; | ||
set(key: K, value: V): void; | ||
has(key: K): boolean; | ||
} | ||
@@ -14,0 +13,0 @@ export declare type Serializer = (args: any[]) => string; |
@@ -63,5 +63,2 @@ // | ||
} | ||
ObjectWithoutPrototypeCache.prototype.has = function (key) { | ||
return key in this.cache; | ||
}; | ||
ObjectWithoutPrototypeCache.prototype.get = function (key) { | ||
@@ -68,0 +65,0 @@ return this.cache[key]; |
{ | ||
"name": "@formatjs/fast-memoize", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "fork of fast-memoize and support esm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
12217
224