Skip to content

Commit

Permalink
Merge pull request #239 from nekochans/feature/issue238/upgrade-npm-p…
Browse files Browse the repository at this point in the history
…ackage

npm Packageのバージョンを最新安定版に更新
  • Loading branch information
keitakn authored Jan 8, 2023
2 parents 38c9b58 + 40205ec commit 6ba4f4f
Show file tree
Hide file tree
Showing 7 changed files with 4,050 additions and 1,789 deletions.
5,770 changes: 4,014 additions & 1,756 deletions package-lock.json

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,42 @@
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
},
"dependencies": {
"@nekochans/lgtm-cat-ui": "^2.2.7",
"@sentry/nextjs": "^7.23.0",
"@nekochans/lgtm-cat-ui": "^2.2.8",
"@sentry/nextjs": "^7.29.0",
"lodash.throttle": "^4.1.1",
"next": "^13.0.6",
"next": "^13.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-markdown": "^8.0.4",
"ress": "^5.0.2",
"styled-components": "^5.3.6"
},
"devDependencies": {
"@storybook/addon-a11y": "^6.5.14",
"@storybook/addon-actions": "^6.5.14",
"@storybook/addon-essentials": "^6.5.14",
"@storybook/addon-interactions": "^6.5.14",
"@storybook/addon-links": "^6.5.14",
"@storybook/builder-webpack5": "^6.5.14",
"@storybook/manager-webpack5": "^6.5.14",
"@storybook/react": "^6.5.14",
"@storybook/addon-a11y": "^6.5.15",
"@storybook/addon-actions": "^6.5.15",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/addon-interactions": "^6.5.15",
"@storybook/addon-links": "^6.5.15",
"@storybook/builder-webpack5": "^6.5.15",
"@storybook/manager-webpack5": "^6.5.15",
"@storybook/react": "^6.5.15",
"@storybook/testing-library": "^0.0.13",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/eslint": "^8.4.10",
"@types/jest": "^29.2.4",
"@types/jest": "^29.2.5",
"@types/lodash.throttle": "^4.1.7",
"@types/prettier": "^2.7.1",
"@types/prettier": "^2.7.2",
"@types/react": "18.0.26",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"chromatic": "^6.11.4",
"eslint": "^8.29.0",
"eslint-config-next": "^13.0.6",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"chromatic": "^6.14.0",
"eslint": "^8.31.0",
"eslint-config-next": "^13.1.1",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard-with-typescript": "^26.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-n": "^15.6.0",
"eslint-plugin-promise": "^6.1.1",
Expand All @@ -68,22 +68,22 @@
"eslint-plugin-styled-components-varname": "^1.0.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"msw": "^0.49.1",
"msw": "^0.49.2",
"msw-storybook-addon": "^1.6.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.19",
"postcss": "^8.4.21",
"postcss-jsx": "^0.36.4",
"postcss-syntax": "^0.36.2",
"prettier": "^2.8.0",
"prettier": "^2.8.2",
"storybook-addon-next": "^1.7.1",
"stylelint": "14.16.0",
"stylelint": "14.16.1",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-recess-order": "^3.1.0",
"stylelint-config-smarthr": "^1.1.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-styled-components": "^0.1.1",
"ts-jest": "^29.0.3",
"typescript": "4.9.3",
"typescript": "4.9.4",
"webpack": "^5.75.0",
"whatwg-fetch": "^3.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion public/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* tslint:disable */

/**
* Mock Service Worker (0.49.1).
* Mock Service Worker (0.49.2).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
Expand Down
3 changes: 2 additions & 1 deletion src/constants/httpStatusCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export const httpStatusCode = {
serviceUnavailable: 503,
} as const;

export type HttpStatusCode = typeof httpStatusCode[keyof typeof httpStatusCode];
export type HttpStatusCode =
(typeof httpStatusCode)[keyof typeof httpStatusCode];
2 changes: 1 addition & 1 deletion src/features/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { languages, type Language } from './language';

const locales = languages;

export type Locale = typeof locales[number];
export type Locale = (typeof locales)[number];

const isLocale = (value: unknown): value is Locale => {
if (typeof value !== 'string') {
Expand Down
2 changes: 1 addition & 1 deletion src/features/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const i18nUrlList: I18nUrlList = {
},
};

export type AppUrl = typeof appUrlList[keyof typeof appUrlList];
export type AppUrl = (typeof appUrlList)[keyof typeof appUrlList];

const defaultUrl = 'http://localhost:2222/api';

Expand Down
8 changes: 5 additions & 3 deletions src/pages/api/oidc/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ const methodNotAllowedErrorResponse = (
| IssueClientCredentialsAccessTokenResponse
| IssueClientCredentialsAccessTokenErrorResponse
>
) =>
) => {
res.status(httpStatusCode.methodNotAllowed).json({
type: 'MethodNotAllowed',
title: 'This method is not allowed.',
status: httpStatusCode.methodNotAllowed,
});
};

const issueClientCredentialsAccessToken = async (
res: NextApiResponse<
Expand Down Expand Up @@ -67,7 +68,7 @@ const issueClientCredentialsAccessToken = async (

const responseBody = (await response.json()) as CognitoTokenResponseBody;

return res.status(httpStatusCode.ok).json({
res.status(httpStatusCode.ok).json({
jwtString: responseBody.access_token,
});
};
Expand All @@ -81,12 +82,13 @@ const handler: NextApiHandler = async (
): Promise<void> => {
switch (req.method) {
case 'POST': {
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
const response = await issueClientCredentialsAccessToken(res);

return response;
}
default: {
return methodNotAllowedErrorResponse(res);
methodNotAllowedErrorResponse(res);
}
}
};
Expand Down

1 comment on commit 6ba4f4f

@vercel
Copy link

@vercel vercel bot commented on 6ba4f4f Jan 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.