Skip to content

Commit

Permalink
Remove dependency and set node status on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bowman Mørch committed Apr 21, 2023
1 parent eefb1a7 commit cbb192a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
},
"dependencies": {
"date-fns": "^2.29.3",
"date-fns-tz": "^2.0.0",
"suncalc": "^1.9.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/small-timer-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class SmallTimerRunner {
this.timeout = Number(configuration.timeout)
if (configuration.injectOnStartup) {
this.startupTock = setTimeout(this.forceSend.bind(this), 2000)
} else {
this.updateStatus()
}
this.startTickTimer()
}
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1597,11 +1597,6 @@ css-what@^6.0.1:
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==

date-fns-tz@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-2.0.0.tgz#1b14c386cb8bc16fc56fe333d4fc34ae1d1099d5"
integrity sha512-OAtcLdB9vxSXTWHdT8b398ARImVwQMyjfYGkKD2zaGpHseG2UPHbHjXELReErZFxWdSLph3c2zOaaTyHfOhERQ==

date-fns@^2.29.3:
version "2.29.3"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"
Expand Down

0 comments on commit cbb192a

Please sign in to comment.