@kronos-integration/service 10.4.43 → 10.4.45
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 +2 -2
- package/src/service.mjs +4 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/service",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.45",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@kronos-integration/endpoint": "^9.4.
|
|
32
|
+
"@kronos-integration/endpoint": "^9.4.42",
|
|
33
33
|
"@kronos-integration/interceptor": "^10.2.34",
|
|
34
34
|
"loglevel-mixin": "^7.0.1",
|
|
35
35
|
"model-attributes": "^4.2.2",
|
package/src/service.mjs
CHANGED
|
@@ -7,11 +7,6 @@ import {
|
|
|
7
7
|
} from "model-attributes";
|
|
8
8
|
import { EndpointsMixin } from "./endpoints-mixin.mjs";
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Key of the service description.
|
|
12
|
-
*/
|
|
13
|
-
const DESCRIPTION = Symbol("description");
|
|
14
|
-
|
|
15
10
|
const _ca = createAttributes({
|
|
16
11
|
description: {
|
|
17
12
|
type: "string",
|
|
@@ -146,6 +141,8 @@ export class Service extends EndpointsMixin(
|
|
|
146
141
|
};
|
|
147
142
|
}
|
|
148
143
|
|
|
144
|
+
#description;
|
|
145
|
+
|
|
149
146
|
constructor(config, ic) {
|
|
150
147
|
super();
|
|
151
148
|
|
|
@@ -192,11 +189,11 @@ export class Service extends EndpointsMixin(
|
|
|
192
189
|
}
|
|
193
190
|
|
|
194
191
|
get description() {
|
|
195
|
-
return this
|
|
192
|
+
return this.#description || this.constructor.description;
|
|
196
193
|
}
|
|
197
194
|
|
|
198
195
|
set description(desc) {
|
|
199
|
-
this
|
|
196
|
+
this.#description = desc;
|
|
200
197
|
}
|
|
201
198
|
|
|
202
199
|
/**
|