diff --git a/package-lock.json b/package-lock.json index b073374f..fea8ab05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,15 @@ { "name": "@etherspot/react-transaction-buidler", - "version": "0.5.13", + "version": "0.5.17", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@etherspot/react-transaction-buidler", - "version": "0.5.13", + "version": "0.5.17", "license": "MIT", "dependencies": { + "debounce-promise": "^3.1.2", "ethers": "^5.6.9", "etherspot": "^1.35.4", "lodash": "^4.17.21", @@ -1927,6 +1928,11 @@ "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==", "dev": true }, + "node_modules/debounce-promise": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/debounce-promise/-/debounce-promise-3.1.2.tgz", + "integrity": "sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==" + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -5054,6 +5060,11 @@ "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==", "dev": true }, + "debounce-promise": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/debounce-promise/-/debounce-promise-3.1.2.tgz", + "integrity": "sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==" + }, "debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", diff --git a/package.json b/package.json index 26919342..fd337baa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@etherspot/react-transaction-buidler", - "version": "0.5.17", + "version": "0.5.18", "description": "Etherspot React component.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", @@ -33,6 +33,7 @@ "author": "Etherspot", "license": "MIT", "dependencies": { + "debounce-promise": "^3.1.2", "ethers": "^5.6.9", "etherspot": "^1.35.4", "lodash": "^4.17.21", diff --git a/src/components/TransactionBlock/AssetBridgeTransactionBlock.tsx b/src/components/TransactionBlock/AssetBridgeTransactionBlock.tsx index cb127486..cb8104ec 100644 --- a/src/components/TransactionBlock/AssetBridgeTransactionBlock.tsx +++ b/src/components/TransactionBlock/AssetBridgeTransactionBlock.tsx @@ -13,7 +13,7 @@ import { } from 'etherspot'; import { TokenListToken } from 'etherspot/dist/sdk/assets/classes/token-list-token'; import { ethers } from 'ethers'; -import { debounce } from 'lodash'; +import debounce from 'debounce-promise'; import TextInput from '../TextInput'; import SelectInput, { SelectOption } from '../SelectInput/SelectInput'; diff --git a/src/components/TransactionBlock/AssetSwapTransactionBlock.tsx b/src/components/TransactionBlock/AssetSwapTransactionBlock.tsx index 659aee61..0a58dd60 100644 --- a/src/components/TransactionBlock/AssetSwapTransactionBlock.tsx +++ b/src/components/TransactionBlock/AssetSwapTransactionBlock.tsx @@ -11,7 +11,7 @@ import { } from 'etherspot'; import { TokenListToken } from 'etherspot/dist/sdk/assets/classes/token-list-token'; import { ethers } from 'ethers'; -import { debounce } from 'lodash'; +import debounce from 'debounce-promise'; import TextInput from '../TextInput'; import SelectInput, { SelectOption } from '../SelectInput/SelectInput'; diff --git a/src/decs.d.ts b/src/decs.d.ts new file mode 100644 index 00000000..7f89935e --- /dev/null +++ b/src/decs.d.ts @@ -0,0 +1 @@ +declare module 'debounce-promise';