little-state-machine
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -39,3 +39,3 @@ import * as React from 'react'; | ||
// @ts-ignore | ||
if (!typeof window === 'undefined') { | ||
if (typeof window !== 'undefined') { | ||
// @ts-ignore | ||
@@ -42,0 +42,0 @@ window.STATE_MACHINE_DEBUG = (value) => { |
@@ -42,3 +42,3 @@ 'use strict'; | ||
// @ts-ignore | ||
if (!typeof window === 'undefined') { | ||
if (typeof window !== 'undefined') { | ||
// @ts-ignore | ||
@@ -45,0 +45,0 @@ window.STATE_MACHINE_DEBUG = (value) => { |
{ | ||
"name": "little-state-machine", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
@@ -9,6 +9,6 @@ <div align="center"><img src="https://github.com/bluebill1049/little-state-machine/blob/master/docs/logo.png" alt="React forme Logo - React hook form valiation" width="180px" /> | ||
[![npm](https://img.shields.io/npm/dt/little-state-machine.svg?style=flat-square)](https://www.npmjs.com/package/little-state-machine) | ||
[![npm](https://img.shields.io/npm/l/little-state-machine.svg?style=flat-square)](https://www.npmjs.com/package/react-lazyload-image) | ||
[![npm](https://badgen.net/bundlephobia/minzip/little-state-machine)](https://badgen.net/bundlephobia/minzip/little-state-machine) | ||
- Follow flux application architecture | ||
- Tiny and simple (663B) | ||
- Tiny, 0 dependency and simple | ||
- Persist your state by default | ||
@@ -75,3 +75,3 @@ - Build with React Hook | ||
const App = ({children}) => { | ||
const [globalState, updateStore] = useState(stateMachineStore); | ||
const [globalState, updateStore] = useState(store); | ||
@@ -78,0 +78,0 @@ return <StateMachineProvider |
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
154725