| const timerPro = require('timerpro'); | ||
| let i = 1; | ||
| timerPro.setTimeout("MyTimeout1", (msg) => { | ||
| console.log(`${i} - ${msg}`); | ||
| i ++; | ||
| }, 3000, ["Hello World!"]); | ||
| timerPro.setTimeout("MyTimeout2", (msg) => { | ||
| console.log(`${i} - ${msg}`); | ||
| i ++; | ||
| }, 6000, ["Hello World!"]); | ||
| timerPro.setInterval("MyInterval", (msg) => { | ||
| console.log(`${i} - ${msg}`); | ||
| i ++; | ||
| }, 2000, ["Repeating Message"]); | ||
| timerPro.setTimeout("MyTimeout3", () => { | ||
| timerPro.clearAll(); | ||
| }, 10000); |
+1
-1
| { | ||
| "name": "timerpro", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Manage intervals and timeouts like a pro", | ||
@@ -5,0 +5,0 @@ "main": "dist/timerpro.js", |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
7269
7.53%5
25%85
23.19%4
Infinity%