pmcf 1.48.0 → 1.48.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.
@@ -15,7 +15,10 @@ const host = await root.load(hostName, { type: types.host });
15
15
  await generateNetworkDefs(host, options.output);
16
16
  await generateMachineInfo(host, options.output);
17
17
  await copySshKeys(host, options.output);
18
- await generateKnownHosts(host.owner.hosts(), join(options.output, "root", ".ssh"));
18
+ await generateKnownHosts(
19
+ host.owner.hosts(),
20
+ join(options.output, "root", ".ssh")
21
+ );
19
22
 
20
23
  console.log("provides", "host", ...host.provides);
21
24
  console.log("depends", `location-${host.location.name}`, ...host.depends);
@@ -165,6 +168,7 @@ async function generateKnownHosts(hosts, dir) {
165
168
  for await (const host of hosts) {
166
169
  try {
167
170
  const [alg, key, desc] = (await host.publicKey("ed25519")).split(/\s+/);
171
+
168
172
  keys.push(`${host.domainName} ${alg} ${key}`);
169
173
 
170
174
  for await (const addr of host.networkAddresses()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.48.0",
3
+ "version": "1.48.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { join } from "node:path";
1
3
  import { Base } from "./base.mjs";
2
4
  import { networkProperties } from "./network-support.mjs";
3
5
  import {
package/types/host.d.mts CHANGED
@@ -181,7 +181,7 @@ export class Host extends Base {
181
181
  get rawAddress(): any;
182
182
  get rawAddresses(): any[];
183
183
  get cidrAddresses(): any[];
184
- publicKey(type?: string): Promise<any>;
184
+ publicKey(type?: string): Promise<string>;
185
185
  #private;
186
186
  }
187
187
  export class NetworkInterface extends Base {