-<!DOCTYPE html>
+<!doctype html>
<html lang="">
<head>
<meta charset="utf-8" />
"@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",
"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",
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)
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
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):
- 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):
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
public async startTransaction(
hashId: string,
connectorId: number,
- idTag: string | undefined
+ idTag: string | undefined,
): Promise<ResponsePayload> {
return this.sendRequest(ProcedureName.START_TRANSACTION, {
hashIds: [hashId],
public async stopTransaction(
hashId: string,
- transactionId: number | undefined
+ transactionId: number | undefined,
): Promise<ResponsePayload> {
return this.sendRequest(ProcedureName.STOP_TRANSACTION, {
hashIds: [hashId],
public async startAutomaticTransactionGenerator(
hashId: string,
- connectorId: number
+ connectorId: number,
): Promise<ResponsePayload> {
return this.sendRequest(ProcedureName.START_AUTOMATIC_TRANSACTION_GENERATOR, {
hashIds: [hashId],
public async stopAutomaticTransactionGenerator(
hashId: string,
- connectorId: number
+ connectorId: number,
): Promise<ResponsePayload> {
return this.sendRequest(ProcedureName.STOP_AUTOMATIC_TRANSACTION_GENERATOR, {
hashIds: [hashId],
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) => {
id: string,
procedureName: ProcedureName,
resolve: (value: ResponsePayload | PromiseLike<ResponsePayload>) => void,
- reject: (reason?: unknown) => void
+ reject: (reason?: unknown) => void,
): void {
this.responseHandlers.set(id, { procedureName, resolve, reject });
}
private async sendRequest(
command: ProcedureName,
- data: RequestPayload
+ data: RequestPayload,
): Promise<ResponsePayload> {
let uuid: string;
return promiseWithTimeout(
Error(`Send request '${command}' message timeout`),
() => {
this.responseHandlers.delete(uuid);
- }
+ },
);
}
timeoutError: Error,
timeoutCallback: () => void = () => {
/* This is intentional */
- }
+ },
): Promise<T> => {
// Create a timeout promise that rejects in timeout milliseconds
const timeoutPromise = new Promise<never>((_, reject) => {
export type ProtocolResponse = [string, ResponsePayload];
export type ProtocolRequestHandler = (
- payload: RequestPayload
+ payload: RequestPayload,
) => ResponsePayload | Promise<ResponsePayload>;
export enum ProcedureName {
reporter: ['lcov'],
},
},
- })
+ }),
);