node-sword-interface 1.0.48 → 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.
- package/index.js +2 -2
- package/package.json +2 -2
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(
|
|
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.
|
|
3
|
+
"version": "1.0.50",
|
|
4
4
|
"description": "Javascript (N-API) interface to SWORD library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"C++",
|
|
@@ -35,6 +35,6 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"jest": "^30.0.5",
|
|
37
37
|
"jsdoc-to-markdown": "^9.1.1",
|
|
38
|
-
"node-gyp": "^
|
|
38
|
+
"node-gyp": "^12.1.0"
|
|
39
39
|
}
|
|
40
40
|
}
|