node-sword-interface 0.248.0 → 0.249.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "0.248.0",
3
+ "version": "0.249.0",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -430,12 +430,13 @@ string TextProcessor::getBookIntroduction(string moduleName, string bookCode)
430
430
  if (module == 0) {
431
431
  cerr << "getLocalModule returned zero pointer for " << moduleName << endl;
432
432
  } else {
433
- VerseKey verseKey(bookCode.c_str());
433
+ module->setKeyText(bookCode.c_str());
434
+ VerseKey *verseKey = (VerseKey *)module->getKey();
434
435
 
435
436
  // Include chapter/book/testament/module intros
436
- verseKey.setIntros(true);
437
- verseKey.setChapter(0);
438
- verseKey.setVerse(0);
437
+ verseKey->setIntros(true);
438
+ verseKey->setChapter(0);
439
+ verseKey->setVerse(0);
439
440
  module->setKey(verseKey);
440
441
 
441
442
  bookIntroText = string(module->getRawEntry());