kokorobox-native 0.13.0 → 0.14.0

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.
Files changed (3) hide show
  1. package/index.d.ts +5 -0
  2. package/index.js +2 -0
  3. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -23,6 +23,7 @@ export interface NativeCapabilities {
23
23
  windowsUwpLoopback: boolean;
24
24
  coreFilePrivileges: boolean;
25
25
  serviceIdentity: boolean;
26
+ linuxTerminalProxy: boolean;
26
27
  }
27
28
 
28
29
  export interface ExecutableSearchOptions {
@@ -182,6 +183,10 @@ export function fileToStr(
182
183
  ): RuleStringResult;
183
184
  export function getAppName(path: string): string;
184
185
  export function getNativeCapabilities(): NativeCapabilities;
186
+ /** Write KokoroBox's Linux user-session proxy file and update systemd --user over D-Bus. */
187
+ export function setTerminalProxyEnvironment(host: string, port: number, bypass: string[]): Promise<boolean>;
188
+ /** Remove only KokoroBox's Linux user-session proxy file and clear its session variables. */
189
+ export function clearTerminalProxyEnvironment(): Promise<boolean | null>;
185
190
  /** Resolve the executable shipped beside the current platform binding. */
186
191
  export function getTrafficPresenterPath(): string;
187
192
  export function findExecutables(options: ExecutableSearchOptions): Promise<ExecutableCandidate[]>;
package/index.js CHANGED
@@ -100,6 +100,8 @@ export const fileToDataUrl = nativeBinding.fileToDataUrl;
100
100
  export const fileToStr = nativeBinding.fileToStr;
101
101
  export const getAppName = nativeBinding.getAppName;
102
102
  export const getNativeCapabilities = nativeBinding.getNativeCapabilities;
103
+ export const setTerminalProxyEnvironment = nativeBinding.setTerminalProxyEnvironment;
104
+ export const clearTerminalProxyEnvironment = nativeBinding.clearTerminalProxyEnvironment;
103
105
  export const findExecutables = nativeBinding.findExecutables;
104
106
  export const getLaunchAtLogin = nativeBinding.getLaunchAtLogin;
105
107
  export const setLaunchAtLogin = nativeBinding.setLaunchAtLogin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kokorobox-native",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "KokoroBox native bridge",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -48,11 +48,11 @@
48
48
  "access": "public"
49
49
  },
50
50
  "optionalDependencies": {
51
- "kokorobox-native-win32-x64-msvc": "0.13.0",
52
- "kokorobox-native-win32-arm64-msvc": "0.13.0",
53
- "kokorobox-native-darwin-x64": "0.13.0",
54
- "kokorobox-native-darwin-arm64": "0.13.0",
55
- "kokorobox-native-linux-x64-gnu": "0.13.0",
56
- "kokorobox-native-linux-arm64-gnu": "0.13.0"
51
+ "kokorobox-native-win32-x64-msvc": "0.14.0",
52
+ "kokorobox-native-win32-arm64-msvc": "0.14.0",
53
+ "kokorobox-native-darwin-x64": "0.14.0",
54
+ "kokorobox-native-darwin-arm64": "0.14.0",
55
+ "kokorobox-native-linux-x64-gnu": "0.14.0",
56
+ "kokorobox-native-linux-arm64-gnu": "0.14.0"
57
57
  }
58
58
  }