recappi 0.1.26 → 0.1.27
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/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -20568,7 +20568,11 @@ function normalizeSidecarMicrophones(microphones) {
|
|
|
20568
20568
|
}));
|
|
20569
20569
|
}
|
|
20570
20570
|
function assertRecordingPermissions(permissions) {
|
|
20571
|
-
const blocked = permissions.find((permission) =>
|
|
20571
|
+
const blocked = permissions.find((permission) => {
|
|
20572
|
+
if (permission.status === "granted") return false;
|
|
20573
|
+
if (permission.name === "microphone" && permission.status === "unknown") return false;
|
|
20574
|
+
return true;
|
|
20575
|
+
});
|
|
20572
20576
|
if (!blocked) return;
|
|
20573
20577
|
const label = blocked.name === "microphone" ? "Microphone" : blocked.name === "screen_recording" ? "Screen Recording" : "Recording";
|
|
20574
20578
|
throw cliError("record.permission_required", `${label} permission is required before recording.`, {
|