nextia 4.0.12 → 4.0.13
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 +1 -1
- package/src/lib.js +4 -12
- package/src/template/README.md +0 -2
- package/src/template/_env.dev +0 -1
- package/src/template/package.json +1 -1
- package/src/template/src/index.jsx +0 -4
package/package.json
CHANGED
package/src/lib.js
CHANGED
|
@@ -83,21 +83,13 @@ function merge (target, source) {
|
|
|
83
83
|
/**
|
|
84
84
|
* logger
|
|
85
85
|
*/
|
|
86
|
-
const Logger = () => {
|
|
87
|
-
let instance
|
|
88
86
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
instance = logger === 'true'
|
|
93
|
-
}
|
|
94
|
-
return instance
|
|
95
|
-
}
|
|
87
|
+
const logger = () => {
|
|
88
|
+
if (import.meta?.env) {
|
|
89
|
+
return import.meta.env.DEV
|
|
96
90
|
}
|
|
97
91
|
}
|
|
98
92
|
|
|
99
|
-
const logger = Logger().getInstance
|
|
100
|
-
|
|
101
93
|
const log = (reducer) => {
|
|
102
94
|
const getPayload = (action) => {
|
|
103
95
|
const { type, payload } = action
|
|
@@ -218,4 +210,4 @@ function useFx (functions = { initialState: {} }) {
|
|
|
218
210
|
return Object.freeze(props)
|
|
219
211
|
}
|
|
220
212
|
|
|
221
|
-
export { css, Context,
|
|
213
|
+
export { css, Context, useFx }
|
package/src/template/README.md
CHANGED
package/src/template/_env.dev
CHANGED