diff --git a/relay-reactjs-chat/package.json b/relay-reactjs-chat/package.json index 06e9063..bea045d 100644 --- a/relay-reactjs-chat/package.json +++ b/relay-reactjs-chat/package.json @@ -40,6 +40,9 @@ ] }, "devDependencies": { - "cra-webpack-rewired": "^1.0.1" + "cra-webpack-rewired": "^1.0.1", + "process": "^0.11.10", + "stream-browserify": "^3.0.0", + "typescript": "^4.7.4" } } diff --git a/relay-reactjs-chat/pnpm-lock.yaml b/relay-reactjs-chat/pnpm-lock.yaml index 25adaa5..b273f5a 100644 --- a/relay-reactjs-chat/pnpm-lock.yaml +++ b/relay-reactjs-chat/pnpm-lock.yaml @@ -6,10 +6,13 @@ specifiers: '@testing-library/user-event': ^14.0.4 cra-webpack-rewired: ^1.0.1 js-waku: ^0.24.0 + process: ^0.11.10 protobufjs: ^6.11.2 react: ^18.1.0 react-dom: ^18.1.0 react-scripts: 5.0.1 + stream-browserify: ^3.0.0 + typescript: ^4.7.4 dependencies: '@testing-library/jest-dom': 5.16.5 @@ -19,10 +22,13 @@ dependencies: protobufjs: 6.11.3 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 - react-scripts: 5.0.1_react@18.2.0 + react-scripts: 5.0.1_qtbnez4q7bzoc4eqybg3efzzxe devDependencies: cra-webpack-rewired: 1.0.1 + process: 0.11.10 + stream-browserify: 3.0.0 + typescript: 4.7.4 packages: @@ -2679,7 +2685,7 @@ packages: '@types/yargs-parser': 21.0.0 dev: false - /@typescript-eslint/eslint-plugin/5.32.0_wuikv5nqgdfyng42xxm7lklfmi: + /@typescript-eslint/eslint-plugin/5.32.0_iosr3hrei2tubxveewluhu5lhy: resolution: {integrity: sha512-CHLuz5Uz7bHP2WgVlvoZGhf0BvFakBJKAD/43Ty0emn4wXWv5k01ND0C0fHcl/Im8Td2y/7h44E9pca9qAu2ew==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2690,35 +2696,36 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.32.0_eslint@8.21.0 + '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq '@typescript-eslint/scope-manager': 5.32.0 - '@typescript-eslint/type-utils': 5.32.0_eslint@8.21.0 - '@typescript-eslint/utils': 5.32.0_eslint@8.21.0 + '@typescript-eslint/type-utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq + '@typescript-eslint/utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq debug: 4.3.4 eslint: 8.21.0 functional-red-black-tree: 1.0.1 ignore: 5.2.0 regexpp: 3.2.0 semver: 7.3.7 - tsutils: 3.21.0 + tsutils: 3.21.0_typescript@4.7.4 + typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/experimental-utils/5.32.0_eslint@8.21.0: + /@typescript-eslint/experimental-utils/5.32.0_qugx7qdu5zevzvxaiqyxfiwquq: resolution: {integrity: sha512-/x72MkqLAoOQSOHFxdm17irJ1PNDWtdrMmfacaYniGT26nibak8vxEf9xmoVE+yTYL8N77I2icPtw89Yx6HvNg==} 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.32.0_eslint@8.21.0 + '@typescript-eslint/utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq eslint: 8.21.0 transitivePeerDependencies: - supports-color - typescript dev: false - /@typescript-eslint/parser/5.32.0_eslint@8.21.0: + /@typescript-eslint/parser/5.32.0_qugx7qdu5zevzvxaiqyxfiwquq: resolution: {integrity: sha512-IxRtsehdGV9GFQ35IGm5oKKR2OGcazUoiNBxhRV160iF9FoyuXxjY+rIqs1gfnd+4eL98OjeGnMpE7RF/NBb3A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2730,9 +2737,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.32.0 '@typescript-eslint/types': 5.32.0 - '@typescript-eslint/typescript-estree': 5.32.0 + '@typescript-eslint/typescript-estree': 5.32.0_typescript@4.7.4 debug: 4.3.4 eslint: 8.21.0 + typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: false @@ -2745,7 +2753,7 @@ packages: '@typescript-eslint/visitor-keys': 5.32.0 dev: false - /@typescript-eslint/type-utils/5.32.0_eslint@8.21.0: + /@typescript-eslint/type-utils/5.32.0_qugx7qdu5zevzvxaiqyxfiwquq: resolution: {integrity: sha512-0gSsIhFDduBz3QcHJIp3qRCvVYbqzHg8D6bHFsDMrm0rURYDj+skBK2zmYebdCp+4nrd9VWd13egvhYFJj/wZg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2755,10 +2763,11 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.32.0_eslint@8.21.0 + '@typescript-eslint/utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq debug: 4.3.4 eslint: 8.21.0 - tsutils: 3.21.0 + tsutils: 3.21.0_typescript@4.7.4 + typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: false @@ -2768,7 +2777,7 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false - /@typescript-eslint/typescript-estree/5.32.0: + /@typescript-eslint/typescript-estree/5.32.0_typescript@4.7.4: resolution: {integrity: sha512-ZVAUkvPk3ITGtCLU5J4atCw9RTxK+SRc6hXqLtllC2sGSeMFWN+YwbiJR9CFrSFJ3w4SJfcWtDwNb/DmUIHdhg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2783,12 +2792,13 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.3.7 - tsutils: 3.21.0 + tsutils: 3.21.0_typescript@4.7.4 + typescript: 4.7.4 transitivePeerDependencies: - supports-color dev: false - /@typescript-eslint/utils/5.32.0_eslint@8.21.0: + /@typescript-eslint/utils/5.32.0_qugx7qdu5zevzvxaiqyxfiwquq: resolution: {integrity: sha512-W7lYIAI5Zlc5K082dGR27Fczjb3Q57ECcXefKU/f0ajM5ToM0P+N9NmJWip8GmGu/g6QISNT+K6KYB+iSHjXCQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -2797,7 +2807,7 @@ packages: '@types/json-schema': 7.0.11 '@typescript-eslint/scope-manager': 5.32.0 '@typescript-eslint/types': 5.32.0 - '@typescript-eslint/typescript-estree': 5.32.0 + '@typescript-eslint/typescript-estree': 5.32.0_typescript@4.7.4 eslint: 8.21.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.21.0 @@ -4737,7 +4747,7 @@ packages: source-map: 0.6.1 dev: false - /eslint-config-react-app/7.0.1_eslint@8.21.0+jest@27.5.1: + /eslint-config-react-app/7.0.1_gxsh7ni3jr2i4mnimuxscncbum: resolution: {integrity: sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -4750,18 +4760,19 @@ packages: '@babel/core': 7.18.10 '@babel/eslint-parser': 7.18.9_xqt7ek4fk233nrovqiamjvck4u '@rushstack/eslint-patch': 1.1.4 - '@typescript-eslint/eslint-plugin': 5.32.0_wuikv5nqgdfyng42xxm7lklfmi - '@typescript-eslint/parser': 5.32.0_eslint@8.21.0 + '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy + '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq babel-preset-react-app: 10.0.1 confusing-browser-globals: 1.0.11 eslint: 8.21.0 eslint-plugin-flowtype: 8.0.3_eslint@8.21.0 eslint-plugin-import: 2.26.0_wuikv5nqgdfyng42xxm7lklfmi - eslint-plugin-jest: 25.7.0_fjcobaixxgi4hlxfx5wlnmo74u + eslint-plugin-jest: 25.7.0_rgnm43ao3zb6h53qs7rzyfjfmm eslint-plugin-jsx-a11y: 6.6.1_eslint@8.21.0 eslint-plugin-react: 7.30.1_eslint@8.21.0 eslint-plugin-react-hooks: 4.6.0_eslint@8.21.0 - eslint-plugin-testing-library: 5.6.0_eslint@8.21.0 + eslint-plugin-testing-library: 5.6.0_qugx7qdu5zevzvxaiqyxfiwquq + typescript: 4.7.4 transitivePeerDependencies: - '@babel/plugin-syntax-flow' - '@babel/plugin-transform-react-jsx' @@ -4798,7 +4809,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.32.0_eslint@8.21.0 + '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq debug: 3.2.7 eslint-import-resolver-node: 0.3.6 find-up: 2.1.0 @@ -4829,7 +4840,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.32.0_eslint@8.21.0 + '@typescript-eslint/parser': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq array-includes: 3.1.5 array.prototype.flat: 1.3.0 debug: 2.6.9 @@ -4850,7 +4861,7 @@ packages: - supports-color dev: false - /eslint-plugin-jest/25.7.0_fjcobaixxgi4hlxfx5wlnmo74u: + /eslint-plugin-jest/25.7.0_rgnm43ao3zb6h53qs7rzyfjfmm: resolution: {integrity: sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} peerDependencies: @@ -4863,8 +4874,8 @@ packages: jest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 5.32.0_wuikv5nqgdfyng42xxm7lklfmi - '@typescript-eslint/experimental-utils': 5.32.0_eslint@8.21.0 + '@typescript-eslint/eslint-plugin': 5.32.0_iosr3hrei2tubxveewluhu5lhy + '@typescript-eslint/experimental-utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq eslint: 8.21.0 jest: 27.5.1 transitivePeerDependencies: @@ -4926,13 +4937,13 @@ packages: string.prototype.matchall: 4.0.7 dev: false - /eslint-plugin-testing-library/5.6.0_eslint@8.21.0: + /eslint-plugin-testing-library/5.6.0_qugx7qdu5zevzvxaiqyxfiwquq: resolution: {integrity: sha512-y63TRzPhGCMNsnUwMGJU1MFWc/3GvYw+nzobp9QiyNTTKsgAt5RKAOT1I34+XqVBpX1lC8bScoOjCkP7iRv0Mw==} 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.32.0_eslint@8.21.0 + '@typescript-eslint/utils': 5.32.0_qugx7qdu5zevzvxaiqyxfiwquq eslint: 8.21.0 transitivePeerDependencies: - supports-color @@ -5438,7 +5449,7 @@ packages: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} dev: false - /fork-ts-checker-webpack-plugin/6.5.2_u2suxbtqimpjcabkd5w2ufy4qm: + /fork-ts-checker-webpack-plugin/6.5.2_o76vzsp5j2es3tw47tgtdagf3m: resolution: {integrity: sha512-m5cUmF30xkZ7h4tWUgTAcEaKmUW7tfyUyTqNNOz7OxWJ0v1VWKTcOvH8FWHUwSjlW/356Ijc9vi3XfcPstpQKA==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -5466,6 +5477,7 @@ packages: schema-utils: 2.7.0 semver: 7.3.7 tapable: 1.1.3 + typescript: 4.7.4 webpack: 5.74.0 dev: false @@ -9167,6 +9179,11 @@ packages: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} dev: false + /process/0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + dev: true + /progress/2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} @@ -9299,7 +9316,7 @@ packages: whatwg-fetch: 3.6.2 dev: false - /react-dev-utils/12.0.1_u2suxbtqimpjcabkd5w2ufy4qm: + /react-dev-utils/12.0.1_o76vzsp5j2es3tw47tgtdagf3m: resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==} engines: {node: '>=14'} dependencies: @@ -9312,7 +9329,7 @@ packages: escape-string-regexp: 4.0.0 filesize: 8.0.7 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.2_u2suxbtqimpjcabkd5w2ufy4qm + fork-ts-checker-webpack-plugin: 6.5.2_o76vzsp5j2es3tw47tgtdagf3m global-modules: 2.0.0 globby: 11.1.0 gzip-size: 6.0.0 @@ -9372,7 +9389,7 @@ packages: engines: {node: '>=0.10.0'} dev: false - /react-scripts/5.0.1_react@18.2.0: + /react-scripts/5.0.1_qtbnez4q7bzoc4eqybg3efzzxe: resolution: {integrity: sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==} engines: {node: '>=14.0.0'} hasBin: true @@ -9399,7 +9416,7 @@ packages: dotenv: 10.0.0 dotenv-expand: 5.1.0 eslint: 8.21.0 - eslint-config-react-app: 7.0.1_eslint@8.21.0+jest@27.5.1 + eslint-config-react-app: 7.0.1_gxsh7ni3jr2i4mnimuxscncbum eslint-webpack-plugin: 3.2.0_u2suxbtqimpjcabkd5w2ufy4qm file-loader: 6.2.0_webpack@5.74.0 fs-extra: 10.1.0 @@ -9417,7 +9434,7 @@ packages: prompts: 2.4.2 react: 18.2.0 react-app-polyfill: 3.0.0 - react-dev-utils: 12.0.1_u2suxbtqimpjcabkd5w2ufy4qm + react-dev-utils: 12.0.1_o76vzsp5j2es3tw47tgtdagf3m react-refresh: 0.11.0 resolve: 1.22.1 resolve-url-loader: 4.0.0 @@ -9427,6 +9444,7 @@ packages: style-loader: 3.3.1_webpack@5.74.0 tailwindcss: 3.1.8 terser-webpack-plugin: 5.3.3_webpack@5.74.0 + typescript: 4.7.4 webpack: 5.74.0 webpack-dev-server: 4.9.3_webpack@5.74.0 webpack-manifest-plugin: 4.1.1_webpack@5.74.0 @@ -9499,7 +9517,6 @@ packages: inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 - dev: false /readdirp/3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} @@ -9798,7 +9815,6 @@ packages: /safe-buffer/5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - dev: false /safer-buffer/2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -10190,6 +10206,13 @@ packages: engines: {node: '>= 0.8'} dev: false + /stream-browserify/3.0.0: + resolution: {integrity: sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==} + dependencies: + inherits: 2.0.4 + readable-stream: 3.6.0 + dev: true + /stream-to-it/0.2.4: resolution: {integrity: sha512-4vEbkSs83OahpmBybNJXlJd7d6/RxzkkSdT3I0mnGt79Xd2Kk+e1JqbvAvsQfCeKj3aKb0QIWkyK3/n0j506vQ==} dependencies: @@ -10277,7 +10300,6 @@ packages: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: safe-buffer: 5.2.1 - dev: false /stringify-object/3.3.0: resolution: {integrity: sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==} @@ -10657,13 +10679,14 @@ packages: resolution: {integrity: sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==} dev: false - /tsutils/3.21.0: + /tsutils/3.21.0_typescript@4.7.4: resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} engines: {node: '>= 6'} peerDependencies: typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' dependencies: tslib: 1.14.1 + typescript: 4.7.4 dev: false /tunnel-agent/0.6.0: @@ -10727,6 +10750,11 @@ packages: is-typedarray: 1.0.0 dev: false + /typescript/4.7.4: + resolution: {integrity: sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==} + engines: {node: '>=4.2.0'} + hasBin: true + /uint8arrays/3.1.0: resolution: {integrity: sha512-ei5rfKtoRO8OyOIor2Rz5fhzjThwIHJZ3uyDPnDHTXbP0aMQ1RN/6AI5B5d9dBxJOU+BvOAk7ZQ1xphsX8Lrog==} dependencies: @@ -10822,7 +10850,6 @@ packages: /util-deprecate/1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - dev: false /util.promisify/1.0.1: resolution: {integrity: sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==}