pmcf 4.29.3 → 4.29.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 +1 -1
- package/src/base.mjs +1 -28
- package/src/owner.mjs +10 -5
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
10
10
|
import {
|
|
11
11
|
getAttribute,
|
|
12
|
-
addType,
|
|
13
12
|
parse,
|
|
14
13
|
globals,
|
|
15
14
|
expand,
|
|
@@ -26,6 +25,7 @@ import {
|
|
|
26
25
|
boolean_attribute_writable
|
|
27
26
|
} from "pacc";
|
|
28
27
|
import { union } from "./utils.mjs";
|
|
28
|
+
import { addType } from "pmcf";
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
@@ -64,7 +64,6 @@ export class Base {
|
|
|
64
64
|
_tags = new Set();
|
|
65
65
|
_packaging = new Set();
|
|
66
66
|
_directory;
|
|
67
|
-
_finalize;
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
69
|
*
|
|
@@ -527,32 +526,6 @@ export class Base {
|
|
|
527
526
|
});
|
|
528
527
|
}
|
|
529
528
|
|
|
530
|
-
finalize(action) {
|
|
531
|
-
if (!this._finalize) {
|
|
532
|
-
this._finalize = [];
|
|
533
|
-
}
|
|
534
|
-
this._finalize.push(action);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
execFinalize() {
|
|
538
|
-
for (const node of this.walkDirections(["children"])) {
|
|
539
|
-
node._execFinalize();
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
_execFinalize() {
|
|
544
|
-
if (this._finalize) {
|
|
545
|
-
let i = 0;
|
|
546
|
-
for (const action of this._finalize) {
|
|
547
|
-
if (action) {
|
|
548
|
-
this._finalize[i] = undefined;
|
|
549
|
-
action();
|
|
550
|
-
}
|
|
551
|
-
i++;
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
529
|
error(...args) {
|
|
557
530
|
console.error(`${this.toString()}:`, ...args);
|
|
558
531
|
}
|
package/src/owner.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
email_attribute
|
|
8
8
|
} from "pacc";
|
|
9
9
|
import { addType } from "pacc";
|
|
10
|
-
import { asIterator, union } from "./utils.mjs";
|
|
10
|
+
import { asIterator, asArray, union } from "./utils.mjs";
|
|
11
11
|
import { Base } from "./base.mjs";
|
|
12
12
|
import { Subnet, SUBNET_GLOBAL_IPV4, SUBNET_GLOBAL_IPV6 } from "./subnet.mjs";
|
|
13
13
|
import { networks_attribute } from "./network-support.mjs";
|
|
@@ -196,7 +196,9 @@ export class Owner extends Base {
|
|
|
196
196
|
|
|
197
197
|
if (!subnet) {
|
|
198
198
|
subnet =
|
|
199
|
-
familyIP(address) === FAMILY_IPV4
|
|
199
|
+
familyIP(address) === FAMILY_IPV4
|
|
200
|
+
? SUBNET_GLOBAL_IPV4
|
|
201
|
+
: SUBNET_GLOBAL_IPV6;
|
|
200
202
|
|
|
201
203
|
this.error(
|
|
202
204
|
`Address without subnet ${address}`,
|
|
@@ -253,8 +255,9 @@ export class Owner extends Base {
|
|
|
253
255
|
other.bridge = bridge;
|
|
254
256
|
}
|
|
255
257
|
} else {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
this.error("Unknown destination", nameOrNetwork);
|
|
259
|
+
// bridge.add(nameOrNetwork);
|
|
260
|
+
// this.finalize(() => this._resolveBridges());
|
|
258
261
|
}
|
|
259
262
|
}
|
|
260
263
|
|
|
@@ -262,6 +265,7 @@ export class Owner extends Base {
|
|
|
262
265
|
}
|
|
263
266
|
}
|
|
264
267
|
|
|
268
|
+
/*
|
|
265
269
|
_resolveBridges() {
|
|
266
270
|
for (const bridge of this._bridges) {
|
|
267
271
|
const subnets = new Map();
|
|
@@ -295,6 +299,7 @@ export class Owner extends Base {
|
|
|
295
299
|
}
|
|
296
300
|
}
|
|
297
301
|
}
|
|
302
|
+
*/
|
|
298
303
|
|
|
299
304
|
get derivedPackaging() {
|
|
300
305
|
let all = new Set();
|
|
@@ -380,7 +385,7 @@ export class Owner extends Base {
|
|
|
380
385
|
}
|
|
381
386
|
|
|
382
387
|
get localDomains() {
|
|
383
|
-
return
|
|
388
|
+
return new Set(asArray(this.domain));
|
|
384
389
|
}
|
|
385
390
|
|
|
386
391
|
get domainNames() {
|