Socket
Socket
Sign inDemoInstall

svelte-mq-store

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-mq-store - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

6

dist/index.js
import { readable } from 'svelte/store';
export const listen = (key, fallback) => {
const browser = typeof window !== 'undefined';
return readable(browser ? matchMedia(key).matches : fallback, (set) => {
if (browser) {
const available = typeof matchMedia !== 'undefined';
return readable(available ? matchMedia(key).matches : fallback, (set) => {
if (available) {
matchMedia(key).addEventListener('change', (e) => set(e.matches));

@@ -7,0 +7,0 @@ }

{
"name": "svelte-mq-store",
"description": "📱 Create any media-query store in Svelte",
"version": "2.1.0",
"version": "2.1.1",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {

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