From f3095697dad156dcb13ea8247a16eb08ca007e6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 20 Jul 2023 18:53:36 +0200 Subject: [PATCH] build(deps-dev): apply updates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/index.html | 2 +- ui/web/package.json | 4 +-- ui/web/pnpm-lock.yaml | 44 +++++++++++++++++------------- ui/web/src/composables/UIClient.ts | 16 +++++------ ui/web/src/composables/Utils.ts | 2 +- ui/web/src/types/UIProtocol.ts | 2 +- ui/web/vitest.config.ts | 2 +- 7 files changed, 39 insertions(+), 33 deletions(-) diff --git a/ui/web/index.html b/ui/web/index.html index 46660bbf..59167a91 100644 --- a/ui/web/index.html +++ b/ui/web/index.html @@ -1,4 +1,4 @@ - + diff --git a/ui/web/package.json b/ui/web/package.json index 41b266d3..9a1676c5 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -44,7 +44,7 @@ "@vitejs/plugin-vue": "^4.2.3", "@vitejs/plugin-vue-jsx": "^3.0.1", "@vitest/coverage-c8": "^0.33.0", - "@vue/eslint-config-prettier": "^7.1.0", + "@vue/eslint-config-prettier": "^8.0.0", "@vue/eslint-config-typescript": "^11.0.3", "@vue/test-utils": "^2.4.0", "@vue/tsconfig": "^0.4.0", @@ -55,7 +55,7 @@ "eslint-plugin-import": "^2.27.5", "eslint-plugin-vue": "^9.15.1", "jsdom": "^22.1.0", - "prettier": "^2.8.8", + "prettier": "^3.0.0", "rimraf": "^5.0.1", "typescript": "~5.1.6", "vite": "^4.4.5", diff --git a/ui/web/pnpm-lock.yaml b/ui/web/pnpm-lock.yaml index 562e6549..06ca3c6b 100644 --- a/ui/web/pnpm-lock.yaml +++ b/ui/web/pnpm-lock.yaml @@ -47,8 +47,8 @@ devDependencies: specifier: ^0.33.0 version: 0.33.0(vitest@0.33.0) '@vue/eslint-config-prettier': - specifier: ^7.1.0 - version: 7.1.0(eslint@8.45.0)(prettier@2.8.8) + specifier: ^8.0.0 + version: 8.0.0(eslint@8.45.0)(prettier@3.0.0) '@vue/eslint-config-typescript': specifier: ^11.0.3 version: 11.0.3(eslint-plugin-vue@9.15.1)(eslint@8.45.0)(typescript@5.1.6) @@ -80,8 +80,8 @@ devDependencies: specifier: ^22.1.0 version: 22.1.0 prettier: - specifier: ^2.8.8 - version: 2.8.8 + specifier: ^3.0.0 + version: 3.0.0 rimraf: specifier: ^5.0.1 version: 5.0.1 @@ -1207,16 +1207,18 @@ packages: resolution: {integrity: sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==} dev: false - /@vue/eslint-config-prettier@7.1.0(eslint@8.45.0)(prettier@2.8.8): - resolution: {integrity: sha512-Pv/lVr0bAzSIHLd9iz0KnvAr4GKyCEl+h52bc4e5yWuDVtLgFwycF7nrbWTAQAS+FU6q1geVd07lc6EWfJiWKQ==} + /@vue/eslint-config-prettier@8.0.0(eslint@8.45.0)(prettier@3.0.0): + resolution: {integrity: sha512-55dPqtC4PM/yBjhAr+yEw6+7KzzdkBuLmnhBrDfp4I48+wy+Giqqj9yUr5T2uD/BkBROjjmqnLZmXRdOx/VtQg==} peerDependencies: - eslint: '>= 7.28.0' - prettier: '>= 2.0.0' + eslint: '>= 8.0.0' + prettier: '>= 3.0.0' dependencies: eslint: 8.45.0 eslint-config-prettier: 8.8.0(eslint@8.45.0) - eslint-plugin-prettier: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.45.0)(prettier@2.8.8) - prettier: 2.8.8 + eslint-plugin-prettier: 5.0.0(eslint-config-prettier@8.8.0)(eslint@8.45.0)(prettier@3.0.0) + prettier: 3.0.0 + transitivePeerDependencies: + - '@types/eslint' dev: true /@vue/eslint-config-typescript@11.0.3(eslint-plugin-vue@9.15.1)(eslint@8.45.0)(typescript@5.1.6): @@ -2090,21 +2092,25 @@ packages: - supports-color dev: true - /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.45.0)(prettier@2.8.8): - resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} - engines: {node: '>=12.0.0'} + /eslint-plugin-prettier@5.0.0(eslint-config-prettier@8.8.0)(eslint@8.45.0)(prettier@3.0.0): + resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} + engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - eslint: '>=7.28.0' + '@types/eslint': '>=8.0.0' + eslint: '>=8.0.0' eslint-config-prettier: '*' - prettier: '>=2.0.0' + prettier: '>=3.0.0' peerDependenciesMeta: + '@types/eslint': + optional: true eslint-config-prettier: optional: true dependencies: eslint: 8.45.0 eslint-config-prettier: 8.8.0(eslint@8.45.0) - prettier: 2.8.8 + prettier: 3.0.0 prettier-linter-helpers: 1.0.0 + synckit: 0.8.5 dev: true /eslint-plugin-vue@9.15.1(eslint@8.45.0): @@ -3423,9 +3429,9 @@ packages: fast-diff: 1.3.0 dev: true - /prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} + /prettier@3.0.0: + resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==} + engines: {node: '>=14'} hasBin: true dev: true diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index 006b60b5..4cdfed71 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -71,7 +71,7 @@ export class UIClient { public async startTransaction( hashId: string, connectorId: number, - idTag: string | undefined + idTag: string | undefined, ): Promise { return this.sendRequest(ProcedureName.START_TRANSACTION, { hashIds: [hashId], @@ -82,7 +82,7 @@ export class UIClient { public async stopTransaction( hashId: string, - transactionId: number | undefined + transactionId: number | undefined, ): Promise { return this.sendRequest(ProcedureName.STOP_TRANSACTION, { hashIds: [hashId], @@ -92,7 +92,7 @@ export class UIClient { public async startAutomaticTransactionGenerator( hashId: string, - connectorId: number + connectorId: number, ): Promise { return this.sendRequest(ProcedureName.START_AUTOMATIC_TRANSACTION_GENERATOR, { hashIds: [hashId], @@ -102,7 +102,7 @@ export class UIClient { public async stopAutomaticTransactionGenerator( hashId: string, - connectorId: number + connectorId: number, ): Promise { return this.sendRequest(ProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR, { hashIds: [hashId], @@ -113,7 +113,7 @@ export class UIClient { private openWS(): void { this.ws = new WebSocket( `ws://${config.uiServer.host}:${config.uiServer.port}`, - config.uiServer.protocol + config.uiServer.protocol, ); this.ws.onmessage = this.responseHandler.bind(this); this.ws.onerror = (errorEvent) => { @@ -128,7 +128,7 @@ export class UIClient { id: string, procedureName: ProcedureName, resolve: (value: ResponsePayload | PromiseLike) => void, - reject: (reason?: unknown) => void + reject: (reason?: unknown) => void, ): void { this.responseHandlers.set(id, { procedureName, resolve, reject }); } @@ -143,7 +143,7 @@ export class UIClient { private async sendRequest( command: ProcedureName, - data: RequestPayload + data: RequestPayload, ): Promise { let uuid: string; return promiseWithTimeout( @@ -166,7 +166,7 @@ export class UIClient { Error(`Send request '${command}' message timeout`), () => { this.responseHandlers.delete(uuid); - } + }, ); } diff --git a/ui/web/src/composables/Utils.ts b/ui/web/src/composables/Utils.ts index cf4baf5d..93499abc 100644 --- a/ui/web/src/composables/Utils.ts +++ b/ui/web/src/composables/Utils.ts @@ -30,7 +30,7 @@ export const promiseWithTimeout = ( timeoutError: Error, timeoutCallback: () => void = () => { /* This is intentional */ - } + }, ): Promise => { // Create a timeout promise that rejects in timeout milliseconds const timeoutPromise = new Promise((_, reject) => { diff --git a/ui/web/src/types/UIProtocol.ts b/ui/web/src/types/UIProtocol.ts index 4a0cc17d..15b4b07c 100644 --- a/ui/web/src/types/UIProtocol.ts +++ b/ui/web/src/types/UIProtocol.ts @@ -17,7 +17,7 @@ export type ProtocolRequest = [string, ProcedureName, RequestPayload]; export type ProtocolResponse = [string, ResponsePayload]; export type ProtocolRequestHandler = ( - payload: RequestPayload + payload: RequestPayload, ) => ResponsePayload | Promise; export enum ProcedureName { diff --git a/ui/web/vitest.config.ts b/ui/web/vitest.config.ts index 6a5613f1..778e9822 100644 --- a/ui/web/vitest.config.ts +++ b/ui/web/vitest.config.ts @@ -15,5 +15,5 @@ export default mergeConfig( reporter: ['lcov'], }, }, - }) + }), ); -- 2.34.1