From: Jérôme Benoit Date: Fri, 17 Nov 2023 17:12:45 +0000 (+0100) Subject: build(deps-dev): apply updates X-Git-Tag: v1.2.25~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=29dff95e92f3cc4243d51210ea046ca474ff5676;p=e-mobility-charging-stations-simulator.git build(deps-dev): apply updates Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index cd19a66a..8fa4b362 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "@commitlint/config-conventional": "^18.4.2", "@mikro-orm/cli": "^5.9.3", "@release-it/bumper": "^6.0.1", - "@types/node": "^20.9.0", + "@types/node": "^20.9.1", "@types/tar": "^6.1.9", "@types/ws": "^8.5.9", "@typescript-eslint/eslint-plugin": "^6.11.0", @@ -151,7 +151,7 @@ "release-it": "^17.0.0", "rimraf": "^5.0.5", "semver": "^7.5.4", - "tsx": "^4.1.2", + "tsx": "^4.1.3", "typescript": "~5.2.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 13f22d73..77dceaa3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,8 +97,8 @@ devDependencies: specifier: ^6.0.1 version: 6.0.1(release-it@17.0.0) '@types/node': - specifier: ^20.9.0 - version: 20.9.0 + specifier: ^20.9.1 + version: 20.9.1 '@types/tar': specifier: ^6.1.9 version: 6.1.9 @@ -181,8 +181,8 @@ devDependencies: specifier: ^7.5.3 version: 7.5.4 tsx: - specifier: ^4.1.2 - version: 4.1.2 + specifier: ^4.1.3 + version: 4.1.3 typescript: specifier: ~5.2.2 version: 5.2.2 @@ -1102,7 +1102,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 20.9.0 + '@types/node': 20.9.1 '@types/yargs': 17.0.31 chalk: 4.1.2 dev: true @@ -1705,8 +1705,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.9.0: - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} + /@types/node@20.9.1: + resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==} dependencies: undici-types: 5.26.5 dev: true @@ -1734,7 +1734,7 @@ packages: /@types/tar@6.1.9: resolution: {integrity: sha512-T3+O+OQd9cdGmOXuKQY9+B0ceZHRlGVPQ7M5QZqkaPyP/vWnxPXM2aCegq8GP/n1n9dBfq2EBUqCSKKjQAVOPA==} dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 minipass: 4.2.8 dev: true @@ -1759,7 +1759,7 @@ packages: /@types/ws@8.5.9: resolution: {integrity: sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==} dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 dev: true /@types/yargs-parser@21.0.3: @@ -2670,7 +2670,7 @@ packages: engines: {node: '>=6.14.2'} requiresBuild: true dependencies: - node-gyp-build: 4.6.1 + node-gyp-build: 4.7.0 dev: false /builtin-modules@3.3.0: @@ -6082,7 +6082,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 20.9.0 + '@types/node': 20.9.1 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -7207,8 +7207,8 @@ packages: formdata-polyfill: 4.0.10 dev: true - /node-gyp-build@4.6.1: - resolution: {integrity: sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==} + /node-gyp-build@4.7.0: + resolution: {integrity: sha512-PbZERfeFdrHQOOXiAKOY0VPbykZy90ndPKk0d+CFDegTKmWp1VgOTz2xACVbr1BjCWxrQp68CXtvNsveFhqDJg==} hasBin: true requiresBuild: true dev: false @@ -9304,8 +9304,8 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - /tsx@4.1.2: - resolution: {integrity: sha512-1spM1bFV6MP2s4tO4tDC7g52fsaFdtEWdO4GfGdqi20qUgPbnAJqixOyIAvCSx1DDj3YIUB4CD06owTWUsOAuQ==} + /tsx@4.1.3: + resolution: {integrity: sha512-DLiTy1eri4nhqgVVy+15YKC6Ij2BMFxGdDMkVrSDkNuISUJLv7n0NgZpFLpdM+qmwXar34XllgYi4cxkNMbDwQ==} engines: {node: '>=18.0.0'} hasBin: true dependencies: @@ -9633,7 +9633,7 @@ packages: engines: {node: '>=6.14.2'} requiresBuild: true dependencies: - node-gyp-build: 4.6.1 + node-gyp-build: 4.7.0 dev: false /util-deprecate@1.0.2: diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index ca4d2fa9..add232ac 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -1,5 +1,5 @@ import { randomBytes, randomInt, randomUUID, webcrypto } from 'node:crypto'; -import { env } from 'node:process'; +import { env, nextTick } from 'node:process'; import { inspect } from 'node:util'; import { @@ -445,3 +445,9 @@ export const min = (...args: number[]): number => export const max = (...args: number[]): number => args.reduce((maximum, num) => (maximum > num ? maximum : num), -Infinity); + +export const throwErrorInNextTick = (error: Error): void => { + nextTick(() => { + throw error; + }); +}; diff --git a/ui/web/package.json b/ui/web/package.json index 5299195a..d1607124 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@tsconfig/node20": "^20.1.2", "@types/jsdom": "^21.1.5", - "@types/node": "^20.9.0", + "@types/node": "^20.9.1", "@typescript-eslint/eslint-plugin": "^6.11.0", "@typescript-eslint/parser": "^6.11.0", "@vitejs/plugin-vue": "^4.5.0", @@ -52,7 +52,7 @@ "@vue/tsconfig": "^0.4.0", "cross-env": "^7.0.3", "eslint": "^8.53.0", - "eslint-define-config": "^1.24.1", + "eslint-define-config": "^2.0.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.0", "eslint-plugin-vue": "^9.18.1", diff --git a/ui/web/pnpm-lock.yaml b/ui/web/pnpm-lock.yaml index 6cac7744..ad6b5289 100644 --- a/ui/web/pnpm-lock.yaml +++ b/ui/web/pnpm-lock.yaml @@ -29,8 +29,8 @@ devDependencies: specifier: ^21.1.5 version: 21.1.5 '@types/node': - specifier: ^20.9.0 - version: 20.9.0 + specifier: ^20.9.1 + version: 20.9.1 '@typescript-eslint/eslint-plugin': specifier: ^6.11.0 version: 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.53.0)(typescript@5.2.2) @@ -65,8 +65,8 @@ devDependencies: specifier: ^8.53.0 version: 8.53.0 eslint-define-config: - specifier: ^1.24.1 - version: 1.24.1 + specifier: ^2.0.0 + version: 2.0.0 eslint-import-resolver-typescript: specifier: ^3.6.1 version: 3.6.1(@typescript-eslint/parser@6.11.0)(eslint-plugin-import@2.29.0)(eslint@8.53.0) @@ -90,7 +90,7 @@ devDependencies: version: 5.2.2 vite: specifier: ^5.0.0 - version: 5.0.0(@types/node@20.9.0) + version: 5.0.0(@types/node@20.9.1) vitest: specifier: ^0.34.6 version: 0.34.6(jsdom@22.1.0) @@ -875,7 +875,7 @@ packages: /@types/jsdom@21.1.5: resolution: {integrity: sha512-sBK/3YjS3uuPj+HzZyhB4GGTnFmk0mdyQfhzZ/sqs9ciyG41QJdZZdwcPa6OfW97OTNTwl5tBAsfEOm/dui9pQ==} dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 '@types/tough-cookie': 4.0.5 parse5: 7.1.2 dev: true @@ -888,8 +888,8 @@ packages: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/node@20.9.0: - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} + /@types/node@20.9.1: + resolution: {integrity: sha512-HhmzZh5LSJNS5O8jQKpJ/3ZcrrlG6L70hpGqMIAoM9YVD0YBRNWYsfwcXq8VnSjlNpCpgLzMXdiPo+dxcvSmiA==} dependencies: undici-types: 5.26.5 dev: true @@ -1047,7 +1047,7 @@ packages: '@babel/core': 7.23.3 '@babel/plugin-transform-typescript': 7.23.3(@babel/core@7.23.3) '@vue/babel-plugin-jsx': 1.1.5(@babel/core@7.23.3) - vite: 5.0.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.1) vue: 3.3.8(typescript@5.2.2) transitivePeerDependencies: - supports-color @@ -1060,7 +1060,7 @@ packages: vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 5.0.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.1) vue: 3.3.8(typescript@5.2.2) dev: true @@ -1485,8 +1485,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001562 - electron-to-chromium: 1.4.585 + caniuse-lite: 1.0.30001563 + electron-to-chromium: 1.4.587 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true @@ -1521,8 +1521,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite@1.0.30001562: - resolution: {integrity: sha512-kfte3Hym//51EdX4239i+Rmp20EsLIYGdPkERegTgU19hQWCRhsRFGKHTliUlsry53tv17K7n077Kqa0WJU4ng==} + /caniuse-lite@1.0.30001563: + resolution: {integrity: sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==} dev: true /chai@4.3.10: @@ -1808,8 +1808,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.585: - resolution: {integrity: sha512-B4yBlX0azdA3rVMxpYwLQfDpdwOgcnLCkpvSOd68iFmeedo+WYjaBJS3/W58LVD8CB2nf+o7C4K9xz1l09RkWg==} + /electron-to-chromium@1.4.587: + resolution: {integrity: sha512-RyJX0q/zOkAoefZhB9XHghGeATVP0Q3mwA253XD/zj2OeXc+JZB9pCaEv6R578JUYaWM9PRhye0kXvd/V1cQ3Q==} dev: true /emoji-regex@8.0.0: @@ -1965,9 +1965,9 @@ packages: eslint: 8.53.0 dev: true - /eslint-define-config@1.24.1: - resolution: {integrity: sha512-o36vBhPSWyIQlHoMqGhhcGmOOm2A2ccBVIdLTG/AWdm9YmjpsLpf+5ntf9LlHR6dduLREgxtGwvwPwSt7vnXJg==} - engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>= 8.6.0'} + /eslint-define-config@2.0.0: + resolution: {integrity: sha512-M8ao9mAE35BGwjZeT8ZlsRA42wcJHWS29Avd0qfeclRXig6uTnGXcaO7UxVyFzUA1VJtxeV/acw4KrhJA3JqxQ==} + engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'} dev: true /eslint-import-resolver-node@0.3.9: @@ -4014,7 +4014,7 @@ packages: convert-source-map: 2.0.0 dev: true - /vite-node@0.34.6(@types/node@20.9.0): + /vite-node@0.34.6(@types/node@20.9.1): resolution: {integrity: sha512-nlBMJ9x6n7/Amaz6F3zJ97EBwR2FkzhBRxF5e+jE6LA3yi6Wtc2lyTij1OnDMIr34v5g/tVQtsVAzhT0jc5ygA==} engines: {node: '>=v14.18.0'} hasBin: true @@ -4024,7 +4024,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 5.0.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.1) transitivePeerDependencies: - '@types/node' - less @@ -4036,7 +4036,7 @@ packages: - terser dev: true - /vite@5.0.0(@types/node@20.9.0): + /vite@5.0.0(@types/node@20.9.1): resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -4064,7 +4064,7 @@ packages: terser: optional: true dependencies: - '@types/node': 20.9.0 + '@types/node': 20.9.1 esbuild: 0.19.5 postcss: 8.4.31 rollup: 4.4.1 @@ -4105,7 +4105,7 @@ packages: dependencies: '@types/chai': 4.3.10 '@types/chai-subset': 1.3.5 - '@types/node': 20.9.0 + '@types/node': 20.9.1 '@vitest/expect': 0.34.6 '@vitest/runner': 0.34.6 '@vitest/snapshot': 0.34.6 @@ -4125,8 +4125,8 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 5.0.0(@types/node@20.9.0) - vite-node: 0.34.6(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.1) + vite-node: 0.34.6(@types/node@20.9.1) why-is-node-running: 2.2.2 transitivePeerDependencies: - less