node-sword-interface 1.0.107 → 1.0.108

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.107",
3
+ "version": "1.0.108",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -22,6 +22,10 @@
22
22
  #include <regex>
23
23
  #include <iomanip>
24
24
 
25
+ #if defined(__APPLE__)
26
+ #include <TargetConditionals.h>
27
+ #endif
28
+
25
29
  // Sword includes
26
30
  #include <versekey.h>
27
31
  #include <listkey.h>
@@ -66,6 +70,8 @@ string TextProcessor::getFileUrl(const string& nativePath)
66
70
  // Build file:// URL (Windows needs extra slash for drive letter)
67
71
  #if _WIN32
68
72
  return "file:///" + path;
73
+ #elif TARGET_OS_IOS
74
+ return "app://localhost/_app_file_/" + path;
69
75
  #else
70
76
  return "file://" + path;
71
77
  #endif