@coorpacademy/progression-engine
Advanced tools
Comparing version 5.2.3 to 5.2.5-alpha.a92d2f8d
@@ -1,6 +0,7 @@ | ||
import _ from 'lodash/fp'; | ||
import random from 'lodash/fp/random'; | ||
export default function computeNextStep(progression, slides, action) { | ||
return _.first(slides); | ||
var index = random(0, slides.length - 1); | ||
return slides[index]; | ||
} | ||
//# sourceMappingURL=compute-next-step.js.map |
@@ -6,5 +6,5 @@ 'use strict'; | ||
var _fp = require('lodash/fp'); | ||
var _random = require('lodash/fp/random'); | ||
var _fp2 = _interopRequireDefault(_fp); | ||
var _random2 = _interopRequireDefault(_random); | ||
@@ -14,4 +14,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function computeNextStep(progression, slides, action) { | ||
return _fp2.default.first(slides); | ||
var index = (0, _random2.default)(0, slides.length - 1); | ||
return slides[index]; | ||
} | ||
//# sourceMappingURL=compute-next-step.js.map |
{ | ||
"name": "@coorpacademy/progression-engine", | ||
"version": "5.2.3", | ||
"version": "5.2.5-alpha.a92d2f8d", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7299
52
2