pmcf 4.25.8 → 4.25.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/subnet.mjs +9 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "4.25.8",
3
+ "version": "4.25.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/subnet.mjs CHANGED
@@ -15,22 +15,20 @@ import {
15
15
  import { networks_attribute } from "./network-support.mjs";
16
16
  import { Base } from "./base.mjs";
17
17
 
18
- const SubnetTypeDefinition = {
19
- name: "subnet",
20
- priority: 1,
21
- owners: ["location", "owner", "network", "root"],
22
- constructWithIdentifierOnly: true,
23
- key: "address",
24
- attributes: {
18
+ export class Subnet extends Base {
19
+ static name = "subnet";
20
+ static priority = 1;
21
+ static owners = ["location", "owner", "network", "root"];
22
+ static constructWithIdentifierOnly = true;
23
+ static key = "address";
24
+ static attributes = {
25
25
  address: name_attribute,
26
26
  networks: networks_attribute,
27
27
  prefixLength: number_attribute,
28
28
  family: string_attribute
29
- }
30
- };
29
+ };
31
30
 
32
- export class Subnet extends Base {
33
- static typeDefinition = SubnetTypeDefinition;
31
+ static typeDefinition = this;
34
32
 
35
33
  static {
36
34
  addType(this);