@cripty2001/utils 0.0.151 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -204,10 +204,10 @@ function getEnv(key, defaultValue) {
|
|
|
204
204
|
return value;
|
|
205
205
|
}
|
|
206
206
|
const [currentTsMs, setCurrentTsMs] = whispr_1.Whispr.create(Date.now());
|
|
207
|
-
|
|
207
|
+
let currentTsMsInterval = null;
|
|
208
208
|
const CURRENT_TS_MS = () => {
|
|
209
209
|
if (currentTsMsInterval === null) {
|
|
210
|
-
setInterval(() => {
|
|
210
|
+
currentTsMsInterval = setInterval(() => {
|
|
211
211
|
setCurrentTsMs(Date.now());
|
|
212
212
|
}, 200);
|
|
213
213
|
}
|
package/package.json
CHANGED