pmcf 1.64.0 → 1.64.2

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.64.0",
3
+ "version": "1.64.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
39
39
  },
40
40
  "dependencies": {
41
- "npm-pkgbuild": "^17.3.1",
41
+ "npm-pkgbuild": "^17.3.2",
42
42
  "pacc": "^3.3.0",
43
43
  "pkg-dir": "^8.0.0"
44
44
  },
package/src/location.mjs CHANGED
@@ -47,7 +47,6 @@ export class Location extends Owner {
47
47
  }
48
48
 
49
49
  async *preparePackages(stagingDir) {
50
-
51
50
  await this.loadPackageHooks(
52
51
  new URL("location.install", import.meta.url).pathname
53
52
  );
@@ -90,12 +89,8 @@ export class Location extends Owner {
90
89
 
91
90
  result.properties.name = `${this.typeName}-${this.name}`;
92
91
 
93
- result.properties.provides = [
94
- "location",
95
- "mf-location",
96
- `mf-location-${this.name}`
97
- ];
98
- result.properties.depends = {"jq":">=1.6"};
92
+ result.properties.provides = ["location", "mf-location"];
93
+ result.properties.depends = { jq: ">=1.6" };
99
94
  result.properties.replaces = [`mf-location-${this.name}`];
100
95
 
101
96
  result.sources.push(
package/src/service.mjs CHANGED
@@ -79,18 +79,15 @@ export class Service extends Base {
79
79
  return this;
80
80
  }
81
81
 
82
- get server()
83
- {
82
+ get server() {
84
83
  return this.owner;
85
84
  }
86
85
 
87
- get domainName()
88
- {
86
+ get domainName() {
89
87
  return this.server.domainName;
90
88
  }
91
89
 
92
- get rawAddress()
93
- {
90
+ get rawAddress() {
94
91
  return this.#ipAddresses?.[0] || this.server.rawAddress;
95
92
  }
96
93
 
@@ -119,7 +116,14 @@ export class Service extends Base {
119
116
  }
120
117
 
121
118
  get priority() {
122
- return this.#priority || this.owner.priority || 99;
119
+ if (this.#priority !== undefined) {
120
+ return this.#priority;
121
+ }
122
+ if (this.owner.priority !== undefined) {
123
+ return this.owner.priority;
124
+ }
125
+
126
+ return 99;
123
127
  }
124
128
 
125
129
  set weight(value) {