Socket
Socket
Sign inDemoInstall

@jill64/svelte-device-theme

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jill64/svelte-device-theme - npm Package Compare versions

Comparing version 2.0.0-next.4 to 2.0.0-next.5

5

dist/index.svelte.d.ts

@@ -1,4 +0,3 @@

export declare let is: {
readonly dark: boolean | undefined;
readonly light: boolean;
export declare let isDark: {
readonly value: boolean | undefined;
};

10

dist/index.svelte.js
import { listen } from 'svelte-mq-store';
let isDark = listen('(prefers-color-scheme: dark)');
export let is = {
get dark() {
return isDark;
},
get light() {
return !isDark;
}
};
export let isDark = listen('(prefers-color-scheme: dark)');
{
"name": "@jill64/svelte-device-theme",
"description": "☯ A simple store that syncs with your device's theme settings",
"version": "2.0.0-next.4",
"version": "2.0.0-next.5",
"main": "dist/index.svelte.js",

@@ -57,4 +57,4 @@ "type": "module",

"dependencies": {
"svelte-mq-store": "3.0.0-next.2"
"svelte-mq-store": "3.0.0-next.3"
}
}
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