pmcf 1.54.13 → 1.55.0

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": "1.54.13",
3
+ "version": "1.55.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -38,6 +38,7 @@ const HostTypeDefinition = {
38
38
  serial: { type: "string", collection: false, writeable: true },
39
39
  vendor: { type: "string", collection: false, writeable: true },
40
40
  chassis: { type: "string", collection: false, writeable: true },
41
+ packaging: { type: "string", collection: false, writeable: true },
41
42
  priority: { type: "number", collection: false, writeable: true },
42
43
  replaces: { type: "string", collection: true, writeable: true },
43
44
  depends: { type: "string", collection: true, writeable: true },
@@ -66,6 +67,7 @@ export class Host extends Base {
66
67
  #deployment;
67
68
  #chassis;
68
69
  #vendor;
70
+ #packaging;
69
71
 
70
72
  static {
71
73
  addType(this);
@@ -142,6 +144,14 @@ export class Host extends Base {
142
144
  return this.#vendor || this.extends.find(e => e.vendor)?.vendor;
143
145
  }
144
146
 
147
+ set packaging(value) {
148
+ this.#packaging = value;
149
+ }
150
+
151
+ get packaging() {
152
+ return this.#packaging || this.extends.find(e => e.packaging)?.packaging;
153
+ }
154
+
145
155
  get isTemplate() {
146
156
  return this.isModel || this.name.match(/services\//); // TODO
147
157
  }
package/src/location.mjs CHANGED
@@ -91,6 +91,10 @@ export class Location extends Owner {
91
91
  properties.replaces = [`mf-location-${this.name}`];
92
92
 
93
93
  const install = "location.install";
94
+
95
+ console.log(
96
+ new URL(install, import.meta.url));
97
+
94
98
  await copyFile(
95
99
  new URL(install, import.meta.url),
96
100
  join(stagingDir, install)
package/types/host.d.mts CHANGED
@@ -86,6 +86,11 @@ export class Host extends Base {
86
86
  collection: boolean;
87
87
  writeable: boolean;
88
88
  };
89
+ packaging: {
90
+ type: string;
91
+ collection: boolean;
92
+ writeable: boolean;
93
+ };
89
94
  priority: {
90
95
  type: string;
91
96
  collection: boolean;
@@ -155,6 +160,8 @@ export class Host extends Base {
155
160
  get chassis(): any;
156
161
  set vendor(value: any);
157
162
  get vendor(): any;
163
+ set packaging(value: any);
164
+ get packaging(): any;
158
165
  get isTemplate(): true | RegExpMatchArray;
159
166
  get isModel(): boolean;
160
167
  get model(): any;