Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 4 changed files Side-by-side Diff

... ... @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4 4  
5 5 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6 6  
  7 +#### [v1.45.5](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.4...v1.45.5)
  8 +
  9 +- Fix sd-notify wrapper [`ec599eb`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/ec599ebefe403fe7fec191fc86c1aa234c5b08fe)
  10 +
7 11 #### [v1.45.4](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.3...v1.45.4)
8 12  
  13 +> 15 March 2022
  14 +
9 15 - Add sd-notify wrapper [`e164a6f`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/e164a6fb4b70d3ac07242a271210942c3baf0eb2)
10 16  
11 17 #### [v1.45.3](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.2...v1.45.3)
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.45.4",
  3 + "version": "1.45.5",
4 4 "lockfileVersion": 2,
5 5 "requires": true,
6 6 "packages": {
7 7 "": {
8 8 "name": "komodo-sdk",
9   - "version": "1.45.4",
  9 + "version": "1.45.5",
10 10 "license": "ISC",
11 11 "dependencies": {
12 12 "array-unique": "^0.3.2",
1 1 {
2 2 "name": "komodo-sdk",
3   - "version": "1.45.4",
  3 + "version": "1.45.5",
4 4 "description": "SDK for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {
... ... @@ -5,10 +5,12 @@ const MODULE_NAME = 'KOMODO-SDK.SD-NOTIFY';
5 5  
6 6 const logger = require('tektrans-logger');
7 7  
8   -try {
9   - const notify = require('sd-notify');
10   - notify.ready();
11   - logger.info(`${MODULE_NAME} 701F8400: Systemd ready notification has been sent`);
12   -} catch (e) {
13   - logger.warn(`${MODULE_NAME} A6C99938: Optional dependency not found: sd-notify`);
14   -}
  8 +module.exports = () => {
  9 + try {
  10 + const notify = require('sd-notify');
  11 + notify.ready();
  12 + logger.info(`${MODULE_NAME} 701F8400: Systemd ready notification has been sent`);
  13 + } catch (e) {
  14 + logger.warn(`${MODULE_NAME} A6C99938: Optional dependency not found: sd-notify`);
  15 + }
  16 +};