From ed972a625f478bdd981c18a3ebfc26b5384e92a7 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sat, 12 Nov 2022 21:02:07 +0200 Subject: [PATCH] fix --- package.json | 2 +- src/promises/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 41d1eda..bd7d58a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@instadapp/utils", - "version": "0.4.3", + "version": "0.4.4", "description": "", "repository": "instadapp/utils", "license": "MIT", diff --git a/src/promises/index.ts b/src/promises/index.ts index f71f97d..2e0476c 100644 --- a/src/promises/index.ts +++ b/src/promises/index.ts @@ -9,7 +9,7 @@ export async function promiseTimeout (promise: Promise, ms: number) { try { return await Promise.race([ promise, - new Promise((_resolve, reject) => { + new Promise((_resolve, reject) => { timer = setTimeout(() => { reject(new Error('operation timed out')) }, ms)