node-sword-interface 1.0.83 → 1.0.85

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.
Files changed (3) hide show
  1. package/binding.gyp +2 -4
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/binding.gyp CHANGED
@@ -190,14 +190,12 @@
190
190
  '-lNormaliz.lib'
191
191
  ],
192
192
  "dependencies": [
193
- 'sword'
193
+ 'sword',
194
+ "<!(node -p \"require('node-addon-api').gyp\")"
194
195
  ],
195
196
  'defines': [ 'SWUSINGDLL' ]
196
197
  }]
197
198
  ],
198
- 'dependencies': [
199
- "<!(node -p \"require('node-addon-api').gyp\")"
200
- ],
201
199
  'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
202
200
  },
203
201
  {
package/index.js CHANGED
@@ -17,7 +17,6 @@
17
17
  If not, see <http://www.gnu.org/licenses/>. */
18
18
 
19
19
  const path = require('path');
20
- const os = require('os');
21
20
 
22
21
  let nodeSwordInterfaceModule;
23
22
  if (process.platform === 'ios') {
@@ -28,8 +27,9 @@ if (process.platform === 'ios') {
28
27
  const frameworkPath = '../../../../Frameworks/node_sword_interface.framework/node_sword_interface';
29
28
  const modulePath = path.join(__dirname, frameworkPath);
30
29
 
31
- const nodeSwordInterfaceModule = { exports: {} };
32
- process.dlopen(nodeSwordInterfaceModule, modulePath);
30
+ const tempModule = { exports: {} };
31
+ process.dlopen(tempModule, modulePath);
32
+ nodeSwordInterfaceModule = tempModule.exports;
33
33
  } else {
34
34
  nodeSwordInterfaceModule = require('./build/Release/node_sword_interface.node');
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",