pmcf 6.46.11 → 6.46.12
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/services/bind.mjs +6 -3
- package/src/type.mjs +11 -2
package/package.json
CHANGED
package/src/services/bind.mjs
CHANGED
|
@@ -185,7 +185,7 @@ class bind_zone_config extends base {
|
|
|
185
185
|
addressesStatement(
|
|
186
186
|
" allow-update",
|
|
187
187
|
view.allowUpdate,
|
|
188
|
-
"
|
|
188
|
+
"any;",
|
|
189
189
|
" "
|
|
190
190
|
)
|
|
191
191
|
);
|
|
@@ -311,9 +311,9 @@ export class bind_acl extends bind_object {
|
|
|
311
311
|
|
|
312
312
|
const acl_attribute = {
|
|
313
313
|
...default_attribute_writable,
|
|
314
|
-
type:
|
|
314
|
+
type: bind_object,
|
|
315
315
|
name: "acl",
|
|
316
|
-
default: "'any'"
|
|
316
|
+
// default: "'any'"
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
class bind_view extends bind_object {
|
|
@@ -661,6 +661,9 @@ class bind_view extends bind_object {
|
|
|
661
661
|
function addressesStatement(prefix, objects, empty = false, indent = "") {
|
|
662
662
|
const body = asArray(objects).map(value => {
|
|
663
663
|
if (typeof value !== "string") {
|
|
664
|
+
if(value instanceof bind_key) {
|
|
665
|
+
return `key ${value.name}`;
|
|
666
|
+
}
|
|
664
667
|
return value.name ?? value.address;
|
|
665
668
|
}
|
|
666
669
|
|
package/src/type.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
addType as addTypeBasic,
|
|
3
|
+
toInternal,
|
|
4
|
+
registerToken,
|
|
5
|
+
DOT,
|
|
6
|
+
asArray
|
|
7
|
+
} from "pacc";
|
|
2
8
|
import { normalizeIP } from "ip-utilties";
|
|
3
9
|
import { addServiceType } from "pmcf";
|
|
4
10
|
|
|
@@ -39,7 +45,10 @@ export function assign(attribute, object, value) {
|
|
|
39
45
|
|
|
40
46
|
if (attribute.deferredExpression) {
|
|
41
47
|
if (object.hasOwnProperty(attribute.name)) {
|
|
42
|
-
error(
|
|
48
|
+
error(
|
|
49
|
+
`attribute ${attribute.name} of ${object.fullName} already defined`,
|
|
50
|
+
attribute
|
|
51
|
+
);
|
|
43
52
|
} else {
|
|
44
53
|
Object.defineProperty(object, attribute.name, {
|
|
45
54
|
get: () => object.expression(value)
|