@kronos-integration/service-systemd 2.7.0 → 2.7.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": "@kronos-integration/service-systemd",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
package/src/service.mjs CHANGED
@@ -157,8 +157,14 @@ export class ServiceSystemd extends ServiceProviderMixin(
157
157
  return true;
158
158
  }
159
159
 
160
- async getCredential(key) {
161
- return readFile(join(credentialsDirectory, key));
160
+ /**
161
+ * Deliver credentials as provided by systemd.
162
+ * @param {string} key
163
+ * @param {Object} options
164
+ * @return {Promise<UInt8Array|string>}
165
+ */
166
+ async getCredential(key, options) {
167
+ return readFile(join(credentialsDirectory, key, options));
162
168
  }
163
169
 
164
170
  /**
Binary file
Binary file
Binary file
Binary file
Binary file