diff --git a/package.json b/package.json index 2eb73a35..e887ecb6 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "homepage": "https://meshtastic.org", "dependencies": { "@emeraldpay/hashicon-react": "^0.5.2", - "@meshtastic/eslint-config": "^1.0.6", + "@meshtastic/eslint-config": "^1.0.7", "@meshtastic/meshtasticjs": "^0.6.51", "@reduxjs/toolkit": "^1.8.0", "@tippyjs/react": "^4.2.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4af903fd..5ad3a782 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,7 +3,7 @@ lockfileVersion: 5.3 specifiers: '@emeraldpay/hashicon-react': ^0.5.2 '@hookform/devtools': ^4.0.2 - '@meshtastic/eslint-config': ^1.0.6 + '@meshtastic/eslint-config': ^1.0.7 '@meshtastic/meshtasticjs': ^0.6.51 '@reduxjs/toolkit': ^1.8.0 '@tippyjs/react': ^4.2.6 @@ -48,7 +48,7 @@ specifiers: dependencies: '@emeraldpay/hashicon-react': 0.5.2 - '@meshtastic/eslint-config': 1.0.6 + '@meshtastic/eslint-config': 1.0.7 '@meshtastic/meshtasticjs': 0.6.51 '@reduxjs/toolkit': 1.8.0_react-redux@7.2.6+react@17.0.2 '@tippyjs/react': 4.2.6_react-dom@17.0.2+react@17.0.2 @@ -1612,11 +1612,11 @@ packages: engines: {node: '>=6.0.0'} dev: false - /@meshtastic/eslint-config/1.0.6: - resolution: {integrity: sha512-bc9+2yJAWw7Vr/9FlXWbtHw7d8/GZCYQOslY4S88h8+gFfwrkh3xBeBCYHALWgWq1pVM3wHIXXg9x2OT27gGsg==} + /@meshtastic/eslint-config/1.0.7: + resolution: {integrity: sha512-Heef4DhntIp0I7t3i21EO5jE7tQHlgkQmLaLTF0tvXIg7kwXNk5szDgGOp6F+cHISU0g1L2ZcYyf8JUnGmMAEw==} dependencies: - '@typescript-eslint/eslint-plugin': 5.13.0_33fffc354ccfa91fbe7d1677b9395a0a - '@typescript-eslint/parser': 5.13.0_eslint@8.10.0+typescript@4.6.2 + '@typescript-eslint/eslint-plugin': 5.14.0_f4054b8c3cd621db16ae1b9d571bccc0 + '@typescript-eslint/parser': 5.14.0_eslint@8.10.0+typescript@4.6.2 eslint: 8.10.0 eslint-config-prettier: 8.5.0_eslint@8.10.0 eslint-import-resolver-typescript: 2.5.0_8b406960a2a06af75ddac353adbd0cfd @@ -1634,7 +1634,7 @@ packages: /@meshtastic/meshtasticjs/0.6.51: resolution: {integrity: sha512-4FMdtd0yMdy1chOo5KHBEM4H0AHcLAOW8FR/mPsLcfask9Ey2DIJ5CCNowx/WEjyGCTyAPGwJrgnEMZmSchYIA==} dependencies: - '@meshtastic/eslint-config': 1.0.6 + '@meshtastic/eslint-config': 1.0.7 '@protobuf-ts/runtime': 2.2.2 prettier: 2.5.1 sub-events: 1.8.9 @@ -1890,8 +1890,8 @@ packages: resolution: {integrity: sha512-Q4sUrowpylCOWjUWFtNwkNBHQUnCL8y44Iq2ZLtVMAuAGIwPSXa3kqIvu2LwXoc2d1jyaaw4Bg354degHrsADw==} dev: true - /@typescript-eslint/eslint-plugin/5.13.0_33fffc354ccfa91fbe7d1677b9395a0a: - resolution: {integrity: sha512-vLktb2Uec81fxm/cfz2Hd6QaWOs8qdmVAZXLdOBX6JFJDhf6oDZpMzZ4/LZ6SFM/5DgDcxIMIvy3F+O9yZBuiQ==} + /@typescript-eslint/eslint-plugin/5.14.0_f4054b8c3cd621db16ae1b9d571bccc0: + resolution: {integrity: sha512-ir0wYI4FfFUDfLcuwKzIH7sMVA+db7WYen47iRSaCGl+HMAZI9fpBwfDo45ZALD3A45ZGyHWDNLhbg8tZrMX4w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: '@typescript-eslint/parser': ^5.0.0 @@ -1901,10 +1901,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/parser': 5.13.0_eslint@8.10.0+typescript@4.6.2 - '@typescript-eslint/scope-manager': 5.13.0 - '@typescript-eslint/type-utils': 5.13.0_eslint@8.10.0+typescript@4.6.2 - '@typescript-eslint/utils': 5.13.0_eslint@8.10.0+typescript@4.6.2 + '@typescript-eslint/parser': 5.14.0_eslint@8.10.0+typescript@4.6.2 + '@typescript-eslint/scope-manager': 5.14.0 + '@typescript-eslint/type-utils': 5.14.0_eslint@8.10.0+typescript@4.6.2 + '@typescript-eslint/utils': 5.14.0_eslint@8.10.0+typescript@4.6.2 debug: 4.3.3 eslint: 8.10.0 functional-red-black-tree: 1.0.1 @@ -1937,8 +1937,8 @@ packages: - supports-color dev: true - /@typescript-eslint/parser/5.13.0_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-GdrU4GvBE29tm2RqWOM0P5QfCtgCyN4hXICj/X9ibKED16136l9ZpoJvCL5pSKtmJzA+NRDzQ312wWMejCVVfg==} + /@typescript-eslint/parser/5.14.0_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-aHJN8/FuIy1Zvqk4U/gcO/fxeMKyoSv/rS46UXMXOJKVsLQ+iYPuXNbpbH7cBLcpSbmyyFbwrniLx5+kutu1pw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 @@ -1947,9 +1947,9 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 5.13.0 - '@typescript-eslint/types': 5.13.0 - '@typescript-eslint/typescript-estree': 5.13.0_typescript@4.6.2 + '@typescript-eslint/scope-manager': 5.14.0 + '@typescript-eslint/types': 5.14.0 + '@typescript-eslint/typescript-estree': 5.14.0_typescript@4.6.2 debug: 4.3.3 eslint: 8.10.0 typescript: 4.6.2 @@ -1965,16 +1965,16 @@ packages: '@typescript-eslint/visitor-keys': 4.33.0 dev: true - /@typescript-eslint/scope-manager/5.13.0: - resolution: {integrity: sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA==} + /@typescript-eslint/scope-manager/5.14.0: + resolution: {integrity: sha512-LazdcMlGnv+xUc5R4qIlqH0OWARyl2kaP8pVCS39qSL3Pd1F7mI10DbdXeARcE62sVQE4fHNvEqMWsypWO+yEw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.13.0 - '@typescript-eslint/visitor-keys': 5.13.0 + '@typescript-eslint/types': 5.14.0 + '@typescript-eslint/visitor-keys': 5.14.0 dev: false - /@typescript-eslint/type-utils/5.13.0_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-/nz7qFizaBM1SuqAKb7GLkcNn2buRdDgZraXlkhz+vUGiN1NZ9LzkA595tHHeduAiS2MsHqMNhE2zNzGdw43Yg==} + /@typescript-eslint/type-utils/5.14.0_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-d4PTJxsqaUpv8iERTDSQBKUCV7Q5yyXjqXUl3XF7Sd9ogNLuKLkxz82qxokqQ4jXdTPZudWpmNtr/JjbbvUixw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: '*' @@ -1983,7 +1983,7 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/utils': 5.13.0_eslint@8.10.0+typescript@4.6.2 + '@typescript-eslint/utils': 5.14.0_eslint@8.10.0+typescript@4.6.2 debug: 4.3.3 eslint: 8.10.0 tsutils: 3.21.0_typescript@4.6.2 @@ -1997,8 +1997,8 @@ packages: engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1} dev: true - /@typescript-eslint/types/5.13.0: - resolution: {integrity: sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg==} + /@typescript-eslint/types/5.14.0: + resolution: {integrity: sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false @@ -2023,8 +2023,8 @@ packages: - supports-color dev: true - /@typescript-eslint/typescript-estree/5.13.0_typescript@4.6.2: - resolution: {integrity: sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA==} + /@typescript-eslint/typescript-estree/5.14.0_typescript@4.6.2: + resolution: {integrity: sha512-QGnxvROrCVtLQ1724GLTHBTR0lZVu13izOp9njRvMkCBgWX26PKvmMP8k82nmXBRD3DQcFFq2oj3cKDwr0FaUA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: typescript: '*' @@ -2032,8 +2032,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 5.13.0 - '@typescript-eslint/visitor-keys': 5.13.0 + '@typescript-eslint/types': 5.14.0 + '@typescript-eslint/visitor-keys': 5.14.0 debug: 4.3.3 globby: 11.1.0 is-glob: 4.0.3 @@ -2044,16 +2044,16 @@ packages: - supports-color dev: false - /@typescript-eslint/utils/5.13.0_eslint@8.10.0+typescript@4.6.2: - resolution: {integrity: sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ==} + /@typescript-eslint/utils/5.14.0_eslint@8.10.0+typescript@4.6.2: + resolution: {integrity: sha512-EHwlII5mvUA0UsKYnVzySb/5EE/t03duUTweVy8Zqt3UQXBrpEVY144OTceFKaOe4xQXZJrkptCf7PjEBeGK4w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: '@types/json-schema': 7.0.9 - '@typescript-eslint/scope-manager': 5.13.0 - '@typescript-eslint/types': 5.13.0 - '@typescript-eslint/typescript-estree': 5.13.0_typescript@4.6.2 + '@typescript-eslint/scope-manager': 5.14.0 + '@typescript-eslint/types': 5.14.0 + '@typescript-eslint/typescript-estree': 5.14.0_typescript@4.6.2 eslint: 8.10.0 eslint-scope: 5.1.1 eslint-utils: 3.0.0_eslint@8.10.0 @@ -2070,11 +2070,11 @@ packages: eslint-visitor-keys: 2.1.0 dev: true - /@typescript-eslint/visitor-keys/5.13.0: - resolution: {integrity: sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g==} + /@typescript-eslint/visitor-keys/5.14.0: + resolution: {integrity: sha512-yL0XxfzR94UEkjBqyymMLgCBdojzEuy/eim7N9/RIcTNxpJudAcqsU8eRyfzBbcEzGoPWfdM3AGak3cN08WOIw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - '@typescript-eslint/types': 5.13.0 + '@typescript-eslint/types': 5.14.0 eslint-visitor-keys: 3.3.0 dev: false diff --git a/src/core/connection.ts b/src/core/connection.ts index 32b1032a..73c2f3d8 100644 --- a/src/core/connection.ts +++ b/src/core/connection.ts @@ -152,6 +152,13 @@ const registerListeners = (): void => { ); } break; + case 'getOwnerResponse': + store.dispatch( + addUser({ + data: adminPacket.data.variant.getOwnerResponse, + packet: adminPacket.packet, + }), + ); } });