@symbo.ls/init 2.10.68 → 2.10.69

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.
Files changed (2) hide show
  1. package/index.js +7 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -68,14 +68,18 @@ export const init = (config, RC_FILE, options = SET_OPTIONS) => {
68
68
  return conf
69
69
  }
70
70
 
71
- export const updateReset = (config, RC_FILE, options = { emotion: defaultEmotion }) => {
71
+ const UPDATE_OPTIONS = {
72
+ emotion: defaultEmotion
73
+ }
74
+ export const updateReset = (config, RC_FILE, options = UPDATE_OPTIONS) => {
75
+ const emotion = options.emotion || defaultEmotion
72
76
  const resultConfig = mergeWithLocalFile(config || {}, RC_FILE)
73
77
  const conf = set({
74
78
  verbose: false,
75
79
  ...resultConfig
76
80
  })
77
- options.emotion.injectGlobal({':root': conf.CSS_VARS })
78
- options.emotion.injectGlobal(conf.RESET)
81
+ emotion.injectGlobal({':root': conf.CSS_VARS })
82
+ emotion.injectGlobal(conf.RESET)
79
83
  }
80
84
 
81
85
  export const setClass = (props, options = { emotion: defaultEmotion }) => {}// setClassname(props, options.emotion.css)
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/init",
3
- "version": "2.10.68",
3
+ "version": "2.10.69",
4
4
  "license": "MIT",
5
- "gitHead": "93780aefe762bd77db53704208c79b58e23b5245",
5
+ "gitHead": "17199958c0e7cd6a9938f74149030e768ac1867e",
6
6
  "source": "index.js",
7
7
  "main": "index.js",
8
8
  "targets": {