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

@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.3 to 2.0.0-next.4

5

dist/index.svelte.d.ts

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

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

10

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

@@ -6,0 +6,0 @@ "type": "module",

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