pmcf 6.46.10 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.46.10",
3
+ "version": "6.46.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/content.mjs CHANGED
@@ -17,7 +17,7 @@ export class permission extends core {
17
17
  static key = "pattern";
18
18
  static attributes = {
19
19
  pattern: { ...string_attribute_writable, key: true, name: "pattern" },
20
- user: { ...string_attribute_writable, name: "user" },
20
+ owner: { ...string_attribute_writable, name: "owner" },
21
21
  group: { ...string_attribute_writable, name: "group" },
22
22
  mode: { ...string_attribute_writable, name: "mode" }
23
23
  };
@@ -185,7 +185,7 @@ class bind_zone_config extends base {
185
185
  addressesStatement(
186
186
  " allow-update",
187
187
  view.allowUpdate,
188
- "none;",
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: bind_acl,
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 { addType as addTypeBasic, toInternal, registerToken, DOT, asArray } from "pacc";
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(`attribute ${attribute.name} of ${object.fullName} already defined`, attribute );
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)