node-sword-interface 1.0.66 → 1.0.68

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
@@ -17,7 +17,15 @@
17
17
  If not, see <http://www.gnu.org/licenses/>. */
18
18
 
19
19
  const path = require('path');
20
- const nodeSwordInterfaceModule = require('./build/Release/node_sword_interface.node');
20
+ const os = require('os');
21
+
22
+ let nodeSwordInterfaceModule;
23
+ if (process.platform === 'ios') {
24
+ nodeSwordInterfaceModule = require(path.join(os.homedir(), '/frameworks/node_sword_interface.framework/node_sword_interface'));
25
+ } else {
26
+ nodeSwordInterfaceModule = require('./build/Release/node_sword_interface.node');
27
+ }
28
+
21
29
  const { Mutex } = require('async-mutex');
22
30
 
23
31
  // Create a mutex instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -34,7 +34,7 @@ cat > "${FRAMEWORK_DIR}/Info.plist" <<PLIST_EOF
34
34
  <key>CFBundleExecutable</key>
35
35
  <string>${FRAMEWORK_NAME}</string>
36
36
  <key>CFBundleIdentifier</key>
37
- <string>net.ezrabibleapp.${FRAMEWORK_NAME}</string>
37
+ <string>net.ezrabibleapp.node-sword-interface</string>
38
38
  <key>CFBundleInfoDictionaryVersion</key>
39
39
  <string>6.0</string>
40
40
  <key>CFBundleName</key>