pmcf 6.46.1 → 6.46.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 +1 -1
- package/src/core.mjs +1 -4
- package/src/services/chrony.mjs +2 -6
package/package.json
CHANGED
package/src/core.mjs
CHANGED
|
@@ -219,8 +219,8 @@ export class core {
|
|
|
219
219
|
mapFromDirections(directions, property) {
|
|
220
220
|
return new AggregatedMap(
|
|
221
221
|
[...this.walkDirections(directions)]
|
|
222
|
-
.map(node => node[property])
|
|
223
222
|
.filter(node => node !== undefined)
|
|
223
|
+
.map(node => node[property])
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
226
|
|
|
@@ -235,9 +235,6 @@ export class core {
|
|
|
235
235
|
for (const node of this.walkDirections(directions)) {
|
|
236
236
|
const value = node[property];
|
|
237
237
|
if (value !== undefined) {
|
|
238
|
-
if (!(value instanceof Set)) {
|
|
239
|
-
console.log("NO SET", value, node.fullName, property);
|
|
240
|
-
}
|
|
241
238
|
collected = collected.union(value);
|
|
242
239
|
}
|
|
243
240
|
}
|
package/src/services/chrony.mjs
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
3
|
import { default_collection_attribute_writable } from "pacc";
|
|
4
|
-
import {
|
|
5
|
-
addType,
|
|
6
|
-
FAMILY_UNIX,
|
|
7
|
-
FAMILY_IPV4_IPV6,
|
|
8
|
-
CoreService
|
|
9
|
-
} from "pmcf";
|
|
4
|
+
import { addType, FAMILY_UNIX, FAMILY_IPV4_IPV6, CoreService } from "pmcf";
|
|
10
5
|
import { writeLines } from "../utils.mjs";
|
|
11
6
|
|
|
12
7
|
export class chrony extends CoreService {
|
|
@@ -83,6 +78,7 @@ export class chrony extends CoreService {
|
|
|
83
78
|
|
|
84
79
|
return values.join(" ");
|
|
85
80
|
}
|
|
81
|
+
|
|
86
82
|
const lines = [
|
|
87
83
|
this.servers.flat().map(chronyServer),
|
|
88
84
|
this.peers
|