node-sword-interface 1.0.37 → 1.0.39

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/index.js CHANGED
@@ -331,6 +331,14 @@ class NodeSwordInterface {
331
331
  return this.nativeInterface.enableMarkup();
332
332
  }
333
333
 
334
+ /**
335
+ * Disable available markup (like Strongs, foot notes, etc.)
336
+ * This influences the output for getChapterText, getBookText and getBibleText.
337
+ */
338
+ disableMarkup() {
339
+ return this.nativeInterface.disableMarkup();
340
+ }
341
+
334
342
  /**
335
343
  * Enables rendering of Strongs elements with non-breaking spaces.
336
344
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -31,7 +31,7 @@ fi
31
31
 
32
32
  # CLONE SWORD
33
33
  git clone https://github.com/ezra-bible-app/crosswire-sword-mirror sword
34
- git -C sword checkout 1.9.0-2025-02-24
34
+ git -C sword checkout 1.9.0-2025-03-03
35
35
  patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
36
36
 
37
37
  # PATCHES
@@ -34,7 +34,7 @@ $headers = @{}
34
34
  $github_token = $env:GITHUB_TOKEN
35
35
 
36
36
  # --- Set the uri for the release
37
- $URI = "https://api.github.com/repos/ezra-bible-app/sword-build-win32/releases/tags/v1.9.0-2025-02-24"
37
+ $URI = "https://api.github.com/repos/ezra-bible-app/sword-build-win32/releases/tags/v1.9.0-2025-03-03"
38
38
 
39
39
  if ($Env:CI -eq "true") {
40
40
  Write-Host "GitHub actions build ... using GITHUB_TOKEN for authentication!"
@@ -90,6 +90,7 @@ Napi::Object NodeSwordInterface::Init(Napi::Env env, Napi::Object exports)
90
90
  InstanceMethod("getModuleDescription", &NodeSwordInterface::getModuleDescription),
91
91
  InstanceMethod("getLocalModule", &NodeSwordInterface::getLocalModule),
92
92
  InstanceMethod("enableMarkup", &NodeSwordInterface::enableMarkup),
93
+ InstanceMethod("disableMarkup", &NodeSwordInterface::disableMarkup),
93
94
  InstanceMethod("enableStrongsWithNbsp", &NodeSwordInterface::enableStrongsWithNbsp),
94
95
  InstanceMethod("getRawModuleEntry", &NodeSwordInterface::getRawModuleEntry),
95
96
  InstanceMethod("getReferenceText", &NodeSwordInterface::getReferenceText),
@@ -527,6 +528,16 @@ Napi::Value NodeSwordInterface::enableMarkup(const Napi::CallbackInfo& info)
527
528
  return info.Env().Undefined();
528
529
  }
529
530
 
531
+ Napi::Value NodeSwordInterface::disableMarkup(const Napi::CallbackInfo& info)
532
+ {
533
+ lockApi();
534
+ Napi::Env env = info.Env();
535
+ Napi::HandleScope scope(env);
536
+ this->_textProcessor->disableMarkup();
537
+ unlockApi();
538
+ return info.Env().Undefined();
539
+ }
540
+
530
541
  Napi::Value NodeSwordInterface::enableStrongsWithNbsp(const Napi::CallbackInfo& info)
531
542
  {
532
543
  lockApi();
@@ -983,11 +994,11 @@ Napi::Value NodeSwordInterface::getSwordVersion(const Napi::CallbackInfo& info)
983
994
  Napi::HandleScope scope(env);
984
995
 
985
996
  #if defined(__ANDROID__)
986
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
997
+ string version = "1.9.0-2025-03-03";
987
998
  #elif defined(__linux__) || defined(__APPLE__)
988
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
999
+ string version = "1.9.0-2025-03-03";
989
1000
  #elif _WIN32
990
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
1001
+ string version = "1.9.0-2025-03-03";
991
1002
  #endif
992
1003
 
993
1004
  Napi::String swVersion = Napi::String::New(env, version);
@@ -70,6 +70,7 @@ private:
70
70
  Napi::Value getLocalModule(const Napi::CallbackInfo& info);
71
71
 
72
72
  Napi::Value enableMarkup(const Napi::CallbackInfo& info);
73
+ Napi::Value disableMarkup(const Napi::CallbackInfo& info);
73
74
  Napi::Value enableStrongsWithNbsp(const Napi::CallbackInfo& info);
74
75
 
75
76
  Napi::Value getRawModuleEntry(const Napi::CallbackInfo& info);