Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pnpm vulnerable deps update #530

Merged
merged 9 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@apollo/client": "^3.8.8",
"@apollo/rover": "^0.19.1",
"@babel/preset-react": "^7.23.3",
"@babel/preset-react": "^7.24.1",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-typed-document-node/core": "^3.2.0",
"@nx/devkit": "17.1.3",
Expand All @@ -30,7 +30,7 @@
"@svgr/webpack": "^8.1.0",
"@tailwindcss/typography": "^0.5.10",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.1",
Expand Down Expand Up @@ -112,7 +112,7 @@
"react-router": "^6.16.0",
"react-router-dom": "6.16.0",
"regenerator-runtime": "^0.14.0",
"styled-components": "6.0.8"
"styled-components": "6.1.8"
},
"pnpm": {
"patchedDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ Rules that are ignored:

- `S101` - Use of assert detected

- `A003` - Class attribute {name} is shadowing a python builtin
- `A003` - Class attribute \{name} is shadowing a python builtin

- `S105` - Possible hardcoded password: "{}"
- `S105` - Possible hardcoded password: "\{}"

- `SIM105` - Use contextlib.suppress({exception}) instead of try-except-pass
- `SIM105` - Use contextlib.suppress(\{exception}) instead of try-except-pass

- `A002` - Argument {name} is shadowing a python builtin
- `A002` - Argument \{name} is shadowing a python builtin

- `B904` - Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling

- `PLR0913` - Too many arguments to function call ({c_args} > {max_args})
:::
- `PLR0913` - Too many arguments to function call (\{c_args} > \{max_args})
:::
18 changes: 9 additions & 9 deletions packages/internal/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@
"clear": "nx exec -- docusaurus clear"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.2.1",
"@docusaurus/preset-classic": "^3.2.1",
"@mdx-js/react": "^3.0.1",
"clsx": "^1.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-config": "^5.1.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.3",
"@docusaurus/types": "^2.4.3",
"@docusaurus/module-type-aliases": "^3.2.1",
"@docusaurus/types": "^3.2.1",
"@sb/core": "*",
"@sb/infra-core": "*",
"@sb/infra-shared": "*",
"@sb/tools": "*",
"@sb/webapp-api-client": "*",
"@sb/webapp-core": "*",
"docusaurus-plugin-typedoc": "^0.20.2",
"typedoc": "^0.25.4",
"docusaurus-plugin-typedoc": "^0.22.0",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"webapp": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp-libs/webapp-api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@sb/webapp-core": "*",
"apollo-upload-client": "^17.0.0",
"axios": "^0.27.2",
"axios": "^0.28.0",
"axios-case-converter": "^0.9.0",
"http-status-codes": "^2.3.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ApiClientEvents, PendingRequest } from './types';

let pendingRequests: PendingRequest[] = [];

function delayRequest(request: AxiosRequestConfig) {
function delayRequest(request?: AxiosRequestConfig) {
return new Promise((resolve, reject) => {
pendingRequests.push({
request,
Expand All @@ -30,13 +30,14 @@ export const createRefreshTokenInterceptor = (props?: CreateRefreshTokenIntercep
return Promise.reject(error);
}

if (error.config.url === AUTH_URL.REFRESH_TOKEN) {
if (error.config?.url === AUTH_URL.REFRESH_TOKEN) {
return Promise.reject(error);
}

try {
const isRequestQueueEmpty = pendingRequests.length === 0;
const requestPromise = delayRequest(error.config);

if (isRequestQueueEmpty) {
await refreshToken();
await Promise.all(
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp-libs/webapp-api-client/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type FieldErrors = FieldError[];
export type FormSubmitError<T = unknown> = { [key in keyof T | 'nonFieldErrors']?: FieldErrors };

export type PendingRequest = {
request: AxiosRequestConfig;
request?: AxiosRequestConfig;
resolve(value: any): void;
reject(value: any): void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ interface QueryResult {
}

/**
* useMediaQuery({above: Breakpoint.DESKTOP}); => true for desktop and above, false otherwise
* useMediaQuery({below: Breakpoint.DESKTOP}); => true for desktop and below, false otherwise
* useMediaQuery({matches: Breakpoint.DESKTOP}); => true for desktop, false otherwise
* useMediaQuery({matches: [Breakpoint.DESKTOP, Breakpoint.MOBILE]}); => true for desktop and mobile, false otherwise
* useMediaQuery(\\{above: Breakpoint.DESKTOP}); => true for desktop and above, false otherwise
* useMediaQuery(\\{below: Breakpoint.DESKTOP}); => true for desktop and below, false otherwise
* useMediaQuery(\\{matches: Breakpoint.DESKTOP}); => true for desktop, false otherwise
* useMediaQuery(\\{matches: [Breakpoint.DESKTOP, Breakpoint.MOBILE]}); => true for desktop and mobile, false otherwise
**/

export const useMediaQuery = ({ above, below, matches }: BreakpointQuery): QueryResult => {
const theme = useTheme();
const activeBreakpoint: media.Breakpoint = theme.activeBreakpoint ?? media.Breakpoint.MOBILE;
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp-libs/webapp-emails/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@types/rollup-plugin-peer-deps-external": "^2.2.4",
"axios": "^0.27.2",
"axios": "^0.28.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-polyfill-node": "^0.12.0"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.2",
"express": "^4.18.2",
"nodemailer": "^6.9.7",
"express": "^4.19.2",
"nodemailer": "^6.9.13",
"yaml": "^2.3.4"
},
"devDependencies": {
Expand Down
Loading
Loading