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

@symbo.ls/scratch

Package Overview
Dependencies
Maintainers
1
Versions
261
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.2.26 to 0.2.27

dist/index.js

4

package.json

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

"author": "Symbols",
"version": "0.2.26",
"version": "0.2.27",
"files": [

@@ -11,3 +11,3 @@ "src"

"repository": "https://github.com/rackai/scratch",
"main": "src/index.js",
"main": "dist/index.js",
"publishConfig": {},

@@ -14,0 +14,0 @@ "dependencies": {

@@ -7,7 +7,7 @@ 'use strict'

var mapThemeCSS = scheme => {
var str = ''
const mapThemeCSS = scheme => {
let str = ''
for (const prop in scheme) {
var mappedProp = themeMap[prop]
var value = scheme[prop]
const mappedProp = themeMap[prop]
const value = scheme[prop]
if (mappedProp && value) {

@@ -20,6 +20,6 @@ str += `${mappedProp}: ${value}`

var generateTheme = scheme => {
var { helpers, inverse } = scheme
const generateTheme = scheme => {
const { helpers, inverse } = scheme
var rule = `
let rule = `
${mapThemeCSS(scheme)}

@@ -33,4 +33,4 @@ `

if (helpers) {
for (var prop in helpers) {
var value = helpers[prop]
for (const prop in helpers) {
const value = helpers[prop]
rule += `.${prop} { ${value} }`

@@ -37,0 +37,0 @@ }

@@ -93,2 +93,4 @@ 'use strict'

const subThemeName = value[1]
console.log(THEME)
console.log(themeName)
const { helpers, variants, state } = THEME[themeName]

@@ -230,3 +232,4 @@ if (variants && variants[subThemeName]) return getThemeValue(variants[subThemeName])

export const set = config => {
export const set = recivedConfig => {
const { version, ...config } = recivedConfig
const keys = Object.keys(config)

@@ -233,0 +236,0 @@ keys.map(key => setEach(key, config[key]))

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