pmcf 6.53.4 → 6.53.5

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": "6.53.4",
3
+ "version": "6.53.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -54,7 +54,7 @@
54
54
  "content-entry-transform": "^1.7.6",
55
55
  "ip-utilties": "^3.13.1",
56
56
  "npm-pkgbuild": "^22.1.16",
57
- "pacc": "^11.12.3",
57
+ "pacc": "^11.13.0",
58
58
  "package-directory": "^8.2.0",
59
59
  "yaml": "^2.9.1"
60
60
  },
package/src/hooks.mjs CHANGED
@@ -2,8 +2,8 @@ import { createReadStream } from "node:fs";
2
2
  import { extractFunctions } from "npm-pkgbuild";
3
3
 
4
4
  export async function loadHooks(packageData, file) {
5
- for await (const f of extractFunctions(createReadStream(file, "utf8"))) {
6
- addHook(packageData, f.name, f.body);
5
+ for await (const func of extractFunctions(createReadStream(file, "utf8"))) {
6
+ addHook(packageData, func.name, func.body);
7
7
  }
8
8
  }
9
9
 
@@ -99,7 +99,6 @@ export class kea extends CoreService {
99
99
  };
100
100
  static service = {
101
101
  extends: ["dhcp"],
102
- systemdService: "kea.service",
103
102
  systemUserName: "kea",
104
103
  systemGroupName: "kea",
105
104
  services: {
package/src/type.mjs CHANGED
@@ -3,18 +3,19 @@ import {
3
3
  toInternal,
4
4
  registerToken,
5
5
  DOT,
6
- asArray
6
+ asArray,
7
+ primitive_type
7
8
  } from "pacc";
8
9
  import { normalizeIP } from "ip-utilties";
9
- import { addServiceType } from "pmcf";
10
+ import { addServiceType } from "./service-types.mjs";
10
11
 
11
12
  const SLASH = { ...DOT, str: "/" };
12
13
 
13
14
  registerToken(SLASH);
14
15
 
15
16
  addTypeBasic({
17
+ ...primitive_type,
16
18
  name: "ip",
17
- primitive: true,
18
19
  asMapEntry: (attribute, value, object) => [
19
20
  normalizeIP(value),
20
21
  object.addSubnet(value)