node-sword-interface 1.0.15 → 1.0.16

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/API.md CHANGED
@@ -636,10 +636,9 @@ An object representation of a SWORD module.
636
636
  | version | <code>String</code> | The version of the SWORD module |
637
637
  | lastUpdate | <code>String</code> | The date of the last version update of the SWORD module |
638
638
  | category | <code>String</code> | The category of the SWORD module |
639
- | repository | <code>String</code> | The repository of the SWORD module (only returned by methods interacting with module repositories) |
639
+ | repository | <code>String</code> | The repository of the SWORD module |
640
640
  | about | <code>String</code> | Extended description of the SWORD module |
641
641
  | abbreviation | <code>String</code> | The abbreviation of the SWORD module |
642
- | sourceRepo | <code>String</code> | The repository from which this SWORD modules has been installed |
643
642
  | size | <code>Number</code> | The file size of the SWORD module (in KB) |
644
643
  | location | <code>String</code> | The filesystem location where the module is stored |
645
644
  | unlockInfo | <code>String</code> | Information about how to retrieve an unlock key (in case the module is locked) |
package/index.js CHANGED
@@ -44,10 +44,9 @@ const nodeSwordInterfaceModule = require('./build/Release/node_sword_interface.n
44
44
  * @property {String} version - The version of the SWORD module
45
45
  * @property {String} lastUpdate - The date of the last version update of the SWORD module
46
46
  * @property {String} category - The category of the SWORD module
47
- * @property {String} repository - The repository of the SWORD module (only returned by methods interacting with module repositories)
47
+ * @property {String} repository - The repository of the SWORD module
48
48
  * @property {String} about - Extended description of the SWORD module
49
49
  * @property {String} abbreviation - The abbreviation of the SWORD module
50
- * @property {String} sourceRepo - The repository from which this SWORD modules has been installed
51
50
  * @property {Number} size - The file size of the SWORD module (in KB)
52
51
  * @property {String} location - The filesystem location where the module is stored
53
52
  * @property {String} unlockInfo - Information about how to retrieve an unlock key (in case the module is locked)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -92,9 +92,9 @@ void NapiSwordHelper::swordModuleToNapiObject(const Napi::Env& env, SWModule* sw
92
92
  }
93
93
 
94
94
  if (swModule->getConfigEntry("InstallSourceCaption")) {
95
- object["sourceRepo"] = string(swModule->getConfigEntry("InstallSourceCaption"));
95
+ object["repository"] = string(swModule->getConfigEntry("InstallSourceCaption"));
96
96
  } else {
97
- object["sourceRepo"] = "";
97
+ object["repository"] = "";
98
98
  }
99
99
 
100
100
  if (swModule->getConfigEntry("InstallSize")) {