@kronos-integration/service-systemd 4.2.0 → 4.2.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/README.md CHANGED
@@ -1,10 +1,12 @@
1
+ [![npm](https://img.shields.io/npm/v/@kronos-integration/service-systemd.svg)](https://www.npmjs.com/package/@kronos-integration/service-systemd)
1
2
  [![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)
3
+ [![bundlejs](https://deno.bundlejs.com/?q=@kronos-integration/service-systemd\&badge=detailed)](https://bundlejs.com/?q=@kronos-integration/service-systemd)
4
+ [![downloads](http://img.shields.io/npm/dm/@kronos-integration/service-systemd.svg?style=flat-square)](https://npmjs.org/package/@kronos-integration/service-systemd)
2
5
  [![GitHub Issues](https://img.shields.io/github/issues/Kronos-Integration/service-systemd.svg?style=flat-square)](https://github.com/Kronos-Integration/service-systemd/issues)
3
6
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FKronos-Integration%2Fservice-systemd%2Fbadge\&style=flat)](https://actions-badge.atrox.dev/Kronos-Integration/service-systemd/goto)
4
7
  [![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
5
8
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
6
9
  [![Known Vulnerabilities](https://snyk.io/test/github/Kronos-Integration/service-systemd/badge.svg)](https://snyk.io/test/github/Kronos-Integration/service-systemd)
7
- [![Coverage Status](https://coveralls.io/repos/Kronos-Integration/service-systemd/badge.svg)](https://coveralls.io/github/Kronos-Integration/service-systemd)
8
10
 
9
11
  # @kronos-integration/service-systemd
10
12
 
@@ -29,7 +31,6 @@ kronos systemd integration
29
31
  * [Properties](#properties)
30
32
  * [credentialsDirectory](#credentialsdirectory)
31
33
  * [SystemdConfig](#systemdconfig)
32
- * [Parameters](#parameters)
33
34
  * [Properties](#properties-1)
34
35
  * [listeningFileDescriptors](#listeningfiledescriptors)
35
36
  * [loadConfig](#loadconfig)
@@ -67,11 +68,6 @@ Type: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
67
68
  Provides config from CONFIGURATION\_DIRECTORY.
68
69
  Also injects listeningFileDescriptors into the config
69
70
 
70
- ### Parameters
71
-
72
- * `config`  
73
- * `ic`  
74
-
75
71
  ### Properties
76
72
 
77
73
  * `configurationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** taken from CONFIGURATION\_DIRECTORY
@@ -101,7 +97,7 @@ Kronos bridge to systemd:
101
97
 
102
98
  ### Parameters
103
99
 
104
- * `config`  
100
+ * `config` (optional, default `{}`)
105
101
  * `ic`  
106
102
 
107
103
  ### getCredential
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-systemd",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
7
7
  },
8
+ "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
8
9
  "exports": {
9
10
  ".": "./src/service.mjs"
10
11
  },
@@ -21,23 +22,23 @@
21
22
  "email": "markus.felten@gmx.de"
22
23
  }
23
24
  ],
24
- "license": "BSD-2-Clause",
25
+ "license": "0BSD",
25
26
  "scripts": {
26
27
  "test": "node --run test:ava",
27
- "test:ava": "ava -s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
28
- "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava -s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
29
- "docs": "documentation readme --section=API ./src/**/*.mjs",
28
+ "test:ava": "ava-s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
29
+ "cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava-s --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
30
+ "docs": "documentation readme --section=API ./src**/*.mjs",
30
31
  "lint": "node --run lint:docs",
31
- "lint:docs": "documentation lint ./src/**/*.mjs",
32
+ "lint:docs": "documentation lint ./src**/*.mjs",
32
33
  "build": "cmake-js compile"
33
34
  },
34
35
  "dependencies": {
35
- "@kronos-integration/service": "^15.0.1",
36
+ "@kronos-integration/service": "^15.1.1",
36
37
  "config-expander": "^14.0.9"
37
38
  },
38
39
  "devDependencies": {
39
40
  "ava": "^6.4.1",
40
- "c8": "^10.1.2",
41
+ "c8": "^10.1.3",
41
42
  "cmake-js": "^7.4.0",
42
43
  "documentation": "^14.0.3",
43
44
  "execa": "^9.6.1",
@@ -75,6 +76,5 @@
75
76
  "napi_versions": [
76
77
  9
77
78
  ]
78
- },
79
- "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
79
+ }
80
80
  }
package/src/service.mjs CHANGED
@@ -67,8 +67,9 @@ class SystemdConfig extends ServiceConfig {
67
67
  * @return {FileDescriptor[]}
68
68
  */
69
69
  get listeningFileDescriptors() {
70
- const count = Number(process.env.LISTEN_FDS) ?? 0;
70
+ const count = process.env.LISTEN_FDS ? parseInt(process.env.LISTEN_FDS) : 0;
71
71
  const fdNames = (process.env.LISTEN_FDNAMES || "").split(":");
72
+
72
73
  const arr = new Array(count);
73
74
  for (let i = 0; i < count; i++) {
74
75
  arr[i] = {
Binary file