pmcf 4.15.2 → 4.15.3
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 +4 -4
- package/src/service.mjs +14 -0
- package/types/service.d.mts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"content-entry-transform": "^1.6.1",
|
|
57
57
|
"ip-utilties": "^2.0.3",
|
|
58
|
-
"npm-pkgbuild": "^20.2.
|
|
58
|
+
"npm-pkgbuild": "^20.2.4",
|
|
59
59
|
"pacc": "^8.3.0",
|
|
60
|
-
"package-directory": "^8.
|
|
60
|
+
"package-directory": "^8.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/node": "^25.
|
|
63
|
+
"@types/node": "^25.2.0",
|
|
64
64
|
"ava": "^6.4.1",
|
|
65
65
|
"c8": "^10.1.3",
|
|
66
66
|
"documentation": "^14.0.3",
|
package/src/service.mjs
CHANGED
|
@@ -256,6 +256,20 @@ export class Service extends Base {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
async *preparePackages(dir) {
|
|
260
|
+
yield {
|
|
261
|
+
dir,
|
|
262
|
+
sources: this.templateContent(),
|
|
263
|
+
outputs: this.outputs,
|
|
264
|
+
properties: {
|
|
265
|
+
name: `${this.typeName}-${this.location.name}-${this.host.name}`,
|
|
266
|
+
description: `${this.typeName} definitions for ${this.fullName}@${this.host.name}`,
|
|
267
|
+
access: "private",
|
|
268
|
+
dependencies: this.depends
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
259
273
|
dnsRecordsForDomainName(domainName, hasSVRRecords) {
|
|
260
274
|
const records = [];
|
|
261
275
|
if (this.priority >= 390 && this.alias) {
|
package/types/service.d.mts
CHANGED
|
@@ -635,6 +635,17 @@ export class Service extends Base {
|
|
|
635
635
|
get type(): any;
|
|
636
636
|
get types(): Set<any>;
|
|
637
637
|
get systemdService(): any;
|
|
638
|
+
preparePackages(dir: any): AsyncGenerator<{
|
|
639
|
+
dir: any;
|
|
640
|
+
sources: any[];
|
|
641
|
+
outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
|
|
642
|
+
properties: {
|
|
643
|
+
name: string;
|
|
644
|
+
description: string;
|
|
645
|
+
access: string;
|
|
646
|
+
dependencies: any;
|
|
647
|
+
};
|
|
648
|
+
}, void, unknown>;
|
|
638
649
|
dnsRecordsForDomainName(domainName: any, hasSVRRecords: any): {
|
|
639
650
|
type: any;
|
|
640
651
|
key: any;
|