pmcf 4.28.7 → 4.28.8

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.28.7",
3
+ "version": "4.28.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3,7 +3,7 @@ import { join } from "node:path";
3
3
  import { toInternal, attributeIterator, types, resolveTypeLinks } from "pacc";
4
4
  import { asArray } from "./utils.mjs";
5
5
  import { Base } from "./base.mjs";
6
- import { Root } from "./root.mjs";
6
+ import { root } from "./root.mjs";
7
7
 
8
8
  /**
9
9
  * Keeps track of all in flight object creations and loose ends during config initialization.
@@ -14,7 +14,7 @@ export class InitializationContext {
14
14
  constructor(directory = "/") {
15
15
  resolveTypeLinks();
16
16
  this.directory = directory;
17
- this.root = new Root(directory);
17
+ this.root = new root(directory);
18
18
  }
19
19
 
20
20
  resolveOutstanding() {
@@ -1,14 +1,14 @@
1
1
  import { default_attribute_writable, addType } from "pacc";
2
2
  import { NetworkInterface } from "./network-interface.mjs";
3
3
 
4
- export class EthernetNetworkInterface extends NetworkInterface {
5
- static name = "ethernet";
4
+ export class ethernet extends NetworkInterface {
6
5
  static specializationOf = NetworkInterface;
7
6
  static attributes = {
8
7
  arpbridge: {
9
8
  ...default_attribute_writable,
10
9
  type: "network_interface",
11
- collection: true
10
+ collection: true,
11
+ owner: false
12
12
  }
13
13
  };
14
14
 
@@ -10,8 +10,7 @@ const _localAddresses = new Map([
10
10
 
11
11
  const _localDomains = new Set(["localhost"]);
12
12
 
13
- export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
14
- static name = "loopback";
13
+ export class loopback extends SkeletonNetworkInterface {
15
14
  static specializationOf = NetworkInterface;
16
15
 
17
16
  static {
@@ -1,8 +1,7 @@
1
1
  import { addType } from "pacc";
2
2
  import { NetworkInterface } from "./network-interface.mjs";
3
3
 
4
- export class TUNNetworkInterface extends NetworkInterface {
5
- static name = "tun";
4
+ export class tun extends NetworkInterface {
6
5
  static specializationOf = NetworkInterface;
7
6
 
8
7
  static {
@@ -2,8 +2,7 @@ import { addType } from "pacc";
2
2
  import { SkeletonNetworkInterface } from "./skeleton.mjs";
3
3
  import { NetworkInterface } from "./network-interface.mjs";
4
4
 
5
- export class WireguardNetworkInterface extends SkeletonNetworkInterface {
6
- static name = "wireguard";
5
+ export class wireguard extends SkeletonNetworkInterface {
7
6
  static specializationOf = NetworkInterface;
8
7
 
9
8
  static {
@@ -7,10 +7,9 @@ import {
7
7
  } from "pacc";
8
8
  import { writeLines, sectionLines } from "../utils.mjs";
9
9
  import { NetworkInterface } from "./network-interface.mjs";
10
- import { EthernetNetworkInterface } from "./ethernet.mjs";
10
+ import { ethernet } from "./ethernet.mjs";
11
11
 
12
- export class WLANNetworkInterface extends EthernetNetworkInterface {
13
- static name = "wlan";
12
+ export class wlan extends ethernet {
14
13
  static specializationOf = NetworkInterface;
15
14
  static attributes = {
16
15
  ssid: string_attribute_writable,
package/src/root.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { addType } from "pacc";
2
2
  import { Location } from "./location.mjs";
3
3
 
4
- export class Root extends Location {
5
- static name = "root";
4
+ export class root extends Location {
6
5
  static priority = 3;
7
6
 
8
7
  static {
@@ -19,8 +19,7 @@ import { writeLines } from "../utils.mjs";
19
19
 
20
20
  const keaVersion = "3.0.1";
21
21
 
22
- export class KeaService extends Service {
23
- static name = "kea";
22
+ export class kea extends Service {
24
23
  static specializationOf = Service;
25
24
  static attributes = {
26
25
  "ddns-send-updates": {