node-sword-interface 1.0.25 → 1.0.27

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": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "https://github.com/ezra-project/node-sword-interface.git"
31
+ "url": "https://github.com/ezra-bible-app/node-sword-interface.git"
32
32
  },
33
33
  "devDependencies": {
34
34
  "jsdoc-to-markdown": "^8.0.3",
@@ -83,9 +83,12 @@ bool ModuleHelper::moduleHasBook(sword::SWModule* module, std::string bookCode)
83
83
  For apocryphal books we may get "Rev 1:1" as actual module key and this will mismatch with the set key
84
84
  and then indicate that the book is not existing. */
85
85
 
86
- if (moduleKeyText != key.str()) {
86
+ // We compare the first three letters of the two keys to see whether the key retrieved matches the key we are looking for
87
+ if (moduleKeyText.size() >= 3 && key.str().size() >= 3 && moduleKeyText.substr(0,3) != key.str().substr(0,3)) {
87
88
  hasBook = false;
88
89
  } else {
90
+ // The first three letters of the key seem ok.
91
+ // Now let's check next whether the module has the corresponding entry.
89
92
  hasBook = module->hasEntry(module->getKey());
90
93
  }
91
94
 
@@ -200,7 +200,18 @@ vector<string> RepositoryInterface::getRepoNames()
200
200
  ++it) {
201
201
 
202
202
  string source = string(it->second->caption);
203
+
204
+ #if defined(__ANDROID__)
205
+ // Since August/September 2024 there have been issues observed with the access to the STEP Bible repository.
206
+ // We filter it out here, since it is currently dysfunctional.
207
+ if (source != "STEP Bible") {
208
+ #endif
209
+
203
210
  sourceNames.push_back(source);
211
+
212
+ #if defined(__ANDROID__)
213
+ }
214
+ #endif
204
215
  }
205
216
 
206
217
  return sourceNames;