File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const appState = require('./appState')()
1717Initialization with a simple logger:
1818
1919``` javascript
20- const appState = require (' ./appState ' )((appState , newAppState ) => {
20+ const appState = require (' @vanioinformatika/appstate ' )((appState , newAppState ) => {
2121 console .log (` App state has changed from ${ appState} to ${ newAppState} ` )
2222})
2323```
@@ -32,15 +32,15 @@ You can use any logger library, for example pino.
3232
3333``` javascript
3434let logger = require (' pino' )()
35- const appState = require (' ./appState ' )((appState , newAppState ) => {
35+ const appState = require (' @vanioinformatika/appstate ' )((appState , newAppState ) => {
3636 logger .warn (` App state has changed from ${ appState} to ${ newAppState} ` )
3737})
3838```
3939
4040Changing application state.
4141
4242``` javascript
43- const appState = require (' ./appState ' )()
43+ const appState = require (' @vanioinformatika/appstate ' )()
4444appState .init ()
4545appState .running ()
4646appState .error ()
@@ -50,7 +50,7 @@ appState.stopped()
5050Reading application state.
5151
5252``` javascript
53- const appState = require (' ./appState ' )()
53+ const appState = require (' @vanioinformatika/appstate ' )()
5454let applicationState = appState .get ()
5555```
5656
You can’t perform that action at this time.
0 commit comments