pmcf 4.8.3 → 4.9.0
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 +1 -1
- package/src/host-utils.mjs +5 -3
- package/src/host.mjs +1 -0
- package/types/host.d.mts +1 -2
package/package.json
CHANGED
package/src/host-utils.mjs
CHANGED
|
@@ -21,13 +21,15 @@ export async function generateMachineInfo(host, packageData) {
|
|
|
21
21
|
|
|
22
22
|
export async function generateKnownHosts(hosts, dir) {
|
|
23
23
|
const keys = [];
|
|
24
|
-
for
|
|
24
|
+
for (const host of hosts) {
|
|
25
25
|
try {
|
|
26
26
|
const [alg, key, desc] = (await host.publicKey("ed25519")).split(/\s+/);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
for(const domainName of host.domainNames) {
|
|
29
|
+
keys.push(`${domainName} ${alg} ${key}`);
|
|
30
|
+
}
|
|
29
31
|
|
|
30
|
-
for
|
|
32
|
+
for (const addr of host.networkAddresses(
|
|
31
33
|
na => na.networkInterface.kind !== "loopback"
|
|
32
34
|
)) {
|
|
33
35
|
keys.push(`${addr.address} ${alg} ${key}`);
|
package/src/host.mjs
CHANGED
package/types/host.d.mts
CHANGED
|
@@ -254,7 +254,7 @@ export class Host extends ServiceOwner {
|
|
|
254
254
|
publicKey(type?: string): Promise<string>;
|
|
255
255
|
preparePackages(dir: any): AsyncGenerator<{
|
|
256
256
|
dir: any;
|
|
257
|
-
sources:
|
|
257
|
+
sources: any[];
|
|
258
258
|
outputs: Set<typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
|
|
259
259
|
properties: {
|
|
260
260
|
name: string;
|
|
@@ -269,5 +269,4 @@ export class Host extends ServiceOwner {
|
|
|
269
269
|
}, void, unknown>;
|
|
270
270
|
}
|
|
271
271
|
import { ServiceOwner } from "pmcf";
|
|
272
|
-
import { FileContentProvider } from "npm-pkgbuild";
|
|
273
272
|
import { Base } from "pmcf";
|