@glissandoo/lib 1.17.6 → 1.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ class GroupRepertoryFileSection {
15
15
  get name() {
16
16
  return ((this.id === types_1.FileSectionIdReserved.All
17
17
  ? (0, lang_1.getTranslation)(`sections.all`, this.lang)
18
- : new Instrument_1.default(this.id).name) || this.id);
18
+ : new Instrument_1.default(this.id, this.lang).name) || this.id);
19
19
  }
20
20
  getOrder(musicStyle) {
21
21
  return (0, orders_1.getOrderByMusicStyle)(musicStyle).indexOf(this.id) + 1 || Infinity;
@@ -26,7 +26,7 @@ class ThemeFilePath {
26
26
  return this.ext === '.pdf';
27
27
  }
28
28
  get isAudio() {
29
- return this.ext in audios_1.audioExtensions;
29
+ return audios_1.audioExtensions.includes(this.ext);
30
30
  }
31
31
  get section() {
32
32
  return new Section_1.default(this.sectionId, this.lang);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.17.6",
3
+ "version": "1.17.8",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",