@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 +1 -1
- package/src/service.mjs +4 -0
- package/types/service.d.mts +1 -0
package/package.json
CHANGED
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
|
package/types/service.d.mts
CHANGED
|
@@ -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
|