Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

styled-breakpoints

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-breakpoints - npm Package Compare versions

Comparing version 12.1.6 to 12.1.7

2

package.json
{
"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);
};
};
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