@bprotsyk/aso-core 2.0.31 → 2.0.32

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.
@@ -3,6 +3,12 @@ export declare let IP: string;
3
3
  export declare let PASSWORD: string;
4
4
  export declare let HOST: string;
5
5
  export declare let PORT: number;
6
+ interface ISFTP {
7
+ host: string;
8
+ port: number;
9
+ username: string;
10
+ password: string;
11
+ }
6
12
  export declare class ServerUtil {
7
13
  DOMAIN_HOME: string;
8
14
  ssh?: NodeSSH;
@@ -23,6 +29,7 @@ export declare class ServerUtil {
23
29
  setupCertbot(): Promise<boolean>;
24
30
  setupSSL(email: string, host: string): Promise<void>;
25
31
  refresh(): Promise<boolean>;
26
- uploadDirectoryToSftp(localDir: string, remoteDir: string, sftpConfig: any): Promise<void>;
32
+ uploadDirectoryToSftp(localDir: string, remoteDir: string, sftpConfig: ISFTP): Promise<void>;
27
33
  generateNginxConfig(domain: string, rootPath: string): Promise<string>;
28
34
  }
35
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.0.31",
3
+ "version": "2.0.32",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -18,7 +18,7 @@ interface FileObject {
18
18
  }
19
19
 
20
20
  interface ISFTP{
21
- ip:string ,
21
+ host:string ,
22
22
  port: number,
23
23
  username: string,
24
24
  password: string;
@@ -210,7 +210,7 @@ export class ServerUtil {
210
210
  async uploadDirectoryToSftp(
211
211
  localDir: string,
212
212
  remoteDir: string,
213
- sftpConfig: any
213
+ sftpConfig: ISFTP
214
214
  ) {
215
215
  const sftp = new Client();
216
216