@zukhruf/tcc 0.8.136 → 0.8.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/tcc",
3
- "version": "0.8.136",
3
+ "version": "0.8.138",
4
4
  "description": "The privacy grants of macOS in TCC's words: the status, request, remedy and System Settings pane of each service, a Full Disk Access preflight, and the client macOS charges. After .NET MAUI Permissions.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,8 +40,9 @@
40
40
  "access": "public"
41
41
  },
42
42
  "devDependencies": {
43
- "@zukhruf/fs": "^0.8.136",
44
- "@zukhruf/launchd": "^0.8.136",
45
- "@zukhruf/testing": "^0.8.136"
43
+ "@zukhruf/fs": "^0.8.138",
44
+ "@zukhruf/launchd": "^0.8.138",
45
+ "@zukhruf/parameterized-test": "^0.8.138",
46
+ "@zukhruf/testing": "^0.8.138"
46
47
  }
47
48
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=request.prompt.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.prompt.spec.d.ts","sourceRoot":"","sources":["../src/request.prompt.spec.ts"],"names":[],"mappings":""}
@@ -1,59 +0,0 @@
1
- import assert from 'node:assert/strict';
2
- import { execFile } from 'node:child_process';
3
- import { describe } from 'node:test';
4
- import { promisify } from 'node:util';
5
- import { waitFor } from '@zukhruf/testing/async';
6
- import { test } from '@zukhruf/testing/node';
7
- import { Accessibility, Automation, Bluetooth, Calendars, Camera, Contacts, FullDiskAccess, InputMonitoring, Microphone, Photos, PhotosAdd, Reminders, ScreenRecording, SpeechRecognition, } from './index.js';
8
- const run = promisify(execFile);
9
- // These tests need a person at the Mac. Each one says the status that it
10
- // needs; `tccutil reset <service> <bundle id of the terminal app>` makes a
11
- // service not determined again.
12
- describe('a request that a person answers', { concurrency: false }, () => {
13
- void test.each([new SpeechRecognition(), new Bluetooth()], (service) => test(`of ${service.constructor.name} shows the prompt, and the answer decides the status`, async (t) => {
14
- // Arrange
15
- assert.equal(service.status(), 'notDetermined', service.name);
16
- // Act
17
- const answered = await service.request({ signal: t.signal });
18
- // Assert
19
- assert.notEqual(answered, 'notDetermined');
20
- assert.equal(answered, service.status());
21
- }));
22
- void test.each([
23
- new Contacts(),
24
- new Calendars(),
25
- new Reminders(),
26
- new Camera(),
27
- new Microphone(),
28
- new Photos(),
29
- new PhotosAdd(),
30
- new Accessibility(),
31
- new ScreenRecording(),
32
- new InputMonitoring(),
33
- new Automation('com.apple.finder'),
34
- ], (service) => test(`of ${service.constructor.name} that is decided shows nothing and keeps its status`, async (t) => {
35
- // Arrange
36
- const before = service.status();
37
- assert.notEqual(before, 'notDetermined', service.name);
38
- // Act
39
- const answered = await service.request({ signal: t.signal });
40
- // Assert
41
- assert.equal(answered, before);
42
- }));
43
- });
44
- describe('the pane of a service', () => {
45
- test('opens System Settings', async (t) => {
46
- // Arrange
47
- await run('/usr/bin/osascript', ['-e', 'quit app "System Settings"']);
48
- await waitFor(async () => {
49
- await assert.rejects(run('/usr/bin/pgrep', ['-x', 'System Settings']));
50
- }, { signal: t.signal, interval: 100 });
51
- // Act
52
- await new FullDiskAccess().openSettings();
53
- // Assert
54
- await waitFor(async () => {
55
- await run('/usr/bin/pgrep', ['-x', 'System Settings']);
56
- }, { signal: t.signal, interval: 100 });
57
- });
58
- });
59
- //# sourceMappingURL=request.prompt.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request.prompt.spec.js","sourceRoot":"","sources":["../src/request.prompt.spec.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MA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