From 551ef9f7c5122ec6819d4161367b801239a62f32 Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Mon, 21 Aug 2023 16:14:16 +0300 Subject: [PATCH] feat: add eslint --- .eslintrc.cjs | 11 + package.json | 13 +- pnpm-lock.yaml | 368 +++++++++++++----- src/components/IdentifierKeys.tsx | 7 +- src/components/IdentifierServices.tsx | 3 +- src/components/NewChatThreadModal.tsx | 4 +- src/context/ChatProvider.tsx | 4 +- src/context/plugins/AliasDiscoveryProvider.ts | 4 +- src/context/plugins/IdentifierProfile.tsx | 12 +- src/hooks/useSelectCredentials.ts | 2 +- 10 files changed, 309 insertions(+), 119 deletions(-) create mode 100644 .eslintrc.cjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 00000000..c24e7cd6 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,11 @@ +/* eslint-env node */ +module.exports = { + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'], + parser: '@typescript-eslint/parser', + plugins: ['@typescript-eslint'], + root: true, + "rules": { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/ban-ts-comment": "off", + } +}; \ No newline at end of file diff --git a/package.json b/package.json index 9d9b1547..529ff103 100644 --- a/package.json +++ b/package.json @@ -48,15 +48,11 @@ "build-electron": "cross-env PUBLIC_URL=./ craco build", "electron": "electron .", "electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3000 electron .", - "electron-dist": "electron-builder" + "electron-dist": "electron-builder", + "lint": "eslint ./src" }, "homepage": "https://explore.veramo.dev", - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, + "prettier": { "jsxBracketSameLine": false, "trailingComma": "all", @@ -135,6 +131,8 @@ "@types/react-router-dom": "^5.3.3", "@types/url-parse": "^1.4.8", "@types/uuid": "^9.0.1", + "@typescript-eslint/eslint-plugin": "^6.4.0", + "@typescript-eslint/parser": "^6.4.0", "@veramo-community/react-components": "^1.4.0", "@veramo-community/veramo-react": "^1.0.82", "@veramo/core": "5.4.2-next.10", @@ -172,6 +170,7 @@ "did-resolver": "^4.1.0", "electron": "^26.0.0", "electron-builder": "^24.6.3", + "eslint": "^8.47.0", "ethr-did-resolver": "^8.0.0", "https-browserify": "^1.0.0", "husky": "^8.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0db4170..9083894b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -85,6 +85,12 @@ devDependencies: '@types/uuid': specifier: ^9.0.1 version: 9.0.1 + '@typescript-eslint/eslint-plugin': + specifier: ^6.4.0 + version: 6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/parser': + specifier: ^6.4.0 + version: 6.4.0(eslint@8.47.0)(typescript@4.9.5) '@veramo-community/react-components': specifier: ^1.4.0 version: 1.4.0(react@18.2.0) @@ -196,6 +202,9 @@ devDependencies: electron-builder: specifier: ^24.6.3 version: 24.6.3 + eslint: + specifier: ^8.47.0 + version: 8.47.0 ethr-did-resolver: specifier: ^8.0.0 version: 8.0.0 @@ -240,7 +249,7 @@ devDependencies: version: 6.11.2(react-dom@18.2.0)(react@18.2.0) react-scripts: specifier: ^5.0.1 - version: 5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5) + version: 5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5) semantic-release: specifier: ^21.0.2 version: 21.0.2 @@ -278,6 +287,11 @@ packages: resolution: {integrity: sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==} dev: true + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} + engines: {node: '>=0.10.0'} + dev: true + /@adobe/css-tools@4.2.0: resolution: {integrity: sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==} dev: true @@ -670,7 +684,7 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.21.8(@babel/core@7.22.1)(eslint@8.41.0): + /@babel/eslint-parser@7.21.8(@babel/core@7.22.1)(eslint@8.47.0): resolution: {integrity: sha512-HLhI+2q+BP3sf78mFUZNCGc10KEmoUqtUT1OCdMZsN+qr4qFeLUod62/zAnF3jNQstwyasDkZnVXwfK2Bml7MQ==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: @@ -679,7 +693,7 @@ packages: dependencies: '@babel/core': 7.22.1 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 - eslint: 8.41.0 + eslint: 8.47.0 eslint-visitor-keys: 2.1.0 semver: 6.3.0 dev: true @@ -2524,7 +2538,7 @@ packages: cosmiconfig-typescript-loader: 1.0.9(@types/node@20.2.5)(cosmiconfig@7.1.0)(typescript@4.9.5) cross-spawn: 7.0.3 lodash: 4.17.21 - react-scripts: 5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5) + react-scripts: 5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5) semver: 7.5.1 webpack-merge: 5.9.0 transitivePeerDependencies: @@ -3163,14 +3177,14 @@ packages: unescape-js: 1.1.4 dev: true - /@eslint-community/eslint-utils@4.4.0(eslint@8.41.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.47.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.41.0 - eslint-visitor-keys: 3.4.1 + eslint: 8.47.0 + eslint-visitor-keys: 3.4.3 dev: true /@eslint-community/regexpp@4.5.1: @@ -3178,13 +3192,18 @@ packages: engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.0.3: - resolution: {integrity: sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==} + /@eslint-community/regexpp@4.6.2: + resolution: {integrity: sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + /@eslint/eslintrc@2.1.2: + resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 debug: 4.3.4 - espree: 9.5.2 + espree: 9.6.1 globals: 13.20.0 ignore: 5.2.4 import-fresh: 3.3.0 @@ -3195,8 +3214,8 @@ packages: - supports-color dev: true - /@eslint/js@8.41.0: - resolution: {integrity: sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==} + /@eslint/js@8.47.0: + resolution: {integrity: sha512-P6omY1zv5MItm93kLM8s2vr1HICJH8v0dvddDhysbIuZ+vcjOHg5Zbkf1mTkcmi2JA9oBG2anOkRnW8WJTS8Og==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true @@ -3868,8 +3887,8 @@ packages: '@hapi/hoek': 9.3.0 dev: true - /@humanwhocodes/config-array@0.11.8: - resolution: {integrity: sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==} + /@humanwhocodes/config-array@0.11.10: + resolution: {integrity: sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==} engines: {node: '>=10.10.0'} dependencies: '@humanwhocodes/object-schema': 1.2.1 @@ -6170,7 +6189,7 @@ packages: dev: true optional: true - /@typescript-eslint/eslint-plugin@5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.41.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -6182,12 +6201,12 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.5.1 - '@typescript-eslint/parser': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.59.8(eslint@8.47.0)(typescript@4.9.5) '@typescript-eslint/scope-manager': 5.59.8 - '@typescript-eslint/type-utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) - '@typescript-eslint/utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/type-utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) debug: 4.3.4 - eslint: 8.41.0 + eslint: 8.47.0 grapheme-splitter: 1.0.4 ignore: 5.2.4 natural-compare-lite: 1.4.0 @@ -6198,20 +6217,49 @@ packages: - supports-color dev: true - /@typescript-eslint/experimental-utils@5.59.8(eslint@8.41.0)(typescript@4.9.5): + /@typescript-eslint/eslint-plugin@6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@4.9.5): + resolution: {integrity: sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': 4.6.2 + '@typescript-eslint/parser': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/scope-manager': 6.4.0 + '@typescript-eslint/type-utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.4.0 + debug: 4.3.4 + eslint: 8.47.0 + graphemer: 1.4.0 + ignore: 5.2.4 + natural-compare: 1.4.0 + semver: 7.5.4 + ts-api-utils: 1.0.2(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/experimental-utils@5.59.8(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-jAf+hihtd0G2RLB9x796+3i8D0L5T5xjftuPpJ82RLsPNHdzGXmbZNNftQ558h90ogc45DD8/W3OrxmdSO5Nng==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@typescript-eslint/utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) - eslint: 8.41.0 + '@typescript-eslint/utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) + eslint: 8.47.0 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/parser@5.59.8(eslint@8.41.0)(typescript@4.9.5): + /@typescript-eslint/parser@5.59.8(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -6225,7 +6273,28 @@ packages: '@typescript-eslint/types': 5.59.8 '@typescript-eslint/typescript-estree': 5.59.8(typescript@4.9.5) debug: 4.3.4 - eslint: 8.41.0 + eslint: 8.47.0 + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/parser@6.4.0(eslint@8.47.0)(typescript@4.9.5): + resolution: {integrity: sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': 6.4.0 + '@typescript-eslint/types': 6.4.0 + '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) + '@typescript-eslint/visitor-keys': 6.4.0 + debug: 4.3.4 + eslint: 8.47.0 typescript: 4.9.5 transitivePeerDependencies: - supports-color @@ -6239,7 +6308,15 @@ packages: '@typescript-eslint/visitor-keys': 5.59.8 dev: true - /@typescript-eslint/type-utils@5.59.8(eslint@8.41.0)(typescript@4.9.5): + /@typescript-eslint/scope-manager@6.4.0: + resolution: {integrity: sha512-TUS7vaKkPWDVvl7GDNHFQMsMruD+zhkd3SdVW0d7b+7Zo+bd/hXJQ8nsiUZMi1jloWo6c9qt3B7Sqo+flC1nig==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.4.0 + '@typescript-eslint/visitor-keys': 6.4.0 + dev: true + + /@typescript-eslint/type-utils@5.59.8(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -6250,20 +6327,45 @@ packages: optional: true dependencies: '@typescript-eslint/typescript-estree': 5.59.8(typescript@4.9.5) - '@typescript-eslint/utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) debug: 4.3.4 - eslint: 8.41.0 + eslint: 8.47.0 tsutils: 3.21.0(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: true + /@typescript-eslint/type-utils@6.4.0(eslint@8.47.0)(typescript@4.9.5): + resolution: {integrity: sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) + '@typescript-eslint/utils': 6.4.0(eslint@8.47.0)(typescript@4.9.5) + debug: 4.3.4 + eslint: 8.47.0 + ts-api-utils: 1.0.2(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + /@typescript-eslint/types@5.59.8: resolution: {integrity: sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true + /@typescript-eslint/types@6.4.0: + resolution: {integrity: sha512-+FV9kVFrS7w78YtzkIsNSoYsnOtrYVnKWSTVXoL1761CsCRv5wpDOINgsXpxD67YCLZtVQekDDyaxfjVWUJmmg==} + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + /@typescript-eslint/typescript-estree@5.59.8(typescript@4.9.5): resolution: {integrity: sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -6285,19 +6387,40 @@ packages: - supports-color dev: true - /@typescript-eslint/utils@5.59.8(eslint@8.41.0)(typescript@4.9.5): + /@typescript-eslint/typescript-estree@6.4.0(typescript@4.9.5): + resolution: {integrity: sha512-iDPJArf/K2sxvjOR6skeUCNgHR/tCQXBsa+ee1/clRKr3olZjZ/dSkXPZjG6YkPtnW6p5D1egeEPMCW6Gn4yLA==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 6.4.0 + '@typescript-eslint/visitor-keys': 6.4.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.5.4 + ts-api-utils: 1.0.2(typescript@4.9.5) + typescript: 4.9.5 + transitivePeerDependencies: + - supports-color + dev: true + + /@typescript-eslint/utils@5.59.8(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.41.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) '@types/json-schema': 7.0.12 '@types/semver': 7.5.0 '@typescript-eslint/scope-manager': 5.59.8 '@typescript-eslint/types': 5.59.8 '@typescript-eslint/typescript-estree': 5.59.8(typescript@4.9.5) - eslint: 8.41.0 + eslint: 8.47.0 eslint-scope: 5.1.1 semver: 7.5.4 transitivePeerDependencies: @@ -6305,6 +6428,25 @@ packages: - typescript dev: true + /@typescript-eslint/utils@6.4.0(eslint@8.47.0)(typescript@4.9.5): + resolution: {integrity: sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@types/json-schema': 7.0.12 + '@types/semver': 7.5.0 + '@typescript-eslint/scope-manager': 6.4.0 + '@typescript-eslint/types': 6.4.0 + '@typescript-eslint/typescript-estree': 6.4.0(typescript@4.9.5) + eslint: 8.47.0 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + /@typescript-eslint/visitor-keys@5.59.8: resolution: {integrity: sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -6313,6 +6455,14 @@ packages: eslint-visitor-keys: 3.4.1 dev: true + /@typescript-eslint/visitor-keys@6.4.0: + resolution: {integrity: sha512-yJSfyT+uJm+JRDWYRYdCm2i+pmvXJSMtPR9Cq5/XQs4QIgNoLcoRtDdzsLbLsFM/c6um6ohQkg/MLxWvoIndJA==} + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': 6.4.0 + eslint-visitor-keys: 3.4.3 + dev: true + /@umijs/route-utils@4.0.1: resolution: {integrity: sha512-+1ixf1BTOLuH+ORb4x8vYMPeIt38n9q0fJDwhv9nSxrV46mxbLF0nmELIo9CKQB2gHfuC4+hww6xejJ6VYnBHQ==} dev: true @@ -7219,12 +7369,12 @@ packages: acorn: 8.8.2 dev: true - /acorn-jsx@5.3.2(acorn@8.8.2): + /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.8.2 + acorn: 8.10.0 dev: true /acorn-walk@7.2.0: @@ -7243,6 +7393,12 @@ packages: hasBin: true dev: true + /acorn@8.10.0: + resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + /acorn@8.8.2: resolution: {integrity: sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==} engines: {node: '>=0.4.0'} @@ -10756,7 +10912,7 @@ packages: source-map: 0.6.1 dev: true - /eslint-config-react-app@7.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0)(jest@27.5.1)(typescript@4.9.5): + /eslint-config-react-app@7.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0)(jest@27.5.1)(typescript@4.9.5): resolution: {integrity: sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -10767,20 +10923,20 @@ packages: optional: true dependencies: '@babel/core': 7.22.1 - '@babel/eslint-parser': 7.21.8(@babel/core@7.22.1)(eslint@8.41.0) + '@babel/eslint-parser': 7.21.8(@babel/core@7.22.1)(eslint@8.47.0) '@rushstack/eslint-patch': 1.3.0 - '@typescript-eslint/eslint-plugin': 5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.41.0)(typescript@4.9.5) - '@typescript-eslint/parser': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/eslint-plugin': 5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.59.8(eslint@8.47.0)(typescript@4.9.5) babel-preset-react-app: 10.0.1 confusing-browser-globals: 1.0.11 - eslint: 8.41.0 - eslint-plugin-flowtype: 8.0.3(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0) - eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.59.8)(eslint@8.41.0) - eslint-plugin-jest: 25.7.0(@typescript-eslint/eslint-plugin@5.59.8)(eslint@8.41.0)(jest@27.5.1)(typescript@4.9.5) - eslint-plugin-jsx-a11y: 6.7.1(eslint@8.41.0) - eslint-plugin-react: 7.32.2(eslint@8.41.0) - eslint-plugin-react-hooks: 4.6.0(eslint@8.41.0) - eslint-plugin-testing-library: 5.11.0(eslint@8.41.0)(typescript@4.9.5) + eslint: 8.47.0 + eslint-plugin-flowtype: 8.0.3(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0) + eslint-plugin-import: 2.27.5(@typescript-eslint/parser@5.59.8)(eslint@8.47.0) + eslint-plugin-jest: 25.7.0(@typescript-eslint/eslint-plugin@5.59.8)(eslint@8.47.0)(jest@27.5.1)(typescript@4.9.5) + eslint-plugin-jsx-a11y: 6.7.1(eslint@8.47.0) + eslint-plugin-react: 7.32.2(eslint@8.47.0) + eslint-plugin-react-hooks: 4.6.0(eslint@8.47.0) + eslint-plugin-testing-library: 5.11.0(eslint@8.47.0)(typescript@4.9.5) typescript: 4.9.5 transitivePeerDependencies: - '@babel/plugin-syntax-flow' @@ -10801,7 +10957,7 @@ packages: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.59.8)(eslint-import-resolver-node@0.3.7)(eslint@8.41.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@5.59.8)(eslint-import-resolver-node@0.3.7)(eslint@8.47.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -10822,15 +10978,15 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.59.8(eslint@8.47.0)(typescript@4.9.5) debug: 3.2.7 - eslint: 8.41.0 + eslint: 8.47.0 eslint-import-resolver-node: 0.3.7 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0): + /eslint-plugin-flowtype@8.0.3(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0): resolution: {integrity: sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==} engines: {node: '>=12.0.0'} peerDependencies: @@ -10840,12 +10996,12 @@ packages: dependencies: '@babel/plugin-syntax-flow': 7.21.4(@babel/core@7.22.1) '@babel/plugin-transform-react-jsx': 7.22.5(@babel/core@7.22.1) - eslint: 8.41.0 + eslint: 8.47.0 lodash: 4.17.21 string-natural-compare: 3.0.1 dev: true - /eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.59.8)(eslint@8.41.0): + /eslint-plugin-import@2.27.5(@typescript-eslint/parser@5.59.8)(eslint@8.47.0): resolution: {integrity: sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow==} engines: {node: '>=4'} peerDependencies: @@ -10855,15 +11011,15 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.59.8(eslint@8.41.0)(typescript@4.9.5) + '@typescript-eslint/parser': 5.59.8(eslint@8.47.0)(typescript@4.9.5) array-includes: 3.1.6 array.prototype.flat: 1.3.1 array.prototype.flatmap: 1.3.1 debug: 3.2.7 doctrine: 2.1.0 - eslint: 8.41.0 + eslint: 8.47.0 eslint-import-resolver-node: 0.3.7 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.8)(eslint-import-resolver-node@0.3.7)(eslint@8.41.0) + eslint-module-utils: 2.8.0(@typescript-eslint/parser@5.59.8)(eslint-import-resolver-node@0.3.7)(eslint@8.47.0) has: 1.0.3 is-core-module: 2.12.1 is-glob: 4.0.3 @@ -10878,7 +11034,7 @@ packages: - supports-color dev: true - /eslint-plugin-jest@25.7.0(@typescript-eslint/eslint-plugin@5.59.8)(eslint@8.41.0)(jest@27.5.1)(typescript@4.9.5): + /eslint-plugin-jest@25.7.0(@typescript-eslint/eslint-plugin@5.59.8)(eslint@8.47.0)(jest@27.5.1)(typescript@4.9.5): resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} peerDependencies: @@ -10891,16 +11047,16 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.41.0)(typescript@4.9.5) - '@typescript-eslint/experimental-utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) - eslint: 8.41.0 + '@typescript-eslint/eslint-plugin': 5.59.8(@typescript-eslint/parser@5.59.8)(eslint@8.47.0)(typescript@4.9.5) + '@typescript-eslint/experimental-utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) + eslint: 8.47.0 jest: 27.5.1(ts-node@10.9.1) transitivePeerDependencies: - supports-color - typescript dev: true - /eslint-plugin-jsx-a11y@6.7.1(eslint@8.41.0): + /eslint-plugin-jsx-a11y@6.7.1(eslint@8.47.0): resolution: {integrity: sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==} engines: {node: '>=4.0'} peerDependencies: @@ -10915,7 +11071,7 @@ packages: axobject-query: 3.1.1 damerau-levenshtein: 1.0.8 emoji-regex: 9.2.2 - eslint: 8.41.0 + eslint: 8.47.0 has: 1.0.3 jsx-ast-utils: 3.3.3 language-tags: 1.0.5 @@ -10925,16 +11081,16 @@ packages: semver: 6.3.0 dev: true - /eslint-plugin-react-hooks@4.6.0(eslint@8.41.0): + /eslint-plugin-react-hooks@4.6.0(eslint@8.47.0): resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} engines: {node: '>=10'} peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 dependencies: - eslint: 8.41.0 + eslint: 8.47.0 dev: true - /eslint-plugin-react@7.32.2(eslint@8.41.0): + /eslint-plugin-react@7.32.2(eslint@8.47.0): resolution: {integrity: sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==} engines: {node: '>=4'} peerDependencies: @@ -10944,7 +11100,7 @@ packages: array.prototype.flatmap: 1.3.1 array.prototype.tosorted: 1.1.1 doctrine: 2.1.0 - eslint: 8.41.0 + eslint: 8.47.0 estraverse: 5.3.0 jsx-ast-utils: 3.3.3 minimatch: 3.1.2 @@ -10958,14 +11114,14 @@ packages: string.prototype.matchall: 4.0.8 dev: true - /eslint-plugin-testing-library@5.11.0(eslint@8.41.0)(typescript@4.9.5): + /eslint-plugin-testing-library@5.11.0(eslint@8.47.0)(typescript@4.9.5): resolution: {integrity: sha512-ELY7Gefo+61OfXKlQeXNIDVVLPcvKTeiQOoMZG9TeuWa7Ln4dUNRv8JdRWBQI9Mbb427XGlVB1aa1QPZxBJM8Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0, npm: '>=6'} peerDependencies: eslint: ^7.5.0 || ^8.0.0 dependencies: - '@typescript-eslint/utils': 5.59.8(eslint@8.41.0)(typescript@4.9.5) - eslint: 8.41.0 + '@typescript-eslint/utils': 5.59.8(eslint@8.47.0)(typescript@4.9.5) + eslint: 8.47.0 transitivePeerDependencies: - supports-color - typescript @@ -10979,8 +11135,8 @@ packages: estraverse: 4.3.0 dev: true - /eslint-scope@7.2.0: - resolution: {integrity: sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==} + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: esrecurse: 4.3.0 @@ -10997,7 +11153,12 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint-webpack-plugin@3.2.0(eslint@8.41.0)(webpack@5.84.1): + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + /eslint-webpack-plugin@3.2.0(eslint@8.47.0)(webpack@5.84.1): resolution: {integrity: sha512-avrKcGncpPbPSUHX6B3stNGzkKFto3eL+DKM4+VyMrVnhPc3vRczVlCq3uhuFOdRvDHTVXuzwk1ZKUrqDQHQ9w==} engines: {node: '>= 12.13.0'} peerDependencies: @@ -11005,7 +11166,7 @@ packages: webpack: ^5.0.0 dependencies: '@types/eslint': 8.40.0 - eslint: 8.41.0 + eslint: 8.47.0 jest-worker: 28.1.3 micromatch: 4.0.5 normalize-path: 3.0.0 @@ -11013,16 +11174,16 @@ packages: webpack: 5.84.1 dev: true - /eslint@8.41.0: - resolution: {integrity: sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==} + /eslint@8.47.0: + resolution: {integrity: sha512-spUQWrdPt+pRVP1TTJLmfRNJJHHZryFmptzcafwSvHsceV81djHOdnEeDmkdotZyLNjDhrOasNK8nikkoG1O8Q==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.41.0) - '@eslint-community/regexpp': 4.5.1 - '@eslint/eslintrc': 2.0.3 - '@eslint/js': 8.41.0 - '@humanwhocodes/config-array': 0.11.8 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.47.0) + '@eslint-community/regexpp': 4.6.2 + '@eslint/eslintrc': 2.1.2 + '@eslint/js': 8.47.0 + '@humanwhocodes/config-array': 0.11.10 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 ajv: 6.12.6 @@ -11031,9 +11192,9 @@ packages: debug: 4.3.4 doctrine: 3.0.0 escape-string-regexp: 4.0.0 - eslint-scope: 7.2.0 - eslint-visitor-keys: 3.4.1 - espree: 9.5.2 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 esquery: 1.5.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 @@ -11043,7 +11204,6 @@ packages: globals: 13.20.0 graphemer: 1.4.0 ignore: 5.2.4 - import-fresh: 3.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -11053,9 +11213,8 @@ packages: lodash.merge: 4.6.2 minimatch: 3.1.2 natural-compare: 1.4.0 - optionator: 0.9.1 + optionator: 0.9.3 strip-ansi: 6.0.1 - strip-json-comments: 3.1.1 text-table: 0.2.0 transitivePeerDependencies: - supports-color @@ -11068,13 +11227,13 @@ packages: dev: true optional: true - /espree@9.5.2: - resolution: {integrity: sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==} + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.8.2 - acorn-jsx: 5.3.2(acorn@8.8.2) - eslint-visitor-keys: 3.4.1 + acorn: 8.10.0 + acorn-jsx: 5.3.2(acorn@8.10.0) + eslint-visitor-keys: 3.4.3 dev: true /esprima@4.0.1: @@ -11926,7 +12085,7 @@ packages: signal-exit: 4.1.0 dev: true - /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.41.0)(typescript@4.9.5)(webpack@5.84.1): + /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.47.0)(typescript@4.9.5)(webpack@5.84.1): resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -11946,7 +12105,7 @@ packages: chokidar: 3.5.3 cosmiconfig: 6.0.0 deepmerge: 4.3.1 - eslint: 8.41.0 + eslint: 8.47.0 fs-extra: 9.1.0 glob: 7.2.3 memfs: 3.5.1 @@ -16407,16 +16566,16 @@ packages: word-wrap: 1.2.3 dev: true - /optionator@0.9.1: - resolution: {integrity: sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==} + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} dependencies: + '@aashutoshrathi/word-wrap': 1.2.6 deep-is: 0.1.4 fast-levenshtein: 2.0.6 levn: 0.4.1 prelude-ls: 1.2.1 type-check: 0.4.0 - word-wrap: 1.2.3 dev: true /ora@3.4.0: @@ -18548,7 +18707,7 @@ packages: whatwg-fetch: 3.6.2 dev: true - /react-dev-utils@12.0.1(eslint@8.41.0)(typescript@4.9.5)(webpack@5.84.1): + /react-dev-utils@12.0.1(eslint@8.47.0)(typescript@4.9.5)(webpack@5.84.1): resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==} engines: {node: '>=14'} peerDependencies: @@ -18567,7 +18726,7 @@ packages: escape-string-regexp: 4.0.0 filesize: 8.0.7 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.41.0)(typescript@4.9.5)(webpack@5.84.1) + fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.47.0)(typescript@4.9.5)(webpack@5.84.1) global-modules: 2.0.0 globby: 11.1.0 gzip-size: 6.0.0 @@ -18773,7 +18932,7 @@ packages: react: 18.2.0 dev: true - /react-scripts@5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5): + /react-scripts@5.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0)(react@18.2.0)(ts-node@10.9.1)(typescript@4.9.5): resolution: {integrity: sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==} engines: {node: '>=14.0.0'} hasBin: true @@ -18800,9 +18959,9 @@ packages: css-minimizer-webpack-plugin: 3.4.1(webpack@5.84.1) dotenv: 10.0.0 dotenv-expand: 5.1.0 - eslint: 8.41.0 - eslint-config-react-app: 7.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.41.0)(jest@27.5.1)(typescript@4.9.5) - eslint-webpack-plugin: 3.2.0(eslint@8.41.0)(webpack@5.84.1) + eslint: 8.47.0 + eslint-config-react-app: 7.0.1(@babel/plugin-syntax-flow@7.21.4)(@babel/plugin-transform-react-jsx@7.22.5)(eslint@8.47.0)(jest@27.5.1)(typescript@4.9.5) + eslint-webpack-plugin: 3.2.0(eslint@8.47.0)(webpack@5.84.1) file-loader: 6.2.0(webpack@5.84.1) fs-extra: 10.1.0 html-webpack-plugin: 5.5.1(webpack@5.84.1) @@ -18819,7 +18978,7 @@ packages: prompts: 2.4.2 react: 18.2.0 react-app-polyfill: 3.0.0 - react-dev-utils: 12.0.1(eslint@8.41.0)(typescript@4.9.5)(webpack@5.84.1) + react-dev-utils: 12.0.1(eslint@8.47.0)(typescript@4.9.5)(webpack@5.84.1) react-refresh: 0.11.0 resolve: 1.22.2 resolve-url-loader: 4.0.0 @@ -20953,6 +21112,15 @@ packages: resolution: {integrity: sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==} dev: true + /ts-api-utils@1.0.2(typescript@4.9.5): + resolution: {integrity: sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==} + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 4.9.5 + dev: true + /ts-custom-error@3.3.1: resolution: {integrity: sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==} engines: {node: '>=14.0.0'} diff --git a/src/components/IdentifierKeys.tsx b/src/components/IdentifierKeys.tsx index 07397e85..9d141391 100644 --- a/src/components/IdentifierKeys.tsx +++ b/src/components/IdentifierKeys.tsx @@ -3,7 +3,7 @@ import { Button, Card, List, message } from 'antd' import { useQuery } from 'react-query' import { useVeramo } from '@veramo-community/veramo-react' import IdentifierKey from './IdentifierKey' -import AddKeyModalForm, { AddKeyModalValues } from './AddKeyModalForm' +import AddKeyModalForm from './AddKeyModalForm' import CreateAndAddKeyModalForm, { CreateAndAddKeyModalValues, } from './CreateAndAddKeyModalForm' @@ -56,7 +56,7 @@ const IdentifierKeys: React.FC = ({ const showAddModal = () => { setIsAddModalVisible(true) } - const handleAddOk = async (values: AddKeyModalValues) => { + const handleAddOk = async () => { message.error('not implemented yet') setIsAddModalVisible(false) } @@ -100,12 +100,13 @@ const IdentifierKeys: React.FC = ({ data?.didDocument?.verificationMethod || data?.didDocument?.publicKey } renderItem={(item: any, i: number) => { + if (data?.didDocument?.id === undefined) return null return ( ) }} diff --git a/src/components/IdentifierServices.tsx b/src/components/IdentifierServices.tsx index df74c087..47973152 100644 --- a/src/components/IdentifierServices.tsx +++ b/src/components/IdentifierServices.tsx @@ -62,8 +62,9 @@ const IdentifierServices: React.FC = ({ { + if (data?.didDocument?.id === undefined) return null return ( - + ) }} > diff --git a/src/components/NewChatThreadModal.tsx b/src/components/NewChatThreadModal.tsx index 26cfe330..5cc75783 100644 --- a/src/components/NewChatThreadModal.tsx +++ b/src/components/NewChatThreadModal.tsx @@ -73,7 +73,9 @@ const NewChatThreadModal: React.FC = ({ ) { onCreate(message.from) } - } catch (e) {} + } catch (e) { + console.log(e) + } } else { onCreate(result) } diff --git a/src/context/ChatProvider.tsx b/src/context/ChatProvider.tsx index 40442db8..85baa55e 100644 --- a/src/context/ChatProvider.tsx +++ b/src/context/ChatProvider.tsx @@ -19,7 +19,7 @@ const ChatProvider = (props: any) => { agent?.availableMethods().includes('packDIDCommMessage') && agent?.availableMethods().includes('sendDIDCommMessage') ) { - const myDIDs = (await agent?.didManagerFind()) + const myDIDs = (await agent.didManagerFind()) .filter((did) => did.keys.some( (key) => key.type === 'X25519' || key.type === 'Ed25519', @@ -30,7 +30,7 @@ const ChatProvider = (props: any) => { ) if (myDIDs && myDIDs.length > 0) { - for (let d in myDIDs) { + for (const d in myDIDs) { const did = myDIDs[d].did pickup(agent, did, 'did:web:dev-didcomm-mediator.herokuapp.com') } diff --git a/src/context/plugins/AliasDiscoveryProvider.ts b/src/context/plugins/AliasDiscoveryProvider.ts index ea05ed31..e48844a0 100644 --- a/src/context/plugins/AliasDiscoveryProvider.ts +++ b/src/context/plugins/AliasDiscoveryProvider.ts @@ -30,7 +30,9 @@ export class AliasDiscoveryProvider implements AbstractDidDiscoveryProvider { alias: identifier.alias, }, })) - } catch (e) {} + } catch (e) { + console.log(e) + } return { provider: this.name, diff --git a/src/context/plugins/IdentifierProfile.tsx b/src/context/plugins/IdentifierProfile.tsx index 551783a8..552c0e76 100644 --- a/src/context/plugins/IdentifierProfile.tsx +++ b/src/context/plugins/IdentifierProfile.tsx @@ -66,7 +66,9 @@ export class IdentifierProfilePlugin implements IAgentPlugin { result[0].verifiableCredential.credentialSubject return { did: args.did, name, picture: picture || fallBackPictureUrl } } - } catch (e) {} + } catch (e) { + console.log(e) + } } // Try to get the profile from Kudos Credentials in the data store @@ -91,7 +93,9 @@ export class IdentifierProfilePlugin implements IAgentPlugin { result[0].verifiableCredential.credentialSubject return { did: args.did, name, picture: avatar || fallBackPictureUrl } } - } catch (e) {} + } catch (e) { + console.log(e) + } } // Try to use alias from the DID Manager @@ -105,7 +109,9 @@ export class IdentifierProfilePlugin implements IAgentPlugin { picture: fallBackPictureUrl, } } - } catch (e) {} + } catch (e) { + console.log(e) + } } // If it's a URL, use the hostname as the name diff --git a/src/hooks/useSelectCredentials.ts b/src/hooks/useSelectCredentials.ts index d74b4df2..5e169112 100644 --- a/src/hooks/useSelectCredentials.ts +++ b/src/hooks/useSelectCredentials.ts @@ -45,7 +45,7 @@ const useSelectedCredentials = (sdr?: ICredentialsForSdr[]) => { useEffect(() => { if (sdr) { - let defaultSelected: ValidationState = {} + const defaultSelected: ValidationState = {} sdr.map((sdr) => { if (sdr && sdr.essential) { if (sdr.credentials.length) {