Comparing version 0.5.5 to 0.6.5
@@ -154,2 +154,3 @@ "use strict"; | ||
socket.write(JSON.stringify({ err: false, data: message })); | ||
utils_1.default.notify("activity duration", message, "green"); | ||
}), | ||
@@ -156,0 +157,0 @@ // get day duration |
@@ -13,4 +13,4 @@ "use strict"; | ||
const notificationColors = { | ||
false: { color: "red", text: "stopped" }, | ||
true: { color: "green", text: "running" }, | ||
false: { color: "red", text: `${activity} stopped` }, | ||
true: { color: "green", text: `${activity} running` }, | ||
}; | ||
@@ -17,0 +17,0 @@ notify(activity, notificationColors[running.toString()].text, notificationColors[running.toString()].color, socket); |
{ | ||
"name": "clockify", | ||
"version": "0.5.5", | ||
"version": "0.6.5", | ||
"description": "A time tracker to make sure that you really spent the time you think you spent working, studying, etc.", | ||
@@ -31,3 +31,4 @@ "license": "MIT", | ||
"scripts": { | ||
"dev": "nodemon ./src/index.ts ./src/server.ts", | ||
"res": "tsx ./src/index.ts k; tsx ./src/server.ts", | ||
"client": "tsx ./src/index.ts", | ||
"format": "prettier . --write", | ||
@@ -34,0 +35,0 @@ "testOnce": "vitest --run", |
38754
913