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

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 1.0.0 to 2.0.0

dist/browser.d.ts

4

dist/index.d.ts

@@ -1,2 +0,2 @@

/// <reference types="svelte" />
export declare const listen: <T = undefined>(key: string, fallback?: T | undefined) => import("svelte/store").Readable<boolean | T>;
import { Listen } from './types/Listen.js';
export declare const listen: Listen;

@@ -1,7 +0,1 @@

import { BROWSER } from 'esm-env';
import { readable } from 'svelte/store';
export const listen = (key, fallback) => readable(BROWSER ? matchMedia(key).matches : fallback, (set) => {
if (BROWSER) {
matchMedia(key).addEventListener('change', (e) => set(e.matches));
}
});
export {};
{
"name": "svelte-mq-store",
"description": "📱 Create any media-query store in Svelte",
"version": "1.0.0",
"main": "dist/index.js",
"version": "2.0.0",
"type": "module",

@@ -10,9 +9,9 @@ "exports": {

"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"worker": "./dist/fallback.js",
"browser": "./dist/browser.js",
"default": "./dist/fallback.js"
}
},
"files": [
"dist",
"!*.test.*",
"!*.spec.*"
"dist"
],

@@ -39,3 +38,3 @@ "license": "MIT",

"lint": "npx eslint . && npx depcheck",
"format": "npx prettier --write ."
"format": "npx prettier -w ."
},

@@ -45,12 +44,9 @@ "peerDependencies": {

},
"prettier": "@jill64/prettier-config",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "6.13.1",
"@typescript-eslint/parser": "6.13.1",
"eslint-plugin-deprecation": "2.0.0",
"svelte": "4.2.7",
"@jill64/eslint-config-ts": "1.0.0",
"@jill64/prettier-config": "1.0.0",
"svelte": "4.2.8",
"typescript": "5.3.2"
},
"dependencies": {
"esm-env": "1.0.0"
}
}

@@ -9,2 +9,4 @@ <!----- BEGIN GHOST DOCS HEADER ----->

<!----- END GHOST DOCS HEADER ----->
## Installation

@@ -16,4 +18,2 @@

<!----- END GHOST DOCS HEADER ----->
## Usage

@@ -20,0 +20,0 @@

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