pmcf 4.25.8 → 4.25.10

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.8",
3
+ "version": "4.25.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/location.mjs CHANGED
@@ -3,17 +3,15 @@ import { addType } from "pacc";
3
3
  import { Owner } from "pmcf";
4
4
  import { loadHooks } from "./hooks.mjs";
5
5
 
6
- const LocationTypeDefinition = {
7
- name: "location",
8
- priority: 2,
9
- owners: [Owner.typeDefinition, "location", "root"],
10
- extends: Owner.typeDefinition,
11
- key: "name",
12
- attributes: {}
13
- };
14
-
15
6
  export class Location extends Owner {
16
- static typeDefinition = LocationTypeDefinition;
7
+ static name = "location";
8
+ static priority = 2;
9
+ static owners = [Owner.typeDefinition, "location", "root"];
10
+ static extends = Owner.typeDefinition;
11
+ static key = "name";
12
+ static attributes = {};
13
+
14
+ static typeDefinition = this;
17
15
 
18
16
  static {
19
17
  addType(this);
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);