node-sword-interface 1.0.110 → 1.0.112
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
|
@@ -375,6 +375,10 @@ ModuleType NodeSwordInterface::getModuleTypeFromString(std::string moduleTypeStr
|
|
|
375
375
|
return ModuleType::dict;
|
|
376
376
|
} else if (moduleTypeString == "COMMENTARY") {
|
|
377
377
|
return ModuleType::commentary;
|
|
378
|
+
} else if (moduleTypeString == "IMAGES") {
|
|
379
|
+
return ModuleType::images;
|
|
380
|
+
} else if (moduleTypeString == "MAPS") {
|
|
381
|
+
return ModuleType::maps;
|
|
378
382
|
} else {
|
|
379
383
|
return ModuleType::any;
|
|
380
384
|
}
|
|
@@ -599,16 +603,11 @@ Napi::Value NodeSwordInterface::enableStrongsWithNbsp(const Napi::CallbackInfo&
|
|
|
599
603
|
Napi::Value NodeSwordInterface::getRawModuleEntry(const Napi::CallbackInfo& info)
|
|
600
604
|
{
|
|
601
605
|
lockApi();
|
|
602
|
-
INIT_SCOPE_AND_VALIDATE(ParamType::string, ParamType::string);
|
|
606
|
+
INIT_SCOPE_AND_VALIDATE(ParamType::string, ParamType::string, ParamType::boolean);
|
|
603
607
|
Napi::Env env = info.Env();
|
|
604
608
|
Napi::String moduleName = info[0].As<Napi::String>();
|
|
605
609
|
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
|
-
}
|
|
610
|
+
Napi::Boolean processImageUrls = info[2].As<Napi::Boolean>();
|
|
612
611
|
|
|
613
612
|
ASSERT_SW_MODULE_EXISTS(moduleName);
|
|
614
613
|
|
|
@@ -91,6 +91,12 @@ public:
|
|
|
91
91
|
case ModuleType::commentary:
|
|
92
92
|
moduleTypeFilter = "Commentaries";
|
|
93
93
|
break;
|
|
94
|
+
case ModuleType::images:
|
|
95
|
+
moduleTypeFilter = "Images";
|
|
96
|
+
break;
|
|
97
|
+
case ModuleType::maps:
|
|
98
|
+
moduleTypeFilter = "Maps";
|
|
99
|
+
break;
|
|
94
100
|
default:
|
|
95
101
|
moduleTypeFilter = "ANY";
|
|
96
102
|
}
|