kokorobox-native 0.5.2 → 0.5.4
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/README.md +7 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ The full TypeScript declarations are shipped in
|
|
|
40
40
|
| Rules | `fileToStr` |
|
|
41
41
|
| Platform | `getLaunchAtLogin`, `setLaunchAtLogin`, `getNetworkContext` |
|
|
42
42
|
| Core permissions | `getCorePrivilegeStatus`, `setCorePrivileges` |
|
|
43
|
-
| Windows | `getCurrentUserSid`, `isRunningAsAdmin`, `runElevated`, `setupFirewallRules` |
|
|
43
|
+
| Windows | `getCurrentUserSid`, `isRunningAsAdmin`, `runElevated`, `launchElevated`, `launchUnelevated`, `setupFirewallRules` |
|
|
44
44
|
|
|
45
45
|
`inspectApplication` validates the input for the current platform and resolves
|
|
46
46
|
it to a routing identifier: an executable path on Windows and Linux, or a code
|
|
@@ -72,6 +72,12 @@ Windows account, elevation, Firewall, and application-scan APIs report an
|
|
|
72
72
|
`UNSUPPORTED_PLATFORM:` error on other operating systems instead of behaving as
|
|
73
73
|
no-ops.
|
|
74
74
|
|
|
75
|
+
`launchElevated(command, args)` and `launchUnelevated(command, args)` start a
|
|
76
|
+
new Windows process without waiting for it. The first presents the standard UAC
|
|
77
|
+
prompt; the second uses the interactive desktop shell token so an elevated app
|
|
78
|
+
can restart at normal user integrity. They do not configure persistent
|
|
79
|
+
elevation.
|
|
80
|
+
|
|
75
81
|
## Contributing
|
|
76
82
|
|
|
77
83
|
The source is a two-crate Rust workspace. The root crate implements native
|
package/index.d.ts
CHANGED
|
@@ -129,4 +129,6 @@ export function scanWindowsApplications(
|
|
|
129
129
|
export function getCurrentUserSid(): string;
|
|
130
130
|
export function isRunningAsAdmin(): boolean;
|
|
131
131
|
export function runElevated(command: string, args?: string[]): number;
|
|
132
|
+
export function launchElevated(command: string, args?: string[]): void;
|
|
133
|
+
export function launchUnelevated(command: string, args?: string[]): void;
|
|
132
134
|
export function setupFirewallRules(rules: FirewallRule[]): void;
|
package/index.js
CHANGED
|
@@ -91,4 +91,6 @@ export const scanWindowsApplications = nativeBinding.scanWindowsApplications;
|
|
|
91
91
|
export const getCurrentUserSid = nativeBinding.getCurrentUserSid;
|
|
92
92
|
export const isRunningAsAdmin = nativeBinding.isRunningAsAdmin;
|
|
93
93
|
export const runElevated = nativeBinding.runElevated;
|
|
94
|
+
export const launchElevated = nativeBinding.launchElevated;
|
|
95
|
+
export const launchUnelevated = nativeBinding.launchUnelevated;
|
|
94
96
|
export const setupFirewallRules = nativeBinding.setupFirewallRules;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kokorobox-native",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "KokoroBox native bridge",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"kokorobox-native-win32-x64-msvc": "0.5.
|
|
51
|
-
"kokorobox-native-win32-arm64-msvc": "0.5.
|
|
52
|
-
"kokorobox-native-darwin-x64": "0.5.
|
|
53
|
-
"kokorobox-native-darwin-arm64": "0.5.
|
|
54
|
-
"kokorobox-native-linux-x64-gnu": "0.5.
|
|
55
|
-
"kokorobox-native-linux-arm64-gnu": "0.5.
|
|
50
|
+
"kokorobox-native-win32-x64-msvc": "0.5.4",
|
|
51
|
+
"kokorobox-native-win32-arm64-msvc": "0.5.4",
|
|
52
|
+
"kokorobox-native-darwin-x64": "0.5.4",
|
|
53
|
+
"kokorobox-native-darwin-arm64": "0.5.4",
|
|
54
|
+
"kokorobox-native-linux-x64-gnu": "0.5.4",
|
|
55
|
+
"kokorobox-native-linux-arm64-gnu": "0.5.4"
|
|
56
56
|
}
|
|
57
57
|
}
|