pmcf 4.5.0 → 4.5.1

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": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -10,7 +10,7 @@ import { addServiceType } from "pmcf";
10
10
  import { ServiceTypeDefinition, Service } from "../service.mjs";
11
11
  import { writeLines, filterConfigurable } from "../utils.mjs";
12
12
  import { addHook } from "../hooks.mjs";
13
- import { createExpressionTransformer } from "content-entry-transform";
13
+ import { createExpressionTransformer, transform } from "content-entry-transform";
14
14
 
15
15
  const OpenLDAPServiceTypeDefinition = {
16
16
  name: "openldap",
@@ -114,19 +114,18 @@ export class OpenLDAPService extends Service {
114
114
  group
115
115
  };
116
116
  const transformers = [
117
- createExpressionTransformer(e => true, { base: "ABC123" })
117
+ createExpressionTransformer(e => true, { base: this.baseDN })
118
118
  ];
119
119
 
120
120
  const templateDirs = [];
121
121
  for (const e of [...this.allExtends(), this]) {
122
122
  const base = join(e.directory, "content") + "/";
123
- console.log("TEMPLATE", e.fullName, base);
124
123
  templateDirs.push(
125
- new FileContentProvider(
124
+ transform(new FileContentProvider(
126
125
  { transformers, base },
127
126
  entryProperties,
128
127
  directoryProperties
129
- )
128
+ ), transformers)
130
129
  );
131
130
  }
132
131
 
@@ -877,7 +877,7 @@ export class OpenLDAPService extends Service {
877
877
  _uri: any;
878
878
  preparePackages(dir: any): AsyncGenerator<{
879
879
  dir: any;
880
- sources: FileContentProvider[];
880
+ sources: any[];
881
881
  outputs: Set<typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
882
882
  properties: {
883
883
  name: string;
@@ -889,4 +889,3 @@ export class OpenLDAPService extends Service {
889
889
  }, void, unknown>;
890
890
  }
891
891
  import { Service } from "../service.mjs";
892
- import { FileContentProvider } from "npm-pkgbuild";