Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coorpacademy/progression-engine

Package Overview
Dependencies
Maintainers
15
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coorpacademy/progression-engine - npm Package Compare versions

Comparing version 5.2.3 to 5.2.5-alpha.7e65b333

5

es/compute-next-step.js

@@ -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

7

lib/compute-next-step.js

@@ -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.7e65b333",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc