new-native-tools 3.1.11 → 3.1.12

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/index.d.ts CHANGED
@@ -8,15 +8,15 @@ export interface ProfileVersion {
8
8
  error?: string
9
9
  version?: string
10
10
  }
11
- export function checkVersionInAllFolders(dirs: Array<string>): Array<ProfileVersion>
12
- export function generateZipPatch(oldFilePath: string, newFilePath: string): Promise<Array<number>>
13
- export function applyZipPatch(basePath: string, patch: Array<number>, targetPath: string): Promise<void>
14
- export function downloadWithProgress(url: string, callback: (...args: any[]) => any): object
15
- export function exportEntireLeveldb(dbPath: string): Promise<Record<string, any>>
16
- export function importLevelDb(levelDbPath: string, levelDbJsonData: string): Promise<void>
17
- export function proxyCheckHttp(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string, useHttps?: boolean | undefined | null): Promise<string>
18
- export function proxyCheckSocks5H(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise<string>
19
- export function proxyCheckSocks5(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise<string>
11
+ export declare function checkVersionInAllFolders(dirs: Array<string>): Array<ProfileVersion>
12
+ export declare function generateZipPatch(oldFilePath: string, newFilePath: string): Promise<Array<number>>
13
+ export declare function applyZipPatch(basePath: string, patch: Array<number>, targetPath: string): Promise<void>
14
+ export declare function downloadWithProgress(url: string, callback: (...args: any[]) => any): object
15
+ export declare function exportEntireLeveldb(dbPath: string): Promise<Record<string, any>>
16
+ export declare function importLevelDb(levelDbPath: string, levelDbJsonData: string): Promise<void>
17
+ export declare function proxyCheckHttp(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string, useHttps?: boolean | undefined | null): Promise<string>
18
+ export declare function proxyCheckSocks5H(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise<string>
19
+ export declare function proxyCheckSocks5(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise<string>
20
20
  export interface LoginData {
21
21
  username: string
22
22
  password: string
@@ -28,8 +28,8 @@ export interface LoginCreationParams {
28
28
  usernameField: string
29
29
  passwordField: string
30
30
  }
31
- export function sqliteAddLoginPassword(filepath: string, loginParams: LoginCreationParams): Promise<LoginData>
32
- export function createSqliteLoginDatabase(path: string): Promise<boolean>
31
+ export declare function sqliteAddLoginPassword(filepath: string, loginParams: LoginCreationParams): Promise<LoginData>
32
+ export declare function createSqliteLoginDatabase(path: string): Promise<boolean>
33
33
  export interface Cookie {
34
34
  name: string
35
35
  value: string
@@ -39,17 +39,17 @@ export interface Cookie {
39
39
  httpOnly?: boolean
40
40
  secure?: boolean
41
41
  }
42
- export function sqliteGetVersion(filepath: string): Promise<string>
43
- export function sqliteAddCookies(filepath: string, cookies: Array<Cookie>): Promise<void>
44
- export function sqliteGetCookies(filepath: string): Promise<Array<Cookie>>
45
- export function migrateCookiesDown(filepath: string): Promise<void>
46
- export function getSystemInfo(): unknown
47
- export function unzipToFolder(inputZip: string, outputDir: string): Promise<boolean>
48
- export function archivateFolder(outputFile: string, inputDir: string, fileList: Array<string>, excludeFileList?: Array<string> | undefined | null): Promise<boolean>
49
- export function setForegroundByPid(pid: number): boolean | number
50
- export function isProcessRunning(pid: number): boolean
51
- export function killProcessByPid(pid: number): number
52
- export function closeProcessByPid(pid: number): number
53
- export function tileWindowsEvenly(pids: Array<number>): void
54
- export function rustLoggerInit(): void
55
- export function getVersion(): string
42
+ export declare function sqliteGetVersion(filepath: string): Promise<string>
43
+ export declare function sqliteAddCookies(filepath: string, cookies: Array<Cookie>): Promise<void>
44
+ export declare function sqliteGetCookies(filepath: string): Promise<Array<Cookie>>
45
+ export declare function migrateCookiesDown(filepath: string): Promise<void>
46
+ export declare function getSystemInfo(): unknown
47
+ export declare function unzipToFolder(inputZip: string, outputDir: string): Promise<boolean>
48
+ export declare function archivateFolder(outputFile: string, inputDir: string, fileList: Array<string>, excludeFileList?: Array<string> | undefined | null): Promise<boolean>
49
+ export declare function setForegroundByPid(pid: number): boolean | number
50
+ export declare function isProcessRunning(pid: number): boolean
51
+ export declare function killProcessByPid(pid: number): number
52
+ export declare function closeProcessByPid(pid: number): number
53
+ export declare function tileWindowsEvenly(pids: Array<number>): void
54
+ export declare function rustLoggerInit(): void
55
+ export declare function getVersion(): string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "new-native-tools",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "napi": {
@@ -41,10 +41,10 @@
41
41
  "version": "napi version"
42
42
  },
43
43
  "optionalDependencies": {
44
- "new-native-tools-win32-x64-msvc": "3.1.11",
45
- "new-native-tools-darwin-x64": "3.1.11",
46
- "new-native-tools-linux-x64-gnu": "3.1.11",
47
- "new-native-tools-darwin-arm64": "3.1.11",
48
- "new-native-tools-win32-ia32-msvc": "3.1.11"
44
+ "new-native-tools-win32-x64-msvc": "3.1.12",
45
+ "new-native-tools-darwin-x64": "3.1.12",
46
+ "new-native-tools-linux-x64-gnu": "3.1.12",
47
+ "new-native-tools-darwin-arm64": "3.1.12",
48
+ "new-native-tools-win32-ia32-msvc": "3.1.12"
49
49
  }
50
50
  }
Binary file
Binary file
Binary file
Binary file
Binary file