pmcf 6.72.2 → 6.72.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.72.2",
3
+ "version": "6.72.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -28,6 +28,7 @@ import {
28
28
  aliases_attribute,
29
29
  SOURCES_THIS_EXTENDS
30
30
  } from "./common-attributes.mjs";
31
+ import { DEFAULT_FILENAME_PATTERN } from "./constants.mjs";
31
32
 
32
33
  /**
33
34
  *
@@ -113,11 +114,11 @@ export class base extends core {
113
114
  get isHost() {
114
115
  return false;
115
116
  }
116
-
117
+
117
118
  get isCluster() {
118
119
  return false;
119
120
  }
120
-
121
+
121
122
  get isNetwork() {
122
123
  return false;
123
124
  }
@@ -274,7 +275,7 @@ export class base extends core {
274
275
  case "object":
275
276
  pd.sources.push(
276
277
  new FileContentProvider({
277
- pattern: ["**/*"],
278
+ pattern: DEFAULT_FILENAME_PATTERN,
278
279
  permissions: content.permissions,
279
280
  ...options
280
281
  })
@@ -323,7 +324,7 @@ export class base extends core {
323
324
  yield transform(
324
325
  new FileContentProvider({
325
326
  dir,
326
- pattern: "**/*",
327
+ pattern: DEFAULT_FILENAME_PATTERN,
327
328
  permissions: content.permissions
328
329
  }),
329
330
  this.templateTransformers
package/src/constants.mjs CHANGED
@@ -9,4 +9,8 @@ export const FAMILY_DNS = "dns";
9
9
  export const FAMILY_IPV4_IPV6 = new Set([FAMILY_IPV4, FAMILY_IPV6]);
10
10
  export const FAMILY_DNS_IPV4_IPV6 = new Set([FAMILY_DNS, FAMILY_IPV4, FAMILY_IPV6]);
11
11
 
12
- export const FAMILY_UNIX_IPV4_IPV6 = new Set([FAMILY_UNIX, FAMILY_IPV4, FAMILY_IPV6]);
12
+ export const FAMILY_UNIX_IPV4_IPV6 = new Set([FAMILY_UNIX, FAMILY_IPV4, FAMILY_IPV6]);
13
+
14
+
15
+ export const DEFAULT_FILENAME_PATTERN = ["**/*", "**/.*"];
16
+
package/src/host.mjs CHANGED
@@ -22,6 +22,7 @@ import { ServiceOwner } from "./service-owner.mjs";
22
22
  import { addHook } from "./hooks.mjs";
23
23
  import { domainFromDominName, domainName, writeLines } from "./utils.mjs";
24
24
  import { generateKnownHosts } from "./host-utils.mjs";
25
+ import { DEFAULT_FILENAME_PATTERN } from "./constants.mjs";
25
26
 
26
27
  export class host extends ServiceOwner {
27
28
  static priority = 1.9;
@@ -100,8 +101,7 @@ export class host extends ServiceOwner {
100
101
 
101
102
  _networkInterfaces = new Map();
102
103
 
103
- get isHost()
104
- {
104
+ get isHost() {
105
105
  return true;
106
106
  }
107
107
 
@@ -283,7 +283,7 @@ export class host extends ServiceOwner {
283
283
  async *preparePackages(dir) {
284
284
  const packageData = await this.preparePackage({
285
285
  dir,
286
- pattern: ["**/*", "**/.ssh/*"]
286
+ pattern: [...DEFAULT_FILENAME_PATTERN, "**/.ssh/*"]
287
287
  });
288
288
 
289
289
  for (const ni of this.networkInterfaces.values()) {