pmcf 2.40.1 → 2.40.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 +5 -5
- package/src/services/bind.mjs +6 -4
- package/types/services/bind.d.mts +3 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
},
|
|
12
12
|
"description": "Poor mans configuration management",
|
|
13
13
|
"keywords": [
|
|
14
|
+
"bind",
|
|
14
15
|
"config",
|
|
15
16
|
"config management",
|
|
16
|
-
"keepalived",
|
|
17
|
-
"kea",
|
|
18
17
|
"dhcp",
|
|
19
18
|
"dns",
|
|
20
|
-
"
|
|
19
|
+
"kea",
|
|
20
|
+
"keepalived",
|
|
21
21
|
"systemd"
|
|
22
22
|
],
|
|
23
23
|
"contributors": [
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"pkg-dir": "^8.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^22.15.
|
|
53
|
+
"@types/node": "^22.15.3",
|
|
54
54
|
"ava": "^6.2.0",
|
|
55
55
|
"c8": "^10.1.3",
|
|
56
56
|
"documentation": "^14.0.3",
|
package/src/services/bind.mjs
CHANGED
|
@@ -298,7 +298,7 @@ export class BINDService extends ExtraSourceService {
|
|
|
298
298
|
)
|
|
299
299
|
];
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
yield this.generateZoneDefs(sources, packageData);
|
|
302
302
|
|
|
303
303
|
const foreignZonesPackageDir = join(dir, "foreignZones") + "/";
|
|
304
304
|
|
|
@@ -327,9 +327,7 @@ export class BINDService extends ExtraSourceService {
|
|
|
327
327
|
)
|
|
328
328
|
];
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
yield packageData;
|
|
330
|
+
yield this.generateForeignDefs(sources, packageData);
|
|
333
331
|
}
|
|
334
332
|
|
|
335
333
|
async generateForeignDefs(sources, packageData) {
|
|
@@ -354,6 +352,8 @@ export class BINDService extends ExtraSourceService {
|
|
|
354
352
|
}
|
|
355
353
|
|
|
356
354
|
await this.writeZones(packageData, configs);
|
|
355
|
+
|
|
356
|
+
return packageData;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
async generateZoneDefs(sources, packageData) {
|
|
@@ -494,6 +494,8 @@ export class BINDService extends ExtraSourceService {
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
await this.writeZones(packageData, configs);
|
|
497
|
+
|
|
498
|
+
return packageData;
|
|
497
499
|
}
|
|
498
500
|
|
|
499
501
|
foreignDomainZones(host, records) {
|
|
@@ -382,18 +382,9 @@ export class BINDService extends ExtraSourceService {
|
|
|
382
382
|
get exclude(): Set<any>;
|
|
383
383
|
set excludeInterfaceKinds(value: Set<any>);
|
|
384
384
|
get excludeInterfaceKinds(): Set<any>;
|
|
385
|
-
preparePackages(dir: any): AsyncGenerator<
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
outputs: Set<typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").DOCKER>;
|
|
389
|
-
properties: {
|
|
390
|
-
name: string;
|
|
391
|
-
description: string;
|
|
392
|
-
access: string;
|
|
393
|
-
};
|
|
394
|
-
}, void, unknown>;
|
|
395
|
-
generateForeignDefs(sources: any, packageData: any): Promise<void>;
|
|
396
|
-
generateZoneDefs(sources: any, packageData: any): Promise<void>;
|
|
385
|
+
preparePackages(dir: any): AsyncGenerator<any, void, unknown>;
|
|
386
|
+
generateForeignDefs(sources: any, packageData: any): Promise<any>;
|
|
387
|
+
generateZoneDefs(sources: any, packageData: any): Promise<any>;
|
|
397
388
|
foreignDomainZones(host: any, records: any): any;
|
|
398
389
|
get defaultRecords(): {
|
|
399
390
|
type: any;
|
|
@@ -404,4 +395,3 @@ export class BINDService extends ExtraSourceService {
|
|
|
404
395
|
writeZones(packageData: any, configs: any): Promise<void>;
|
|
405
396
|
}
|
|
406
397
|
import { ExtraSourceService } from "pmcf";
|
|
407
|
-
import { FileContentProvider } from "npm-pkgbuild";
|