node-sword-interface 1.0.107 → 1.0.109

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/binding.gyp CHANGED
@@ -141,7 +141,7 @@
141
141
  '<!@(pkg-config --libs libcurl)'
142
142
  ],
143
143
  "dependencies": [
144
- "<!(node -p \"require('node-addon-api').gyp\")",
144
+
145
145
  'sword'
146
146
  ]
147
147
  }],
@@ -156,7 +156,7 @@
156
156
  '<!@(./scripts/get_sword_library.sh \"../sword_build/libsword.a\")'
157
157
  ],
158
158
  "dependencies": [
159
- "<!(node -p \"require('node-addon-api').gyp\")",
159
+
160
160
  'sword'
161
161
  ],
162
162
  'ldflags': [
@@ -175,7 +175,6 @@
175
175
  '<!@(pkg-config --libs libcurl)'
176
176
  ],
177
177
  "dependencies": [
178
- "<!(node -p \"require('node-addon-api').gyp\")",
179
178
  'sword'
180
179
  ]
181
180
  }],
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.109",
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