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

@alfalab/core-components-mq

Package Overview
Dependencies
Maintainers
15
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alfalab/core-components-mq - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

dist/cssm/useMatchMedia.js

@@ -20,6 +20,6 @@ 'use strict';

var handleMatchChange = function () { return setMatches(mql.matches); };
mql.addEventListener('change', handleMatchChange);
mql.addListener(handleMatchChange);
handleMatchChange();
return function () {
mql.removeEventListener('change', handleMatchChange);
mql.removeListener(handleMatchChange);
utils.releaseMatchMedia(query);

@@ -26,0 +26,0 @@ };

@@ -13,6 +13,6 @@ import { useState, useEffect } from 'react';

const handleMatchChange = () => setMatches(mql.matches);
mql.addEventListener('change', handleMatchChange);
mql.addListener(handleMatchChange);
handleMatchChange();
return () => {
mql.removeEventListener('change', handleMatchChange);
mql.removeListener(handleMatchChange);
releaseMatchMedia(query);

@@ -19,0 +19,0 @@ };

@@ -20,6 +20,6 @@ 'use strict';

var handleMatchChange = function () { return setMatches(mql.matches); };
mql.addEventListener('change', handleMatchChange);
mql.addListener(handleMatchChange);
handleMatchChange();
return function () {
mql.removeEventListener('change', handleMatchChange);
mql.removeListener(handleMatchChange);
utils.releaseMatchMedia(query);

@@ -26,0 +26,0 @@ };

{
"name": "@alfalab/core-components-mq",
"version": "1.0.0",
"version": "1.1.0",
"description": "",

@@ -17,3 +17,3 @@ "keywords": [],

},
"gitHead": "f5b4299dc3e4442743e132f54bbdf3cb48c8d1ef"
"gitHead": "fd7f4e4583ae8a5fe223a1630869ac3fc41f175e"
}
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