pmcf 3.19.7 → 3.19.9
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 +2 -2
- package/src/base.mjs +32 -7
- package/types/base.d.mts +23 -6
- package/types/extra-source-service.d.mts +1 -0
- package/types/owner.d.mts +1 -0
- package/types/services/bind.d.mts +1 -0
- package/types/services/chrony.d.mts +1 -0
- package/types/services/openldap.d.mts +1 -0
- package/types/subnet.d.mts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"ip-utilties": "^2.0.2",
|
|
57
57
|
"npm-pkgbuild": "^19.1.2",
|
|
58
|
-
"pacc": "^6.8.
|
|
58
|
+
"pacc": "^6.8.1",
|
|
59
59
|
"package-directory": "^8.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
package/src/base.mjs
CHANGED
|
@@ -65,6 +65,11 @@ export class Base {
|
|
|
65
65
|
return "**/" + this.typeFileName;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @param {Base} owner
|
|
71
|
+
* @param {object} data
|
|
72
|
+
*/
|
|
68
73
|
constructor(owner, data) {
|
|
69
74
|
this.owner = owner;
|
|
70
75
|
|
|
@@ -413,8 +418,14 @@ export class Base {
|
|
|
413
418
|
return this.findService('type="smtp"');
|
|
414
419
|
}
|
|
415
420
|
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @param {string} expression
|
|
424
|
+
* @param {object} options
|
|
425
|
+
* @returns {any}
|
|
426
|
+
*/
|
|
416
427
|
expression(expression, options) {
|
|
417
|
-
return parse(expression, { root: this, globals, ...options });
|
|
428
|
+
return parse(expression, { root: this, globals: this.globals, ...options });
|
|
418
429
|
}
|
|
419
430
|
|
|
420
431
|
/**
|
|
@@ -495,22 +506,36 @@ export class Base {
|
|
|
495
506
|
return this._properties;
|
|
496
507
|
}
|
|
497
508
|
|
|
509
|
+
get globals() {
|
|
510
|
+
return Object.assign(
|
|
511
|
+
{},
|
|
512
|
+
this.properties,
|
|
513
|
+
this.owner?.properties,
|
|
514
|
+
this.owner?.owner?.properties,
|
|
515
|
+
this.owner?.owner?.owner?.properties,
|
|
516
|
+
globals
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
498
520
|
property(name) {
|
|
499
|
-
return this._properties?.[name] ?? this.owner?.property(name);
|
|
521
|
+
return this._properties?.[name] ?? this.owner?.property(name) ?? this.owner?.owner?.property(name);
|
|
500
522
|
}
|
|
501
523
|
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @param {any} object
|
|
527
|
+
* @returns {any}
|
|
528
|
+
*/
|
|
502
529
|
expand(object) {
|
|
503
530
|
if (this.isTemplate || object instanceof Base) {
|
|
504
531
|
return object;
|
|
505
532
|
}
|
|
506
533
|
|
|
507
|
-
|
|
534
|
+
return expand(object, {
|
|
508
535
|
stopClass: Base,
|
|
509
536
|
root: this,
|
|
510
|
-
globals:
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
return expand(object, context);
|
|
537
|
+
globals: this.globals
|
|
538
|
+
});
|
|
514
539
|
}
|
|
515
540
|
|
|
516
541
|
finalize(action) {
|
package/types/base.d.mts
CHANGED
|
@@ -39,8 +39,13 @@ export class Base {
|
|
|
39
39
|
static get typeDefinition(): typeof Base;
|
|
40
40
|
static get typeFileName(): string;
|
|
41
41
|
static get fileNameGlob(): string;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param {Base} owner
|
|
45
|
+
* @param {object} data
|
|
46
|
+
*/
|
|
47
|
+
constructor(owner: Base, data: object);
|
|
48
|
+
owner: Base;
|
|
44
49
|
description: any;
|
|
45
50
|
name: string;
|
|
46
51
|
_tags: Set<any>;
|
|
@@ -79,19 +84,25 @@ export class Base {
|
|
|
79
84
|
get priority(): any;
|
|
80
85
|
_priority: any;
|
|
81
86
|
get smtp(): any;
|
|
82
|
-
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @param {string} expression
|
|
90
|
+
* @param {object} options
|
|
91
|
+
* @returns {any}
|
|
92
|
+
*/
|
|
93
|
+
expression(expression: string, options: object): any;
|
|
83
94
|
/**
|
|
84
95
|
*
|
|
85
96
|
* @param {any} filter
|
|
86
97
|
* @returns service with the highest priority
|
|
87
98
|
*/
|
|
88
99
|
findService(filter: any): any;
|
|
89
|
-
findServices(filter: any):
|
|
100
|
+
findServices(filter: any): any;
|
|
90
101
|
set directory(directory: any);
|
|
91
102
|
get directory(): any;
|
|
92
103
|
get fullName(): any;
|
|
93
|
-
set packaging(value:
|
|
94
|
-
get packaging():
|
|
104
|
+
set packaging(value: any);
|
|
105
|
+
get packaging(): any;
|
|
95
106
|
get derivedPackaging(): any;
|
|
96
107
|
get outputs(): Set<typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
|
|
97
108
|
preparePackages(stagingDir: any): AsyncGenerator<never, void, unknown>;
|
|
@@ -99,7 +110,13 @@ export class Base {
|
|
|
99
110
|
get tags(): Set<any>;
|
|
100
111
|
get isTemplate(): boolean;
|
|
101
112
|
get properties(): any;
|
|
113
|
+
get globals(): any;
|
|
102
114
|
property(name: any): any;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {any} object
|
|
118
|
+
* @returns {any}
|
|
119
|
+
*/
|
|
103
120
|
expand(object: any): any;
|
|
104
121
|
finalize(action: any): void;
|
|
105
122
|
execFinalize(): void;
|
|
@@ -949,6 +949,7 @@ export class ExtraSourceService extends Service {
|
|
|
949
949
|
get type(): string;
|
|
950
950
|
set source(value: any[]);
|
|
951
951
|
get source(): any[];
|
|
952
|
+
findServices(filter: any): Generator<any, void, any>;
|
|
952
953
|
}
|
|
953
954
|
import { ServiceTypeDefinition } from "./service.mjs";
|
|
954
955
|
import { Service } from "./service.mjs";
|
package/types/owner.d.mts
CHANGED
|
@@ -152,6 +152,7 @@ export class Owner extends Base {
|
|
|
152
152
|
typeList(typeName: any): any;
|
|
153
153
|
addTypeObject(typeName: any, name: any, object: any): void;
|
|
154
154
|
addObject(object: any): void;
|
|
155
|
+
findServices(filter: any): Generator<any, void, any>;
|
|
155
156
|
locationNamed(name: any): any;
|
|
156
157
|
locations(): any;
|
|
157
158
|
hostNamed(name: any): any;
|