diff --git a/apps/desktop/desktop_native/napi/index.d.ts b/apps/desktop/desktop_native/napi/index.d.ts index fe4ab59fd8..903f6ae94a 100644 --- a/apps/desktop/desktop_native/napi/index.d.ts +++ b/apps/desktop/desktop_native/napi/index.d.ts @@ -3,7 +3,7 @@ /* auto-generated by NAPI-RS */ -export namespace passwords { +export declare namespace passwords { /** Fetch the stored password from the keychain. */ export function getPassword(service: string, account: string): Promise /** Fetch the stored password from the keychain that was stored with Keytar. */ @@ -14,7 +14,7 @@ export namespace passwords { export function deletePassword(service: string, account: string): Promise export function isAvailable(): Promise } -export namespace biometrics { +export declare namespace biometrics { export function prompt(hwnd: Buffer, message: string): Promise export function available(): Promise export function setBiometricSecret(service: string, account: string, secret: string, keyMaterial: KeyMaterial | undefined | null, ivB64: string): Promise @@ -38,16 +38,16 @@ export namespace biometrics { ivB64: string } } -export namespace clipboards { +export declare namespace clipboards { export function read(): Promise export function write(text: string, password: boolean): Promise } -export namespace processisolations { +export declare namespace processisolations { export function disableCoredumps(): Promise export function isCoreDumpingDisabled(): Promise export function disableMemoryAccess(): Promise } -export namespace powermonitors { +export declare namespace powermonitors { export function onLock(callback: (err: Error | null, ) => any): Promise export function isLockMonitorAvailable(): Promise } diff --git a/apps/desktop/desktop_native/napi/package.json b/apps/desktop/desktop_native/napi/package.json index 9f098c4965..d557ccfd25 100644 --- a/apps/desktop/desktop_native/napi/package.json +++ b/apps/desktop/desktop_native/napi/package.json @@ -9,7 +9,7 @@ "author": "", "license": "GPL-3.0", "devDependencies": { - "@napi-rs/cli": "2.16.2" + "@napi-rs/cli": "2.18.4" }, "napi": { "name": "desktop_napi", diff --git a/apps/desktop/src/package-lock.json b/apps/desktop/src/package-lock.json index 3bd771c66a..acd5f97a3f 100644 --- a/apps/desktop/src/package-lock.json +++ b/apps/desktop/src/package-lock.json @@ -21,6 +21,13 @@ "@napi-rs/cli": "2.16.2" } }, + "../desktop_native/napi": { + "version": "0.1.0", + "license": "GPL-3.0", + "devDependencies": { + "@napi-rs/cli": "2.18.4" + } + }, "node_modules/@bitwarden/desktop-napi": { "resolved": "../desktop_native/napi", "link": true diff --git a/package-lock.json b/package-lock.json index 983d4c57fc..371a05dbab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -242,7 +242,7 @@ "version": "0.1.0", "license": "GPL-3.0", "devDependencies": { - "@napi-rs/cli": "2.16.2" + "@napi-rs/cli": "2.18.4" } }, "apps/web": { @@ -7051,9 +7051,9 @@ } }, "node_modules/@napi-rs/cli": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.16.2.tgz", - "integrity": "sha512-U2aZfnr0s9KkXpZlYC0l5WxWCXL7vJUNpCnWMwq3T9GG9rhYAAUM9CTZsi1Z+0iR2LcHbfq9EfMgoqnuTyUjfg==", + "version": "2.18.4", + "resolved": "https://registry.npmjs.org/@napi-rs/cli/-/cli-2.18.4.tgz", + "integrity": "sha512-SgJeA4df9DE2iAEpr3M2H0OKl/yjtg1BnRI5/JyowS71tUWhrfSu2LT0V3vlHET+g1hBVlrO60PmEXwUEKp8Mg==", "dev": true, "license": "MIT", "bin": {