pmcf 6.68.10 → 6.68.12
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/core-service.mjs +8 -17
- package/src/initialization-context.mjs +10 -10
- package/src/services/bind.mjs +1 -1
package/package.json
CHANGED
package/src/core-service.mjs
CHANGED
|
@@ -201,23 +201,14 @@ export class CoreService extends base {
|
|
|
201
201
|
return this.endpoints(filter)[0];
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
address(
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
) {
|
|
213
|
-
const all = this.endpoints(options.endpoints);
|
|
214
|
-
const res = [...new Set(options.select ? all.map(options.select) : all)];
|
|
215
|
-
|
|
216
|
-
if (options.limit < res.length) {
|
|
217
|
-
res.length = options.limit;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
return options.join !== undefined ? res.join(options.join) : res;
|
|
204
|
+
get address() {
|
|
205
|
+
return [
|
|
206
|
+
...new Set(
|
|
207
|
+
this.endpoints(
|
|
208
|
+
e => e.networkInterface && e.networkInterface.kind !== "loopbak"
|
|
209
|
+
).map(e => e.domainName || e.address)
|
|
210
|
+
)
|
|
211
|
+
][0];
|
|
221
212
|
}
|
|
222
213
|
|
|
223
214
|
set port(value) {
|
|
@@ -28,30 +28,30 @@ export class InitializationContext {
|
|
|
28
28
|
.outstandingResolves) {
|
|
29
29
|
value = object.expand(value);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (resolved) {
|
|
31
|
+
function resolve(resolved)
|
|
32
|
+
{
|
|
34
33
|
assign(attribute, object, resolved);
|
|
35
34
|
|
|
36
35
|
if (attribute.name === "extends") {
|
|
37
36
|
// TODO attribute action ?
|
|
38
37
|
object.materializeExtends();
|
|
39
38
|
}
|
|
39
|
+
}
|
|
40
40
|
|
|
41
|
+
for (const node of object.walkDirections(["this", "owner"])) {
|
|
42
|
+
const resolved = this.named(value, node);
|
|
43
|
+
if (resolved) {
|
|
44
|
+
resolve(resolved);
|
|
41
45
|
continue nextOutstanding;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
const resolved = object.expression(value);
|
|
46
50
|
if (resolved) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// TODO attribute action ?
|
|
51
|
-
object.materializeExtends();
|
|
51
|
+
if (resolved) {
|
|
52
|
+
resolve(resolved);
|
|
53
|
+
continue nextOutstanding;
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
continue nextOutstanding;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
this.error(
|
package/src/services/bind.mjs
CHANGED