@symbo.ls/scratch
Advanced tools
Comparing version 0.3.29 to 0.3.30
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.3.29", | ||
"version": "0.3.30", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
'use strict' | ||
import * as CONFIG from './config' | ||
import * as CONF from './config' | ||
export const CSS_VARS = {} | ||
export const CONFIG = { | ||
verbose: false, | ||
useVariable: false, | ||
useReset: true, | ||
VARS: CSS_VARS, | ||
...CONF | ||
} | ||
CONFIG.verbose = false | ||
CONFIG.useVariable = false | ||
CONFIG.VARS = CSS_VARS | ||
export { CONFIG } |
@@ -68,6 +68,7 @@ 'use strict' | ||
export const set = recivedConfig => { | ||
const { version, verbose, useVariable, ...config } = recivedConfig | ||
const { version, verbose, useVariable, useReset, ...config } = recivedConfig | ||
CONFIG.verbose = verbose | ||
CONFIG.useVariable = useVariable | ||
if (verbose !== undefined) CONFIG.verbose = verbose | ||
if (useVariable !== undefined) CONFIG.useVariable = useVariable | ||
if (useReset !== undefined) CONFIG.useReset = useReset | ||
if ((ENV === 'test' || ENV === 'development') && CONFIG.verbose) console.log(CONFIG) | ||
@@ -74,0 +75,0 @@ |
@@ -16,2 +16,4 @@ 'use strict' | ||
console.log(CONFIG) | ||
const ENV = process.env.NODE_ENV | ||
@@ -18,0 +20,0 @@ |
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
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
30057
915