pmcf 6.7.0 → 6.7.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 +2 -2
- package/src/base.mjs +11 -4
- package/src/services/bind.mjs +0 -17
- package/src/services/mosquitto.mjs +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"aggregated-map": "^1.0.7",
|
|
54
54
|
"content-entry-transform": "^1.6.9",
|
|
55
|
-
"ip-utilties": "^3.
|
|
55
|
+
"ip-utilties": "^3.6.0",
|
|
56
56
|
"npm-pkgbuild": "^20.8.1",
|
|
57
57
|
"pacc": "^10.4.1",
|
|
58
58
|
"package-directory": "^8.2.0",
|
package/src/base.mjs
CHANGED
|
@@ -92,6 +92,14 @@ export class Base {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
materializeExtends() {
|
|
95
|
+
/*
|
|
96
|
+
console.log(
|
|
97
|
+
"materializeExtends",
|
|
98
|
+
this.fullName,
|
|
99
|
+
this.owner?.fullName,
|
|
100
|
+
[...this.extends].map(n => n.fullName)
|
|
101
|
+
);*/
|
|
102
|
+
|
|
95
103
|
for (const [path, attribute] of extendingAttributeIterator(
|
|
96
104
|
this.constructor,
|
|
97
105
|
attribute => attribute.collection && !attribute.type.primitive
|
|
@@ -441,13 +449,11 @@ export class Base {
|
|
|
441
449
|
return new Set(allOutputs.filter(o => this.packaging.has(o.name)));
|
|
442
450
|
}
|
|
443
451
|
|
|
444
|
-
get systemUserName()
|
|
445
|
-
{
|
|
452
|
+
get systemUserName() {
|
|
446
453
|
return this.constructor.name;
|
|
447
454
|
}
|
|
448
455
|
|
|
449
|
-
get systemGroupName()
|
|
450
|
-
{
|
|
456
|
+
get systemGroupName() {
|
|
451
457
|
return this.constructor.name;
|
|
452
458
|
}
|
|
453
459
|
|
|
@@ -510,6 +516,7 @@ export class Base {
|
|
|
510
516
|
|
|
511
517
|
try {
|
|
512
518
|
if ((await stat(dir)).isDirectory) {
|
|
519
|
+
console.log("TD", dir);
|
|
513
520
|
yield transform(
|
|
514
521
|
new FileContentProvider(
|
|
515
522
|
{ dir, pattern: "**/*" },
|
package/src/services/bind.mjs
CHANGED
|
@@ -480,23 +480,6 @@ export class bind extends ExtraSourceService {
|
|
|
480
480
|
|
|
481
481
|
groups = new Map();
|
|
482
482
|
|
|
483
|
-
materializeExtends() {
|
|
484
|
-
console.log("materializeExtends", this.fullName, this.owner, this.extends);
|
|
485
|
-
super.materializeExtends();
|
|
486
|
-
|
|
487
|
-
for (const service of this.walkDirections(["extends"])) {
|
|
488
|
-
for (const group of service.groups.values()) {
|
|
489
|
-
const present = this.groups.get(group.name);
|
|
490
|
-
|
|
491
|
-
if (present) {
|
|
492
|
-
present.extends.add(group);
|
|
493
|
-
} else {
|
|
494
|
-
this.groups.set(group.name, group.forOwner(this));
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
483
|
get serverType() {
|
|
501
484
|
return this.primaries ? "secondary" : "primary";
|
|
502
485
|
}
|
|
@@ -46,13 +46,15 @@ export class mosquitto extends CoreService {
|
|
|
46
46
|
|
|
47
47
|
async *preparePackages(dir) {
|
|
48
48
|
const pm = this.root.named("/services/primary-SW/mosquitto");
|
|
49
|
+
const wd = [...this.walkDirections(["this", "extends"])];
|
|
49
50
|
|
|
50
51
|
console.log(
|
|
51
52
|
"MOSQUITTO",
|
|
52
|
-
pm.fullName,
|
|
53
53
|
this.fullName,
|
|
54
54
|
[...this.extends].map(n => n.fullName),
|
|
55
|
-
|
|
55
|
+
pm.fullName,
|
|
56
|
+
[...pm.extends].map(n => n.fullName),
|
|
57
|
+
wd.map(n => [n.fullName, n.directory])
|
|
56
58
|
);
|
|
57
59
|
|
|
58
60
|
const permissions = this.packageContentPermissions;
|