pmcf 1.8.0 → 1.8.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/model.mjs +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/model.mjs CHANGED
@@ -79,7 +79,7 @@ export class Base {
79
79
  }
80
80
 
81
81
  get directory() {
82
- return this.#directory || this.name;
82
+ return this.#directory || join(this.owner.directory, this.name);
83
83
  }
84
84
 
85
85
  expand(object) {
@@ -103,7 +103,7 @@ export class Base {
103
103
  error(...args) {
104
104
  console.error(`${this.toString()}:`, ...args);
105
105
  }
106
-
106
+
107
107
  info(...args) {
108
108
  console.info(`${this.toString()}:`, ...args);
109
109
  }
@@ -692,6 +692,8 @@ export class Host extends Base {
692
692
  }
693
693
 
694
694
  async publicKey(type = "ed25519") {
695
+ console.log("DIR", join(this.directory, `ssh_host_${type}_key.pub`));
696
+
695
697
  return readFile(join(this.directory, `ssh_host_${type}_key.pub`), "utf8");
696
698
  }
697
699