Socket
Socket
Sign inDemoInstall

alarm

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

6

alarm.js

@@ -10,3 +10,3 @@ (function() {

* which can be invoked to disable the alarm.
* @param {Date} at
* @param {Date|string} at
* @param {function} run

@@ -19,2 +19,6 @@ * @returns {function}

if (!(at instanceof Date)) {
at = new Date(at.toString());
}
if (at.getTime() >= now) {

@@ -21,0 +25,0 @@ timeout = setTimeout(run, at.getTime() - now);

2

package.json
{
"name": "alarm",
"version": "1.0.1",
"version": "1.0.2",
"description": "Simple alarm function to call function at a specified Date",

@@ -5,0 +5,0 @@ "main": "alarm.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc