@coorpacademy/progression-engine
Advanced tools
Comparing version 5.5.0-alpha.137c29a1 to 5.5.0-alpha.ca6ded70
@@ -7,13 +7,3 @@ import map from 'lodash/fp/map'; | ||
var defaultState = { | ||
lives: 4, | ||
slides: [], | ||
nextContent: { | ||
ref: '', | ||
type: '' | ||
} | ||
}; | ||
export default function computeNextStep(slidePool) { | ||
var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState; | ||
export default function computeNextStep(state, slidePool) { | ||
var _state$slides = state.slides, | ||
@@ -20,0 +10,0 @@ slides = _state$slides === undefined ? [] : _state$slides; |
@@ -24,12 +24,3 @@ 'use strict'; | ||
var defaultState = { | ||
lives: 4, | ||
slides: [], | ||
nextContent: { | ||
ref: '', | ||
type: '' | ||
} | ||
}; | ||
function computeNextStep(slidePool) { | ||
var state = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultState; | ||
function computeNextStep(state, slidePool) { | ||
var _state$slides = state.slides, | ||
@@ -36,0 +27,0 @@ slides = _state$slides === undefined ? [] : _state$slides; |
{ | ||
"name": "@coorpacademy/progression-engine", | ||
"version": "5.5.0-alpha.137c29a1", | ||
"version": "5.5.0-alpha.ca6ded70", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26126
241