Skip to content

Commit

Permalink
Bump npm dependencies (#2489)
Browse files Browse the repository at this point in the history
* Updated rollup

* Updated @rollup/plugin-babel

* Updated regenerator-runtime

* Updated @pmmmwh/react-refresh-webpack-plugin

* Updated babel

* Updated prettier

* Updated sortablejs

* Updated husky

* Updated crowdin/github-action

* Updated match-sorter

* Fixed prettier warnings
  • Loading branch information
ChiaMineJP authored Sep 24, 2024
1 parent aba0fb4 commit eccec1a
Show file tree
Hide file tree
Showing 22 changed files with 9,399 additions and 1,002 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}

- name: crowdin action
uses: crowdin/github-action@v2.0.0
uses: crowdin/github-action@v2.2.0
with:
upload_sources: false
upload_translations: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crowdin-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
secret/data/crowdin project-id-blockchain-gui | CROWDIN_PROJECT_ID;
- name: crowdin action
uses: crowdin/github-action@v2.0.0
uses: crowdin/github-action@v2.2.0
with:
upload_sources: true
upload_translations: false
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
lint-staged
10,249 changes: 9,323 additions & 926 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"coverage:merge": "npx istanbul-merge --out .nyc_output/coverage.json packages/api/.coverage/coverage-final.json packages/api-react/.coverage/coverage-final.json packages/core/.coverage/coverage-final.json packages/gui/.coverage/coverage-final.json packages/icons/.coverage/coverage-final.json packages/wallets/.coverage/coverage-final.json",
"coverage:report": "npx nyc report --reporter=text --reporter=lcov",
"restoreMessages": "node restoreMessages.js",
"prepare": "husky install"
"prepare": "husky"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint",
Expand All @@ -59,12 +59,12 @@
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-unicorn": "48.0.1",
"husky": "8.0.3",
"husky": "9.1.6",
"istanbul-merge": "2.0.0",
"lerna-audit": "^1.3.3",
"lint-staged": "15.2.10",
"nyc": "15.1.0",
"prettier": "3.1.0",
"prettier": "3.3.3",
"typescript": "^5.1.6"
},
"overrides": {
Expand Down
16 changes: 8 additions & 8 deletions packages/api-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
"test": "jest"
},
"dependencies": {
"@babel/runtime": "7.22.10",
"@babel/runtime": "7.25.6",
"bignumber.js": "9.1.1",
"core-js": "3.32.1",
"debug": "4.3.4",
"lodash": "4.17.21",
"regenerator-runtime": "0.14.0"
"regenerator-runtime": "0.14.1"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/core": "7.25.2",
"@babel/helper-get-function-arity": "7.16.7",
"@babel/plugin-transform-runtime": "7.22.10",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.22.5",
"@babel/plugin-transform-runtime": "7.25.4",
"@babel/preset-env": "7.25.4",
"@babel/preset-typescript": "7.24.7",
"@chia-network/api": "1.0.0",
"@reduxjs/toolkit": "1.9.5",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-node-resolve": "15.2.1",
"@types/core-js": "2.5.5",
Expand All @@ -47,7 +47,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"react-redux": "8.1.2",
"rollup": "3.28.1",
"rollup": "3.29.5",
"rollup-plugin-node-externals": "7.1.2",
"typescript": "5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api-react/src/hooks/useGetLocalCatName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function useGetLocalCatName(assetId?: string, defaultName?: strin
}
}

const name = assetId ? names?.[assetId] ?? defaultName : undefined;
const name = assetId ? (names?.[assetId] ?? defaultName) : undefined;

return [name, setName];
}
16 changes: 8 additions & 8 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "jest"
},
"dependencies": {
"@babel/runtime": "7.22.10",
"@babel/runtime": "7.25.6",
"bech32": "2.0.0",
"bignumber.js": "9.1.1",
"core-js": "3.32.1",
Expand All @@ -28,14 +28,14 @@
"events": "3.3.0",
"json-bigint": "1.0.0",
"lodash": "4.17.21",
"regenerator-runtime": "0.14.0"
"regenerator-runtime": "0.14.1"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/plugin-transform-runtime": "7.22.10",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.22.5",
"@rollup/plugin-babel": "6.0.3",
"@babel/core": "7.25.2",
"@babel/plugin-transform-runtime": "7.25.4",
"@babel/preset-env": "7.25.4",
"@babel/preset-typescript": "7.24.7",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-node-resolve": "15.2.1",
"@types/core-js": "2.5.5",
Expand All @@ -46,7 +46,7 @@
"@types/node": "20.5.2",
"concurrently": "8.2.1",
"jest": "29.6.3",
"rollup": "3.28.1",
"rollup": "3.29.5",
"rollup-plugin-node-externals": "7.1.2",
"typescript": "5.1.6"
}
Expand Down
20 changes: 10 additions & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "jest"
},
"dependencies": {
"@babel/runtime": "7.22.10",
"@babel/runtime": "7.25.6",
"@emoji-mart/data": "1.1.2",
"@fontsource/roboto": "5.0.8",
"@lingui/macro": "4.11.4",
Expand All @@ -35,7 +35,7 @@
"isomorphic-fetch": "3.0.0",
"json-bigint": "1.0.0",
"lodash": "4.17.21",
"match-sorter": "6.3.1",
"match-sorter": "6.3.4",
"moment": "2.30.1",
"overlayscrollbars": "1.13.3",
"overlayscrollbars-react": "0.3.0",
Expand All @@ -47,18 +47,18 @@
"react-teleporter": "3.1.0",
"react-use": "17.4.0",
"react-use-timeout": "1.0.0",
"sortablejs": "1.15.0",
"sortablejs": "1.15.3",
"stacktrace-gps": "3.1.2",
"stacktrace-js": "2.0.2",
"validator": "13.11.0"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/core": "7.25.2",
"@babel/helper-get-function-arity": "7.16.7",
"@babel/plugin-transform-runtime": "7.22.10",
"@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@babel/plugin-transform-runtime": "7.25.4",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@chia-network/api": "1.0.0",
"@chia-network/api-react": "1.0.0",
"@chia-network/icons": "1.0.0",
Expand All @@ -77,7 +77,7 @@
"@mui/styles": "5.14.5",
"@mui/x-charts": "7.3.2",
"@rollup/plugin-alias": "5.0.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-json": "6.0.0",
"@rollup/plugin-node-resolve": "15.2.1",
Expand All @@ -100,7 +100,7 @@
"react-hook-form": "7.45.4",
"react-router": "6.15.0",
"react-router-dom": "6.15.0",
"rollup": "3.28.1",
"rollup": "3.29.5",
"rollup-plugin-node-externals": "7.1.2",
"styled-components": "6.0.7",
"typescript": "5.1.6"
Expand Down
18 changes: 9 additions & 9 deletions packages/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"isomorphic-fetch": "3.0.0",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"match-sorter": "6.3.1",
"match-sorter": "6.3.4",
"mime-types": "2.1.35",
"moment": "2.30.1",
"normalize-url": "7.0.3",
Expand All @@ -90,7 +90,7 @@
"react-use": "17.4.0",
"react-virtuoso": "4.5.0",
"redux": "4.2.1",
"regenerator-runtime": "0.14.0",
"regenerator-runtime": "0.14.1",
"seedrandom": "3.0.5",
"stacktrace-js": "2.0.2",
"stream-browserify": "3.0.0",
Expand All @@ -101,17 +101,17 @@
"ws": "8.17.1"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/helper-get-function-arity": "^7.16.7",
"@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@babel/register": "7.22.5",
"@babel/core": "7.25.2",
"@babel/helper-get-function-arity": "7.16.7",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@babel/register": "7.24.6",
"@lingui/cli": "4.11.4",
"@loadable/babel-plugin": "5.16.1",
"@loadable/webpack-plugin": "5.15.2",
"@playwright/test": "1.37.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@svgr/webpack": "8.1.0",
"@types/big.js": "6.2.0",
"@types/jest": "29.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/components/block/Block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default function Block() {
}

const difficulty =
prevBlockRecord && blockRecord ? blockRecord.weight - prevBlockRecord.weight : blockRecord?.weight ?? 0;
prevBlockRecord && blockRecord ? blockRecord.weight - prevBlockRecord.weight : (blockRecord?.weight ?? 0);

const poolReward = mojoToChia(calculatePoolReward(blockRecord.height));
const baseFarmerReward = mojoToChia(calculateBaseFarmerReward(blockRecord.height));
Expand Down
5 changes: 4 additions & 1 deletion packages/gui/src/components/nfts/NFTContextualActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@ function NFTHideContextualAction(props: NFTHideContextualActionProps) {
}

if (isMultiSelect) {
setHiddenMultiple(selection?.items.map((nft: NFTInfo) => nft.$nftId), !isHidden);
setHiddenMultiple(
selection?.items.map((nft: NFTInfo) => nft.$nftId),
!isHidden,
);
setSelectedNFTIds([]);
} else {
setIsNFTHidden(selectedNft.$nftId, !isHidden);
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/components/nfts/NFTHashStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function NFTHashStatus(props: NFTHashStatusProps) {

const isLoading = isLoadingNFTVerifyHash || isLoadingNFT;
const isVerified = preview ? nftPreview?.isVerified : data?.isVerified;
const error = errorNFT ?? preview ? nftPreview?.error : data?.error;
const error = (errorNFT ?? preview) ? nftPreview?.error : data?.error;

const isValidURI = useMemo(() => {
if (!nftPreview || !('originalUri' in nftPreview)) {
Expand Down
6 changes: 3 additions & 3 deletions packages/gui/src/components/offers/NFTOfferViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export function NFTOfferSummary(props: NFTOfferSummaryProps) {
const summaries: React.ReactElement[] = [makerSummary, takerSummary];

if (setIsMissingRequestedAsset) {
const isMissingRequestedAsset = isMyOffer ? false : makerUnknownAssets?.length !== 0 ?? false;
const isMissingRequestedAsset = isMyOffer ? false : (makerUnknownAssets?.length !== 0 ?? false);

setIsMissingRequestedAsset(isMissingRequestedAsset);
}
Expand Down Expand Up @@ -503,8 +503,8 @@ function NFTOfferDetails(props: NFTOfferDetailsProps) {
value={
new BigNumber(
exchangeType === NFTOfferExchangeType.NFTForToken
? nftSaleInfo?.nftSellerNetAmount ?? 0
: amount ?? 0,
? (nftSaleInfo?.nftSellerNetAmount ?? 0)
: (amount ?? 0),
)
}
/>{' '}
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/components/offers/OfferSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function OfferSummary(props: Props) {
];

if (setIsMissingRequestedAsset) {
const isMissingRequestedAsset = isMyOffer ? false : makerUnknownCATs?.length !== 0 ?? false;
const isMissingRequestedAsset = isMyOffer ? false : (makerUnknownCATs?.length !== 0 ?? false);

setIsMissingRequestedAsset(isMissingRequestedAsset);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function OfferBuilderTokenSelector(props: OfferBuilderTokenSelect
if (readOnly) {
return (
<Typography variant="h6" noWrap>
{warnUnknownCAT ? t`Unknown` : selectedOption?.displayName ?? currentValue}
{warnUnknownCAT ? t`Unknown` : (selectedOption?.displayName ?? currentValue)}
</Typography>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/components/plotNFT/PlotNFTCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default function PlotNFTCard(props: Props) {
</Typography>
<Tooltip title={payoutAddress} copyToClipboard>
<Typography variant="body2" noWrap>
{loading ? <Loading size="1rem" /> : payoutAddress ?? <Trans>Not Available</Trans>}
{loading ? <Loading size="1rem" /> : (payoutAddress ?? <Trans>Not Available</Trans>)}
</Typography>
</Tooltip>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function WalletConnectConfirmDialog(props: WalletConnectConfirmDi
<Typography color="textSecondary">
{displayComponent
? displayComponent(value, params, values, handleChangeValues)
: value?.toString() ?? <Trans>Not Available</Trans>}
: (value?.toString() ?? <Trans>Not Available</Trans>)}
</Typography>
</Flex>
</LocalErrorBoundary>
Expand Down
18 changes: 9 additions & 9 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
"test": "jest"
},
"dependencies": {
"@babel/runtime": "7.22.10",
"@babel/runtime": "7.25.6",
"core-js": "3.32.1",
"match-sorter": "6.3.1",
"match-sorter": "6.3.4",
"use-dark-mode": "2.3.1"
},
"devDependencies": {
"@babel/core": "7.22.10",
"@babel/plugin-transform-runtime": "7.22.10",
"@babel/preset-env": "7.24.5",
"@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@babel/core": "7.25.2",
"@babel/plugin-transform-runtime": "7.25.4",
"@babel/preset-env": "7.25.4",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@mui/icons-material": "5.14.3",
"@mui/material": "5.14.5",
"@mui/styled-engine-sc": "5.12.0",
"@rollup/plugin-alias": "5.0.0",
"@rollup/plugin-babel": "6.0.3",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-node-resolve": "15.2.1",
"@svgr/rollup": "8.1.0",
Expand All @@ -54,7 +54,7 @@
"jest": "29.6.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "3.28.1",
"rollup": "3.29.5",
"rollup-plugin-node-externals": "7.1.2",
"styled-components": "6.0.7",
"typescript": "5.1.6"
Expand Down
Loading

0 comments on commit eccec1a

Please sign in to comment.