Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: AbortController and AbortSignal.timeout Polyfill (#10815)
- Introduced a polyfill for AbortController and AbortSignal.timeout, enabling support for aborting operations in environments that do not natively support these features. - This addition allows developers to use AbortController to manage request cancellations more effectively, improving error handling and resource management. <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces the `abortcontroller-polyfill` to enhance compatibility with the `AbortSignal` API in the application. It also updates package dependencies and modifies the `package.json` to include the new polyfill. ### Detailed summary - Added `abortcontroller-polyfill` import in `apps/web/src/pages/_app.tsx`. - Implemented a timeout function in `apps/web/src/utils/abortcontroller-polyfill.ts`. - Updated `pnpm-lock.yaml` to include `abortcontroller-polyfill` version 1.7.5. - Updated `@noble/curves` from 1.4.0 to 1.6.0 in `pnpm-lock.yaml`. - Updated `ws` from 8.17.1 to 8.18.0 in `pnpm-lock.yaml`. - Added `@kyberswap/pancake-liquidity-widgets` version 0.1.1 to `apps/web/package.json`. - Removed `@kyberswap/pancake-liquidity-widgets` from previous dependencies in `apps/web/package.json`. - Added `abortcontroller-polyfill` version 1.7.5 to `apps/web/package.json`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
- Loading branch information