From b8a85eda9e8404316f5111963963666ba4addd96 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:24:19 +0200 Subject: [PATCH] feat(): Added md table --- .gitignore | 1 + docs/endpointMaps/rest-client-v5.md | 176 ++++++++++++++++++++++++++++ package-lock.json | 101 +++++++++++++--- package.json | 4 +- 4 files changed, 266 insertions(+), 16 deletions(-) create mode 100644 docs/endpointMaps/rest-client-v5.md diff --git a/.gitignore b/.gitignore index dd3f3ac..e72f193 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ rawReq.ts localtest.sh localtest.ts privaterepotracker +restClientRegex.ts diff --git a/docs/endpointMaps/rest-client-v5.md b/docs/endpointMaps/rest-client-v5.md new file mode 100644 index 0000000..a7530ae --- /dev/null +++ b/docs/endpointMaps/rest-client-v5.md @@ -0,0 +1,176 @@ + + # Endpoints table + + This table includes all endpoints from the official Exchange API docs and corresponding SDK functions for each endpoint that are found in [rest-client-v5.ts](/src/rest-client-v5.ts). You can find all clients in the [source folder](/src). + + If anything is missing or is wrong, please open an issue or let us know in our [Node.js Traders](https://t.me/nodetraders) telegram group! + + ## How to use table + + Table consists of 4 parts: + + - Function name + - AUTH + - HTTP Method + - Endpoint + + **Function name** is the name of the function that can be called through the SDK. Check examples folder in the repo for more help on how to use them! + + **AUTH** is a boolean value that indicates if the function requires authentication - which means you need to pass your API key and secret to the SDK. + + **HTTP Method** shows HTTP method that the function uses to call the endpoint. Sometimes endpoints can have same URL, but different HTTP method so you can use this column to differentiate between them. + + **Endpoint** is the URL that the function uses to call the endpoint. Best way to find exact function you need for the endpoint is to search for URL in this table and find corresponding function name. + + ## All endpoints + + | Function | AUTH | HTTP Method | Endpoint | +| -------- | ---- | ----------- | -------- | +| `fetchServerTime()` | no | GET | `/v5/market/time` | +| `getServerTime()` | no | GET | `/v5/market/time` | +| `requestDemoTradingFunds()` | YES | POST | `/v5/account/demo-apply-money` | +| `getKline()` | no | GET | `/v5/market/kline` | +| `getMarkPriceKline()` | no | GET | `/v5/market/mark-price-kline` | +| `getIndexPriceKline()` | no | GET | `/v5/market/index-price-kline` | +| `getPremiumIndexPriceKline()` | no | GET | `/v5/market/premium-index-price-kline` | +| `getOrderbook()` | no | GET | `/v5/market/orderbook` | +| `getTickers()` | no | GET | `/v5/market/tickers` | +| `getTickers()` | no | GET | `/v5/market/tickers` | +| `getTickers()` | no | GET | `/v5/market/tickers` | +| `getTickers()` | no | GET | `/v5/market/tickers` | +| `getFundingRateHistory()` | no | GET | `/v5/market/funding/history` | +| `getPublicTradingHistory()` | no | GET | `/v5/market/recent-trade` | +| `getOpenInterest()` | no | GET | `/v5/market/open-interest` | +| `getHistoricalVolatility()` | no | GET | `/v5/market/historical-volatility` | +| `getInsurance()` | no | GET | `/v5/market/insurance` | +| `getRiskLimit()` | no | GET | `/v5/market/risk-limit` | +| `getOptionDeliveryPrice()` | no | GET | `/v5/market/delivery-price` | +| `getDeliveryPrice()` | no | GET | `/v5/market/delivery-price` | +| `getLongShortRatio()` | no | GET | `/v5/market/account-ratio` | +| `submitOrder()` | YES | POST | `/v5/order/create` | +| `amendOrder()` | YES | POST | `/v5/order/amend` | +| `cancelOrder()` | YES | POST | `/v5/order/cancel` | +| `getActiveOrders()` | YES | GET | `/v5/order/realtime` | +| `cancelAllOrders()` | YES | POST | `/v5/order/cancel-all` | +| `getHistoricOrders()` | YES | GET | `/v5/order/history` | +| `batchSubmitOrders()` | YES | POST | `/v5/order/create-batch` | +| `batchAmendOrders()` | YES | POST | `/v5/order/amend-batch` | +| `batchCancelOrders()` | YES | POST | `/v5/order/cancel-batch` | +| `getSpotBorrowCheck()` | YES | GET | `/v5/order/spot-borrow-check` | +| `setDisconnectCancelAllWindow()` | YES | POST | `/v5/order/disconnected-cancel-all` | +| `setDisconnectCancelAllWindowV2()` | YES | POST | `/v5/order/disconnected-cancel-all` | +| `getPositionInfo()` | YES | GET | `/v5/position/list` | +| `setLeverage()` | YES | POST | `/v5/position/set-leverage` | +| `switchIsolatedMargin()` | YES | POST | `/v5/position/switch-isolated` | +| `setTPSLMode()` | YES | POST | `/v5/position/set-tpsl-mode` | +| `switchPositionMode()` | YES | POST | `/v5/position/switch-mode` | +| `setRiskLimit()` | YES | POST | `/v5/position/set-risk-limit` | +| `setTradingStop()` | YES | POST | `/v5/position/trading-stop` | +| `setAutoAddMargin()` | YES | POST | `/v5/position/set-auto-add-margin` | +| `addOrReduceMargin()` | YES | POST | `/v5/position/add-margin` | +| `getExecutionList()` | YES | GET | `/v5/execution/list` | +| `getClosedPnL()` | YES | GET | `/v5/position/closed-pnl` | +| `movePosition()` | YES | POST | `/v5/position/move-positions` | +| `getMovePositionHistory()` | YES | GET | `/v5/position/move-history` | +| `confirmNewRiskLimit()` | YES | POST | `/v5/position/confirm-pending-mmr` | +| `getPreUpgradeOrderHistory()` | YES | GET | `/v5/pre-upgrade/order/history` | +| `getPreUpgradeTradeHistory()` | YES | GET | `/v5/pre-upgrade/execution/list` | +| `getPreUpgradeClosedPnl()` | YES | GET | `/v5/pre-upgrade/position/closed-pnl` | +| `getPreUpgradeTransactionLog()` | YES | GET | `/v5/pre-upgrade/account/transaction-log` | +| `getPreUpgradeOptionDeliveryRecord()` | YES | GET | `/v5/pre-upgrade/asset/delivery-record` | +| `getPreUpgradeUSDCSessionSettlement()` | YES | GET | `/v5/pre-upgrade/asset/settlement-record` | +| `getWalletBalance()` | YES | GET | `/v5/account/wallet-balance` | +| `upgradeToUnifiedAccount()` | YES | POST | `/v5/account/upgrade-to-uta` | +| `getBorrowHistory()` | YES | GET | `/v5/account/borrow-history` | +| `repayLiability()` | YES | POST | `/v5/account/quick-repayment` | +| `setCollateralCoin()` | YES | POST | `/v5/account/set-collateral-switch` | +| `batchSetCollateralCoin()` | YES | POST | `/v5/account/set-collateral-switch-batch` | +| `getCollateralInfo()` | YES | GET | `/v5/account/collateral-info` | +| `getCoinGreeks()` | YES | GET | `/v5/asset/coin-greeks` | +| `getFeeRate()` | YES | GET | `/v5/account/fee-rate` | +| `getAccountInfo()` | YES | GET | `/v5/account/info` | +| `getTransactionLog()` | YES | GET | `/v5/account/transaction-log` | +| `getClassicTransactionLogs()` | YES | GET | `/v5/account/contract-transaction-log` | +| `getSMPGroup()` | YES | GET | `/v5/account/smp-group` | +| `setMarginMode()` | YES | POST | `/v5/account/set-margin-mode` | +| `setSpotHedging()` | YES | POST | `/v5/account/set-hedging-mode` | +| `setMMP()` | YES | POST | `/v5/account/mmp-modify` | +| `resetMMP()` | YES | POST | `/v5/account/mmp-reset` | +| `getMMPState()` | YES | GET | `/v5/account/mmp-state` | +| `getDCPInfo()` | YES | GET | `/v5/account/query-dcp-info` | +| `getCoinExchangeRecords()` | YES | GET | `/v5/asset/exchange/order-record` | +| `getDeliveryRecord()` | YES | GET | `/v5/asset/delivery-record` | +| `getSettlementRecords()` | YES | GET | `/v5/asset/settlement-record` | +| `getAssetInfo()` | YES | GET | `/v5/asset/transfer/query-asset-info` | +| `getAllCoinsBalance()` | YES | GET | `/v5/asset/transfer/query-account-coins-balance` | +| `getCoinBalance()` | YES | GET | `/v5/asset/transfer/query-account-coin-balance` | +| `getTransferableCoinList()` | YES | GET | `/v5/asset/transfer/query-transfer-coin-list` | +| `createInternalTransfer()` | YES | POST | `/v5/asset/transfer/inter-transfer` | +| `getInternalTransferRecords()` | YES | GET | `/v5/asset/transfer/query-inter-transfer-list` | +| `getSubUID()` | YES | GET | `/v5/asset/transfer/query-sub-member-list` | +| `enableUniversalTransferForSubUIDs()` | YES | POST | `/v5/asset/transfer/save-transfer-sub-member` | +| `createUniversalTransfer()` | YES | POST | `/v5/asset/transfer/universal-transfer` | +| `getUniversalTransferRecords()` | YES | GET | `/v5/asset/transfer/query-universal-transfer-list` | +| `getAllowedDepositCoinInfo()` | no | GET | `/v5/asset/deposit/query-allowed-list` | +| `setDepositAccount()` | YES | POST | `/v5/asset/deposit/deposit-to-account` | +| `getDepositRecords()` | YES | GET | `/v5/asset/deposit/query-record` | +| `getSubAccountDepositRecords()` | YES | GET | `/v5/asset/deposit/query-sub-member-record` | +| `getInternalDepositRecords()` | YES | GET | `/v5/asset/deposit/query-internal-record` | +| `getMasterDepositAddress()` | YES | GET | `/v5/asset/deposit/query-address` | +| `getSubDepositAddress()` | YES | GET | `/v5/asset/deposit/query-sub-member-address` | +| `querySubMemberAddress()` | YES | GET | `/v5/asset/deposit/query-sub-member-address` | +| `getCoinInfo()` | YES | GET | `/v5/asset/coin/query-info` | +| `getWithdrawalRecords()` | YES | GET | `/v5/asset/withdraw/query-record` | +| `getWithdrawableAmount()` | YES | GET | `/v5/asset/withdraw/withdrawable-amount` | +| `getExchangeEntities()` | YES | GET | `/v5/asset/withdraw/vasp/list` | +| `submitWithdrawal()` | YES | POST | `/v5/asset/withdraw/create` | +| `cancelWithdrawal()` | YES | POST | `/v5/asset/withdraw/cancel` | +| `getConvertCoins()` | YES | GET | `/v5/asset/exchange/query-coin-list` | +| `requestConvertQuote()` | YES | POST | `/v5/asset/exchange/quote-apply` | +| `confirmConvertQuote()` | YES | POST | `/v5/asset/exchange/convert-execute` | +| `getConvertStatus()` | YES | GET | `/v5/asset/exchange/convert-result-query` | +| `getConvertHistory()` | YES | GET | `/v5/asset/exchange/query-convert-history` | +| `createSubMember()` | YES | POST | `/v5/user/create-sub-member` | +| `createSubUIDAPIKey()` | YES | POST | `/v5/user/create-sub-api` | +| `getSubUIDList()` | YES | GET | `/v5/user/query-sub-members` | +| `getSubUIDListUnlimited()` | YES | GET | `/v5/user/submembers` | +| `getSubAccountAllApiKeys()` | YES | GET | `/v5/user/sub-apikeys` | +| `setSubUIDFrozenState()` | YES | POST | `/v5/user/frozen-sub-member` | +| `getQueryApiKey()` | YES | GET | `/v5/user/query-api` | +| `getUIDWalletType()` | YES | GET | `/v5/user/query-api` | +| `updateMasterApiKey()` | YES | POST | `/v5/user/update-api` | +| `updateSubApiKey()` | YES | POST | `/v5/user/update-sub-api` | +| `deleteMasterApiKey()` | YES | POST | `/v5/user/delete-api` | +| `deleteSubApiKey()` | YES | POST | `/v5/user/delete-sub-api` | +| `deleteSubMember()` | YES | POST | `/v5/user/del-submember` | +| `getAffiliateUserInfo()` | YES | GET | `/v5/user/aff-customer-info` | +| `getLeveragedTokenInfo()` | no | GET | `/v5/spot-lever-token/info` | +| `getLeveragedTokenMarket()` | no | GET | `/v5/spot-lever-token/reference` | +| `purchaseSpotLeveragedToken()` | YES | POST | `/v5/spot-lever-token/purchase` | +| `redeemSpotLeveragedToken()` | YES | POST | `/v5/spot-lever-token/redeem` | +| `getSpotLeveragedTokenOrderHistory()` | YES | GET | `/v5/spot-lever-token/order-record` | +| `getVIPMarginData()` | no | GET | `/v5/spot-margin-trade/data` | +| `getHistoricalInterestRate()` | YES | GET | `/v5/spot-margin-trade/interest-rate-history` | +| `toggleSpotMarginTrade()` | YES | POST | `/v5/spot-margin-trade/switch-mode` | +| `setSpotMarginLeverage()` | YES | POST | `/v5/spot-margin-trade/set-leverage` | +| `getSpotMarginState()` | YES | GET | `/v5/spot-margin-trade/state` | +| `getSpotMarginCoinInfo()` | YES | GET | `/v5/spot-cross-margin-trade/pledge-token` | +| `getSpotMarginBorrowableCoinInfo()` | YES | GET | `/v5/spot-cross-margin-trade/borrow-token` | +| `getSpotMarginInterestAndQuota()` | YES | GET | `/v5/spot-cross-margin-trade/loan-info` | +| `getSpotMarginLoanAccountInfo()` | YES | GET | `/v5/spot-cross-margin-trade/account` | +| `spotMarginBorrow()` | YES | POST | `/v5/spot-cross-margin-trade/loan` | +| `spotMarginRepay()` | YES | POST | `/v5/spot-cross-margin-trade/repay` | +| `getSpotMarginBorrowOrderDetail()` | YES | GET | `/v5/spot-cross-margin-trade/orders` | +| `getSpotMarginRepaymentOrderDetail()` | YES | GET | `/v5/spot-cross-margin-trade/repay-history` | +| `toggleSpotCrossMarginTrade()` | YES | POST | `/v5/spot-cross-margin-trade/switch` | +| `getInstitutionalLendingProductInfo()` | no | GET | `/v5/ins-loan/product-infos` | +| `getInstitutionalLendingMarginCoinInfo()` | no | GET | `/v5/ins-loan/ensure-tokens` | +| `getInstitutionalLendingMarginCoinInfoWithConversionRate()` | no | GET | `/v5/ins-loan/ensure-tokens-convert` | +| `getInstitutionalLendingLoanOrders()` | YES | GET | `/v5/ins-loan/loan-order` | +| `getInstitutionalLendingRepayOrders()` | YES | GET | `/v5/ins-loan/repaid-history` | +| `getInstitutionalLendingLTV()` | YES | GET | `/v5/ins-loan/ltv` | +| `getInstitutionalLendingLTVWithLadderConversionRate()` | YES | GET | `/v5/ins-loan/ltv-convert` | +| `bindOrUnbindUID()` | YES | POST | `/v5/ins-loan/association-uid` | +| `getExchangeBrokerEarnings()` | YES | GET | `/v5/broker/earnings-info` | +| `getExchangeBrokerAccountInfo()` | YES | GET | `/v5/broker/account-info` | +| `getBrokerSubAccountDeposits()` | YES | GET | `/v5/broker/asset/query-sub-member-deposit-record` | \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f743907..682f1bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,12 +10,14 @@ "license": "MIT", "dependencies": { "axios": "^1.6.6", + "fs": "^0.0.1-security", "isomorphic-ws": "^4.0.1", + "path": "^0.12.7", "ws": "^7.4.0" }, "devDependencies": { "@types/jest": "^29.5.11", - "@types/node": "^20.11.6", + "@types/node": "^20.16.2", "@typescript-eslint/eslint-plugin": "^7.1.0", "@typescript-eslint/parser": "^7.1.0", "eslint": "^8.29.0", @@ -1703,12 +1705,12 @@ "optional": true }, "node_modules/@types/node": { - "version": "20.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.6.tgz", - "integrity": "sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q==", + "version": "20.16.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.2.tgz", + "integrity": "sha512-91s/n4qUPV/wg8eE9KHYW1kouTfDk2FPGjXbBMfRWP/2vg1rCXNQL1OCabwGs0XSdukuK+MwCDXE30QpSeMUhQ==", "devOptional": true, "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "node_modules/@types/stack-utils": { @@ -3448,6 +3450,11 @@ } } }, + "node_modules/fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -5634,6 +5641,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/path": { + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", + "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", + "dependencies": { + "process": "^0.11.1", + "util": "^0.10.3" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -5760,6 +5776,14 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -6566,9 +6590,9 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "devOptional": true }, "node_modules/uri-js": { @@ -6580,12 +6604,25 @@ "punycode": "^2.1.0" } }, + "node_modules/util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dependencies": { + "inherits": "2.0.3" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "optional": true }, + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, "node_modules/v8-compile-cache": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.2.0.tgz", @@ -8298,12 +8335,12 @@ "optional": true }, "@types/node": { - "version": "20.11.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.6.tgz", - "integrity": "sha512-+EOokTnksGVgip2PbYbr3xnR7kZigh4LbybAfBAw5BpnQ+FqBYUsvCEjYd70IXKlbohQ64mzEYmMtlWUY8q//Q==", + "version": "20.16.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.2.tgz", + "integrity": "sha512-91s/n4qUPV/wg8eE9KHYW1kouTfDk2FPGjXbBMfRWP/2vg1rCXNQL1OCabwGs0XSdukuK+MwCDXE30QpSeMUhQ==", "devOptional": true, "requires": { - "undici-types": "~5.26.4" + "undici-types": "~6.19.2" } }, "@types/stack-utils": { @@ -9619,6 +9656,11 @@ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==" }, + "fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==" + }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -11294,6 +11336,15 @@ "lines-and-columns": "^1.1.6" } }, + "path": { + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", + "integrity": "sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==", + "requires": { + "process": "^0.11.1", + "util": "^0.10.3" + } + }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -11377,6 +11428,11 @@ } } }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==" + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -11895,9 +11951,9 @@ "devOptional": true }, "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "devOptional": true }, "uri-js": { @@ -11909,6 +11965,21 @@ "punycode": "^2.1.0" } }, + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "requires": { + "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + } + } + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/package.json b/package.json index d9912f7..a80857c 100644 --- a/package.json +++ b/package.json @@ -25,12 +25,14 @@ ], "dependencies": { "axios": "^1.6.6", + "fs": "^0.0.1-security", "isomorphic-ws": "^4.0.1", + "path": "^0.12.7", "ws": "^7.4.0" }, "devDependencies": { "@types/jest": "^29.5.11", - "@types/node": "^20.11.6", + "@types/node": "^20.16.2", "@typescript-eslint/eslint-plugin": "^7.1.0", "@typescript-eslint/parser": "^7.1.0", "eslint": "^8.29.0",