little-state-machine
Advanced tools
Comparing version 2.7.0-beta.8 to 2.7.0-beta.9
@@ -75,3 +75,3 @@ import * as React from 'react'; | ||
const middleWare = (data) => { | ||
options = data || { debugName: '' }; | ||
options = data; | ||
return options; | ||
@@ -117,2 +117,7 @@ }; | ||
let storeCopy; | ||
const debugName = options && options.debugName | ||
? key | ||
? options.debugName[key] | ||
: options.debugName | ||
: { debugName: '' }; | ||
if (isDevMode) { | ||
@@ -126,7 +131,9 @@ const cloneDeep = require('lodash.clonedeep'); | ||
// @ts-ignore | ||
`ββ%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55'); | ||
`ββ%c${debugName}`, 'color: #bada55'); | ||
console.log('ββbefore:', storeCopy); | ||
} | ||
} | ||
middleWare({ debugName: key ? options.debugName[key] : options.debugName }); | ||
if (isDevMode) { | ||
middleWare({ debugName }); | ||
} | ||
setStore(callback && callback(getStore(), payload)); | ||
@@ -133,0 +140,0 @@ storageType.setItem(getName(), JSON.stringify(getStore())); |
@@ -80,3 +80,3 @@ 'use strict'; | ||
const middleWare = (data) => { | ||
options = data || { debugName: '' }; | ||
options = data; | ||
return options; | ||
@@ -122,2 +122,7 @@ }; | ||
let storeCopy; | ||
const debugName = options && options.debugName | ||
? key | ||
? options.debugName[key] | ||
: options.debugName | ||
: { debugName: '' }; | ||
if (isDevMode) { | ||
@@ -131,7 +136,9 @@ const cloneDeep = require('lodash.clonedeep'); | ||
// @ts-ignore | ||
`ββ%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55'); | ||
`ββ%c${debugName}`, 'color: #bada55'); | ||
console.log('ββbefore:', storeCopy); | ||
} | ||
} | ||
middleWare({ debugName: key ? options.debugName[key] : options.debugName }); | ||
if (isDevMode) { | ||
middleWare({ debugName }); | ||
} | ||
setStore(callback && callback(getStore(), payload)); | ||
@@ -138,0 +145,0 @@ storageType.setItem(getName(), JSON.stringify(getStore())); |
{ | ||
"name": "little-state-machine", | ||
"version": "2.7.0-beta.8", | ||
"version": "2.7.0-beta.9", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
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
43441
887