@storyteller-platform/align 0.1.14 → 0.1.15

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.
@@ -192,7 +192,7 @@ async function getSentenceRanges(transcription, sentences, chapterOffset, chapte
192
192
  firstFoundSentence = chapterSentenceIndex + slice[0];
193
193
  }
194
194
  if (i === sentences.length) {
195
- lastFoundSentence = chapterSentenceIndex + slice[0] + slice[1] - 1;
195
+ lastFoundSentence = chapterSentenceIndex + slice[1] - 1;
196
196
  }
197
197
  slugifiedChapterSentenceWindowList = slugifiedChapterSentenceWindowList.slice(...slice);
198
198
  } else {
@@ -166,7 +166,7 @@ async function getSentenceRanges(transcription, sentences, chapterOffset, chapte
166
166
  firstFoundSentence = chapterSentenceIndex + slice[0];
167
167
  }
168
168
  if (i === sentences.length) {
169
- lastFoundSentence = chapterSentenceIndex + slice[0] + slice[1] - 1;
169
+ lastFoundSentence = chapterSentenceIndex + slice[1] - 1;
170
170
  }
171
171
  slugifiedChapterSentenceWindowList = slugifiedChapterSentenceWindowList.slice(...slice);
172
172
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyteller-platform/align",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "A library and CLI for automatically aligning audiobooks and EPUBs to produce Media Overlays",
5
5
  "author": "Shane Friedman",
6
6
  "license": "MIT",