styled-breakpoints
Advanced tools
Comparing version 12.1.6 to 12.1.7
{ | ||
"name": "styled-breakpoints", | ||
"version": "12.1.6", | ||
"version": "12.1.7", | ||
"description": "Simple and powerful css breakpoints for styled-components and emotion", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,11 +0,13 @@ | ||
exports.memoize = (fn, map = new Map()) => { | ||
exports.memoize = (fn) => { | ||
const cache = new Map(); | ||
return (...args) => { | ||
const key = JSON.stringify(args); | ||
if (!map.has(key)) { | ||
map.set(key, fn(...args)); | ||
if (!cache.has(key)) { | ||
cache.set(key, fn(...args)); | ||
} | ||
return map.get(key); | ||
return cache.get(key); | ||
}; | ||
}; |
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
39178
334