Socket
Socket
Sign inDemoInstall

@musora/helper-functions

Package Overview
Dependencies
0
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

9

modules/content.js

@@ -204,2 +204,3 @@ import Utils from './utils';

'bpm',
'related_lesson',
].indexOf(key) !== -1;

@@ -464,3 +465,4 @@ },

getTypesWithChildrenByBrand(brand = 'drumeo'){
const alwaysHasChildren = ['course', 'unit', 'learning-path', 'pack', 'pack-bundle', 'semester-pack'];
const alwaysHasChildren = ['course', 'unit', 'learning-path', 'learning-path-level',
'learning-path-course', 'pack', 'pack-bundle', 'semester-pack'];
const types = {

@@ -491,2 +493,5 @@ drumeo: alwaysHasChildren,

'unit-part': 'unit',
'learning-path-level': 'learning-path',
'learning-path-course': 'learning-path-level',
'learning-path-lesson': 'learning-path-course',
}[childType];

@@ -517,2 +522,4 @@ },

.replace(/-bundle/g, '') // Remove the -bundle
.replace(/-level/g, '') // Remove the -level
.replace(/-course/g, '') // Remove the -course
.replace(/-lesson/g, ''); // Remove -lesson

@@ -519,0 +526,0 @@ const contentType = this.topLevelContentTypes().filter(content =>

2

package.json
{
"name": "@musora/helper-functions",
"version": "0.1.2",
"version": "0.1.3",
"description": "Helper functions for MusoraJS",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc