node-sword-interface 1.0.110 → 1.0.111

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.110",
3
+ "version": "1.0.111",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -599,16 +599,11 @@ Napi::Value NodeSwordInterface::enableStrongsWithNbsp(const Napi::CallbackInfo&
599
599
  Napi::Value NodeSwordInterface::getRawModuleEntry(const Napi::CallbackInfo& info)
600
600
  {
601
601
  lockApi();
602
- INIT_SCOPE_AND_VALIDATE(ParamType::string, ParamType::string);
602
+ INIT_SCOPE_AND_VALIDATE(ParamType::string, ParamType::string, ParamType::boolean);
603
603
  Napi::Env env = info.Env();
604
604
  Napi::String moduleName = info[0].As<Napi::String>();
605
605
  Napi::String key = info[1].As<Napi::String>();
606
-
607
- // Optional 3rd parameter - default to false
608
- bool processImageUrls = false;
609
- if (info.Length() > 2 && info[2].IsBoolean()) {
610
- processImageUrls = info[2].As<Napi::Boolean>().Value();
611
- }
606
+ Napi::Boolean processImageUrls = info[2].As<Napi::Boolean>();
612
607
 
613
608
  ASSERT_SW_MODULE_EXISTS(moduleName);
614
609