@tangelo/tangelo-configuration-toolkit 1.8.0-beta.0 → 1.8.0-beta.1

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/README.md CHANGED
@@ -4,7 +4,7 @@ Tangelo Configuration Toolkit is a command-line toolkit which offers support for
4
4
 
5
5
  ## Installation
6
6
 
7
- The toolkit requires [NPM](https://www.npmjs.com/get-npm) on [Node.js®](https://nodejs.org/) (at least version 12.x). An active or maintenance LTS release is recommended. After installing Node.js, you can install the latest version of the Tangelo Configuration Toolkit globally on your system using the following command:
7
+ The toolkit requires [NPM](https://www.npmjs.com/get-npm) on [Node.js®](https://nodejs.org/) (at least version 14.x). An active or maintenance LTS release is recommended. After installing Node.js, you can install the latest version of the Tangelo Configuration Toolkit globally on your system using the following command:
8
8
 
9
9
  npm i -g @tangelo/tangelo-configuration-toolkit
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangelo/tangelo-configuration-toolkit",
3
- "version": "1.8.0-beta.0",
3
+ "version": "1.8.0-beta.1",
4
4
  "description": "Tangelo Configuration Toolkit is a command-line toolkit which offers support for developing a Tangelo configuration.",
5
5
  "bin": {
6
6
  "tct": "bin/index.js",
package/src/cli.js CHANGED
@@ -153,9 +153,9 @@ module.exports = function cli () {
153
153
  _write(); // print empty line before and after update check
154
154
 
155
155
  if (!(argv.updateTct || argv.updateFdt) && // not when doing update
156
- (!_appdata.updateCheckTCT.versionAvailable || !_appdata.updateCheckFDT.versionAvailable) && // not if already known that update is available
157
- ( new Date() - new Date(_appdata.updateCheckTCT.executed || 0) > 1000*3600*24*3 ||
158
- new Date() - new Date(_appdata.updateCheckFDT.executed || 0) > 1000*3600*24*3
156
+ (!_appdata.updateCheckTCT?.versionAvailable || !_appdata.updateCheckFDT?.versionAvailable) && // not if already known that update is available
157
+ ( new Date() - new Date(_appdata.updateCheckTCT?.executed || 0) > 1000*3600*24*3 ||
158
+ new Date() - new Date(_appdata.updateCheckFDT?.executed || 0) > 1000*3600*24*3
159
159
  ) && // check every 3 days
160
160
  !checkUpdatesDone // check if updatecheck has ran before because async calls below trigger beforeExit again
161
161
  ) {
@@ -36,7 +36,7 @@ const updatePackage = ({package, version, versionAvailable}) => (
36
36
  version!=versionAvailable &&
37
37
  exec(`npm install -g ${packageNames[package]}`)
38
38
  .then(r => {
39
- updateAppdata({[`updateCheck${package}`]: {versionAvailable: null}});
39
+ updateAppdata({[`updateCheck${package}`]: {executed: new Date()}});
40
40
  _write(`Updated ${package} to version ${versionAvailable}.`);
41
41
  })
42
42
  .catch(e => _warn(`Failed updating latest version of ${package}.`))