ramm 0.0.9 → 0.0.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/dist/ramm.js CHANGED
@@ -271,11 +271,11 @@ var writeIfNew = async (rawFilePath, str) => {
271
271
  };
272
272
  // src/ssh.ts
273
273
  import { debug } from "console";
274
- var addKeyToHostConfig = async (address, pathToKey) => {
274
+ var addKeyToHostConfig = async (pathToHost, address, pathToKey) => {
275
275
  const text = `Host ${address}
276
276
  IdentityFile ${pathToKey}
277
277
  `;
278
- await writeIfNew(pathToKey, text);
278
+ await writeIfNew(pathToHost, text);
279
279
  };
280
280
  var getServerFingerprintBySsh = async (context) => {
281
281
  const { output } = await execBySsh('ssh-keyscan -t ed25519 localhost | grep -v "^#"', context);
@@ -1,4 +1,4 @@
1
1
  import type { Context } from "./context.ts";
2
- export declare const addKeyToHostConfig: (address: string, pathToKey: string) => Promise<void>;
2
+ export declare const addKeyToHostConfig: (pathToHost: string, address: string, pathToKey: string) => Promise<void>;
3
3
  export declare const getServerFingerprintBySsh: (context: Context) => Promise<string>;
4
4
  export declare const createAndAddSshKey: (pathToKey: string, comment: string, context: Context) => Promise<void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ramm",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "scripts": {
6
6
  "build": "bun build ./src/ramm.ts --target bun --outdir ./dist && cp ./src/bun.sh ./dist/bun.sh && bun run types",
7
7
  "types": "tsc --project tsconfig.types.json"