()
| 816 | } |
| 817 | |
| 818 | function getCurrentVersion() { |
| 819 | try { |
| 820 | var pkg = JSON.parse(fs.readFileSync(path.join(INSTALL_ROOT, 'package.json'), 'utf8')); |
| 821 | return pkg.version || '0.0.0'; |
| 822 | } catch (_) { return '0.0.0'; } |
| 823 | } |
| 824 | |
| 825 | // Idempotency / anti-downgrade short-circuit: the hub keeps re-issuing the |
| 826 | // same force_update directive until the node reports success. After a |
no test coverage detected