@kronos-integration/service 13.0.1 → 13.1.0

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",
3
- "version": "13.0.1",
3
+ "version": "13.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
package/src/service.mjs CHANGED
@@ -441,6 +441,10 @@ export class Service extends EndpointsMixin(
441
441
  }
442
442
  }
443
443
 
444
+ async getCredential(key) {
445
+ return this.owner.getCredential(this.name + "." + key, "utf8");
446
+ }
447
+
444
448
  /**
445
449
  * Adds service name to the log event.
446
450
  * @param {string} level the log level
@@ -141,6 +141,7 @@ export class Service extends Service_base {
141
141
  * @return {Promise} fillfills when config is applied
142
142
  */
143
143
  configure(config: any): Promise<any>;
144
+ getCredential(key: any): Promise<any>;
144
145
  /**
145
146
  * Adds service name to the log event.
146
147
  * @param {string} level the log level