fix: update index.js & index.d.ts

This commit is contained in:
DecDuck
2025-05-26 17:20:03 +10:00
parent 072a1584a0
commit 4ac19b8be0
3 changed files with 4 additions and 2 deletions

1
index.d.ts vendored
View File

@ -4,6 +4,7 @@
/* auto-generated by NAPI-RS */
export declare function hasBackendForPath(path: string): boolean
export declare function listFiles(path: string): Array<string>
export declare function callAltThreadFunc(callback: (...args: any[]) => any): void
export declare function generateManifest(dir: string, progress: (...args: any[]) => any, log: (...args: any[]) => any, callback: (...args: any[]) => any): void
export declare function generateRootCa(): Array<string>

View File

@ -310,9 +310,10 @@ if (!nativeBinding) {
throw new Error(`Failed to load native binding`)
}
const { hasBackendForPath, callAltThreadFunc, generateManifest, generateRootCa, generateClientCertificate, verifyClientCertificate, signNonce, verifyNonce } = nativeBinding
const { hasBackendForPath, listFiles, callAltThreadFunc, generateManifest, generateRootCa, generateClientCertificate, verifyClientCertificate, signNonce, verifyNonce } = nativeBinding
module.exports.hasBackendForPath = hasBackendForPath
module.exports.listFiles = listFiles
module.exports.callAltThreadFunc = callAltThreadFunc
module.exports.generateManifest = generateManifest
module.exports.generateRootCa = generateRootCa

View File

@ -1,6 +1,6 @@
{
"name": "@drop-oss/droplet",
"version": "1.1.0",
"version": "1.1.1",
"main": "index.js",
"types": "index.d.ts",
"napi": {