pmcf 4.5.3 → 4.5.4
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
|
@@ -98,6 +98,25 @@ export class OpenLDAPService extends Service {
|
|
|
98
98
|
this._uri = value;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
templateContent(entryProperties, directoryProperties) {
|
|
102
|
+
const transformers = [
|
|
103
|
+
createExpressionTransformer(e => true, {
|
|
104
|
+
base: this.baseDN,
|
|
105
|
+
uri: this.uri
|
|
106
|
+
})
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
return [...this.allExtends(), this].map(e => {
|
|
110
|
+
const dir = join(e.directory, "content") + "/";
|
|
111
|
+
console.log("DIR", dir);
|
|
112
|
+
|
|
113
|
+
return transform(
|
|
114
|
+
new FileContentProvider(dir, entryProperties, directoryProperties),
|
|
115
|
+
transformers
|
|
116
|
+
);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
101
120
|
async *preparePackages(dir) {
|
|
102
121
|
const host = this.host;
|
|
103
122
|
const name = host.name;
|
|
@@ -114,33 +133,11 @@ export class OpenLDAPService extends Service {
|
|
|
114
133
|
owner,
|
|
115
134
|
group
|
|
116
135
|
};
|
|
117
|
-
const transformers = [
|
|
118
|
-
createExpressionTransformer(e => true, {
|
|
119
|
-
base: this.baseDN,
|
|
120
|
-
uri: this.uri
|
|
121
|
-
})
|
|
122
|
-
];
|
|
123
|
-
|
|
124
|
-
const templateDirs = [];
|
|
125
|
-
for (const e of [...this.allExtends(), this]) {
|
|
126
|
-
const dir = join(e.directory, "content") + "/";
|
|
127
|
-
console.log("DIR", dir);
|
|
128
|
-
templateDirs.push(
|
|
129
|
-
transform(
|
|
130
|
-
new FileContentProvider(
|
|
131
|
-
{ transformers, dir },
|
|
132
|
-
entryProperties,
|
|
133
|
-
directoryProperties
|
|
134
|
-
),
|
|
135
|
-
transformers
|
|
136
|
-
)
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
136
|
|
|
140
137
|
const packageData = {
|
|
141
138
|
dir,
|
|
142
139
|
sources: [
|
|
143
|
-
...
|
|
140
|
+
...this.templateContent(entryProperties, directoryProperties),
|
|
144
141
|
new FileContentProvider(dir + "/", entryProperties, directoryProperties)
|
|
145
142
|
],
|
|
146
143
|
outputs: this.outputs,
|
|
@@ -874,6 +874,7 @@ export class OpenLDAPService extends Service {
|
|
|
874
874
|
set uri(value: any);
|
|
875
875
|
get uri(): any;
|
|
876
876
|
_uri: any;
|
|
877
|
+
templateContent(entryProperties: any, directoryProperties: any): any[];
|
|
877
878
|
preparePackages(dir: any): AsyncGenerator<{
|
|
878
879
|
dir: any;
|
|
879
880
|
sources: any[];
|