@tauri-apps/cli
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.4
# Changelog | ||
## \[1.0.0-rc.4] | ||
- Change the `run` function to take a callback and run asynchronously instead of blocking the event loop. | ||
- [cd9a20b9](https://www.github.com/tauri-apps/tauri/commit/cd9a20b9ab013759b4bdb742f358988022450795) refactor(cli.js): run on separate thread ([#3436](https://www.github.com/tauri-apps/tauri/pull/3436)) on 2022-02-13 | ||
- Improve error message when the dev runner command fails. | ||
- [759d1afb](https://www.github.com/tauri-apps/tauri/commit/759d1afb86f3657f6071a2ae39c9be21e20ed22c) feat(cli): improve error message when dev runner command fails ([#3447](https://www.github.com/tauri-apps/tauri/pull/3447)) on 2022-02-13 | ||
- Show full error message from `cli.rs` instead of just the outermost underlying error message. | ||
- [63826010](https://www.github.com/tauri-apps/tauri/commit/63826010d1f38544f36afd3aac67c45d4608d15b) feat(cli.js): show full error message ([#3442](https://www.github.com/tauri-apps/tauri/pull/3442)) on 2022-02-13 | ||
- Increase `tauri.conf.json` directory lookup depth to `3` and allow changing it with the `TAURI_PATH_DEPTH` environment variable. | ||
- [c6031c70](https://www.github.com/tauri-apps/tauri/commit/c6031c7070c6bb7539bbfdfe42cb73012829c910) feat(cli): increase lookup depth, add env var option ([#3451](https://www.github.com/tauri-apps/tauri/pull/3451)) on 2022-02-13 | ||
- Added `tauri-build`, `tao` and `wry` version to the `info` command output. | ||
- [16f1173f](https://www.github.com/tauri-apps/tauri/commit/16f1173f456b1db543d0160df2c9828708bfc68a) feat(cli): add tao and wry version to the `info` output ([#3443](https://www.github.com/tauri-apps/tauri/pull/3443)) on 2022-02-13 | ||
## \[1.0.0-rc.3] | ||
- Change default value for the `freezePrototype` configuration to `false`. | ||
- Bumped due to a bump in cli.rs. | ||
- [3a4c0160](https://www.github.com/tauri-apps/tauri/commit/3a4c01606184be762adee055ddac803de0d28527) fix(core): change default `freezePrototype` to false, closes [#3416](https://www.github.com/tauri-apps/tauri/pull/3416) [#3406](https://www.github.com/tauri-apps/tauri/pull/3406) ([#3423](https://www.github.com/tauri-apps/tauri/pull/3423)) on 2022-02-12 | ||
## \[1.0.0-rc.2] | ||
@@ -4,0 +23,0 @@ |
@@ -12,2 +12,2 @@ /* tslint:disable */ | ||
} | ||
export function run(args: Array<string>, binName?: string | undefined | null): void | ||
export function run(args: Array<string>, binName: string | undefined | null, callback: (...args: any[]) => any): void |
{ | ||
"name": "@tauri-apps/cli", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0-rc.4", | ||
"description": "Command line interface for building Tauri apps", | ||
@@ -24,4 +24,4 @@ "funding": { | ||
}, | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"main": "main.js", | ||
"types": "main.d.ts", | ||
"napi": { | ||
@@ -65,11 +65,11 @@ "name": "cli", | ||
"optionalDependencies": { | ||
"@tauri-apps/cli-win32-x64-msvc": "1.0.0-rc.2", | ||
"@tauri-apps/cli-darwin-x64": "1.0.0-rc.2", | ||
"@tauri-apps/cli-linux-x64-gnu": "1.0.0-rc.2", | ||
"@tauri-apps/cli-darwin-arm64": "1.0.0-rc.2", | ||
"@tauri-apps/cli-linux-arm64-gnu": "1.0.0-rc.2", | ||
"@tauri-apps/cli-linux-arm64-musl": "1.0.0-rc.2", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "1.0.0-rc.2", | ||
"@tauri-apps/cli-linux-x64-musl": "1.0.0-rc.2" | ||
"@tauri-apps/cli-win32-x64-msvc": "1.0.0-rc.4", | ||
"@tauri-apps/cli-darwin-x64": "1.0.0-rc.4", | ||
"@tauri-apps/cli-linux-x64-gnu": "1.0.0-rc.4", | ||
"@tauri-apps/cli-darwin-arm64": "1.0.0-rc.4", | ||
"@tauri-apps/cli-linux-arm64-gnu": "1.0.0-rc.4", | ||
"@tauri-apps/cli-linux-arm64-musl": "1.0.0-rc.4", | ||
"@tauri-apps/cli-linux-arm-gnueabihf": "1.0.0-rc.4", | ||
"@tauri-apps/cli-linux-x64-musl": "1.0.0-rc.4" | ||
} | ||
} |
11
tauri.js
#!/usr/bin/env node | ||
const cli = require('./index') | ||
const cli = require('./main') | ||
const path = require('path') | ||
@@ -46,6 +46,5 @@ | ||
try { | ||
cli.run(arguments, binName) | ||
} catch (e) { | ||
console.log(`Error running CLI: ${e.message}`) | ||
} | ||
cli.run(arguments, binName).catch((err) => { | ||
console.log(`Error running CLI: ${err.message}`) | ||
process.exit(1) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4
0
33354
14
1
315