Skip to content

Commit 56277e4

Browse files
chore(deps): update napi to v3 (#13852)
1 parent 7a6fd5b commit 56277e4

File tree

7 files changed

+1592
-327
lines changed

7 files changed

+1592
-327
lines changed

Cargo.lock

Lines changed: 59 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ version = "0.0.0"
77
crate-type = ["cdylib"]
88

99
[dependencies]
10-
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
11-
napi = { version = "2.16", default-features = false, features = ["napi4"] }
12-
napi-derive = "2.16"
10+
napi = "3"
11+
napi-derive = "3"
1312
tauri-cli = { path = "../../crates/tauri-cli", default-features = false }
1413
log = "0.4.21"
1514

1615
[build-dependencies]
17-
napi-build = "2.1"
16+
napi-build = "2.2"
1817

1918
[features]
2019
default = ["tauri-cli/default"]

packages/cli/index.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// SPDX-License-Identifier: MIT
44

5-
/* tslint:disable */
6-
/* eslint-disable */
7-
85
/* auto-generated by NAPI-RS */
9-
10-
export declare function run(args: Array<string>, binName: string | undefined | null, callback: (...args: any[]) => any): void
6+
/* eslint-disable */
117
export declare function logError(error: string): void
8+
9+
export declare function run(args: Array<string>, binName: string | undefined | null, callback: ((err: Error | null, arg: boolean) => any)): void

0 commit comments

Comments
 (0)