@symbo.ls/scratch 0.3.28 → 0.3.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "0.3.28",
5
+ "version": "0.3.31",
6
6
  "files": [
7
7
  "src"
8
8
  ],
package/src/factory.js CHANGED
@@ -1,10 +1,14 @@
1
1
  'use strict'
2
2
 
3
- import * as CONFIG from './config'
3
+ import * as CONF from './config'
4
+
4
5
  export const CSS_VARS = {}
6
+ export const CONFIG = {
7
+ verbose: false,
8
+ useVariable: false,
9
+ useReset: true,
10
+ VARS: CSS_VARS,
11
+ ...CONF
12
+ }
5
13
 
6
- CONFIG.verbose = false
7
- CONFIG.useVariable = false
8
- CONFIG.var = CSS_VARS
9
14
 
10
- export { CONFIG }
package/src/set.js CHANGED
@@ -65,10 +65,11 @@ export const setEach = (factoryName, props) => {
65
65
  }
66
66
 
67
67
  export const set = recivedConfig => {
68
- const { version, verbose, useVariable, ...config } = recivedConfig
68
+ const { version, verbose, useVariable, useReset, ...config } = recivedConfig
69
69
 
70
- CONFIG.verbose = verbose
71
- CONFIG.useVariable = useVariable
70
+ if (verbose !== undefined) CONFIG.verbose = verbose
71
+ if (useVariable !== undefined) CONFIG.useVariable = useVariable
72
+ if (useReset !== undefined) CONFIG.useReset = useReset
72
73
  if ((ENV === 'test' || ENV === 'development') && CONFIG.verbose) console.log(CONFIG)
73
74
 
74
75
  const keys = Object.keys(config)