From 9fb91f91e217f1bce6e973acdce289e8f684bd94 Mon Sep 17 00:00:00 2001 From: lubega-deriv Date: Mon, 11 Nov 2024 10:07:05 +0800 Subject: [PATCH 1/2] chore: add api-v2 as external in webpack config --- packages/api-v2/src/useAuthorizedQuery.ts | 4 ++-- packages/wallets/webpack.config.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/api-v2/src/useAuthorizedQuery.ts b/packages/api-v2/src/useAuthorizedQuery.ts index 1c68c77207fb..be7a9bfa8e30 100644 --- a/packages/api-v2/src/useAuthorizedQuery.ts +++ b/packages/api-v2/src/useAuthorizedQuery.ts @@ -7,8 +7,8 @@ import type { TSocketResponseData, } from '../types'; import useAPI from './useAPI'; -import { getQueryKeys } from './utils'; -import { useAuthorize } from './hooks'; +import { getQueryKeys } from './utils/query-utils'; +import useAuthorize from './hooks/useAuthorize'; /** * just like useQuery, but only runs when user is authorized diff --git a/packages/wallets/webpack.config.js b/packages/wallets/webpack.config.js index 1adf92938468..2d624424b8fd 100644 --- a/packages/wallets/webpack.config.js +++ b/packages/wallets/webpack.config.js @@ -41,6 +41,7 @@ module.exports = function (env) { }, externals: [ { + '@deriv/api-v2': '@deriv/api-v2', '@deriv/quill-icons': `@deriv/quill-icons`, '@deriv/shared': '@deriv/shared', '@deriv/utils': '@deriv/utils', From 4401982604c03e3760e6f551b213e9f8c3cbbba9 Mon Sep 17 00:00:00 2001 From: lubega-deriv Date: Fri, 15 Nov 2024 16:51:57 +0800 Subject: [PATCH 2/2] Merge branch 'master' of github.com:binary-com/deriv-app into add-api-v2-as-external