active-win
Advanced tools
Comparing version 8.1.1 to 8.2.0
declare namespace activeWindow { | ||
interface Options { | ||
/** | ||
Enable the accessibility permission check. _(macOS)_ | ||
Setting this to `false` will prevent the accessibility permission prompt on macOS versions 10.15 and newer. The `url` property won't be retrieved. | ||
@default true | ||
*/ | ||
readonly accessibilityPermission: boolean; | ||
/** | ||
Enable the screen recording permission check. _(macOS)_ | ||
@@ -5,0 +14,0 @@ |
@@ -24,2 +24,6 @@ 'use strict'; | ||
const args = []; | ||
if (options.accessibilityPermission === false) { | ||
args.push('--no-accessibility-permission'); | ||
} | ||
if (options.screenRecordingPermission === false) { | ||
@@ -26,0 +30,0 @@ args.push('--no-screen-recording-permission'); |
{ | ||
"name": "active-win", | ||
"version": "8.1.1", | ||
"version": "8.2.0", | ||
"description": "Get metadata about the active window (title, id, bounds, owner, URL, etc)", | ||
@@ -16,2 +16,3 @@ "license": "MIT", | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
@@ -18,0 +19,0 @@ "node": ">=14" |
@@ -53,2 +53,9 @@ # active-win | ||
##### accessibilityPermission **(macOS only)** | ||
Type: `boolean`\ | ||
Default: `true` | ||
Enable the accessibility permission check. Setting this to `false` will prevent the accessibility permission prompt on macOS versions 10.15 and newer. The `url` property won't be retrieved. | ||
##### screenRecordingPermission **(macOS only)** | ||
@@ -55,0 +62,0 @@ |
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
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
289975
398
143