kap-hide-clock
Advanced tools
Comparing version 1.0.0 to 1.1.0
14
index.js
'use strict'; | ||
const {systemPreferences} = require('electron'); | ||
const execa = require('execa'); | ||
const {isAppRunning, terminateApp, launchApp} = require('macos-manage-apps'); | ||
@@ -28,8 +29,17 @@ const readDefaults = async () => { | ||
await writeDefaults(defaultsWithoutClock); | ||
} | ||
} | ||
state.wasDatoRunning = await isAppRunning('com.sindresorhus.Dato'); | ||
if (state.wasDatoRunning) { | ||
await terminateApp('com.sindresorhus.Dato'); | ||
} | ||
}; | ||
const didStopRecording = async ({state}) => { | ||
systemPreferences.postNotification('com.wulkano.kap.hideclock.didStopRecording', {}); | ||
systemPreferences.postNotification('com.wulkano.kap.hideclock.didStopRecording', {}); | ||
if (state.wasDatoRunning) { | ||
await launchApp('com.sindresorhus.Dato'); | ||
} | ||
if (state.defaults) { | ||
@@ -36,0 +46,0 @@ await writeDefaults(state.defaults); |
{ | ||
"name": "kap-hide-clock", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Hide the clock while recording", | ||
@@ -27,3 +27,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"execa": "^4.0.0" | ||
"execa": "^4.0.0", | ||
"macos-manage-apps": "^1.1.0" | ||
}, | ||
@@ -30,0 +31,0 @@ "devDependencies": { |
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
4057
43
3
+ Addedmacos-manage-apps@^1.1.0
+ Addedelectron-is-dev@1.2.0(transitive)
+ Addedelectron-util@0.13.1(transitive)
+ Addedmacos-manage-apps@1.2.0(transitive)
+ Addednew-github-issue-url@0.2.1(transitive)