waha-shared 1.0.29 → 1.0.31

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.
@@ -336,7 +336,7 @@ function calculateSectionTimings(sections, totalDuration, languageId) {
336
336
  const languageDurations = mediaDurations_1.mediaDurations[languageId];
337
337
  const getQuestionDuration = (questionId) => {
338
338
  const fileName = `${languageId}.${questionId}.mp3`;
339
- return languageDurations.questions[fileName] ?? 0;
339
+ return languageDurations?.questions?.[fileName] ?? 0;
340
340
  };
341
341
  const timings = new Map();
342
342
  // Title section always starts at 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waha-shared",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "author": "Waha",
5
5
  "dependencies": {
6
6
  "@types/signale": "^1.4.7",
@@ -13,7 +13,8 @@
13
13
  },
14
14
  "files": [
15
15
  "dist",
16
- "assets/fonts"
16
+ "assets/fonts",
17
+ "assets/fonts/fonts.css"
17
18
  ],
18
19
  "license": "MIT",
19
20
  "scripts": {