@musora/helper-functions
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -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 => |
{ | ||
"name": "@musora/helper-functions", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Helper functions for MusoraJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
58661
10
1598
1