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

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
4
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/scratch - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

src/utils/theme.js

2

package.json

@@ -5,3 +5,3 @@ {

"author": "symbo.ls",
"version": "0.7.3",
"version": "0.7.4",
"files": [

@@ -8,0 +8,0 @@ "src"

@@ -14,8 +14,1 @@ 'use strict'

export const THEME = {}
export const returnSubThemeOrDefault = (orig, theme) => {
if (!orig) return
if (orig.themes && orig.themes[theme]) return orig.themes[theme]
if (orig[theme]) return [orig, orig[theme]]
return orig
}

@@ -213,3 +213,3 @@ 'use strict'

if (isArray(modifier)) return findModifierFromArray(val, modifier)
else if (isString(modifier)) return val[modifier]
else if (isString(modifier) && val[modifier]) return val[modifier]
else return val

@@ -216,0 +216,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