pmcf 6.53.3 → 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 +2 -2
- package/src/hooks.mjs +2 -2
- package/src/services/kea.mjs +0 -1
- package/src/type.mjs +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.53.
|
|
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.
|
|
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
|
|
6
|
-
addHook(packageData,
|
|
5
|
+
for await (const func of extractFunctions(createReadStream(file, "utf8"))) {
|
|
6
|
+
addHook(packageData, func.name, func.body);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
package/src/services/kea.mjs
CHANGED
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 "
|
|
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)
|
|
@@ -84,7 +85,7 @@ export function assign(attribute, object, value) {
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
} else {
|
|
87
|
-
current.set(value[attribute.type.key
|
|
88
|
+
current.set(value[attribute.type.key ?? "name"], value);
|
|
88
89
|
}
|
|
89
90
|
} else {
|
|
90
91
|
if (typeof current.add === "function") {
|