veryfront 0.0.89 → 0.0.90
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/esm/deno.js
CHANGED
|
@@ -281,7 +281,7 @@ export function onGlobalError(onError) {
|
|
|
281
281
|
* Unreference a timer to prevent it from keeping the process alive
|
|
282
282
|
*/
|
|
283
283
|
export function unrefTimer(timerId) {
|
|
284
|
-
if (IS_DENO) {
|
|
284
|
+
if (IS_DENO && typeof dntShim.Deno.unrefTimer === "function") {
|
|
285
285
|
dntShim.Deno.unrefTimer(timerId);
|
|
286
286
|
return;
|
|
287
287
|
}
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -307,7 +307,7 @@ export function onGlobalError(
|
|
|
307
307
|
* Unreference a timer to prevent it from keeping the process alive
|
|
308
308
|
*/
|
|
309
309
|
export function unrefTimer(timerId: ReturnType<typeof dntShim.setInterval>): void {
|
|
310
|
-
if (IS_DENO) {
|
|
310
|
+
if (IS_DENO && typeof dntShim.Deno.unrefTimer === "function") {
|
|
311
311
|
dntShim.Deno.unrefTimer(timerId as number);
|
|
312
312
|
return;
|
|
313
313
|
}
|