pmcf 4.4.0 → 4.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.4.0",
3
+ "version": "4.4.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -54,12 +54,12 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "ip-utilties": "^2.0.2",
57
- "npm-pkgbuild": "^19.1.5",
57
+ "npm-pkgbuild": "^19.2.0",
58
58
  "pacc": "^8.0.2",
59
59
  "package-directory": "^8.1.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@types/node": "^25.0.6",
62
+ "@types/node": "^25.0.8",
63
63
  "ava": "^6.4.1",
64
64
  "c8": "^10.1.3",
65
65
  "documentation": "^14.0.3",
package/src/base.mjs CHANGED
@@ -597,7 +597,7 @@ export class Base {
597
597
  return expand(object, {
598
598
  stopClass: Base,
599
599
  root: this,
600
- getGlobal: x => this.getGlobal(x)
600
+ getGlobal: name => this.getGlobal(name)
601
601
  });
602
602
  }
603
603
 
package/src/cluster.mjs CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  default_attribute_writable,
5
5
  default_attribute,
6
6
  number_attribute_writable,
7
+ duration_attribute_writable,
7
8
  addType
8
9
  } from "pacc";
9
10
  import { Owner } from "./owner.mjs";
@@ -17,7 +18,7 @@ const ClusterTypeDefinition = {
17
18
  extends: Host.typeDefinition,
18
19
  key: "name",
19
20
  attributes: {
20
- routerId: number_attribute_writable,
21
+ routerId: { ...number_attribute_writable, default: 100 },
21
22
  masters: {
22
23
  ...default_attribute_writable,
23
24
  type: "network_interface",
@@ -33,7 +34,7 @@ const ClusterTypeDefinition = {
33
34
  type: "network_interface",
34
35
  collection: true
35
36
  },
36
- checkInterval: number_attribute_writable
37
+ checkInterval: { ...duration_attribute_writable, default: 60 }
37
38
  }
38
39
  };
39
40
 
package/src/dns-utils.mjs CHANGED
@@ -106,5 +106,5 @@ export function dnsMergeParameters(a, b) {
106
106
  }
107
107
 
108
108
  export function dnsPriority(priority) {
109
- return 500 - (priority ?? 10);
109
+ return Math.min(500 - (priority ?? 10), 65535);
110
110
  }
@@ -42,25 +42,15 @@ const OpenLDAPServiceTypeDefinition = {
42
42
  },
43
43
  txn_checkpoint: {
44
44
  ...string_attribute_writable,
45
- configurable: true,
45
+ configurable: true
46
46
  }
47
47
  }
48
48
  }
49
49
  },
50
50
  service: {
51
51
  systemdService: "slapd.service",
52
- extends: ["ldap","ldapi"],
53
- services: {
54
- /* ldap: {
55
- endpoints: [
56
- {
57
- family: "unix",
58
- path: "/run/ldapi",
59
- scheme: "ldapi"
60
- }
61
- ]
62
- }*/
63
- }
52
+ extends: ["ldap", "ldapi"],
53
+ services: {}
64
54
  }
65
55
  };
66
56
 
@@ -366,7 +366,27 @@ export class Cluster extends Host {
366
366
  };
367
367
  key: string;
368
368
  attributes: {
369
- routerId: import("pacc").AttributeDefinition;
369
+ routerId: {
370
+ default: number;
371
+ type: object;
372
+ isKey: boolean;
373
+ writable: boolean;
374
+ mandatory: boolean;
375
+ collection: boolean;
376
+ private?: boolean;
377
+ credential?: boolean;
378
+ persistent?: boolean;
379
+ depends?: string;
380
+ description?: string;
381
+ set?: Function;
382
+ get?: Function;
383
+ toInternal?: Function;
384
+ toExternal?: Function;
385
+ values?: Set<any>;
386
+ externalName?: string;
387
+ env?: string[] | string;
388
+ additionalValues?: object;
389
+ };
370
390
  masters: {
371
391
  type: string;
372
392
  collection: boolean;
@@ -430,7 +450,27 @@ export class Cluster extends Host {
430
450
  env?: string[] | string;
431
451
  additionalValues?: object;
432
452
  };
433
- checkInterval: import("pacc").AttributeDefinition;
453
+ checkInterval: {
454
+ default: number;
455
+ type: object;
456
+ isKey: boolean;
457
+ writable: boolean;
458
+ mandatory: boolean;
459
+ collection: boolean;
460
+ private?: boolean;
461
+ credential?: boolean;
462
+ persistent?: boolean;
463
+ depends?: string;
464
+ description?: string;
465
+ set?: Function;
466
+ get?: Function;
467
+ toInternal?: Function;
468
+ toExternal?: Function;
469
+ values?: Set<any>;
470
+ externalName?: string;
471
+ env?: string[] | string;
472
+ additionalValues?: object;
473
+ };
434
474
  };
435
475
  };
436
476
  _masters: any[];