Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ferp = require('ferp');
const { updateLogger } = require('./updateLogger.js');
const { every } = ferp.subscriptions;
const { none } = ferp.effects;
ferp.app({
init: [
0,
none(),
],
update: updateLogger((_, state) => {
const nextState = state + 1;
return [
nextState,
none(),
];
}),