@kronos-integration/service 15.2.3 → 15.2.5
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 +4 -4
- package/src/service.mjs +4 -1
- package/types/service.d.mts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@kronos-integration/endpoint": "^11.0.
|
|
41
|
-
"@kronos-integration/interceptor": "^13.1.
|
|
40
|
+
"@kronos-integration/endpoint": "^11.0.7",
|
|
41
|
+
"@kronos-integration/interceptor": "^13.1.2",
|
|
42
42
|
"loglevel-mixin": "^7.2.6",
|
|
43
|
-
"pacc": "^6.
|
|
43
|
+
"pacc": "^6.5.0",
|
|
44
44
|
"statetransition-mixin": "^8.1.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
package/src/service.mjs
CHANGED
|
@@ -464,6 +464,9 @@ export class Service extends EndpointsMixin(
|
|
|
464
464
|
return credentials;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Load and store persistent credentials in the service attributes.
|
|
469
|
+
*/
|
|
467
470
|
async storePersistentCredentials() {
|
|
468
471
|
for (const [path, attribute] of attributeIterator(
|
|
469
472
|
this.attributes,
|
|
@@ -474,7 +477,7 @@ export class Service extends EndpointsMixin(
|
|
|
474
477
|
const credential = await this.getCredential(name);
|
|
475
478
|
|
|
476
479
|
if (credential) {
|
|
477
|
-
this.trace({ message:
|
|
480
|
+
this.trace({ message: `store credential ${name}`, credential: name });
|
|
478
481
|
setAttribute(this, name, credential, attribute);
|
|
479
482
|
}
|
|
480
483
|
} catch (err) {
|
package/types/service.d.mts
CHANGED
|
@@ -160,6 +160,9 @@ export class Service extends Service_base {
|
|
|
160
160
|
* @returns {Promise<Object>}
|
|
161
161
|
*/
|
|
162
162
|
getCredentials(filter?: (name: any, attribute: any) => any): Promise<any>;
|
|
163
|
+
/**
|
|
164
|
+
* Load and store persistent credentials in the service attributes.
|
|
165
|
+
*/
|
|
163
166
|
storePersistentCredentials(): Promise<void>;
|
|
164
167
|
/**
|
|
165
168
|
* Adds service name to the log event.
|