new-native-tools 3.1.34 → 3.1.35
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 +5 -3
- package/index.js +2 -2
- package/package.json +6 -6
- package/tools.darwin-arm64.node +0 -0
- package/tools.darwin-x64.node +0 -0
- package/tools.linux-x64-gnu.node +0 -0
- package/tools.win32-ia32-msvc.node +0 -0
- package/tools.win32-x64-msvc.node +0 -0
package/index.d.ts
CHANGED
|
@@ -22,7 +22,11 @@ export declare function applyZipPatch(basePath: string, patch: Array<number>, ta
|
|
|
22
22
|
* created by generate_zip_patch_file, but leaves other files untouched for safety.
|
|
23
23
|
*/
|
|
24
24
|
export declare function applyZipPatchFile(basePath: string, patchFilePath: string, targetPath: string): Promise<void>
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Downloads a file directly to disk without loading it into memory.
|
|
27
|
+
* This is the recommended method for large files (>100MB) to avoid OOM.
|
|
28
|
+
*/
|
|
29
|
+
export declare function downloadToFileWithProgress(url: string, targetPath: string, callback: (...args: any[]) => any): object
|
|
26
30
|
export declare function exportEntireLeveldb(dbPath: string): Promise<Record<string, any>>
|
|
27
31
|
export declare function importLevelDb(levelDbPath: string, levelDbJsonData: string): Promise<void>
|
|
28
32
|
export declare function proxyCheckHttp(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string, useHttps?: boolean | undefined | null): Promise<string>
|
|
@@ -52,8 +56,6 @@ export interface Cookie {
|
|
|
52
56
|
httpOnly?: boolean
|
|
53
57
|
secure?: boolean
|
|
54
58
|
sameSite?: string
|
|
55
|
-
sourceScheme?: number
|
|
56
|
-
sourcePort?: number
|
|
57
59
|
}
|
|
58
60
|
export declare function sqliteGetVersion(filepath: string): Promise<string>
|
|
59
61
|
export declare function sqliteAddCookies(filepath: string, cookies: Array<Cookie>): Promise<void>
|
package/index.js
CHANGED
|
@@ -310,14 +310,14 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { checkVersionInAllFolders, generateZipPatch, generateZipPatchFile, applyZipPatch, applyZipPatchFile,
|
|
313
|
+
const { checkVersionInAllFolders, generateZipPatch, generateZipPatchFile, applyZipPatch, applyZipPatchFile, downloadToFileWithProgress, exportEntireLeveldb, importLevelDb, proxyCheckHttp, proxyCheckSocks5H, proxyCheckSocks5, sqliteAddLoginPassword, createSqliteLoginDatabase, sqliteGetVersion, sqliteAddCookies, sqliteGetCookies, migrateCookies, getSystemInfo, unzipToFolder, archivateFolder, validateArchive, setForegroundByPid, isProcessRunning, killProcessByPid, closeProcessByPid, tileWindowsEvenly, rustLoggerInit, getVersion } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.checkVersionInAllFolders = checkVersionInAllFolders
|
|
316
316
|
module.exports.generateZipPatch = generateZipPatch
|
|
317
317
|
module.exports.generateZipPatchFile = generateZipPatchFile
|
|
318
318
|
module.exports.applyZipPatch = applyZipPatch
|
|
319
319
|
module.exports.applyZipPatchFile = applyZipPatchFile
|
|
320
|
-
module.exports.
|
|
320
|
+
module.exports.downloadToFileWithProgress = downloadToFileWithProgress
|
|
321
321
|
module.exports.exportEntireLeveldb = exportEntireLeveldb
|
|
322
322
|
module.exports.importLevelDb = importLevelDb
|
|
323
323
|
module.exports.proxyCheckHttp = proxyCheckHttp
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "new-native-tools",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.35",
|
|
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.
|
|
45
|
-
"new-native-tools-darwin-x64": "3.1.
|
|
46
|
-
"new-native-tools-linux-x64-gnu": "3.1.
|
|
47
|
-
"new-native-tools-darwin-arm64": "3.1.
|
|
48
|
-
"new-native-tools-win32-ia32-msvc": "3.1.
|
|
44
|
+
"new-native-tools-win32-x64-msvc": "3.1.35",
|
|
45
|
+
"new-native-tools-darwin-x64": "3.1.35",
|
|
46
|
+
"new-native-tools-linux-x64-gnu": "3.1.35",
|
|
47
|
+
"new-native-tools-darwin-arm64": "3.1.35",
|
|
48
|
+
"new-native-tools-win32-ia32-msvc": "3.1.35"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/tools.darwin-arm64.node
CHANGED
|
Binary file
|
package/tools.darwin-x64.node
CHANGED
|
Binary file
|
package/tools.linux-x64-gnu.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|