pmcf 6.44.0 → 6.44.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/cluster.mjs +1 -1
- package/src/services/mosquitto.mjs +13 -17
package/package.json
CHANGED
package/src/cluster.mjs
CHANGED
|
@@ -63,7 +63,7 @@ export class Cluster extends Host {
|
|
|
63
63
|
const packageData = await host.packageData;
|
|
64
64
|
|
|
65
65
|
packageData.sources.push(
|
|
66
|
-
await Array.fromAsync(this.templateContent()),
|
|
66
|
+
...(await Array.fromAsync(this.templateContent())),
|
|
67
67
|
new FileContentProvider({
|
|
68
68
|
dir: packageStagingDir,
|
|
69
69
|
pattern: "**/*",
|
|
@@ -40,29 +40,25 @@ export class mosquitto extends CoreService {
|
|
|
40
40
|
addType(this);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
set listener(value) {
|
|
44
|
+
this._listener = value;
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
get listener() {
|
|
44
|
-
return this.endpoint("mqtt").port;
|
|
48
|
+
return this._listener ?? this.endpoint("mqtt").port;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
async *preparePackages(dir) {
|
|
48
|
-
/*
|
|
49
|
-
const pm = this.root.named("/services/primary-SW/mosquitto");
|
|
50
|
-
const wd = [...this.walkDirections(["this", "extends"])];
|
|
51
|
-
|
|
52
|
-
console.log(
|
|
53
|
-
"MOSQUITTO",
|
|
54
|
-
this.fullName,
|
|
55
|
-
[...this.extends].map(n => n.fullName),
|
|
56
|
-
pm.fullName,
|
|
57
|
-
[...pm.extends].map(n => n.fullName),
|
|
58
|
-
wd.map(n => [n.fullName, n.directory])
|
|
59
|
-
);*/
|
|
60
|
-
|
|
61
52
|
const packageData = await this.packageData;
|
|
62
53
|
|
|
63
|
-
packageData.sources
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
packageData.sources.push(
|
|
55
|
+
...(await Array.fromAsync(this.templateContent())),
|
|
56
|
+
new FileContentProvider({
|
|
57
|
+
dir,
|
|
58
|
+
pattern: ["**/*"],
|
|
59
|
+
permissions: this.content.permissions
|
|
60
|
+
})
|
|
61
|
+
);
|
|
66
62
|
|
|
67
63
|
await writeLines(
|
|
68
64
|
join(dir, "etc", "mosquitto"),
|