@symbo.ls/scratch
Advanced tools
Comparing version 0.2.26 to 0.2.27
@@ -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])) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50158
26
855
3
2