@kronos-integration/service 15.2.0 → 15.2.1
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 +1 -1
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,7 +467,7 @@ 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(".");
|