Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kap-hide-clock

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kap-hide-clock - npm Package Compare versions

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);

5

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc