pmcf 4.25.15 → 4.25.16

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.25.15",
3
+ "version": "4.25.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -4,23 +4,21 @@ import {
4
4
  NetworkInterfaceTypeDefinition
5
5
  } from "./network-interface.mjs";
6
6
 
7
- export const EthernetNetworkInterfaceTypeDefinition = {
8
- name: "ethernet",
9
- extends: NetworkInterfaceTypeDefinition,
10
- specializationOf: NetworkInterfaceTypeDefinition,
11
- owners: NetworkInterfaceTypeDefinition.owners,
12
- key: "name",
13
- attributes: {
7
+ export class EthernetNetworkInterface extends NetworkInterface {
8
+ static name= "ethernet";
9
+ static extends= NetworkInterfaceTypeDefinition;
10
+ static specializationOf= NetworkInterfaceTypeDefinition;
11
+ static owners= NetworkInterfaceTypeDefinition.owners;
12
+ static key= "name";
13
+ static attributes= {
14
14
  arpbridge: {
15
15
  ...default_attribute_writable,
16
16
  type: "network_interface",
17
17
  collection: true
18
18
  }
19
- }
20
- };
19
+ };
21
20
 
22
- export class EthernetNetworkInterface extends NetworkInterface {
23
- static typeDefinition = EthernetNetworkInterfaceTypeDefinition;
21
+ static typeDefinition = this;
24
22
 
25
23
  static {
26
24
  addType(this);
@@ -33,6 +31,6 @@ export class EthernetNetworkInterface extends NetworkInterface {
33
31
  arpbridge;
34
32
 
35
33
  get kind() {
36
- return EthernetNetworkInterfaceTypeDefinition.name;
34
+ return this.constructor.name;
37
35
  }
38
36
  }
@@ -226,8 +226,8 @@ export class NetworkInterface extends SkeletonNetworkInterface {
226
226
  const routeSectionExtra = this.destination
227
227
  ? { Destination: this.destination }
228
228
  : this.gateway
229
- ? { Gateway: this.gatewayAddress }
230
- : {};
229
+ ? { Gateway: this.gatewayAddress }
230
+ : {};
231
231
 
232
232
  const networkSectionExtra = this.arpbridge
233
233
  ? {
@@ -8,15 +8,14 @@ import {
8
8
  import { writeLines, sectionLines } from "../utils.mjs";
9
9
  import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
10
10
  import {
11
- EthernetNetworkInterface,
12
- EthernetNetworkInterfaceTypeDefinition
11
+ EthernetNetworkInterface
13
12
  } from "./ethernet.mjs";
14
13
 
15
14
  export class WLANNetworkInterface extends EthernetNetworkInterface {
16
15
  static name = "wlan";
17
- static extends = EthernetNetworkInterfaceTypeDefinition;
16
+ static extends = EthernetNetworkInterface;
18
17
  static specializationOf = NetworkInterfaceTypeDefinition;
19
- static owners = EthernetNetworkInterfaceTypeDefinition.owners;
18
+ static owners = EthernetNetworkInterface.owners;
20
19
  static key = "name";
21
20
  static attributes = {
22
21
  ssid: string_attribute_writable,