@kronos-integration/service 15.2.0 → 15.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/package.json +1 -1
- package/src/service-config.mjs +1 -7
- package/src/service.mjs +2 -2
package/package.json
CHANGED
package/src/service-config.mjs
CHANGED
|
@@ -70,13 +70,7 @@ export class ServiceConfig extends Service {
|
|
|
70
70
|
const service = this.owner.services[name];
|
|
71
71
|
if (service === undefined) {
|
|
72
72
|
delete c.name;
|
|
73
|
-
|
|
74
|
-
const merged = merge(this.preservedConfigs.get(name), c);
|
|
75
|
-
this.trace(
|
|
76
|
-
level => `Preserve config ${name} ${JSON.stringify(merged)}`
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
this.preservedConfigs.set(name, merged);
|
|
73
|
+
this.preservedConfigs.set(name, merge(this.preservedConfigs.get(name), c));
|
|
80
74
|
} else {
|
|
81
75
|
return service.configure(c);
|
|
82
76
|
}
|
package/src/service.mjs
CHANGED
|
@@ -467,14 +467,14 @@ export class Service extends EndpointsMixin(
|
|
|
467
467
|
async storePersistentCredentials() {
|
|
468
468
|
for (const [path, attribute] of attributeIterator(
|
|
469
469
|
this.attributes,
|
|
470
|
-
(name, attribute) => attribute.credential && attribute.
|
|
470
|
+
(name, attribute) => attribute.credential && attribute.persistent
|
|
471
471
|
)) {
|
|
472
472
|
try {
|
|
473
473
|
const name = path.join(".");
|
|
474
474
|
const credential = await this.getCredential(name);
|
|
475
475
|
|
|
476
476
|
if (credential) {
|
|
477
|
-
this.trace("store credential", name);
|
|
477
|
+
this.trace({ message: "store credential", credential: name });
|
|
478
478
|
setAttribute(this, name, credential, attribute);
|
|
479
479
|
}
|
|
480
480
|
} catch (err) {
|