hdoc-tools 0.18.1 → 0.18.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {
@@ -1,10 +1,11 @@
1
1
  (function() {
2
2
  'use strict';
3
3
  const vers = process.versions;
4
+ const supportedVersion = 20;
4
5
  if (vers && vers.node) {
5
- if (parseInt(vers.node, 10) < 18) {
6
+ if (parseInt(vers.node, 10) < supportedVersion) {
6
7
  console.log('\r\nHornbill HDocBook Tools\r\n');
7
- console.error('\x1b[31mThis tool requires Node.js version >= 18.x.\x1b[0m\r\n');
8
+ console.error(`\x1b[31mThis tool requires Node.js version >= ${supportedVersion}.x.\x1b[0m\r\n`);
8
9
  process.exit(1);
9
10
  }
10
11
  } else {