kokorobox-native 0.11.0 → 0.11.1
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/index.d.ts +11 -0
- package/index.js +3 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -3,6 +3,13 @@ export interface FirewallRule {
|
|
|
3
3
|
applicationPath: string;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
export interface UwpLoopbackApp {
|
|
7
|
+
sid: string;
|
|
8
|
+
packageName: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
export interface NativeCapabilities {
|
|
7
14
|
applicationInspection: boolean;
|
|
8
15
|
executableDiscovery: boolean;
|
|
@@ -185,6 +192,8 @@ export function setLaunchAtLogin(
|
|
|
185
192
|
enabled: boolean,
|
|
186
193
|
): Promise<LaunchAtLoginStatus>;
|
|
187
194
|
export function getNetworkContext(): Promise<NetworkContext>;
|
|
195
|
+
/** Set DNS on the active macOS network service; [] restores automatic DNS. */
|
|
196
|
+
export function setActiveNetworkDns(servers: string[]): Promise<void>;
|
|
188
197
|
/** Resolve when the native network snapshot changes, or `undefined` on timeout. */
|
|
189
198
|
export function waitForNetworkContextChange(
|
|
190
199
|
previous: NetworkContext,
|
|
@@ -246,3 +255,5 @@ export function scanWindowsApplications(
|
|
|
246
255
|
export function getCurrentUserSid(): string;
|
|
247
256
|
export function isRunningAsAdmin(): boolean;
|
|
248
257
|
export function setupFirewallRules(rules: FirewallRule[]): void;
|
|
258
|
+
export function listUwpLoopbackApps(): UwpLoopbackApp[];
|
|
259
|
+
export function setUwpLoopbackExemption(sid: string, enabled: boolean): void;
|
package/index.js
CHANGED
|
@@ -104,6 +104,7 @@ export const findExecutables = nativeBinding.findExecutables;
|
|
|
104
104
|
export const getLaunchAtLogin = nativeBinding.getLaunchAtLogin;
|
|
105
105
|
export const setLaunchAtLogin = nativeBinding.setLaunchAtLogin;
|
|
106
106
|
export const getNetworkContext = nativeBinding.getNetworkContext;
|
|
107
|
+
export const setActiveNetworkDns = nativeBinding.setActiveNetworkDns;
|
|
107
108
|
export const waitForNetworkContextChange = nativeBinding.waitForNetworkContextChange;
|
|
108
109
|
export const getMacosManagedServiceStatus = nativeBinding.getMacosManagedServiceStatus;
|
|
109
110
|
export const registerMacosManagedService = nativeBinding.registerMacosManagedService;
|
|
@@ -123,6 +124,8 @@ export const scanWindowsApplications = nativeBinding.scanWindowsApplications;
|
|
|
123
124
|
export const getCurrentUserSid = nativeBinding.getCurrentUserSid;
|
|
124
125
|
export const isRunningAsAdmin = nativeBinding.isRunningAsAdmin;
|
|
125
126
|
export const setupFirewallRules = nativeBinding.setupFirewallRules;
|
|
127
|
+
export const listUwpLoopbackApps = nativeBinding.listUwpLoopbackApps;
|
|
128
|
+
export const setUwpLoopbackExemption = nativeBinding.setUwpLoopbackExemption;
|
|
126
129
|
export const ServiceIdentity = nativeBinding.ServiceIdentity;
|
|
127
130
|
export const openServiceIdentity = nativeBinding.openServiceIdentity;
|
|
128
131
|
export const deleteServiceIdentity = nativeBinding.deleteServiceIdentity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kokorobox-native",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
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.11.
|
|
52
|
-
"kokorobox-native-win32-arm64-msvc": "0.11.
|
|
53
|
-
"kokorobox-native-darwin-x64": "0.11.
|
|
54
|
-
"kokorobox-native-darwin-arm64": "0.11.
|
|
55
|
-
"kokorobox-native-linux-x64-gnu": "0.11.
|
|
56
|
-
"kokorobox-native-linux-arm64-gnu": "0.11.
|
|
51
|
+
"kokorobox-native-win32-x64-msvc": "0.11.1",
|
|
52
|
+
"kokorobox-native-win32-arm64-msvc": "0.11.1",
|
|
53
|
+
"kokorobox-native-darwin-x64": "0.11.1",
|
|
54
|
+
"kokorobox-native-darwin-arm64": "0.11.1",
|
|
55
|
+
"kokorobox-native-linux-x64-gnu": "0.11.1",
|
|
56
|
+
"kokorobox-native-linux-arm64-gnu": "0.11.1"
|
|
57
57
|
}
|
|
58
58
|
}
|