node-sword-interface 1.0.49 → 1.0.50

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 (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -89,8 +89,8 @@ const searchMutex = new Mutex();
89
89
 
90
90
  /** This is the main class of node-sword-interface and it provides a set of static functions that wrap SWORD library functionality. */
91
91
  class NodeSwordInterface {
92
- constructor(customHomeDir=undefined) {
93
- var localesDir = path.join(__dirname, './locales.d');
92
+ constructor(customHomeDir=undefined, localesBasePath=__dirname) {
93
+ var localesDir = path.join(localesBasePath, './locales.d');
94
94
  this.nativeInterface = new nodeSwordInterfaceModule.NodeSwordInterface(customHomeDir, localesDir);
95
95
  }
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",