Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "xapp-page", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10
task.js
@@ -40,2 +40,11 @@ class Task { | ||
_clearTimeout(clearTime, timeList, id, clear, remove) { | ||
if (id && timeList[id] && timeList[id].id) { | ||
clearTime(timeList[id].id); | ||
if (clearTime.name === 'clearInterval') { | ||
this.intervalList[id] = null; | ||
} else { | ||
this.timeOutList[id] = null; | ||
} | ||
return; | ||
} | ||
if (!clear) return clearTime(timeList[id].id); | ||
@@ -89,2 +98,3 @@ Object.keys(timeList).forEach(n => { | ||
Object.keys(this.intervalList).forEach(n => { | ||
if (!this.intervalList[n]) return; | ||
const { fn, duration } = this.intervalList[n]; | ||
@@ -91,0 +101,0 @@ const id = setInterval(fn, duration); |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
207240
2596
0