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.5 to 2.0.0-next.6

5

dist/index.svelte.d.ts

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

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

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.value;
},
get light() {
return isDark.value === undefined ? undefined : !isDark.value;
}
};
{
"name": "@jill64/svelte-device-theme",
"description": "☯ A simple store that syncs with your device's theme settings",
"version": "2.0.0-next.5",
"version": "2.0.0-next.6",
"main": "dist/index.svelte.js",

@@ -28,3 +28,3 @@ "type": "module",

"url": "https://github.com/jill64/svelte-device-theme.git",
"image": "https://opengraph.githubassets.com/4d53c13bc7d7b0f371ec1b423792b2065e7376f599893fc434c1faf83bfcae58/jill64/svelte-device-theme"
"image": "https://opengraph.githubassets.com/f9125d84aaf7fd62ff8dc3e2220a0c7a29e0323df894e420de8ba291c6442a6e/jill64/svelte-device-theme"
},

@@ -31,0 +31,0 @@ "keywords": [

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