pmcf 6.72.2 → 6.72.4
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 +5 -4
- package/src/constants.mjs +5 -1
- package/src/host.mjs +3 -3
- package/src/services/mosquitto.mjs +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.72.
|
|
3
|
+
"version": "6.72.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^26.6.5",
|
|
64
|
-
"ava": "^8.0
|
|
64
|
+
"ava": "^8.1.0",
|
|
65
65
|
"c8": "^12.0.0",
|
|
66
66
|
"documentation": "^14.0.3",
|
|
67
67
|
"semantic-release": "^25.0.9"
|
package/src/base.mjs
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
aliases_attribute,
|
|
29
29
|
SOURCES_THIS_EXTENDS
|
|
30
30
|
} from "./common-attributes.mjs";
|
|
31
|
+
import { DEFAULT_FILENAME_PATTERN } from "./constants.mjs";
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
*
|
|
@@ -113,11 +114,11 @@ export class base extends core {
|
|
|
113
114
|
get isHost() {
|
|
114
115
|
return false;
|
|
115
116
|
}
|
|
116
|
-
|
|
117
|
+
|
|
117
118
|
get isCluster() {
|
|
118
119
|
return false;
|
|
119
120
|
}
|
|
120
|
-
|
|
121
|
+
|
|
121
122
|
get isNetwork() {
|
|
122
123
|
return false;
|
|
123
124
|
}
|
|
@@ -274,7 +275,7 @@ export class base extends core {
|
|
|
274
275
|
case "object":
|
|
275
276
|
pd.sources.push(
|
|
276
277
|
new FileContentProvider({
|
|
277
|
-
pattern:
|
|
278
|
+
pattern: DEFAULT_FILENAME_PATTERN,
|
|
278
279
|
permissions: content.permissions,
|
|
279
280
|
...options
|
|
280
281
|
})
|
|
@@ -323,7 +324,7 @@ export class base extends core {
|
|
|
323
324
|
yield transform(
|
|
324
325
|
new FileContentProvider({
|
|
325
326
|
dir,
|
|
326
|
-
pattern:
|
|
327
|
+
pattern: DEFAULT_FILENAME_PATTERN,
|
|
327
328
|
permissions: content.permissions
|
|
328
329
|
}),
|
|
329
330
|
this.templateTransformers
|
package/src/constants.mjs
CHANGED
|
@@ -9,4 +9,8 @@ export const FAMILY_DNS = "dns";
|
|
|
9
9
|
export const FAMILY_IPV4_IPV6 = new Set([FAMILY_IPV4, FAMILY_IPV6]);
|
|
10
10
|
export const FAMILY_DNS_IPV4_IPV6 = new Set([FAMILY_DNS, FAMILY_IPV4, FAMILY_IPV6]);
|
|
11
11
|
|
|
12
|
-
export const FAMILY_UNIX_IPV4_IPV6 = new Set([FAMILY_UNIX, FAMILY_IPV4, FAMILY_IPV6]);
|
|
12
|
+
export const FAMILY_UNIX_IPV4_IPV6 = new Set([FAMILY_UNIX, FAMILY_IPV4, FAMILY_IPV6]);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export const DEFAULT_FILENAME_PATTERN = ["**/*", "**/.*"];
|
|
16
|
+
|
package/src/host.mjs
CHANGED
|
@@ -22,6 +22,7 @@ import { ServiceOwner } from "./service-owner.mjs";
|
|
|
22
22
|
import { addHook } from "./hooks.mjs";
|
|
23
23
|
import { domainFromDominName, domainName, writeLines } from "./utils.mjs";
|
|
24
24
|
import { generateKnownHosts } from "./host-utils.mjs";
|
|
25
|
+
import { DEFAULT_FILENAME_PATTERN } from "./constants.mjs";
|
|
25
26
|
|
|
26
27
|
export class host extends ServiceOwner {
|
|
27
28
|
static priority = 1.9;
|
|
@@ -100,8 +101,7 @@ export class host extends ServiceOwner {
|
|
|
100
101
|
|
|
101
102
|
_networkInterfaces = new Map();
|
|
102
103
|
|
|
103
|
-
get isHost()
|
|
104
|
-
{
|
|
104
|
+
get isHost() {
|
|
105
105
|
return true;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -283,7 +283,7 @@ export class host extends ServiceOwner {
|
|
|
283
283
|
async *preparePackages(dir) {
|
|
284
284
|
const packageData = await this.preparePackage({
|
|
285
285
|
dir,
|
|
286
|
-
pattern: [
|
|
286
|
+
pattern: [...DEFAULT_FILENAME_PATTERN, "**/.ssh/*"]
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
for (const ni of this.networkInterfaces.values()) {
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { join } from "node:path";
|
|
2
1
|
import { port_attribute, string_attribute_writable } from "pacc";
|
|
3
2
|
import { CoreService, addType } from "pmcf";
|
|
4
|
-
import {
|
|
5
|
-
writeLines,
|
|
6
|
-
setionLinesFromAttributeIterator,
|
|
7
|
-
} from "../utils.mjs";
|
|
8
3
|
import { SOURCES_THIS_EXTENDS } from "../common-attributes.mjs";
|
|
9
4
|
|
|
10
5
|
const SCOPE_MOSQUITTO = "mosquitto";
|
|
@@ -54,21 +49,4 @@ export class mosquitto extends CoreService {
|
|
|
54
49
|
get listener() {
|
|
55
50
|
return this.port;
|
|
56
51
|
}
|
|
57
|
-
|
|
58
|
-
/*
|
|
59
|
-
async *preparePackages(dir) {
|
|
60
|
-
const packageData = await this.preparePackage(dir);
|
|
61
|
-
|
|
62
|
-
await writeLines(
|
|
63
|
-
join(dir, "etc", "mosquitto"),
|
|
64
|
-
"mosquitto.conf",
|
|
65
|
-
setionLinesFromAttributeIterator(
|
|
66
|
-
this.attributeIterator(attribute => attribute.scope === SCOPE_MOSQUITTO),
|
|
67
|
-
" "
|
|
68
|
-
)
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
yield packageData;
|
|
72
|
-
}
|
|
73
|
-
*/
|
|
74
52
|
}
|