pmcf 6.46.8 → 6.46.10

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": "6.46.8",
3
+ "version": "6.46.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -254,15 +254,6 @@ export class base extends core {
254
254
  ];
255
255
  }
256
256
 
257
- /**
258
- *
259
- * @param {string} dir
260
- * @returns {Object}
261
- */
262
- templateContentAttributes(dir) {
263
- return { dir, pattern: "**/*", permissions: this.content?.permissions };
264
- }
265
-
266
257
  /**
267
258
  *
268
259
  * @returns {AsyncIterable<ContentProvider>}
@@ -274,7 +265,11 @@ export class base extends core {
274
265
  try {
275
266
  if ((await stat(dir)).isDirectory) {
276
267
  yield transform(
277
- new FileContentProvider(this.templateContentAttributes(dir)),
268
+ new FileContentProvider({
269
+ dir,
270
+ pattern: "**/*",
271
+ permissions: this.content.permissions
272
+ }),
278
273
  this.templateTransformers
279
274
  );
280
275
  }
@@ -1,6 +1,5 @@
1
1
  import { duration_attribute_writable } from "pacc";
2
2
  import { addType } from "pmcf";
3
-
4
3
  import { cluster } from "./cluster.mjs";
5
4
 
6
5
  export class keepalived extends cluster {
package/src/network.mjs CHANGED
@@ -4,8 +4,7 @@ import { Owner } from "./owner.mjs";
4
4
  import { networkAttributes, bridges_attribute } from "./common-attributes.mjs";
5
5
  import { Subnet } from "./subnet.mjs";
6
6
 
7
- export class Network extends Owner {
8
- static name = "network";
7
+ export class network extends Owner {
9
8
  static owners = [Owner, "root"];
10
9
  static attributes = {
11
10
  ...networkAttributes,
@@ -802,7 +802,7 @@ export class bind extends CoreService {
802
802
  packageData.sources.push(
803
803
  new FileContentProvider({
804
804
  dir: dir + "/",
805
- permissions: this.content?.permissions
805
+ permissions: this.content.permissions
806
806
  })
807
807
  );
808
808
 
@@ -55,7 +55,7 @@ export class chrony extends CoreService {
55
55
  packageData.sources.push(
56
56
  new FileContentProvider({
57
57
  dir: dir + "/",
58
- permissions: this.content?.permissions
58
+ permissions: this.content.permissions
59
59
  })
60
60
  );
61
61
 
@@ -194,7 +194,7 @@ export class kea extends CoreService {
194
194
  packageData.sources.push(
195
195
  new FileContentProvider({
196
196
  dir: dir + "/",
197
- permissions: this.content?.permissions
197
+ permissions: this.content.permissions
198
198
  })
199
199
  );
200
200
 
package/src/subnet.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "ip-utilties";
7
7
  import { string_attribute, name_attribute, integer_attribute } from "pacc";
8
8
  import { networks_attribute } from "./common-attributes.mjs";
9
- import { addType, Network, core } from "pmcf";
9
+ import { addType, network, core } from "pmcf";
10
10
 
11
11
  export class Subnet extends core {
12
12
  static name = "subnet";
@@ -47,7 +47,7 @@ export class Subnet extends core {
47
47
 
48
48
  set owner(value) {
49
49
  super.owner = value;
50
- if (value instanceof Network) {
50
+ if (value instanceof network) {
51
51
  this.networks.add(value);
52
52
  }
53
53
  }