From 5310db969ff72422b0b90186ac2875e8dc4b3a1a Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Tue, 11 Jun 2024 22:02:16 +0200 Subject: [PATCH 01/16] build(package.json): install deps for esbuild Signed-off-by: euberdeveloper --- package.json | 3 + pnpm-lock.yaml | 296 +++++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 278 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 5f028c8..0ec53b5 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,9 @@ "codecov": "^3.8.3", "coveralls": "^3.1.1", "dotenv-cli": "^7.4.2", + "dts-bundle-generator": "^9.5.1", + "esbuild": "^0.21.5", + "esbuild-plugin-import-map": "^2.1.0", "mocha": "^10.4.0", "nyc": "^17.0.0", "release-it": "^17.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5d5ec22..fad7119 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,7 +29,7 @@ importers: version: 17.0.32 bundle-declarations-webpack-plugin: specifier: ^5.1.1 - version: 5.1.1(webpack@5.92.0(webpack-cli@5.1.4)) + version: 5.1.1(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) chai: specifier: ^5.1.1 version: 5.1.1 @@ -45,6 +45,15 @@ importers: dotenv-cli: specifier: ^7.4.2 version: 7.4.2 + dts-bundle-generator: + specifier: ^9.5.1 + version: 9.5.1 + esbuild: + specifier: ^0.21.5 + version: 0.21.5 + esbuild-plugin-import-map: + specifier: ^2.1.0 + version: 2.1.0 mocha: specifier: ^10.4.0 version: 10.4.0 @@ -62,7 +71,7 @@ importers: version: 0.3.4 ts-loader: specifier: ^9.5.1 - version: 9.5.1(typescript@5.4.5)(webpack@5.92.0(webpack-cli@5.1.4)) + version: 9.5.1(typescript@5.4.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) typedoc: specifier: ^0.25.13 version: 0.25.13(typescript@5.4.5) @@ -71,7 +80,7 @@ importers: version: 5.4.5 webpack: specifier: ^5.92.0 - version: 5.92.0(webpack-cli@5.1.4) + version: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) webpack-cli: specifier: ^5.1.4 version: 5.1.4(webpack@5.92.0) @@ -176,6 +185,144 @@ packages: resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} engines: {node: '>=10.0.0'} + '@esbuild/aix-ppc64@0.21.5': + resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.21.5': + resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.21.5': + resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.21.5': + resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.21.5': + resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.21.5': + resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.21.5': + resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.21.5': + resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.21.5': + resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.21.5': + resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.21.5': + resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.21.5': + resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.21.5': + resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.21.5': + resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.21.5': + resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.21.5': + resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.21.5': + resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-x64@0.21.5': + resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-x64@0.21.5': + resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.21.5': + resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.21.5': + resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.21.5': + resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.21.5': + resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + '@hutson/parse-repository-url@5.0.0': resolution: {integrity: sha512-e5+YUKENATs1JgYHMzTr2MW/NDcXGfYFAuOQU8gJgF/kEh4EqKgfGrfLI67bMD4tbhZVlkigz/9YYwWcbOFthg==} engines: {node: '>=10.13.0'} @@ -1102,6 +1249,14 @@ packages: es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} + esbuild-plugin-import-map@2.1.0: + resolution: {integrity: sha512-rlI9H8f1saIqYEUNHxDmIMGZZFroANyD6q3Aht6aXyOq/aOdO6jp5VFF1+n3o9AUe+wAtQcn93Wv1Vuj9na0hg==} + + esbuild@0.21.5: + resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} + engines: {node: '>=12'} + hasBin: true + escalade@3.1.2: resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} engines: {node: '>=6'} @@ -3148,6 +3303,75 @@ snapshots: '@discoveryjs/json-ext@0.5.7': {} + '@esbuild/aix-ppc64@0.21.5': + optional: true + + '@esbuild/android-arm64@0.21.5': + optional: true + + '@esbuild/android-arm@0.21.5': + optional: true + + '@esbuild/android-x64@0.21.5': + optional: true + + '@esbuild/darwin-arm64@0.21.5': + optional: true + + '@esbuild/darwin-x64@0.21.5': + optional: true + + '@esbuild/freebsd-arm64@0.21.5': + optional: true + + '@esbuild/freebsd-x64@0.21.5': + optional: true + + '@esbuild/linux-arm64@0.21.5': + optional: true + + '@esbuild/linux-arm@0.21.5': + optional: true + + '@esbuild/linux-ia32@0.21.5': + optional: true + + '@esbuild/linux-loong64@0.21.5': + optional: true + + '@esbuild/linux-mips64el@0.21.5': + optional: true + + '@esbuild/linux-ppc64@0.21.5': + optional: true + + '@esbuild/linux-riscv64@0.21.5': + optional: true + + '@esbuild/linux-s390x@0.21.5': + optional: true + + '@esbuild/linux-x64@0.21.5': + optional: true + + '@esbuild/netbsd-x64@0.21.5': + optional: true + + '@esbuild/openbsd-x64@0.21.5': + optional: true + + '@esbuild/sunos-x64@0.21.5': + optional: true + + '@esbuild/win32-arm64@0.21.5': + optional: true + + '@esbuild/win32-ia32@0.21.5': + optional: true + + '@esbuild/win32-x64@0.21.5': + optional: true + '@hutson/parse-repository-url@5.0.0': {} '@iarna/toml@2.2.5': {} @@ -3401,19 +3625,19 @@ snapshots: '@webassemblyjs/ast': 1.12.1 '@xtuc/long': 4.2.2 - '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.92.0) - '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.92.0) - '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4))': + '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': dependencies: - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) webpack-cli: 5.1.4(webpack@5.92.0) '@xtuc/ieee754@1.2.0': {} @@ -3619,10 +3843,10 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bundle-declarations-webpack-plugin@5.1.1(webpack@5.92.0(webpack-cli@5.1.4)): + bundle-declarations-webpack-plugin@5.1.1(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): dependencies: dts-bundle-generator: 9.5.1 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) bundle-name@4.1.0: dependencies: @@ -4164,6 +4388,34 @@ snapshots: es6-error@4.1.1: {} + esbuild-plugin-import-map@2.1.0: {} + + esbuild@0.21.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.5 + '@esbuild/android-arm': 0.21.5 + '@esbuild/android-arm64': 0.21.5 + '@esbuild/android-x64': 0.21.5 + '@esbuild/darwin-arm64': 0.21.5 + '@esbuild/darwin-x64': 0.21.5 + '@esbuild/freebsd-arm64': 0.21.5 + '@esbuild/freebsd-x64': 0.21.5 + '@esbuild/linux-arm': 0.21.5 + '@esbuild/linux-arm64': 0.21.5 + '@esbuild/linux-ia32': 0.21.5 + '@esbuild/linux-loong64': 0.21.5 + '@esbuild/linux-mips64el': 0.21.5 + '@esbuild/linux-ppc64': 0.21.5 + '@esbuild/linux-riscv64': 0.21.5 + '@esbuild/linux-s390x': 0.21.5 + '@esbuild/linux-x64': 0.21.5 + '@esbuild/netbsd-x64': 0.21.5 + '@esbuild/openbsd-x64': 0.21.5 + '@esbuild/sunos-x64': 0.21.5 + '@esbuild/win32-arm64': 0.21.5 + '@esbuild/win32-ia32': 0.21.5 + '@esbuild/win32-x64': 0.21.5 + escalade@3.1.2: {} escape-goat@4.0.0: {} @@ -5804,14 +6056,16 @@ snapshots: - encoding - supports-color - terser-webpack-plugin@5.3.10(webpack@5.92.0(webpack-cli@5.1.4)): + terser-webpack-plugin@5.3.10(esbuild@0.21.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 terser: 5.31.1 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) + optionalDependencies: + esbuild: 0.21.5 terser@5.31.1: dependencies: @@ -5849,7 +6103,7 @@ snapshots: tr46@0.0.3: {} - ts-loader@9.5.1(typescript@5.4.5)(webpack@5.92.0(webpack-cli@5.1.4)): + ts-loader@9.5.1(typescript@5.4.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): dependencies: chalk: 4.1.2 enhanced-resolve: 5.17.0 @@ -5857,7 +6111,7 @@ snapshots: semver: 7.6.2 source-map: 0.7.4 typescript: 5.4.5 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) tslib@2.6.3: {} @@ -6024,9 +6278,9 @@ snapshots: webpack-cli@5.1.4(webpack@5.92.0): dependencies: '@discoveryjs/json-ext': 0.5.7 - '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) - '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) - '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(webpack-cli@5.1.4)) + '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) + '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) + '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) colorette: 2.0.20 commander: 10.0.1 cross-spawn: 7.0.3 @@ -6035,7 +6289,7 @@ snapshots: import-local: 3.1.0 interpret: 3.1.1 rechoir: 0.8.0 - webpack: 5.92.0(webpack-cli@5.1.4) + webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) webpack-merge: 5.10.0 webpack-merge@5.10.0: @@ -6048,7 +6302,7 @@ snapshots: webpack-sources@3.2.3: {} - webpack@5.92.0(webpack-cli@5.1.4): + webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4): dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.5 @@ -6071,7 +6325,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(webpack@5.92.0(webpack-cli@5.1.4)) + terser-webpack-plugin: 5.3.10(esbuild@0.21.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) watchpack: 2.4.1 webpack-sources: 3.2.3 optionalDependencies: From bcbb6aaead00f28ba2b46f222460ce720cec1d08 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Tue, 11 Jun 2024 22:03:26 +0200 Subject: [PATCH 02/16] build(package.json): remove webpack modules Signed-off-by: euberdeveloper --- package.json | 8 +- pnpm-lock.yaml | 645 ------------------------------------------------- 2 files changed, 1 insertion(+), 652 deletions(-) diff --git a/package.json b/package.json index 0ec53b5..e7fd0bb 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ "@release-it/conventional-changelog": "^8.0.1", "@types/node": "^20.14.2", "@types/yargs": "^17.0.32", - "bundle-declarations-webpack-plugin": "^5.1.1", "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "codecov": "^3.8.3", @@ -80,13 +79,8 @@ "mocha": "^10.4.0", "nyc": "^17.0.0", "release-it": "^17.3.0", - "shebang-loader": "^0.0.1", "shx": "^0.3.4", - "ts-loader": "^9.5.1", "typedoc": "^0.25.13", - "typescript": "^5.4.5", - "webpack": "^5.92.0", - "webpack-cli": "^5.1.4", - "webpack-node-externals": "^3.0.0" + "typescript": "^5.4.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fad7119..8a7c67d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,9 +27,6 @@ importers: '@types/yargs': specifier: ^17.0.32 version: 17.0.32 - bundle-declarations-webpack-plugin: - specifier: ^5.1.1 - version: 5.1.1(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) chai: specifier: ^5.1.1 version: 5.1.1 @@ -63,30 +60,15 @@ importers: release-it: specifier: ^17.3.0 version: 17.3.0(typescript@5.4.5) - shebang-loader: - specifier: ^0.0.1 - version: 0.0.1 shx: specifier: ^0.3.4 version: 0.3.4 - ts-loader: - specifier: ^9.5.1 - version: 9.5.1(typescript@5.4.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) typedoc: specifier: ^0.25.13 version: 0.25.13(typescript@5.4.5) typescript: specifier: ^5.4.5 version: 5.4.5 - webpack: - specifier: ^5.92.0 - version: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - webpack-cli: - specifier: ^5.1.4 - version: 5.1.4(webpack@5.92.0) - webpack-node-externals: - specifier: ^3.0.0 - version: 3.0.0 packages: @@ -181,10 +163,6 @@ packages: resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} engines: {node: '>=6.9.0'} - '@discoveryjs/json-ext@0.5.7': - resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} - engines: {node: '>=10.0.0'} - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -354,9 +332,6 @@ packages: resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} - '@jridgewell/source-map@0.3.6': - resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} @@ -468,21 +443,9 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@types/eslint-scope@3.7.7': - resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} - - '@types/eslint@8.56.10': - resolution: {integrity: sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ==} - - '@types/estree@1.0.5': - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - '@types/http-cache-semantics@4.0.4': resolution: {integrity: sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==} - '@types/json-schema@7.0.15': - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - '@types/node@20.14.2': resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==} @@ -495,96 +458,10 @@ packages: '@types/yargs@17.0.32': resolution: {integrity: sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==} - '@webassemblyjs/ast@1.12.1': - resolution: {integrity: sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg==} - - '@webassemblyjs/floating-point-hex-parser@1.11.6': - resolution: {integrity: sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==} - - '@webassemblyjs/helper-api-error@1.11.6': - resolution: {integrity: sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==} - - '@webassemblyjs/helper-buffer@1.12.1': - resolution: {integrity: sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw==} - - '@webassemblyjs/helper-numbers@1.11.6': - resolution: {integrity: sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==} - - '@webassemblyjs/helper-wasm-bytecode@1.11.6': - resolution: {integrity: sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==} - - '@webassemblyjs/helper-wasm-section@1.12.1': - resolution: {integrity: sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g==} - - '@webassemblyjs/ieee754@1.11.6': - resolution: {integrity: sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==} - - '@webassemblyjs/leb128@1.11.6': - resolution: {integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==} - - '@webassemblyjs/utf8@1.11.6': - resolution: {integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==} - - '@webassemblyjs/wasm-edit@1.12.1': - resolution: {integrity: sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g==} - - '@webassemblyjs/wasm-gen@1.12.1': - resolution: {integrity: sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w==} - - '@webassemblyjs/wasm-opt@1.12.1': - resolution: {integrity: sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg==} - - '@webassemblyjs/wasm-parser@1.12.1': - resolution: {integrity: sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ==} - - '@webassemblyjs/wast-printer@1.12.1': - resolution: {integrity: sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA==} - - '@webpack-cli/configtest@2.1.1': - resolution: {integrity: sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==} - engines: {node: '>=14.15.0'} - peerDependencies: - webpack: 5.x.x - webpack-cli: 5.x.x - - '@webpack-cli/info@2.0.2': - resolution: {integrity: sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==} - engines: {node: '>=14.15.0'} - peerDependencies: - webpack: 5.x.x - webpack-cli: 5.x.x - - '@webpack-cli/serve@2.0.5': - resolution: {integrity: sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==} - engines: {node: '>=14.15.0'} - peerDependencies: - webpack: 5.x.x - webpack-cli: 5.x.x - webpack-dev-server: '*' - peerDependenciesMeta: - webpack-dev-server: - optional: true - - '@xtuc/ieee754@1.2.0': - resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} - - '@xtuc/long@4.2.2': - resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} - JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true - acorn-import-attributes@1.9.5: - resolution: {integrity: sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==} - peerDependencies: - acorn: ^8 - - acorn@8.11.3: - resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} - engines: {node: '>=0.4.0'} - hasBin: true - add-stream@1.0.0: resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} @@ -600,11 +477,6 @@ packages: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} - ajv-keywords@3.5.2: - resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} - peerDependencies: - ajv: ^6.9.1 - ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} @@ -761,12 +633,6 @@ packages: buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} - bundle-declarations-webpack-plugin@5.1.1: - resolution: {integrity: sha512-XeA8MwTUZmSdcisOHUGzv2+1EvRWJKsnOmHzL/qj3m2Vt6z56+UuDjW0Dz/1hF2mf8G1G7BmTX4MLc9qQ41c1w==} - engines: {node: '>= 16'} - peerDependencies: - webpack: ^5.0.0 - bundle-name@4.1.0: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} @@ -841,10 +707,6 @@ packages: resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==} engines: {node: '>= 8.10.0'} - chrome-trace-event@1.0.4: - resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==} - engines: {node: '>=6.0'} - ci-info@3.9.0: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} @@ -883,10 +745,6 @@ packages: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} - clone-deep@4.0.1: - resolution: {integrity: sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==} - engines: {node: '>=6'} - clone@1.0.4: resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==} engines: {node: '>=0.8'} @@ -910,20 +768,10 @@ packages: color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} - colorette@2.0.20: - resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} - combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} - commander@10.0.1: - resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} - engines: {node: '>=14'} - - commander@2.20.3: - resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} @@ -1197,19 +1045,10 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} - enhanced-resolve@5.17.0: - resolution: {integrity: sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA==} - engines: {node: '>=10.13.0'} - env-paths@2.2.1: resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} engines: {node: '>=6'} - envinfo@7.13.0: - resolution: {integrity: sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==} - engines: {node: '>=4'} - hasBin: true - error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -1231,9 +1070,6 @@ packages: es-get-iterator@1.1.3: resolution: {integrity: sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==} - es-module-lexer@1.5.3: - resolution: {integrity: sha512-i1gCgmR9dCl6Vil6UKPI/trA69s08g/syhiDK9TG0Nf1RJjjFI+AzoWW7sPufzkgYAn861skuCwJa0pIIHYxvg==} - es-object-atoms@1.0.0: resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} engines: {node: '>= 0.4'} @@ -1278,23 +1114,11 @@ packages: engines: {node: '>=6.0'} hasBin: true - eslint-scope@5.1.1: - resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} - engines: {node: '>=8.0.0'} - esprima@4.0.1: resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} engines: {node: '>=4'} hasBin: true - esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} - engines: {node: '>=4.0'} - - estraverse@4.3.0: - resolution: {integrity: sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==} - engines: {node: '>=4.0'} - estraverse@5.3.0: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} @@ -1303,10 +1127,6 @@ packages: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} - events@3.3.0: - resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} - engines: {node: '>=0.8.x'} - execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -1339,10 +1159,6 @@ packages: fast-url-parser@1.1.3: resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==} - fastest-levenshtein@1.0.16: - resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} - engines: {node: '>= 4.9.1'} - fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -1483,9 +1299,6 @@ packages: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} - glob-to-regexp@0.4.1: - resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} - glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -1644,11 +1457,6 @@ packages: resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==} engines: {node: '>=8'} - import-local@3.1.0: - resolution: {integrity: sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==} - engines: {node: '>=8'} - hasBin: true - imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -1683,10 +1491,6 @@ packages: resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} engines: {node: '>= 0.10'} - interpret@3.1.1: - resolution: {integrity: sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==} - engines: {node: '>=10.13.0'} - ip-address@9.0.5: resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} engines: {node: '>= 12'} @@ -1803,10 +1607,6 @@ packages: resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} engines: {node: '>=8'} - is-plain-object@2.0.4: - resolution: {integrity: sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==} - engines: {node: '>=0.10.0'} - is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} @@ -1878,10 +1678,6 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isobject@3.0.1: - resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} - engines: {node: '>=0.10.0'} - isstream@0.1.2: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} @@ -1923,10 +1719,6 @@ packages: iterate-value@1.0.2: resolution: {integrity: sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==} - jest-worker@27.5.1: - resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} - engines: {node: '>= 10.13.0'} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -1990,10 +1782,6 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - kind-of@6.0.3: - resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==} - engines: {node: '>=0.10.0'} - latest-version@7.0.0: resolution: {integrity: sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==} engines: {node: '>=14.16'} @@ -2009,10 +1797,6 @@ packages: resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - loader-runner@4.3.0: - resolution: {integrity: sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==} - engines: {node: '>=6.11.5'} - locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} @@ -2464,10 +2248,6 @@ packages: resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} engines: {node: '>= 0.10'} - rechoir@0.8.0: - resolution: {integrity: sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==} - engines: {node: '>= 10.13.0'} - regexp.prototype.flags@1.5.2: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} @@ -2507,10 +2287,6 @@ packages: resolve-alpn@1.2.1: resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==} - resolve-cwd@3.0.0: - resolution: {integrity: sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==} - engines: {node: '>=8'} - resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -2576,10 +2352,6 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - schema-utils@3.3.0: - resolution: {integrity: sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==} - engines: {node: '>= 10.13.0'} - semver-diff@4.0.0: resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==} engines: {node: '>=12'} @@ -2596,9 +2368,6 @@ packages: serialize-javascript@6.0.0: resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} - serialize-javascript@6.0.2: - resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} - set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} @@ -2610,17 +2379,10 @@ packages: resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==} engines: {node: '>= 0.4'} - shallow-clone@3.0.1: - resolution: {integrity: sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==} - engines: {node: '>=8'} - shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} - shebang-loader@0.0.1: - resolution: {integrity: sha512-nQvhUHvKyzGK5aqPxHfHB5nlAN2EZ2U61S2G0YrxAuCRU5iGhFcxxRiaAdb18UoRS1zVMhRz4gdQ1xFEg3AOyA==} - shebang-regex@3.0.0: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} @@ -2665,17 +2427,10 @@ packages: resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - source-map-support@0.5.21: - resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} - source-map@0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - source-map@0.7.4: - resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} - engines: {node: '>= 8'} - spawn-wrap@2.0.0: resolution: {integrity: sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==} engines: {node: '>=8'} @@ -2791,35 +2546,10 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - tapable@2.2.1: - resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} - engines: {node: '>=6'} - teeny-request@7.1.1: resolution: {integrity: sha512-iwY6rkW5DDGq8hE2YgNQlKbptYpY5Nn2xecjQiNjOXWbKzPGUfmeUBCSQbbr306d7Z7U2N0TPl+/SwYRfua1Dg==} engines: {node: '>=10'} - terser-webpack-plugin@5.3.10: - resolution: {integrity: sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==} - engines: {node: '>= 10.13.0'} - peerDependencies: - '@swc/core': '*' - esbuild: '*' - uglify-js: '*' - webpack: ^5.1.0 - peerDependenciesMeta: - '@swc/core': - optional: true - esbuild: - optional: true - uglify-js: - optional: true - - terser@5.31.1: - resolution: {integrity: sha512-37upzU1+viGvuFtBo9NPufCb9dwM0+l9hMxYyWfBA+fbwrPqNJAhbZ6W47bBFnZHKHTUBnMvi87434qq+qnxOg==} - engines: {node: '>=10'} - hasBin: true - test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} @@ -2850,13 +2580,6 @@ packages: tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - ts-loader@9.5.1: - resolution: {integrity: sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg==} - engines: {node: '>=12.0.0'} - peerDependencies: - typescript: '*' - webpack: ^5.0.0 - tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} @@ -3002,10 +2725,6 @@ packages: vscode-textmate@8.0.0: resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} - watchpack@2.4.1: - resolution: {integrity: sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg==} - engines: {node: '>=10.13.0'} - wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} @@ -3016,45 +2735,6 @@ packages: webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - webpack-cli@5.1.4: - resolution: {integrity: sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==} - engines: {node: '>=14.15.0'} - hasBin: true - peerDependencies: - '@webpack-cli/generators': '*' - webpack: 5.x.x - webpack-bundle-analyzer: '*' - webpack-dev-server: '*' - peerDependenciesMeta: - '@webpack-cli/generators': - optional: true - webpack-bundle-analyzer: - optional: true - webpack-dev-server: - optional: true - - webpack-merge@5.10.0: - resolution: {integrity: sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==} - engines: {node: '>=10.0.0'} - - webpack-node-externals@3.0.0: - resolution: {integrity: sha512-LnL6Z3GGDPht/AigwRh2dvL9PQPFQ8skEpVrWZXLWBYmqcaojHNN0onvHzie6rq7EWKrrBfPYqNEzTJgiwEQDQ==} - engines: {node: '>=6'} - - webpack-sources@3.2.3: - resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==} - engines: {node: '>=10.13.0'} - - webpack@5.92.0: - resolution: {integrity: sha512-Bsw2X39MYIgxouNATyVpCNVWBCuUwDgWtN78g6lSdPJRLaQ/PUVm/oXcaRAyY/sMFoKFQrsPeqvTizWtq7QPCA==} - engines: {node: '>=10.13.0'} - hasBin: true - peerDependencies: - webpack-cli: '*' - peerDependenciesMeta: - webpack-cli: - optional: true - whatwg-url@5.0.0: resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} @@ -3080,9 +2760,6 @@ packages: wildcard-match@5.1.3: resolution: {integrity: sha512-a95hPUk+BNzSGLntNXYxsjz2Hooi5oL7xOfJR6CKwSsSALh7vUNuTlzsrZowtYy38JNduYFRVhFv19ocqNOZlg==} - wildcard@2.0.1: - resolution: {integrity: sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==} - windows-release@5.1.1: resolution: {integrity: sha512-NMD00arvqcq2nwqc5Q6KtrSRHK+fVD31erE5FEMahAw5PmVCgD7MUXodq3pdZSUkqA9Cda2iWx6s1XYwiJWRmw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -3301,8 +2978,6 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 - '@discoveryjs/json-ext@0.5.7': {} - '@esbuild/aix-ppc64@0.21.5': optional: true @@ -3398,11 +3073,6 @@ snapshots: '@jridgewell/set-array@1.2.1': {} - '@jridgewell/source-map@0.3.6': - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - '@jridgewell/sourcemap-codec@1.4.15': {} '@jridgewell/trace-mapping@0.3.25': @@ -3521,22 +3191,8 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@types/eslint-scope@3.7.7': - dependencies: - '@types/eslint': 8.56.10 - '@types/estree': 1.0.5 - - '@types/eslint@8.56.10': - dependencies: - '@types/estree': 1.0.5 - '@types/json-schema': 7.0.15 - - '@types/estree@1.0.5': {} - '@types/http-cache-semantics@4.0.4': {} - '@types/json-schema@7.0.15': {} - '@types/node@20.14.2': dependencies: undici-types: 5.26.5 @@ -3549,112 +3205,11 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@webassemblyjs/ast@1.12.1': - dependencies: - '@webassemblyjs/helper-numbers': 1.11.6 - '@webassemblyjs/helper-wasm-bytecode': 1.11.6 - - '@webassemblyjs/floating-point-hex-parser@1.11.6': {} - - '@webassemblyjs/helper-api-error@1.11.6': {} - - '@webassemblyjs/helper-buffer@1.12.1': {} - - '@webassemblyjs/helper-numbers@1.11.6': - dependencies: - '@webassemblyjs/floating-point-hex-parser': 1.11.6 - '@webassemblyjs/helper-api-error': 1.11.6 - '@xtuc/long': 4.2.2 - - '@webassemblyjs/helper-wasm-bytecode@1.11.6': {} - - '@webassemblyjs/helper-wasm-section@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/helper-buffer': 1.12.1 - '@webassemblyjs/helper-wasm-bytecode': 1.11.6 - '@webassemblyjs/wasm-gen': 1.12.1 - - '@webassemblyjs/ieee754@1.11.6': - dependencies: - '@xtuc/ieee754': 1.2.0 - - '@webassemblyjs/leb128@1.11.6': - dependencies: - '@xtuc/long': 4.2.2 - - '@webassemblyjs/utf8@1.11.6': {} - - '@webassemblyjs/wasm-edit@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/helper-buffer': 1.12.1 - '@webassemblyjs/helper-wasm-bytecode': 1.11.6 - '@webassemblyjs/helper-wasm-section': 1.12.1 - '@webassemblyjs/wasm-gen': 1.12.1 - '@webassemblyjs/wasm-opt': 1.12.1 - '@webassemblyjs/wasm-parser': 1.12.1 - '@webassemblyjs/wast-printer': 1.12.1 - - '@webassemblyjs/wasm-gen@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/helper-wasm-bytecode': 1.11.6 - '@webassemblyjs/ieee754': 1.11.6 - '@webassemblyjs/leb128': 1.11.6 - '@webassemblyjs/utf8': 1.11.6 - - '@webassemblyjs/wasm-opt@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/helper-buffer': 1.12.1 - '@webassemblyjs/wasm-gen': 1.12.1 - '@webassemblyjs/wasm-parser': 1.12.1 - - '@webassemblyjs/wasm-parser@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/helper-api-error': 1.11.6 - '@webassemblyjs/helper-wasm-bytecode': 1.11.6 - '@webassemblyjs/ieee754': 1.11.6 - '@webassemblyjs/leb128': 1.11.6 - '@webassemblyjs/utf8': 1.11.6 - - '@webassemblyjs/wast-printer@1.12.1': - dependencies: - '@webassemblyjs/ast': 1.12.1 - '@xtuc/long': 4.2.2 - - '@webpack-cli/configtest@2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': - dependencies: - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack@5.92.0) - - '@webpack-cli/info@2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': - dependencies: - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack@5.92.0) - - '@webpack-cli/serve@2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4))': - dependencies: - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - webpack-cli: 5.1.4(webpack@5.92.0) - - '@xtuc/ieee754@1.2.0': {} - - '@xtuc/long@4.2.2': {} - JSONStream@1.3.5: dependencies: jsonparse: 1.3.1 through: 2.3.8 - acorn-import-attributes@1.9.5(acorn@8.11.3): - dependencies: - acorn: 8.11.3 - - acorn@8.11.3: {} - add-stream@1.0.0: {} agent-base@6.0.2: @@ -3674,10 +3229,6 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-keywords@3.5.2(ajv@6.12.6): - dependencies: - ajv: 6.12.6 - ajv@6.12.6: dependencies: fast-deep-equal: 3.1.3 @@ -3843,11 +3394,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bundle-declarations-webpack-plugin@5.1.1(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): - dependencies: - dts-bundle-generator: 9.5.1 - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - bundle-name@4.1.0: dependencies: run-applescript: 7.0.0 @@ -3933,8 +3479,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - chrome-trace-event@1.0.4: {} - ci-info@3.9.0: {} clean-stack@2.2.0: {} @@ -3971,12 +3515,6 @@ snapshots: strip-ansi: 6.0.1 wrap-ansi: 7.0.0 - clone-deep@4.0.1: - dependencies: - is-plain-object: 2.0.4 - kind-of: 6.0.3 - shallow-clone: 3.0.1 - clone@1.0.4: {} codecov@3.8.3: @@ -4002,16 +3540,10 @@ snapshots: color-name@1.1.4: {} - colorette@2.0.20: {} - combined-stream@1.0.8: dependencies: delayed-stream: 1.0.0 - commander@10.0.1: {} - - commander@2.20.3: {} - commondir@1.0.1: {} compare-func@2.0.0: @@ -4286,15 +3818,8 @@ snapshots: emoji-regex@9.2.2: {} - enhanced-resolve@5.17.0: - dependencies: - graceful-fs: 4.2.11 - tapable: 2.2.1 - env-paths@2.2.1: {} - envinfo@7.13.0: {} - error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -4368,8 +3893,6 @@ snapshots: isarray: 2.0.5 stop-iteration-iterator: 1.0.0 - es-module-lexer@1.5.3: {} - es-object-atoms@1.0.0: dependencies: es-errors: 1.3.0 @@ -4432,25 +3955,12 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-scope@5.1.1: - dependencies: - esrecurse: 4.3.0 - estraverse: 4.3.0 - esprima@4.0.1: {} - esrecurse@4.3.0: - dependencies: - estraverse: 5.3.0 - - estraverse@4.3.0: {} - estraverse@5.3.0: {} esutils@2.0.3: {} - events@3.3.0: {} - execa@5.1.1: dependencies: cross-spawn: 7.0.3 @@ -4501,8 +4011,6 @@ snapshots: dependencies: punycode: 1.4.1 - fastest-levenshtein@1.0.16: {} - fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -4651,8 +4159,6 @@ snapshots: dependencies: is-glob: 4.0.3 - glob-to-regexp@0.4.1: {} - glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -4842,11 +4348,6 @@ snapshots: import-lazy@4.0.0: {} - import-local@3.1.0: - dependencies: - pkg-dir: 4.2.0 - resolve-cwd: 3.0.0 - imurmurhash@0.1.4: {} indent-string@4.0.0: {} @@ -4888,8 +4389,6 @@ snapshots: interpret@1.4.0: {} - interpret@3.1.1: {} - ip-address@9.0.5: dependencies: jsbn: 1.1.0 @@ -4981,10 +4480,6 @@ snapshots: is-plain-obj@2.1.0: {} - is-plain-object@2.0.4: - dependencies: - isobject: 3.0.1 - is-regex@1.1.4: dependencies: call-bind: 1.0.7 @@ -5042,8 +4537,6 @@ snapshots: isexe@2.0.0: {} - isobject@3.0.1: {} - isstream@0.1.2: {} issue-parser@7.0.0: @@ -5105,12 +4598,6 @@ snapshots: es-get-iterator: 1.1.3 iterate-iterator: 1.0.2 - jest-worker@27.5.1: - dependencies: - '@types/node': 20.14.2 - merge-stream: 2.0.0 - supports-color: 8.1.1 - js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -5163,8 +4650,6 @@ snapshots: dependencies: json-buffer: 3.0.1 - kind-of@6.0.3: {} - latest-version@7.0.0: dependencies: package-json: 8.1.1 @@ -5175,8 +4660,6 @@ snapshots: lines-and-columns@2.0.4: {} - loader-runner@4.3.0: {} - locate-path@5.0.0: dependencies: p-locate: 4.1.0 @@ -5658,10 +5141,6 @@ snapshots: dependencies: resolve: 1.22.8 - rechoir@0.8.0: - dependencies: - resolve: 1.22.8 - regexp.prototype.flags@1.5.2: dependencies: call-bind: 1.0.7 @@ -5745,10 +5224,6 @@ snapshots: resolve-alpn@1.2.1: {} - resolve-cwd@3.0.0: - dependencies: - resolve-from: 5.0.0 - resolve-from@4.0.0: {} resolve-from@5.0.0: {} @@ -5810,12 +5285,6 @@ snapshots: safer-buffer@2.1.2: {} - schema-utils@3.3.0: - dependencies: - '@types/json-schema': 7.0.15 - ajv: 6.12.6 - ajv-keywords: 3.5.2(ajv@6.12.6) - semver-diff@4.0.0: dependencies: semver: 7.6.2 @@ -5828,10 +5297,6 @@ snapshots: dependencies: randombytes: 2.1.0 - serialize-javascript@6.0.2: - dependencies: - randombytes: 2.1.0 - set-blocking@2.0.0: {} set-function-length@1.2.2: @@ -5850,16 +5315,10 @@ snapshots: functions-have-names: 1.2.3 has-property-descriptors: 1.0.2 - shallow-clone@3.0.1: - dependencies: - kind-of: 6.0.3 - shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 - shebang-loader@0.0.1: {} - shebang-regex@3.0.0: {} shelljs@0.8.5: @@ -5908,15 +5367,8 @@ snapshots: ip-address: 9.0.5 smart-buffer: 4.2.0 - source-map-support@0.5.21: - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - source-map@0.6.1: {} - source-map@0.7.4: {} - spawn-wrap@2.0.0: dependencies: foreground-child: 2.0.0 @@ -6043,8 +5495,6 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - tapable@2.2.1: {} - teeny-request@7.1.1: dependencies: http-proxy-agent: 4.0.1 @@ -6056,24 +5506,6 @@ snapshots: - encoding - supports-color - terser-webpack-plugin@5.3.10(esbuild@0.21.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - jest-worker: 27.5.1 - schema-utils: 3.3.0 - serialize-javascript: 6.0.2 - terser: 5.31.1 - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - optionalDependencies: - esbuild: 0.21.5 - - terser@5.31.1: - dependencies: - '@jridgewell/source-map': 0.3.6 - acorn: 8.11.3 - commander: 2.20.3 - source-map-support: 0.5.21 - test-exclude@6.0.0: dependencies: '@istanbuljs/schema': 0.1.3 @@ -6103,16 +5535,6 @@ snapshots: tr46@0.0.3: {} - ts-loader@9.5.1(typescript@5.4.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)): - dependencies: - chalk: 4.1.2 - enhanced-resolve: 5.17.0 - micromatch: 4.0.7 - semver: 7.6.2 - source-map: 0.7.4 - typescript: 5.4.5 - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - tslib@2.6.3: {} tunnel-agent@0.6.0: @@ -6262,11 +5684,6 @@ snapshots: vscode-textmate@8.0.0: {} - watchpack@2.4.1: - dependencies: - glob-to-regexp: 0.4.1 - graceful-fs: 4.2.11 - wcwidth@1.0.1: dependencies: defaults: 1.0.4 @@ -6275,66 +5692,6 @@ snapshots: webidl-conversions@3.0.1: {} - webpack-cli@5.1.4(webpack@5.92.0): - dependencies: - '@discoveryjs/json-ext': 0.5.7 - '@webpack-cli/configtest': 2.1.1(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) - '@webpack-cli/info': 2.0.2(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) - '@webpack-cli/serve': 2.0.5(webpack-cli@5.1.4(webpack@5.92.0))(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) - colorette: 2.0.20 - commander: 10.0.1 - cross-spawn: 7.0.3 - envinfo: 7.13.0 - fastest-levenshtein: 1.0.16 - import-local: 3.1.0 - interpret: 3.1.1 - rechoir: 0.8.0 - webpack: 5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4) - webpack-merge: 5.10.0 - - webpack-merge@5.10.0: - dependencies: - clone-deep: 4.0.1 - flat: 5.0.2 - wildcard: 2.0.1 - - webpack-node-externals@3.0.0: {} - - webpack-sources@3.2.3: {} - - webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4): - dependencies: - '@types/eslint-scope': 3.7.7 - '@types/estree': 1.0.5 - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/wasm-edit': 1.12.1 - '@webassemblyjs/wasm-parser': 1.12.1 - acorn: 8.11.3 - acorn-import-attributes: 1.9.5(acorn@8.11.3) - browserslist: 4.23.1 - chrome-trace-event: 1.0.4 - enhanced-resolve: 5.17.0 - es-module-lexer: 1.5.3 - eslint-scope: 5.1.1 - events: 3.3.0 - glob-to-regexp: 0.4.1 - graceful-fs: 4.2.11 - json-parse-even-better-errors: 2.3.1 - loader-runner: 4.3.0 - mime-types: 2.1.35 - neo-async: 2.6.2 - schema-utils: 3.3.0 - tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(esbuild@0.21.5)(webpack@5.92.0(esbuild@0.21.5)(webpack-cli@5.1.4)) - watchpack: 2.4.1 - webpack-sources: 3.2.3 - optionalDependencies: - webpack-cli: 5.1.4(webpack@5.92.0) - transitivePeerDependencies: - - '@swc/core' - - esbuild - - uglify-js - whatwg-url@5.0.0: dependencies: tr46: 0.0.3 @@ -6368,8 +5725,6 @@ snapshots: wildcard-match@5.1.3: {} - wildcard@2.0.1: {} - windows-release@5.1.1: dependencies: execa: 5.1.1 From d1071f131f61e11bed041f7159b619678c3416a1 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Tue, 11 Jun 2024 22:08:12 +0200 Subject: [PATCH 03/16] build: add building with esbuild Signed-off-by: euberdeveloper --- build.mjs | 62 +++++++++++++++++++++++++++++++ package.json | 5 ++- webpack.config.js | 95 ----------------------------------------------- 3 files changed, 66 insertions(+), 96 deletions(-) create mode 100644 build.mjs delete mode 100644 webpack.config.js diff --git a/build.mjs b/build.mjs new file mode 100644 index 0000000..2e2c9f8 --- /dev/null +++ b/build.mjs @@ -0,0 +1,62 @@ +import fs from 'node:fs'; +import { build } from 'esbuild'; +import * as importMap from "esbuild-plugin-import-map"; + +import packageJson from './package.json' assert { type: 'json' }; + +importMap.load({ + imports: { + './index': '../lib/esm/index.esm.js' + } +}); + +function getExternalDependencies(allow = []) { + const deps = packageJson.dependencies ? Object.keys(packageJson.dependencies).filter(dep => !allow.includes(dep)) : []; + const peerDeps = packageJson.peerDependencies ? Object.keys(packageJson.peerDependencies).filter(dep => !allow.includes(dep)) : []; + return [...deps, ...peerDeps]; +} + +async function buildModule() { + const shared = { + platform: 'node', + entryPoints: ['source/lib/index.ts'], + bundle: true, + minify: true, + treeShaking: true, + sourcemap: true + }; + + await build({ + ...shared, + outfile: 'bundled/lib/commonjs/index.js', + format: 'cjs', + external: getExternalDependencies() + }); + + await build({ + ...shared, + outfile: 'bundled/lib/esm/index.esm.js', + format: 'esm', + external: getExternalDependencies() + }); + + await build({ + ...shared, + entryPoints: ['source/bin/index.ts'], + outfile: 'bundled/bin/index.js', + format: 'esm', + external: getExternalDependencies(), + plugins: [importMap.plugin()], + define: { + '__VERSION__': `"${packageJson.version}"` + } + }); +} + +function generateCommonjsPackageJson() { + const packageJsonCommonJs = JSON.stringify({ ...packageJson, type: undefined }, null, 2); + fs.writeFileSync('./bundled/lib/commonjs/package.json', packageJsonCommonJs); +} + +await buildModule(); +generateCommonjsPackageJson(); \ No newline at end of file diff --git a/package.json b/package.json index e7fd0bb..6cd944d 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,10 @@ "pretranspile": "shx rm -rf dist", "transpile": "tsc -p source", "prebundle": "shx rm -rf dist bundled", - "bundle": "webpack", + "bundle:esm": "node build.mjs", + "bundle:dts": "dts-bundle-generator -o bundled/lib/commonjs/index.d.ts --project source/tsconfig.json source/lib/index.ts", + "bundle": "pnpm bundle:esm && pnpm bundle:dts", + "postbundle:dts": "cp bundled/lib/commonjs/index.d.ts bundled/lib/esm/index.d.ts", "script:getr:linux": "node scripts/generate-expected-tests-results linux", "script:getr:mac": "node scripts/generate-expected-tests-results mac", "script:getr:windows": "node scripts/generate-expected-tests-results windows", diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 09e6cdd..0000000 --- a/webpack.config.js +++ /dev/null @@ -1,95 +0,0 @@ -const path = require('path'); -const webpack = require('webpack'); -const nodeExternals = require('webpack-node-externals'); -const { BundleDeclarationsWebpackPlugin } = require('bundle-declarations-webpack-plugin'); - -const libConfig = { - target: 'node', - mode: 'production', - // devtool: 'source-map', - entry: { - index: './source/lib/index.ts' - }, - resolve: { - extensions: ['.ts', '.js'] - }, - module: { - rules: [ - { - test: /\.ts?$/, - include: path.resolve(__dirname, 'source', 'lib'), - use: [ - { - loader: 'ts-loader' - } - ] - } - ] - }, - plugins: [ - new BundleDeclarationsWebpackPlugin({ - entry: "./source/lib/index.ts", - outFile: "./index.d.ts" - }) - ], - externals: [nodeExternals()], - output: { - path: path.resolve(__dirname, 'bundled', 'lib'), - filename: 'index.js', - library: 'dree', - libraryTarget: 'umd', - globalObject: 'this', - umdNamedDefine: true, - } -}; - -const binConfig = { - target: 'node', - mode: 'production', - entry: { - index: './source/bin/index.ts', - }, - resolve: { - extensions: ['.ts', '.js'] - }, - plugins: [ - new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }) - ], - module: { - rules: [ - { - test: /\.ts?$/, - include: path.resolve(__dirname, 'source'), - use: [ - { - loader: 'ts-loader' - }, - { - loader: 'shebang-loader' - } - ] - } - ] - }, - externals: [{ - '../lib/index': { - amd: '../lib/index', - root: 'dree', - commonjs: '../lib/index', - commonjs2: '../lib/index' - } - }, nodeExternals()], - output: { - path: path.resolve(__dirname, 'bundled', 'bin'), - filename: 'index.js', - library: 'dree', - libraryTarget: 'umd', - globalObject: 'this', - umdNamedDefine: true, - } -}; - -module.exports = [ - libConfig, - binConfig -]; From 7e7b947eb468eaf42240cbceedd09df678265d92 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Tue, 11 Jun 2024 22:09:39 +0200 Subject: [PATCH 04/16] fix(build.mjs): fix cli import Signed-off-by: euberdeveloper --- build.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.mjs b/build.mjs index 2e2c9f8..90bf938 100644 --- a/build.mjs +++ b/build.mjs @@ -6,7 +6,7 @@ import packageJson from './package.json' assert { type: 'json' }; importMap.load({ imports: { - './index': '../lib/esm/index.esm.js' + '../lib/index': '../lib/esm/index.esm.js' } }); From 1f4db9a2e612f4d8dace8a2871646a5bd8cf95eb Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 20:47:48 +0200 Subject: [PATCH 05/16] feat: fix esm build and provide esm/cjs bundle Fixed the building with esbuild, changed to esmodule, now both cjs and es bundles are provided BREAKING CHANGE: The ESM introduction could have unexpected changes in behaviour --- build.mjs | 2 +- package.json | 18 +- source/bin/index.ts | 522 +++++++++++++++++++++--------------------- source/bin/shims.d.ts | 1 + source/lib/index.ts | 11 +- source/tsconfig.json | 14 +- 6 files changed, 296 insertions(+), 272 deletions(-) create mode 100644 source/bin/shims.d.ts diff --git a/build.mjs b/build.mjs index 90bf938..8121ecb 100644 --- a/build.mjs +++ b/build.mjs @@ -6,7 +6,7 @@ import packageJson from './package.json' assert { type: 'json' }; importMap.load({ imports: { - '../lib/index': '../lib/esm/index.esm.js' + '../lib/index.js': '../lib/esm/index.esm.js' } }); diff --git a/package.json b/package.json index 6cd944d..c65b674 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,24 @@ "name": "dree", "version": "4.8.6", "description": "A nodejs module wich helps you handle a directory tree providing you its abstraction through tested functions and a custom configuration.", - "main": "bundled/lib/index.js", - "types": "bundled/lib/index.d.ts", + "main": "bundled/lib/commonjs/index.js", + "types": "bundled/lib/commonjs/index.d.ts", + "module": "./bundled/lib/esm/index.esm.js", "bin": { "dree": "bundled/bin/index.js" }, + "exports": { + ".": { + "require": { + "default": "./bundled/lib/commonjs/index.js", + "types": "./bundled/lib/commonjs/index.d.ts" + }, + "import": { + "default": "./bundled/lib/esm/index.esm.js", + "types": "./bundled/lib/esm/index.d.ts" + } + } + }, "files": [ "package.json", "bundled", @@ -14,6 +27,7 @@ "CHANGELOG.md", "LICENSE" ], + "type": "module", "scripts": { "pretranspile": "shx rm -rf dist", "transpile": "tsc -p source", diff --git a/source/bin/index.ts b/source/bin/index.ts index 46af1f5..eec127e 100644 --- a/source/bin/index.ts +++ b/source/bin/index.ts @@ -1,12 +1,13 @@ #!/usr/bin/env node -import * as yargs from 'yargs'; -import { writeFileSync } from 'fs'; +import yargs, { Argv } from 'yargs'; +import { hideBin } from 'yargs/helpers'; +import { writeFileSync } from 'node:fs'; -import * as dree from '../lib/index'; -import { ParseOptions, PostSortDiscriminator, PostSortMethodPredefined, ScanOptions, SortDiscriminator, SortMethodPredefined } from '../lib/index'; +import * as dree from '../lib/index.js'; +import { ParseOptions, PostSortDiscriminator, PostSortMethodPredefined, ScanOptions, SortDiscriminator, SortMethodPredefined } from '../lib/index.js'; -function escapeStringRegexp(string) { - return string +function escapeStringRegexp(str: string) { + return str .replace(/[|\\{}()[\]^$+*?.]/g, '\\$&') .replace(/-/g, '\\x2d'); } @@ -49,261 +50,266 @@ function parsePostSorted(postSorted?: PostSortMethodPredefined | 'ascending' | ' } } -yargs - .scriptName('dree') - .command( - 'parse ', - 'Save the directory tree as a text file', - (yargs: yargs.Argv) => { - yargs.positional('source', { - describe: 'The path of the root of the directory tree', - type: 'string' - }); - }, - argv => { - const args: any = argv; - const options: ParseOptions = { - symbolicLinks: args.symbolicLinks, - followLinks: args.followLinks, - showHidden: args.showHidden, - depth: args.depth, - exclude: parseRegExp(args.exclude), - extensions: args.extensions, - sorted: parseSorted(args.sorted), - homeShortcut: args.homeShortcut, - skipErrors: args.skipErrors - } - const source: string = args.source; - const dest: string | undefined = args.dest; - const show: boolean = !args.dest || args.show; - const tree = dree.parse(source, options); - if (show) { - console.log(tree); - } - if (dest) { - writeFileSync(dest, tree); - } - } - ) - .command( - 'scan ', - 'Save the directory tree as a json file', - (yargs: yargs.Argv) => { - yargs - .positional('source', { +async function main() { + await yargs(hideBin(process.argv)) + .scriptName('dree') + .version(__VERSION__) + .command( + 'parse ', + 'Save the directory tree as a text file', + (yargs: Argv) => { + yargs.positional('source', { describe: 'The path of the root of the directory tree', type: 'string' - }) - .options({ - 'tabs': { - describe: 'How many tabs will be used to indent the resulted json', - type: 'number', - default: 0 - }, - 'pretty': { - describe: 'If the resulted json will be pretty printed with 4 tabs. Overwrites the tabs option', - type: 'boolean', - default: false - } }); - }, - argv => { - const args: any = argv; - const options: ScanOptions = { - stat: args.stat, - normalize: args.normalize, - symbolicLinks: args.symbolicLinks, - followLinks: args.followLinks, - sizeInBytes: args.sizeInBytes, - size: args.size, - hash: args.hash, - hashAlgorithm: args.hashAlgorithm, - hashEncoding: args.hashEncoding, - showHidden: args.showHidden, - depth: args.depth, - exclude: parseRegExp(args.exclude), - matches: parseRegExp(args.matches), - emptyDirectory: args.emptyDirectory, - excludeEmptyDirectories: args.excludeEmptyDirectories, - descendants: args.descendants, - descendantsIgnoreDirectories: args.descendantsIgnoreDirectories, - extensions: args.extensions, - sorted: parseSorted(args.sorted), - postSorted: parsePostSorted(args.postSorted), - homeShortcut: args.homeShortcut, - skipErrors: args.skipErrors + }, + argv => { + const args: any = argv; + const options: ParseOptions = { + symbolicLinks: args.symbolicLinks, + followLinks: args.followLinks, + showHidden: args.showHidden, + depth: args.depth, + exclude: parseRegExp(args.exclude), + extensions: args.extensions, + sorted: parseSorted(args.sorted), + homeShortcut: args.homeShortcut, + skipErrors: args.skipErrors + } + const source: string = args.source; + const dest: string | undefined = args.dest; + const show: boolean = !args.dest || args.show; + const tree = dree.parse(source, options); + if (show) { + console.log(tree); + } + if (dest) { + writeFileSync(dest, tree); + } } - const source: string = args.source; - const dest: string | undefined = args.dest; - const show: boolean = !args.dest || args.show; - const pretty: boolean = args.pretty; - const tabs: number = pretty ? 4 : args.tabs; - const tree = JSON.stringify(dree.scan(source, options), null, tabs); - if (show) { - console.log(tree); + ) + .command( + 'scan ', + 'Save the directory tree as a json file', + (yargs: Argv) => { + yargs + .positional('source', { + describe: 'The path of the root of the directory tree', + type: 'string' + }) + .options({ + 'tabs': { + describe: 'How many tabs will be used to indent the resulted json', + type: 'number', + default: 0 + }, + 'pretty': { + describe: 'If the resulted json will be pretty printed with 4 tabs. Overwrites the tabs option', + type: 'boolean', + default: false + } + }); + }, + argv => { + const args: any = argv; + const options: ScanOptions = { + stat: args.stat, + normalize: args.normalize, + symbolicLinks: args.symbolicLinks, + followLinks: args.followLinks, + sizeInBytes: args.sizeInBytes, + size: args.size, + hash: args.hash, + hashAlgorithm: args.hashAlgorithm, + hashEncoding: args.hashEncoding, + showHidden: args.showHidden, + depth: args.depth, + exclude: parseRegExp(args.exclude), + matches: parseRegExp(args.matches), + emptyDirectory: args.emptyDirectory, + excludeEmptyDirectories: args.excludeEmptyDirectories, + descendants: args.descendants, + descendantsIgnoreDirectories: args.descendantsIgnoreDirectories, + extensions: args.extensions, + sorted: parseSorted(args.sorted), + postSorted: parsePostSorted(args.postSorted), + homeShortcut: args.homeShortcut, + skipErrors: args.skipErrors + } + const source: string = args.source; + const dest: string | undefined = args.dest; + const show: boolean = !args.dest || args.show; + const pretty: boolean = args.pretty; + const tabs: number = pretty ? 4 : args.tabs; + const tree = JSON.stringify(dree.scan(source, options), null, tabs); + if (show) { + console.log(tree); + } + if (dest) { + writeFileSync(dest, tree); + } } - if (dest) { - writeFileSync(dest, tree); + ) + .options({ + 'dest': { + alias: 'd', + describe: 'The path of the output file destination. If not specified, in any case the result will be printed on the command line.', + type: 'string' + }, + 'show': { + alias: 's', + default: false, + describe: 'Whether you want to print the result on the command line. This will be ignored and set to true if no destination is specified.', + type: 'boolean' + }, + 'stat': { + default: false, + describe: 'Whether you want the fs.stat included in the json result', + type: 'boolean', + hidden: true + }, + 'normalize': { + default: false, + describe: 'Whether you want to normalize the path in the json result', + type: 'boolean', + hidden: true + }, + 'symbolic-links': { + default: true, + describe: 'Whether you want to consider symbolic links during the elaboration, could not work on windows', + type: 'boolean', + hidden: true + }, + 'follow-links': { + default: false, + describe: 'Whether you want to follow symbolic links during the elaboration, could not work on windows', + type: 'boolean', + hidden: true + }, + 'size-in-bytes': { + default: true, + describe: 'Whether you want to include the size in bytes in the json result', + type: 'boolean', + hidden: true + }, + 'size': { + default: true, + describe: 'Whether you want to include the size in a proper unit in the json result', + type: 'boolean', + hidden: true + }, + 'hash': { + default: true, + describe: 'Whether you want to include the hash in the json result', + type: 'boolean', + hidden: true + }, + 'hash-algorithm': { + default: 'md5', + describe: 'The hash algorithm that you want to use for the hash in the json result', + type: 'string', + choices: ['md5', 'sha1'], + hidden: true + }, + 'hash-encoding': { + default: 'hex', + describe: 'The hash encoding that you want to use for the hash in the json result', + type: 'string', + choiches: ['hex', 'base64', 'latin1'], + hidden: true + }, + 'show-hidden': { + default: true, + describe: 'Whether you want to consider hidden files during the elaboration', + type: 'boolean', + hidden: true + }, + 'depth': { + default: undefined, + describe: 'The max depth wich could be reached during the elaboration from the given folder', + type: 'number', + hidden: true + }, + 'exclude': { + describe: 'An array of strings (glob patterns) or regex (just write them as you would with js, e.g. /^[a-b]*$/g) whose all matched path will not be considered during the elaboration', + type: 'array', + hidden: true + }, + 'matches': { + describe: 'An array of strings (glob patterns) or regex (just write them as you would with js, e.g. /^[a-b]*$/g) and all the non-matching paths will not be considered by the algorithm. Note: All the ancestors of a matching node will be added', + type: 'array', + hidden: true + }, + 'extensions': { + describe: 'An array of strings containing all the extensions wich will be considered', + type: 'array', + hidden: true + }, + 'empty-directory': { + default: false, + describe: 'Whether you want to include the property isEmpty in the result', + type: 'boolean', + hidden: true + }, + 'exclude-empty-directories': { + default: false, + describe: 'Whether you want to exclude all the empty directories from the result, even if they contains nodes excluded by other options', + type: 'boolean', + hidden: true + }, + 'sorted': { + default: undefined, + describe: 'Whether you want the result to contain values sorted with a dree pre-defined sorting method. \'ascending\' or \'descending\' are kept for retrocompatibility. The sort is done before the scanning for the scan command. If not specified, the result values are not ordered.', + type: 'string', + choices: [...Object.values(SortMethodPredefined), 'ascending', 'descending'], + hidden: true, + }, + 'postSorted': { + default: undefined, + describe: 'Whether you want the result to contain values sorted with a dree pre-defined sorting method. \'ascending\' or \'descending\' are kept for retrocompatibility. The sort is done after the scanning for the scan command. If not specified, the result values are not ordered.', + type: 'string', + choices: [...Object.values(PostSortMethodPredefined), 'ascending', 'descending'], + hidden: true, + }, + 'descendants': { + default: false, + describe: 'Whether you want the result to contain the number of descendants for each node', + type: 'boolean', + hidden: true, + }, + 'descendants-ignore-directories': { + default: false, + describe: 'Whether you want the result directories to be ignored when calculating the number of descendants', + type: 'boolean', + hidden: true, + }, + 'home-shortcut': { + default: false, + describe: 'Whether you want the unix homedir shortcut ~ to be expanded to the user home directory', + type: 'boolean', + hidden: true + }, + 'skip-errors': { + default: true, + describe: 'Whether you want to skip folders and files wich give errors during the execution', + type: 'boolean', + hidden: true + }, + 'options': { + alias: 'o', + describe: 'A path to a json config file. If an option is both on the file and in the command, the command one will be considered', + config: true } - } - ) - .options({ - 'dest': { - alias: 'd', - describe: 'The path of the output file destination. If not specified, in any case the result will be printed on the command line.', - type: 'string' - }, - 'show': { - alias: 's', - default: false, - describe: 'Whether you want to print the result on the command line. This will be ignored and set to true if no destination is specified.', - type: 'boolean' - }, - 'stat': { - default: false, - describe: 'Whether you want the fs.stat included in the json result', - type: 'boolean', - hidden: true - }, - 'normalize': { - default: false, - describe: 'Whether you want to normalize the path in the json result', - type: 'boolean', - hidden: true - }, - 'symbolic-links': { - default: true, - describe: 'Whether you want to consider symbolic links during the elaboration, could not work on windows', - type: 'boolean', - hidden: true - }, - 'follow-links': { - default: false, - describe: 'Whether you want to follow symbolic links during the elaboration, could not work on windows', - type: 'boolean', - hidden: true - }, - 'size-in-bytes': { - default: true, - describe: 'Whether you want to include the size in bytes in the json result', - type: 'boolean', - hidden: true - }, - 'size': { - default: true, - describe: 'Whether you want to include the size in a proper unit in the json result', - type: 'boolean', - hidden: true - }, - 'hash': { - default: true, - describe: 'Whether you want to include the hash in the json result', - type: 'boolean', - hidden: true - }, - 'hash-algorithm': { - default: 'md5', - describe: 'The hash algorithm that you want to use for the hash in the json result', - type: 'string', - choices: ['md5', 'sha1'], - hidden: true - }, - 'hash-encoding': { - default: 'hex', - describe: 'The hash encoding that you want to use for the hash in the json result', - type: 'string', - choiches: ['hex', 'base64', 'latin1'], - hidden: true - }, - 'show-hidden': { - default: true, - describe: 'Whether you want to consider hidden files during the elaboration', - type: 'boolean', - hidden: true - }, - 'depth': { - default: undefined, - describe: 'The max depth wich could be reached during the elaboration from the given folder', - type: 'number', - hidden: true - }, - 'exclude': { - describe: 'An array of strings (glob patterns) or regex (just write them as you would with js, e.g. /^[a-b]*$/g) whose all matched path will not be considered during the elaboration', - type: 'array', - hidden: true - }, - 'matches': { - describe: 'An array of strings (glob patterns) or regex (just write them as you would with js, e.g. /^[a-b]*$/g) and all the non-matching paths will not be considered by the algorithm. Note: All the ancestors of a matching node will be added', - type: 'array', - hidden: true - }, - 'extensions': { - describe: 'An array of strings containing all the extensions wich will be considered', - type: 'array', - hidden: true - }, - 'empty-directory': { - default: false, - describe: 'Whether you want to include the property isEmpty in the result', - type: 'boolean', - hidden: true - }, - 'exclude-empty-directories': { - default: false, - describe: 'Whether you want to exclude all the empty directories from the result, even if they contains nodes excluded by other options', - type: 'boolean', - hidden: true - }, - 'sorted': { - default: undefined, - describe: 'Whether you want the result to contain values sorted with a dree pre-defined sorting method. \'ascending\' or \'descending\' are kept for retrocompatibility. The sort is done before the scanning for the scan command. If not specified, the result values are not ordered.', - type: 'string', - choices: [...Object.values(SortMethodPredefined), 'ascending', 'descending'], - hidden: true, - }, - 'postSorted': { - default: undefined, - describe: 'Whether you want the result to contain values sorted with a dree pre-defined sorting method. \'ascending\' or \'descending\' are kept for retrocompatibility. The sort is done after the scanning for the scan command. If not specified, the result values are not ordered.', - type: 'string', - choices: [...Object.values(PostSortMethodPredefined), 'ascending', 'descending'], - hidden: true, - }, - 'descendants': { - default: false, - describe: 'Whether you want the result to contain the number of descendants for each node', - type: 'boolean', - hidden: true, - }, - 'descendants-ignore-directories': { - default: false, - describe: 'Whether you want the result directories to be ignored when calculating the number of descendants', - type: 'boolean', - hidden: true, - }, - 'home-shortcut': { - default: false, - describe: 'Whether you want the unix homedir shortcut ~ to be expanded to the user home directory', - type: 'boolean', - hidden: true - }, - 'skip-errors': { - default: true, - describe: 'Whether you want to skip folders and files wich give errors during the execution', - type: 'boolean', - hidden: true - }, - 'options': { - alias: 'o', - describe: 'A path to a json config file. If an option is both on the file and in the command, the command one will be considered', - config: true - } - }) - .showHidden('all-options') - .completion( - 'completion', - 'Creates the completion bash script to add o your .bashrc in order to have the tab autocompletion for this cli service' - ) - .demandCommand(1, 'You must specify a command') - .strict() - .epilogue('For more information, find our manual at https://github.com/euberdeveloper/dree#readme') - .argv; \ No newline at end of file + }) + .showHidden('all-options') + .completion( + 'completion', + 'Creates the completion bash script to add o your .bashrc in order to have the tab autocompletion for this cli service' + ) + .demandCommand(1, 'You must specify a command') + .strict() + .epilogue('For more information, find our manual at https://github.com/euberdeveloper/dree#readme') + .argv; +} +main(); + diff --git a/source/bin/shims.d.ts b/source/bin/shims.d.ts new file mode 100644 index 0000000..415c2c8 --- /dev/null +++ b/source/bin/shims.d.ts @@ -0,0 +1 @@ +declare const __VERSION__: string; diff --git a/source/lib/index.ts b/source/lib/index.ts index c7761f1..23bc5db 100644 --- a/source/lib/index.ts +++ b/source/lib/index.ts @@ -1,9 +1,10 @@ -import { resolve, basename, extname, relative } from 'path'; -import { homedir } from 'os'; -import { BinaryToTextEncoding, createHash, Hash } from 'crypto'; +import { resolve, basename, extname, relative } from 'node:path'; +import { homedir } from 'node:os'; +import { BinaryToTextEncoding, createHash, Hash } from 'node:crypto'; +import { statSync, readdirSync, readFileSync, lstatSync, Stats } from 'node:fs'; +import { stat as statAsync, readdir as readdirAsync, readFile as readFileAsync, lstat as lstatAsync } from 'node:fs/promises'; + import { makeRe } from 'minimatch'; -import { statSync, readdirSync, readFileSync, lstatSync, Stats } from 'fs'; -import { stat as statAsync, readdir as readdirAsync, readFile as readFileAsync, lstat as lstatAsync } from 'fs/promises'; /* DREE TYPES */ diff --git a/source/tsconfig.json b/source/tsconfig.json index ad3c5a5..51f08d9 100644 --- a/source/tsconfig.json +++ b/source/tsconfig.json @@ -1,16 +1,18 @@ { "compilerOptions": { - "moduleResolution": "node", - "module": "commonjs", - "target": "es5", + "moduleResolution": "NodeNext", + "module": "NodeNext", + "target": "ES2020", "lib": [ - "es2015", - "dom" + "ES2023", + "DOM" ], "outDir": "../dist", "sourceMap": true, "declaration": true, - "skipLibCheck": true + "skipDefaultLibCheck": true, + "skipLibCheck": true, + "esModuleInterop": true }, "include": [ "bin", From 0a878b7fa99264fd2b7c813e03ac6dfbf24b3cff Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 20:52:59 +0200 Subject: [PATCH 06/16] refactor(test): rename .mjs into .js files Signed-off-by: euberdeveloper --- package.json | 2 +- scripts/generate-expected-tests-results.js | 4 +- .../linux/{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../linux/{fifth.test.mjs => fifth.test.js} | 0 .../linux/{first.test.mjs => first.test.js} | 0 .../linux/{fourth.test.mjs => fourth.test.js} | 0 .../linux/{ninth.test.mjs => ninth.test.js} | 0 .../linux/{second.test.mjs => second.test.js} | 0 .../{seventh.test.mjs => seventh.test.js} | 0 .../linux/{sixth.test.mjs => sixth.test.js} | 0 .../linux/{tenth.test.mjs => tenth.test.js} | 0 .../linux/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../{twelfth.test.mjs => twelfth.test.js} | 0 .../mac/{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../mac/{fifth.test.mjs => fifth.test.js} | 0 .../mac/{first.test.mjs => first.test.js} | 0 .../mac/{fourth.test.mjs => fourth.test.js} | 0 .../mac/{ninth.test.mjs => ninth.test.js} | 0 .../mac/{second.test.mjs => second.test.js} | 0 .../mac/{seventh.test.mjs => seventh.test.js} | 0 .../mac/{sixth.test.mjs => sixth.test.js} | 0 .../mac/{tenth.test.mjs => tenth.test.js} | 0 .../mac/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../mac/{twelfth.test.mjs => twelfth.test.js} | 0 test/parse/{parse.test.mjs => parse.test.js} | 52 ++++++++--------- ...parseAsync.test.mjs => parseAsync.test.js} | 26 ++++----- .../{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../windows/{fifth.test.mjs => fifth.test.js} | 0 .../windows/{first.test.mjs => first.test.js} | 0 .../{fourth.test.mjs => fourth.test.js} | 0 .../windows/{ninth.test.mjs => ninth.test.js} | 0 .../{second.test.mjs => second.test.js} | 0 .../{seventh.test.mjs => seventh.test.js} | 0 .../windows/{sixth.test.mjs => sixth.test.js} | 0 .../windows/{tenth.test.mjs => tenth.test.js} | 0 .../windows/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../{twelfth.test.mjs => twelfth.test.js} | 0 .../linux/{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../linux/{fifth.test.mjs => fifth.test.js} | 0 .../linux/{first.test.mjs => first.test.js} | 0 ...fourteenth.test.mjs => fourteenth.test.js} | 0 .../linux/{fourth.test.mjs => fourth.test.js} | 0 .../linux/{ninth.test.mjs => ninth.test.js} | 0 .../linux/{second.test.mjs => second.test.js} | 0 .../{seventh.test.mjs => seventh.test.js} | 0 .../linux/{sixth.test.mjs => sixth.test.js} | 0 .../linux/{tenth.test.mjs => tenth.test.js} | 0 .../linux/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../{twelfth.test.mjs => twelfth.test.js} | 0 .../mac/{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../mac/{fifth.test.mjs => fifth.test.js} | 0 .../mac/{first.test.mjs => first.test.js} | 0 ...fourteenth.test.mjs => fourteenth.test.js} | 0 .../mac/{fourth.test.mjs => fourth.test.js} | 0 .../mac/{ninth.test.mjs => ninth.test.js} | 0 .../mac/{second.test.mjs => second.test.js} | 0 .../mac/{seventh.test.mjs => seventh.test.js} | 0 .../mac/{sixth.test.mjs => sixth.test.js} | 0 .../mac/{tenth.test.mjs => tenth.test.js} | 0 .../mac/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../mac/{twelfth.test.mjs => twelfth.test.js} | 0 .../{parseTree.test.mjs => parseTree.test.js} | 56 +++++++++---------- ...eAsync.test.mjs => parseTreeAsync.test.js} | 56 +++++++++---------- .../{eighth.test.mjs => eighth.test.js} | 0 .../{eleventh.test.mjs => eleventh.test.js} | 0 .../windows/{fifth.test.mjs => fifth.test.js} | 0 .../windows/{first.test.mjs => first.test.js} | 0 ...fourteenth.test.mjs => fourteenth.test.js} | 0 .../{fourth.test.mjs => fourth.test.js} | 0 .../windows/{ninth.test.mjs => ninth.test.js} | 0 .../{second.test.mjs => second.test.js} | 0 .../{seventh.test.mjs => seventh.test.js} | 0 .../windows/{sixth.test.mjs => sixth.test.js} | 0 .../windows/{tenth.test.mjs => tenth.test.js} | 0 .../windows/{third.test.mjs => third.test.js} | 0 ...thirteenth.test.mjs => thirteenth.test.js} | 0 .../{twelfth.test.mjs => twelfth.test.js} | 0 test/scan/{scan.test.mjs => scan.test.js} | 0 .../{scanAsync.test.mjs => scanAsync.test.js} | 0 test/{test.mjs => test.js} | 12 ++-- 90 files changed, 104 insertions(+), 104 deletions(-) rename test/parse/linux/{eighth.test.mjs => eighth.test.js} (100%) rename test/parse/linux/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parse/linux/{fifth.test.mjs => fifth.test.js} (100%) rename test/parse/linux/{first.test.mjs => first.test.js} (100%) rename test/parse/linux/{fourth.test.mjs => fourth.test.js} (100%) rename test/parse/linux/{ninth.test.mjs => ninth.test.js} (100%) rename test/parse/linux/{second.test.mjs => second.test.js} (100%) rename test/parse/linux/{seventh.test.mjs => seventh.test.js} (100%) rename test/parse/linux/{sixth.test.mjs => sixth.test.js} (100%) rename test/parse/linux/{tenth.test.mjs => tenth.test.js} (100%) rename test/parse/linux/{third.test.mjs => third.test.js} (100%) rename test/parse/linux/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parse/linux/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/parse/mac/{eighth.test.mjs => eighth.test.js} (100%) rename test/parse/mac/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parse/mac/{fifth.test.mjs => fifth.test.js} (100%) rename test/parse/mac/{first.test.mjs => first.test.js} (100%) rename test/parse/mac/{fourth.test.mjs => fourth.test.js} (100%) rename test/parse/mac/{ninth.test.mjs => ninth.test.js} (100%) rename test/parse/mac/{second.test.mjs => second.test.js} (100%) rename test/parse/mac/{seventh.test.mjs => seventh.test.js} (100%) rename test/parse/mac/{sixth.test.mjs => sixth.test.js} (100%) rename test/parse/mac/{tenth.test.mjs => tenth.test.js} (100%) rename test/parse/mac/{third.test.mjs => third.test.js} (100%) rename test/parse/mac/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parse/mac/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/parse/{parse.test.mjs => parse.test.js} (87%) rename test/parse/{parseAsync.test.mjs => parseAsync.test.js} (96%) rename test/parse/windows/{eighth.test.mjs => eighth.test.js} (100%) rename test/parse/windows/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parse/windows/{fifth.test.mjs => fifth.test.js} (100%) rename test/parse/windows/{first.test.mjs => first.test.js} (100%) rename test/parse/windows/{fourth.test.mjs => fourth.test.js} (100%) rename test/parse/windows/{ninth.test.mjs => ninth.test.js} (100%) rename test/parse/windows/{second.test.mjs => second.test.js} (100%) rename test/parse/windows/{seventh.test.mjs => seventh.test.js} (100%) rename test/parse/windows/{sixth.test.mjs => sixth.test.js} (100%) rename test/parse/windows/{tenth.test.mjs => tenth.test.js} (100%) rename test/parse/windows/{third.test.mjs => third.test.js} (100%) rename test/parse/windows/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parse/windows/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/parseTree/linux/{eighth.test.mjs => eighth.test.js} (100%) rename test/parseTree/linux/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parseTree/linux/{fifth.test.mjs => fifth.test.js} (100%) rename test/parseTree/linux/{first.test.mjs => first.test.js} (100%) rename test/parseTree/linux/{fourteenth.test.mjs => fourteenth.test.js} (100%) rename test/parseTree/linux/{fourth.test.mjs => fourth.test.js} (100%) rename test/parseTree/linux/{ninth.test.mjs => ninth.test.js} (100%) rename test/parseTree/linux/{second.test.mjs => second.test.js} (100%) rename test/parseTree/linux/{seventh.test.mjs => seventh.test.js} (100%) rename test/parseTree/linux/{sixth.test.mjs => sixth.test.js} (100%) rename test/parseTree/linux/{tenth.test.mjs => tenth.test.js} (100%) rename test/parseTree/linux/{third.test.mjs => third.test.js} (100%) rename test/parseTree/linux/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parseTree/linux/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/parseTree/mac/{eighth.test.mjs => eighth.test.js} (100%) rename test/parseTree/mac/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parseTree/mac/{fifth.test.mjs => fifth.test.js} (100%) rename test/parseTree/mac/{first.test.mjs => first.test.js} (100%) rename test/parseTree/mac/{fourteenth.test.mjs => fourteenth.test.js} (100%) rename test/parseTree/mac/{fourth.test.mjs => fourth.test.js} (100%) rename test/parseTree/mac/{ninth.test.mjs => ninth.test.js} (100%) rename test/parseTree/mac/{second.test.mjs => second.test.js} (100%) rename test/parseTree/mac/{seventh.test.mjs => seventh.test.js} (100%) rename test/parseTree/mac/{sixth.test.mjs => sixth.test.js} (100%) rename test/parseTree/mac/{tenth.test.mjs => tenth.test.js} (100%) rename test/parseTree/mac/{third.test.mjs => third.test.js} (100%) rename test/parseTree/mac/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parseTree/mac/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/parseTree/{parseTree.test.mjs => parseTree.test.js} (86%) rename test/parseTree/{parseTreeAsync.test.mjs => parseTreeAsync.test.js} (87%) rename test/parseTree/windows/{eighth.test.mjs => eighth.test.js} (100%) rename test/parseTree/windows/{eleventh.test.mjs => eleventh.test.js} (100%) rename test/parseTree/windows/{fifth.test.mjs => fifth.test.js} (100%) rename test/parseTree/windows/{first.test.mjs => first.test.js} (100%) rename test/parseTree/windows/{fourteenth.test.mjs => fourteenth.test.js} (100%) rename test/parseTree/windows/{fourth.test.mjs => fourth.test.js} (100%) rename test/parseTree/windows/{ninth.test.mjs => ninth.test.js} (100%) rename test/parseTree/windows/{second.test.mjs => second.test.js} (100%) rename test/parseTree/windows/{seventh.test.mjs => seventh.test.js} (100%) rename test/parseTree/windows/{sixth.test.mjs => sixth.test.js} (100%) rename test/parseTree/windows/{tenth.test.mjs => tenth.test.js} (100%) rename test/parseTree/windows/{third.test.mjs => third.test.js} (100%) rename test/parseTree/windows/{thirteenth.test.mjs => thirteenth.test.js} (100%) rename test/parseTree/windows/{twelfth.test.mjs => twelfth.test.js} (100%) rename test/scan/{scan.test.mjs => scan.test.js} (100%) rename test/scan/{scanAsync.test.mjs => scanAsync.test.js} (100%) rename test/{test.mjs => test.js} (70%) diff --git a/package.json b/package.json index c65b674..68fdf22 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "script:getr:linux": "node scripts/generate-expected-tests-results linux", "script:getr:mac": "node scripts/generate-expected-tests-results mac", "script:getr:windows": "node scripts/generate-expected-tests-results windows", - "test": "mocha --reporter spec test/test.mjs", + "test": "mocha --reporter spec test/test.js", "nyc": "nyc --extension=ts --reporter=html --reporter=text --reporter=lcov npm run test", "cover:coveralls": "nyc report --extension=ts --reporter=text-lcov | coveralls", "cover:codecov": "nyc report --extension=ts --reporter=text-lcov > coverage.lcov && codecov", diff --git a/scripts/generate-expected-tests-results.js b/scripts/generate-expected-tests-results.js index 999f3a5..678d05f 100644 --- a/scripts/generate-expected-tests-results.js +++ b/scripts/generate-expected-tests-results.js @@ -274,7 +274,7 @@ const parseOptions = [ ]; function generateParse(option) { const text = 'export default\n`' + dree.parse(path.join(process.cwd(), 'test', 'sample'), option.opt) + '`;'; - fs.writeFileSync(path.join(process.cwd(), 'test', 'parse', platform, `${option.name}.test.mjs`), text); + fs.writeFileSync(path.join(process.cwd(), 'test', 'parse', platform, `${option.name}.test.js`), text); } parseOptions.forEach(option => { generateParse(option); @@ -373,7 +373,7 @@ const parseTreeOptions = [ ]; function generateParseTree(option) { const text = 'export default\n`' + dree.parseTree(dree.scan(path.join(process.cwd(), 'test', 'sample'), option.opt), option.opt) + '`;'; - fs.writeFileSync(path.join(process.cwd(), 'test', 'parseTree', platform, `${option.name}.test.mjs`), text); + fs.writeFileSync(path.join(process.cwd(), 'test', 'parseTree', platform, `${option.name}.test.js`), text); } parseTreeOptions.forEach(option => { generateParseTree(option); diff --git a/test/parse/linux/eighth.test.mjs b/test/parse/linux/eighth.test.js similarity index 100% rename from test/parse/linux/eighth.test.mjs rename to test/parse/linux/eighth.test.js diff --git a/test/parse/linux/eleventh.test.mjs b/test/parse/linux/eleventh.test.js similarity index 100% rename from test/parse/linux/eleventh.test.mjs rename to test/parse/linux/eleventh.test.js diff --git a/test/parse/linux/fifth.test.mjs b/test/parse/linux/fifth.test.js similarity index 100% rename from test/parse/linux/fifth.test.mjs rename to test/parse/linux/fifth.test.js diff --git a/test/parse/linux/first.test.mjs b/test/parse/linux/first.test.js similarity index 100% rename from test/parse/linux/first.test.mjs rename to test/parse/linux/first.test.js diff --git a/test/parse/linux/fourth.test.mjs b/test/parse/linux/fourth.test.js similarity index 100% rename from test/parse/linux/fourth.test.mjs rename to test/parse/linux/fourth.test.js diff --git a/test/parse/linux/ninth.test.mjs b/test/parse/linux/ninth.test.js similarity index 100% rename from test/parse/linux/ninth.test.mjs rename to test/parse/linux/ninth.test.js diff --git a/test/parse/linux/second.test.mjs b/test/parse/linux/second.test.js similarity index 100% rename from test/parse/linux/second.test.mjs rename to test/parse/linux/second.test.js diff --git a/test/parse/linux/seventh.test.mjs b/test/parse/linux/seventh.test.js similarity index 100% rename from test/parse/linux/seventh.test.mjs rename to test/parse/linux/seventh.test.js diff --git a/test/parse/linux/sixth.test.mjs b/test/parse/linux/sixth.test.js similarity index 100% rename from test/parse/linux/sixth.test.mjs rename to test/parse/linux/sixth.test.js diff --git a/test/parse/linux/tenth.test.mjs b/test/parse/linux/tenth.test.js similarity index 100% rename from test/parse/linux/tenth.test.mjs rename to test/parse/linux/tenth.test.js diff --git a/test/parse/linux/third.test.mjs b/test/parse/linux/third.test.js similarity index 100% rename from test/parse/linux/third.test.mjs rename to test/parse/linux/third.test.js diff --git a/test/parse/linux/thirteenth.test.mjs b/test/parse/linux/thirteenth.test.js similarity index 100% rename from test/parse/linux/thirteenth.test.mjs rename to test/parse/linux/thirteenth.test.js diff --git a/test/parse/linux/twelfth.test.mjs b/test/parse/linux/twelfth.test.js similarity index 100% rename from test/parse/linux/twelfth.test.mjs rename to test/parse/linux/twelfth.test.js diff --git a/test/parse/mac/eighth.test.mjs b/test/parse/mac/eighth.test.js similarity index 100% rename from test/parse/mac/eighth.test.mjs rename to test/parse/mac/eighth.test.js diff --git a/test/parse/mac/eleventh.test.mjs b/test/parse/mac/eleventh.test.js similarity index 100% rename from test/parse/mac/eleventh.test.mjs rename to test/parse/mac/eleventh.test.js diff --git a/test/parse/mac/fifth.test.mjs b/test/parse/mac/fifth.test.js similarity index 100% rename from test/parse/mac/fifth.test.mjs rename to test/parse/mac/fifth.test.js diff --git a/test/parse/mac/first.test.mjs b/test/parse/mac/first.test.js similarity index 100% rename from test/parse/mac/first.test.mjs rename to test/parse/mac/first.test.js diff --git a/test/parse/mac/fourth.test.mjs b/test/parse/mac/fourth.test.js similarity index 100% rename from test/parse/mac/fourth.test.mjs rename to test/parse/mac/fourth.test.js diff --git a/test/parse/mac/ninth.test.mjs b/test/parse/mac/ninth.test.js similarity index 100% rename from test/parse/mac/ninth.test.mjs rename to test/parse/mac/ninth.test.js diff --git a/test/parse/mac/second.test.mjs b/test/parse/mac/second.test.js similarity index 100% rename from test/parse/mac/second.test.mjs rename to test/parse/mac/second.test.js diff --git a/test/parse/mac/seventh.test.mjs b/test/parse/mac/seventh.test.js similarity index 100% rename from test/parse/mac/seventh.test.mjs rename to test/parse/mac/seventh.test.js diff --git a/test/parse/mac/sixth.test.mjs b/test/parse/mac/sixth.test.js similarity index 100% rename from test/parse/mac/sixth.test.mjs rename to test/parse/mac/sixth.test.js diff --git a/test/parse/mac/tenth.test.mjs b/test/parse/mac/tenth.test.js similarity index 100% rename from test/parse/mac/tenth.test.mjs rename to test/parse/mac/tenth.test.js diff --git a/test/parse/mac/third.test.mjs b/test/parse/mac/third.test.js similarity index 100% rename from test/parse/mac/third.test.mjs rename to test/parse/mac/third.test.js diff --git a/test/parse/mac/thirteenth.test.mjs b/test/parse/mac/thirteenth.test.js similarity index 100% rename from test/parse/mac/thirteenth.test.mjs rename to test/parse/mac/thirteenth.test.js diff --git a/test/parse/mac/twelfth.test.mjs b/test/parse/mac/twelfth.test.js similarity index 100% rename from test/parse/mac/twelfth.test.mjs rename to test/parse/mac/twelfth.test.js diff --git a/test/parse/parse.test.mjs b/test/parse/parse.test.js similarity index 87% rename from test/parse/parse.test.mjs rename to test/parse/parse.test.js index ae32998..d8895f9 100644 --- a/test/parse/parse.test.mjs +++ b/test/parse/parse.test.js @@ -19,13 +19,13 @@ export default function (expect, dree, path) { describe('Test: parse function', function () { - it('Should return the exported content of "test/parse/first.test.mjs"', async function () { + it('Should return the exported content of "test/parse/first.test.js"', async function () { const result = dree.parse(path); - const expected = await importSample(`./${platform}/first.test.mjs`); + const expected = await importSample(`./${platform}/first.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/second.test.mjs"', async function () { + it('Should return the exported content of "test/parse/second.test.js"', async function () { const options = { extensions: ['', 'ts', 'txt'], @@ -33,12 +33,12 @@ export default function (expect, dree, path) { }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/second.test.mjs`); + const expected = await importSample(`./${platform}/second.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/third.test.mjs"', async function () { + it('Should return the exported content of "test/parse/third.test.js"', async function () { const options = { depth: 2, @@ -47,11 +47,11 @@ export default function (expect, dree, path) { }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/third.test.mjs`); + const expected = await importSample(`./${platform}/third.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/fourth.test.mjs"', async function () { + it('Should return the exported content of "test/parse/fourth.test.js"', async function () { const options = { depth: -1, @@ -59,103 +59,103 @@ export default function (expect, dree, path) { }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/fourth.test.mjs`); + const expected = await importSample(`./${platform}/fourth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/fifth.test.mjs"', async function () { + it('Should return the exported content of "test/parse/fifth.test.js"', async function () { const options = { followLinks: true }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/fifth.test.mjs`); + const expected = await importSample(`./${platform}/fifth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/sixth.test.mjs"', async function () { + it('Should return the exported content of "test/parse/sixth.test.js"', async function () { const options = { sorted: true }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/sixth.test.mjs`); + const expected = await importSample(`./${platform}/sixth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parse/seventh.test.mjs"', async function () { + it('Should return the exported content of "test/parse/seventh.test.js"', async function () { const options = { sorted: (x, y) => y.localeCompare(x) }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/seventh.test.mjs`); + const expected = await importSample(`./${platform}/seventh.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/eighth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/eighth.test.js"`, async function () { const options = { exclude: [/firebase/, '/**/notes.*'] }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/eighth.test.mjs`); + const expected = await importSample(`./${platform}/eighth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/ninth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/ninth.test.js"`, async function () { const options = { exclude: '/**/firebase.*' }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/ninth.test.mjs`); + const expected = await importSample(`./${platform}/ninth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/tenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/tenth.test.js"`, async function () { const options = { sorted: 'alpha' }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/tenth.test.mjs`); + const expected = await importSample(`./${platform}/tenth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/eleventh.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/eleventh.test.js"`, async function () { const options = { sorted: 'antialpha' }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/eleventh.test.mjs`); + const expected = await importSample(`./${platform}/eleventh.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/twelfth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/twelfth.test.js"`, async function () { const options = { sorted: 'alpha-insensitive' }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/twelfth.test.mjs`); + const expected = await importSample(`./${platform}/twelfth.test.js`); expect(result).to.equal(expected); @@ -176,14 +176,14 @@ export default function (expect, dree, path) { }); - it(`Should return the content of "test/scan/${platform}/thirteenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/thirteenth.test.js"`, async function () { const options = { sorted: 'antialpha-insensitive' }; const result = dree.parse(path, options); - const expected = await importSample(`./${platform}/thirteenth.test.mjs`); + const expected = await importSample(`./${platform}/thirteenth.test.js`); expect(result).to.equal(expected); diff --git a/test/parse/parseAsync.test.mjs b/test/parse/parseAsync.test.js similarity index 96% rename from test/parse/parseAsync.test.mjs rename to test/parse/parseAsync.test.js index 4d728c5..b744da1 100644 --- a/test/parse/parseAsync.test.mjs +++ b/test/parse/parseAsync.test.js @@ -22,7 +22,7 @@ export default function (expect, dree, path) { it('Should return the exported content of "test/parse/first.test.js"', async function () { const result = await dree.parseAsync(path); - const expected = await importSample(`./${platform}/first.test.mjs`); + const expected = await importSample(`./${platform}/first.test.js`); expect(result).to.equal(expected); }); @@ -35,7 +35,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/second.test.mjs`); + const expected = await importSample(`./${platform}/second.test.js`); expect(result).to.equal(expected); }); @@ -49,7 +49,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/third.test.mjs`); + const expected = await importSample(`./${platform}/third.test.js`); expect(result).to.equal(expected); }); @@ -61,7 +61,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/fourth.test.mjs`); + const expected = await importSample(`./${platform}/fourth.test.js`); expect(result).to.equal(expected); }); @@ -72,7 +72,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/fifth.test.mjs`); + const expected = await importSample(`./${platform}/fifth.test.js`); expect(result).to.equal(expected); }); @@ -83,7 +83,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/sixth.test.mjs`); + const expected = await importSample(`./${platform}/sixth.test.js`); expect(result).to.equal(expected); }); @@ -94,7 +94,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/seventh.test.mjs`); + const expected = await importSample(`./${platform}/seventh.test.js`); expect(result).to.equal(expected); }); @@ -105,7 +105,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/eighth.test.mjs`); + const expected = await importSample(`./${platform}/eighth.test.js`); expect(result).to.equal(expected); @@ -118,7 +118,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/ninth.test.mjs`); + const expected = await importSample(`./${platform}/ninth.test.js`); expect(result).to.equal(expected); @@ -131,7 +131,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/tenth.test.mjs`); + const expected = await importSample(`./${platform}/tenth.test.js`); expect(result).to.equal(expected); @@ -144,7 +144,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/eleventh.test.mjs`); + const expected = await importSample(`./${platform}/eleventh.test.js`); expect(result).to.equal(expected); @@ -157,7 +157,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/twelfth.test.mjs`); + const expected = await importSample(`./${platform}/twelfth.test.js`); expect(result).to.equal(expected); @@ -170,7 +170,7 @@ export default function (expect, dree, path) { }; const result = await dree.parseAsync(path, options); - const expected = await importSample(`./${platform}/thirteenth.test.mjs`); + const expected = await importSample(`./${platform}/thirteenth.test.js`); expect(result).to.equal(expected); diff --git a/test/parse/windows/eighth.test.mjs b/test/parse/windows/eighth.test.js similarity index 100% rename from test/parse/windows/eighth.test.mjs rename to test/parse/windows/eighth.test.js diff --git a/test/parse/windows/eleventh.test.mjs b/test/parse/windows/eleventh.test.js similarity index 100% rename from test/parse/windows/eleventh.test.mjs rename to test/parse/windows/eleventh.test.js diff --git a/test/parse/windows/fifth.test.mjs b/test/parse/windows/fifth.test.js similarity index 100% rename from test/parse/windows/fifth.test.mjs rename to test/parse/windows/fifth.test.js diff --git a/test/parse/windows/first.test.mjs b/test/parse/windows/first.test.js similarity index 100% rename from test/parse/windows/first.test.mjs rename to test/parse/windows/first.test.js diff --git a/test/parse/windows/fourth.test.mjs b/test/parse/windows/fourth.test.js similarity index 100% rename from test/parse/windows/fourth.test.mjs rename to test/parse/windows/fourth.test.js diff --git a/test/parse/windows/ninth.test.mjs b/test/parse/windows/ninth.test.js similarity index 100% rename from test/parse/windows/ninth.test.mjs rename to test/parse/windows/ninth.test.js diff --git a/test/parse/windows/second.test.mjs b/test/parse/windows/second.test.js similarity index 100% rename from test/parse/windows/second.test.mjs rename to test/parse/windows/second.test.js diff --git a/test/parse/windows/seventh.test.mjs b/test/parse/windows/seventh.test.js similarity index 100% rename from test/parse/windows/seventh.test.mjs rename to test/parse/windows/seventh.test.js diff --git a/test/parse/windows/sixth.test.mjs b/test/parse/windows/sixth.test.js similarity index 100% rename from test/parse/windows/sixth.test.mjs rename to test/parse/windows/sixth.test.js diff --git a/test/parse/windows/tenth.test.mjs b/test/parse/windows/tenth.test.js similarity index 100% rename from test/parse/windows/tenth.test.mjs rename to test/parse/windows/tenth.test.js diff --git a/test/parse/windows/third.test.mjs b/test/parse/windows/third.test.js similarity index 100% rename from test/parse/windows/third.test.mjs rename to test/parse/windows/third.test.js diff --git a/test/parse/windows/thirteenth.test.mjs b/test/parse/windows/thirteenth.test.js similarity index 100% rename from test/parse/windows/thirteenth.test.mjs rename to test/parse/windows/thirteenth.test.js diff --git a/test/parse/windows/twelfth.test.mjs b/test/parse/windows/twelfth.test.js similarity index 100% rename from test/parse/windows/twelfth.test.mjs rename to test/parse/windows/twelfth.test.js diff --git a/test/parseTree/linux/eighth.test.mjs b/test/parseTree/linux/eighth.test.js similarity index 100% rename from test/parseTree/linux/eighth.test.mjs rename to test/parseTree/linux/eighth.test.js diff --git a/test/parseTree/linux/eleventh.test.mjs b/test/parseTree/linux/eleventh.test.js similarity index 100% rename from test/parseTree/linux/eleventh.test.mjs rename to test/parseTree/linux/eleventh.test.js diff --git a/test/parseTree/linux/fifth.test.mjs b/test/parseTree/linux/fifth.test.js similarity index 100% rename from test/parseTree/linux/fifth.test.mjs rename to test/parseTree/linux/fifth.test.js diff --git a/test/parseTree/linux/first.test.mjs b/test/parseTree/linux/first.test.js similarity index 100% rename from test/parseTree/linux/first.test.mjs rename to test/parseTree/linux/first.test.js diff --git a/test/parseTree/linux/fourteenth.test.mjs b/test/parseTree/linux/fourteenth.test.js similarity index 100% rename from test/parseTree/linux/fourteenth.test.mjs rename to test/parseTree/linux/fourteenth.test.js diff --git a/test/parseTree/linux/fourth.test.mjs b/test/parseTree/linux/fourth.test.js similarity index 100% rename from test/parseTree/linux/fourth.test.mjs rename to test/parseTree/linux/fourth.test.js diff --git a/test/parseTree/linux/ninth.test.mjs b/test/parseTree/linux/ninth.test.js similarity index 100% rename from test/parseTree/linux/ninth.test.mjs rename to test/parseTree/linux/ninth.test.js diff --git a/test/parseTree/linux/second.test.mjs b/test/parseTree/linux/second.test.js similarity index 100% rename from test/parseTree/linux/second.test.mjs rename to test/parseTree/linux/second.test.js diff --git a/test/parseTree/linux/seventh.test.mjs b/test/parseTree/linux/seventh.test.js similarity index 100% rename from test/parseTree/linux/seventh.test.mjs rename to test/parseTree/linux/seventh.test.js diff --git a/test/parseTree/linux/sixth.test.mjs b/test/parseTree/linux/sixth.test.js similarity index 100% rename from test/parseTree/linux/sixth.test.mjs rename to test/parseTree/linux/sixth.test.js diff --git a/test/parseTree/linux/tenth.test.mjs b/test/parseTree/linux/tenth.test.js similarity index 100% rename from test/parseTree/linux/tenth.test.mjs rename to test/parseTree/linux/tenth.test.js diff --git a/test/parseTree/linux/third.test.mjs b/test/parseTree/linux/third.test.js similarity index 100% rename from test/parseTree/linux/third.test.mjs rename to test/parseTree/linux/third.test.js diff --git a/test/parseTree/linux/thirteenth.test.mjs b/test/parseTree/linux/thirteenth.test.js similarity index 100% rename from test/parseTree/linux/thirteenth.test.mjs rename to test/parseTree/linux/thirteenth.test.js diff --git a/test/parseTree/linux/twelfth.test.mjs b/test/parseTree/linux/twelfth.test.js similarity index 100% rename from test/parseTree/linux/twelfth.test.mjs rename to test/parseTree/linux/twelfth.test.js diff --git a/test/parseTree/mac/eighth.test.mjs b/test/parseTree/mac/eighth.test.js similarity index 100% rename from test/parseTree/mac/eighth.test.mjs rename to test/parseTree/mac/eighth.test.js diff --git a/test/parseTree/mac/eleventh.test.mjs b/test/parseTree/mac/eleventh.test.js similarity index 100% rename from test/parseTree/mac/eleventh.test.mjs rename to test/parseTree/mac/eleventh.test.js diff --git a/test/parseTree/mac/fifth.test.mjs b/test/parseTree/mac/fifth.test.js similarity index 100% rename from test/parseTree/mac/fifth.test.mjs rename to test/parseTree/mac/fifth.test.js diff --git a/test/parseTree/mac/first.test.mjs b/test/parseTree/mac/first.test.js similarity index 100% rename from test/parseTree/mac/first.test.mjs rename to test/parseTree/mac/first.test.js diff --git a/test/parseTree/mac/fourteenth.test.mjs b/test/parseTree/mac/fourteenth.test.js similarity index 100% rename from test/parseTree/mac/fourteenth.test.mjs rename to test/parseTree/mac/fourteenth.test.js diff --git a/test/parseTree/mac/fourth.test.mjs b/test/parseTree/mac/fourth.test.js similarity index 100% rename from test/parseTree/mac/fourth.test.mjs rename to test/parseTree/mac/fourth.test.js diff --git a/test/parseTree/mac/ninth.test.mjs b/test/parseTree/mac/ninth.test.js similarity index 100% rename from test/parseTree/mac/ninth.test.mjs rename to test/parseTree/mac/ninth.test.js diff --git a/test/parseTree/mac/second.test.mjs b/test/parseTree/mac/second.test.js similarity index 100% rename from test/parseTree/mac/second.test.mjs rename to test/parseTree/mac/second.test.js diff --git a/test/parseTree/mac/seventh.test.mjs b/test/parseTree/mac/seventh.test.js similarity index 100% rename from test/parseTree/mac/seventh.test.mjs rename to test/parseTree/mac/seventh.test.js diff --git a/test/parseTree/mac/sixth.test.mjs b/test/parseTree/mac/sixth.test.js similarity index 100% rename from test/parseTree/mac/sixth.test.mjs rename to test/parseTree/mac/sixth.test.js diff --git a/test/parseTree/mac/tenth.test.mjs b/test/parseTree/mac/tenth.test.js similarity index 100% rename from test/parseTree/mac/tenth.test.mjs rename to test/parseTree/mac/tenth.test.js diff --git a/test/parseTree/mac/third.test.mjs b/test/parseTree/mac/third.test.js similarity index 100% rename from test/parseTree/mac/third.test.mjs rename to test/parseTree/mac/third.test.js diff --git a/test/parseTree/mac/thirteenth.test.mjs b/test/parseTree/mac/thirteenth.test.js similarity index 100% rename from test/parseTree/mac/thirteenth.test.mjs rename to test/parseTree/mac/thirteenth.test.js diff --git a/test/parseTree/mac/twelfth.test.mjs b/test/parseTree/mac/twelfth.test.js similarity index 100% rename from test/parseTree/mac/twelfth.test.mjs rename to test/parseTree/mac/twelfth.test.js diff --git a/test/parseTree/parseTree.test.mjs b/test/parseTree/parseTree.test.js similarity index 86% rename from test/parseTree/parseTree.test.mjs rename to test/parseTree/parseTree.test.js index b2203d1..ffc3d20 100644 --- a/test/parseTree/parseTree.test.mjs +++ b/test/parseTree/parseTree.test.js @@ -19,15 +19,15 @@ export default function (expect, dree, path) { describe('Test: parseTree function', function () { - it('Should return the exported content of "test/parseTree/first.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/first.test.js"', async function () { const result = dree.parseTree(dree.scan(path)); - const expected = await importSample(`./${platform}/first.test.mjs`); + const expected = await importSample(`./${platform}/first.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/second.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/second.test.js"', async function () { const options = { extensions: ['', 'ts', 'txt'], @@ -35,12 +35,12 @@ export default function (expect, dree, path) { }; const result = dree.parseTree(dree.scan(path), options); - const expected = await importSample(`./${platform}/second.test.mjs`); + const expected = await importSample(`./${platform}/second.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/third.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/third.test.js"', async function () { const options = { depth: 2, @@ -49,22 +49,22 @@ export default function (expect, dree, path) { }; const result = dree.parseTree(dree.scan(path), options); - const expected = await importSample(`./${platform}/third.test.mjs`); + const expected = await importSample(`./${platform}/third.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/fourth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/fourth.test.js"', async function () { const options = { depth: -1 }; const result = dree.parseTree(dree.scan(path), options); - const expected = await importSample(`./${platform}/fourth.test.mjs`); + const expected = await importSample(`./${platform}/fourth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/fifth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/fifth.test.js"', async function () { const options = { depth: 2, @@ -73,112 +73,112 @@ export default function (expect, dree, path) { }; const result = dree.parseTree(dree.scan(path), options); - const expected = await importSample(`./${platform}/fifth.test.mjs`); + const expected = await importSample(`./${platform}/fifth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/sixth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/sixth.test.js"', async function () { const options = { followLinks: true }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/sixth.test.mjs`); + const expected = await importSample(`./${platform}/sixth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/seventh.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/seventh.test.js"', async function () { const options = { sorted: true }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/seventh.test.mjs`); + const expected = await importSample(`./${platform}/seventh.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/eighth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/eighth.test.js"', async function () { const options = { sorted: (x, y) => y.localeCompare(x) }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/eighth.test.mjs`); + const expected = await importSample(`./${platform}/eighth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/ninth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/ninth.test.js"`, async function () { const options = { exclude: [/firebase/, '/**/notes.*'] }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/ninth.test.mjs`); + const expected = await importSample(`./${platform}/ninth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/tenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/tenth.test.js"`, async function () { const options = { exclude: '/**/firebase.*' }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/tenth.test.mjs`); + const expected = await importSample(`./${platform}/tenth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/eleventh.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/eleventh.test.js"`, async function () { const options = { sorted: 'alpha' }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/eleventh.test.mjs`); + const expected = await importSample(`./${platform}/eleventh.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/twelfth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/twelfth.test.js"`, async function () { const options = { sorted: 'antialpha' }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/twelfth.test.mjs`); + const expected = await importSample(`./${platform}/twelfth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/thirteenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/thirteenth.test.js"`, async function () { const options = { sorted: 'alpha-insensitive' }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/thirteenth.test.mjs`); + const expected = await importSample(`./${platform}/thirteenth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/fourteenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/fourteenth.test.js"`, async function () { const options = { sorted: 'antialpha-insensitive' }; const result = dree.parseTree(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/fourteenth.test.mjs`); + const expected = await importSample(`./${platform}/fourteenth.test.js`); expect(result).to.equal(expected); diff --git a/test/parseTree/parseTreeAsync.test.mjs b/test/parseTree/parseTreeAsync.test.js similarity index 87% rename from test/parseTree/parseTreeAsync.test.mjs rename to test/parseTree/parseTreeAsync.test.js index 0b80f63..dcfc7cc 100644 --- a/test/parseTree/parseTreeAsync.test.mjs +++ b/test/parseTree/parseTreeAsync.test.js @@ -19,15 +19,15 @@ export default function (expect, dree, path) { describe('Test: parseTreeAsync function', async function () { - it('Should return the exported content of "test/parseTree/first.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/first.test.js"', async function () { const result = await dree.parseTreeAsync(dree.scan(path)); - const expected = await importSample(`./${platform}/first.test.mjs`); + const expected = await importSample(`./${platform}/first.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/second.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/second.test.js"', async function () { const options = { extensions: ['', 'ts', 'txt'], @@ -35,12 +35,12 @@ export default function (expect, dree, path) { }; const result = await dree.parseTreeAsync(dree.scan(path), options); - const expected = await importSample(`./${platform}/second.test.mjs`); + const expected = await importSample(`./${platform}/second.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/third.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/third.test.js"', async function () { const options = { depth: 2, @@ -49,22 +49,22 @@ export default function (expect, dree, path) { }; const result = await dree.parseTreeAsync(dree.scan(path), options); - const expected = await importSample(`./${platform}/third.test.mjs`); + const expected = await importSample(`./${platform}/third.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/fourth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/fourth.test.js"', async function () { const options = { depth: -1 }; const result = await dree.parseTreeAsync(dree.scan(path), options); - const expected = await importSample(`./${platform}/fourth.test.mjs`); + const expected = await importSample(`./${platform}/fourth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/fifth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/fifth.test.js"', async function () { const options = { depth: 2, @@ -73,116 +73,116 @@ export default function (expect, dree, path) { }; const result = await dree.parseTreeAsync(dree.scan(path), options); - const expected = await importSample(`./${platform}/fifth.test.mjs`); + const expected = await importSample(`./${platform}/fifth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/sixth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/sixth.test.js"', async function () { const options = { followLinks: true }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/sixth.test.mjs`); + const expected = await importSample(`./${platform}/sixth.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/seventh.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/seventh.test.js"', async function () { const options = { sorted: true }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/seventh.test.mjs`); + const expected = await importSample(`./${platform}/seventh.test.js`); expect(result).to.equal(expected); }); - it('Should return the exported content of "test/parseTree/eighth.test.mjs"', async function () { + it('Should return the exported content of "test/parseTree/eighth.test.js"', async function () { const options = { sorted: (x, y) => y.localeCompare(x) }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/eighth.test.mjs`); + const expected = await importSample(`./${platform}/eighth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/ninth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/ninth.test.js"`, async function () { const options = { exclude: [/firebase/, '/**/notes.*'] }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/ninth.test.mjs`); + const expected = await importSample(`./${platform}/ninth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/tenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/tenth.test.js"`, async function () { const options = { exclude: '/**/firebase.*' }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/tenth.test.mjs`); + const expected = await importSample(`./${platform}/tenth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/eleventh.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/eleventh.test.js"`, async function () { const options = { sorted: 'alpha' }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/eleventh.test.mjs`); + const expected = await importSample(`./${platform}/eleventh.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/twelfth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/twelfth.test.js"`, async function () { const options = { sorted: 'antialpha' }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/twelfth.test.mjs`); + const expected = await importSample(`./${platform}/twelfth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/thirteenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/thirteenth.test.js"`, async function () { const options = { sorted: 'alpha-insensitive' }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/thirteenth.test.mjs`); + const expected = await importSample(`./${platform}/thirteenth.test.js`); expect(result).to.equal(expected); }); - it(`Should return the content of "test/scan/${platform}/fourteenth.test.mjs"`, async function () { + it(`Should return the content of "test/scan/${platform}/fourteenth.test.js"`, async function () { const options = { sorted: 'antialpha-insensitive' }; const result = await dree.parseTreeAsync(dree.scan(path, options), options); - const expected = await importSample(`./${platform}/fourteenth.test.mjs`); + const expected = await importSample(`./${platform}/fourteenth.test.js`); expect(result).to.equal(expected); diff --git a/test/parseTree/windows/eighth.test.mjs b/test/parseTree/windows/eighth.test.js similarity index 100% rename from test/parseTree/windows/eighth.test.mjs rename to test/parseTree/windows/eighth.test.js diff --git a/test/parseTree/windows/eleventh.test.mjs b/test/parseTree/windows/eleventh.test.js similarity index 100% rename from test/parseTree/windows/eleventh.test.mjs rename to test/parseTree/windows/eleventh.test.js diff --git a/test/parseTree/windows/fifth.test.mjs b/test/parseTree/windows/fifth.test.js similarity index 100% rename from test/parseTree/windows/fifth.test.mjs rename to test/parseTree/windows/fifth.test.js diff --git a/test/parseTree/windows/first.test.mjs b/test/parseTree/windows/first.test.js similarity index 100% rename from test/parseTree/windows/first.test.mjs rename to test/parseTree/windows/first.test.js diff --git a/test/parseTree/windows/fourteenth.test.mjs b/test/parseTree/windows/fourteenth.test.js similarity index 100% rename from test/parseTree/windows/fourteenth.test.mjs rename to test/parseTree/windows/fourteenth.test.js diff --git a/test/parseTree/windows/fourth.test.mjs b/test/parseTree/windows/fourth.test.js similarity index 100% rename from test/parseTree/windows/fourth.test.mjs rename to test/parseTree/windows/fourth.test.js diff --git a/test/parseTree/windows/ninth.test.mjs b/test/parseTree/windows/ninth.test.js similarity index 100% rename from test/parseTree/windows/ninth.test.mjs rename to test/parseTree/windows/ninth.test.js diff --git a/test/parseTree/windows/second.test.mjs b/test/parseTree/windows/second.test.js similarity index 100% rename from test/parseTree/windows/second.test.mjs rename to test/parseTree/windows/second.test.js diff --git a/test/parseTree/windows/seventh.test.mjs b/test/parseTree/windows/seventh.test.js similarity index 100% rename from test/parseTree/windows/seventh.test.mjs rename to test/parseTree/windows/seventh.test.js diff --git a/test/parseTree/windows/sixth.test.mjs b/test/parseTree/windows/sixth.test.js similarity index 100% rename from test/parseTree/windows/sixth.test.mjs rename to test/parseTree/windows/sixth.test.js diff --git a/test/parseTree/windows/tenth.test.mjs b/test/parseTree/windows/tenth.test.js similarity index 100% rename from test/parseTree/windows/tenth.test.mjs rename to test/parseTree/windows/tenth.test.js diff --git a/test/parseTree/windows/third.test.mjs b/test/parseTree/windows/third.test.js similarity index 100% rename from test/parseTree/windows/third.test.mjs rename to test/parseTree/windows/third.test.js diff --git a/test/parseTree/windows/thirteenth.test.mjs b/test/parseTree/windows/thirteenth.test.js similarity index 100% rename from test/parseTree/windows/thirteenth.test.mjs rename to test/parseTree/windows/thirteenth.test.js diff --git a/test/parseTree/windows/twelfth.test.mjs b/test/parseTree/windows/twelfth.test.js similarity index 100% rename from test/parseTree/windows/twelfth.test.mjs rename to test/parseTree/windows/twelfth.test.js diff --git a/test/scan/scan.test.mjs b/test/scan/scan.test.js similarity index 100% rename from test/scan/scan.test.mjs rename to test/scan/scan.test.js diff --git a/test/scan/scanAsync.test.mjs b/test/scan/scanAsync.test.js similarity index 100% rename from test/scan/scanAsync.test.mjs rename to test/scan/scanAsync.test.js diff --git a/test/test.mjs b/test/test.js similarity index 70% rename from test/test.mjs rename to test/test.js index eb48056..d75ec48 100644 --- a/test/test.mjs +++ b/test/test.js @@ -7,12 +7,12 @@ import chaiAsPromised from 'chai-as-promised'; import * as dree from '../dist/lib/index.js'; -import testScan from './scan/scan.test.mjs'; -import testScanAsync from './scan/scanAsync.test.mjs'; -import testParse from './parse/parse.test.mjs'; -import testParseAsync from './parse/parseAsync.test.mjs'; -import testParseTree from './parseTree/parseTree.test.mjs'; -import testParseTreeAsync from './parseTree/parseTreeAsync.test.mjs'; +import testScan from './scan/scan.test.js'; +import testScanAsync from './scan/scanAsync.test.js'; +import testParse from './parse/parse.test.js'; +import testParseAsync from './parse/parseAsync.test.js'; +import testParseTree from './parseTree/parseTree.test.js'; +import testParseTreeAsync from './parseTree/parseTreeAsync.test.js'; chai.use(chaiAsPromised); const { expect } = chai; From c6a2d6cb10a4f76351131827dad07c329ae56f30 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:00:47 +0200 Subject: [PATCH 07/16] refactor(package.json): use pnpm instead of npm run Signed-off-by: euberdeveloper --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 68fdf22..7ea60ef 100644 --- a/package.json +++ b/package.json @@ -40,15 +40,15 @@ "script:getr:mac": "node scripts/generate-expected-tests-results mac", "script:getr:windows": "node scripts/generate-expected-tests-results windows", "test": "mocha --reporter spec test/test.js", - "nyc": "nyc --extension=ts --reporter=html --reporter=text --reporter=lcov npm run test", + "nyc": "nyc --extension=ts --reporter=html --reporter=text --reporter=lcov pnpm test", "cover:coveralls": "nyc report --extension=ts --reporter=text-lcov | coveralls", "cover:codecov": "nyc report --extension=ts --reporter=text-lcov > coverage.lcov && codecov", - "cover": "npm run cover:coveralls && npm run cover:codecov", + "cover": "pnpm cover:coveralls && pnpm cover:codecov", "docs:html": "typedoc", "docs:html-dev": "typedoc --options typedoc.dev.js", "predocs": "shx rm -rf docs/documentation", - "docs": "npm run docs:html && npm run docs:html-dev", - "prepublishOnly": "npm run bundle", + "docs": "pnpm docs:html && pnpm docs:html-dev", + "prepublishOnly": "pnpm bundle", "release": "dotenv release-it" }, "repository": { From 17f55f7054f9ff90359580d517152f7aa4685666 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:06:47 +0200 Subject: [PATCH 08/16] test(package.json): cover with c8 Signed-off-by: euberdeveloper --- package.json | 8 +- pnpm-lock.yaml | 834 +++++++------------------------------------------ 2 files changed, 110 insertions(+), 732 deletions(-) diff --git a/package.json b/package.json index 7ea60ef..dc7b535 100644 --- a/package.json +++ b/package.json @@ -40,9 +40,9 @@ "script:getr:mac": "node scripts/generate-expected-tests-results mac", "script:getr:windows": "node scripts/generate-expected-tests-results windows", "test": "mocha --reporter spec test/test.js", - "nyc": "nyc --extension=ts --reporter=html --reporter=text --reporter=lcov pnpm test", - "cover:coveralls": "nyc report --extension=ts --reporter=text-lcov | coveralls", - "cover:codecov": "nyc report --extension=ts --reporter=text-lcov > coverage.lcov && codecov", + "test:cover": "c8 --reporter=html --reporter=text --reporter=lcov pnpm test", + "cover:coveralls": "c8 report --extension=ts --reporter=text-lcov | coveralls", + "cover:codecov": "c8 report --extension=ts --reporter=text-lcov > coverage.lcov && codecov", "cover": "pnpm cover:coveralls && pnpm cover:codecov", "docs:html": "typedoc", "docs:html-dev": "typedoc --options typedoc.dev.js", @@ -85,6 +85,7 @@ "@release-it/conventional-changelog": "^8.0.1", "@types/node": "^20.14.2", "@types/yargs": "^17.0.32", + "c8": "^10.1.1", "chai": "^5.1.1", "chai-as-promised": "^8.0.0", "codecov": "^3.8.3", @@ -94,7 +95,6 @@ "esbuild": "^0.21.5", "esbuild-plugin-import-map": "^2.1.0", "mocha": "^10.4.0", - "nyc": "^17.0.0", "release-it": "^17.3.0", "shx": "^0.3.4", "typedoc": "^0.25.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a7c67d..227e724 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/yargs': specifier: ^17.0.32 version: 17.0.32 + c8: + specifier: ^10.1.1 + version: 10.1.1 chai: specifier: ^5.1.1 version: 5.1.1 @@ -54,9 +57,6 @@ importers: mocha: specifier: ^10.4.0 version: 10.4.0 - nyc: - specifier: ^17.0.0 - version: 17.0.0 release-it: specifier: ^17.3.0 version: 17.3.0(typescript@5.4.5) @@ -72,96 +72,20 @@ importers: packages: - '@ampproject/remapping@2.3.0': - resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} - engines: {node: '>=6.0.0'} - '@babel/code-frame@7.24.7': resolution: {integrity: sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==} engines: {node: '>=6.9.0'} - '@babel/compat-data@7.24.7': - resolution: {integrity: sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==} - engines: {node: '>=6.9.0'} - - '@babel/core@7.24.7': - resolution: {integrity: sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g==} - engines: {node: '>=6.9.0'} - - '@babel/generator@7.24.7': - resolution: {integrity: sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-compilation-targets@7.24.7': - resolution: {integrity: sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-environment-visitor@7.24.7': - resolution: {integrity: sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==} - engines: {node: '>=6.9.0'} - - '@babel/helper-function-name@7.24.7': - resolution: {integrity: sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-hoist-variables@7.24.7': - resolution: {integrity: sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-imports@7.24.7': - resolution: {integrity: sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-module-transforms@7.24.7': - resolution: {integrity: sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - - '@babel/helper-simple-access@7.24.7': - resolution: {integrity: sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==} - engines: {node: '>=6.9.0'} - - '@babel/helper-split-export-declaration@7.24.7': - resolution: {integrity: sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==} - engines: {node: '>=6.9.0'} - - '@babel/helper-string-parser@7.24.7': - resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==} - engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@7.24.7': resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-option@7.24.7': - resolution: {integrity: sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==} - engines: {node: '>=6.9.0'} - - '@babel/helpers@7.24.7': - resolution: {integrity: sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==} - engines: {node: '>=6.9.0'} - '@babel/highlight@7.24.7': resolution: {integrity: sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==} engines: {node: '>=6.9.0'} - '@babel/parser@7.24.7': - resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==} - engines: {node: '>=6.0.0'} - hasBin: true - - '@babel/template@7.24.7': - resolution: {integrity: sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==} - engines: {node: '>=6.9.0'} - - '@babel/traverse@7.24.7': - resolution: {integrity: sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==} - engines: {node: '>=6.9.0'} - - '@babel/types@7.24.7': - resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} - engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@0.2.3': + resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} @@ -312,26 +236,18 @@ packages: resolution: {integrity: sha512-ErXXzENMH5pJt5/ssXV0DfWUZqly8nGzf0UcBV9xTnP+KyffE2mqyxIMBrZ8ijQck2nU0TQm40EQB53YreyWHw==} engines: {node: '>=18'} - '@istanbuljs/load-nyc-config@1.1.0': - resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} - engines: {node: '>=8'} + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} '@istanbuljs/schema@0.1.3': resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} engines: {node: '>=8'} - '@jridgewell/gen-mapping@0.3.5': - resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} - engines: {node: '>=6.0.0'} - '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/set-array@1.2.1': - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.4.15': resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} @@ -406,6 +322,10 @@ packages: '@octokit/types@13.5.0': resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + '@pnpm/config.env-replace@1.1.0': resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} engines: {node: '>=12.22.0'} @@ -446,6 +366,9 @@ packages: '@types/http-cache-semantics@4.0.4': resolution: {integrity: sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==} + '@types/istanbul-lib-coverage@2.0.6': + resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} + '@types/node@20.14.2': resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==} @@ -473,10 +396,6 @@ packages: resolution: {integrity: sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==} engines: {node: '>= 14'} - aggregate-error@3.1.0: - resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} - engines: {node: '>=8'} - ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} @@ -518,13 +437,6 @@ packages: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} - append-transform@2.0.0: - resolution: {integrity: sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==} - engines: {node: '>=8'} - - archy@1.0.0: - resolution: {integrity: sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==} - argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} @@ -622,11 +534,6 @@ packages: browser-stdout@1.3.1: resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} - browserslist@4.23.1: - resolution: {integrity: sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true - buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -637,6 +544,11 @@ packages: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} + c8@10.1.1: + resolution: {integrity: sha512-+aAvpNMwnzncW27XsEf2eMrGTF8HXIGZ24UQ1dW679+8SQ/UvDXxHNoKwMohcI9ZVj0xl/bI4/meqxvIWOBYaw==} + engines: {node: '>=18'} + hasBin: true + cacheable-lookup@7.0.0: resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==} engines: {node: '>=14.16'} @@ -645,10 +557,6 @@ packages: resolution: {integrity: sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==} engines: {node: '>=14.16'} - caching-transform@4.0.0: - resolution: {integrity: sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==} - engines: {node: '>=8'} - call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} @@ -657,10 +565,6 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - camelcase@5.3.1: - resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} - engines: {node: '>=6'} - camelcase@6.3.0: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} @@ -669,9 +573,6 @@ packages: resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} engines: {node: '>=14.16'} - caniuse-lite@1.0.30001632: - resolution: {integrity: sha512-udx3o7yHJfUxMLkGohMlVHCvFvWmirKh9JAH/d7WOLPetlH+LTL5cocMZ0t7oZx/mdlOWXti97xLZWc8uURRHg==} - caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} @@ -711,10 +612,6 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} - clean-stack@2.2.0: - resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} - engines: {node: '>=6'} - cli-boxes@3.0.0: resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} engines: {node: '>=10'} @@ -735,9 +632,6 @@ packages: resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} engines: {node: '>= 12'} - cliui@6.0.0: - resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} - cliui@7.0.4: resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} @@ -772,9 +666,6 @@ packages: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} - commondir@1.0.1: - resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} - compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} @@ -859,9 +750,6 @@ packages: engines: {node: '>=16'} hasBin: true - convert-source-map@1.9.0: - resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==} - convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -936,10 +824,6 @@ packages: supports-color: optional: true - decamelize@1.2.0: - resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} - engines: {node: '>=0.10.0'} - decamelize@4.0.0: resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} engines: {node: '>=10'} @@ -964,10 +848,6 @@ packages: resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} engines: {node: '>=18'} - default-require-extensions@3.0.1: - resolution: {integrity: sha512-eXTJmRbm2TIt9MgWTsOH1wEuhew6XGZcMeGKCtLedIg/NCsg1iBePXkceTdK4Fii7pzmN9tGsZhKzZ4h7O/fxw==} - engines: {node: '>=8'} - defaults@1.0.4: resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==} @@ -1033,9 +913,6 @@ packages: ecc-jsbn@0.1.2: resolution: {integrity: sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==} - electron-to-chromium@1.4.798: - resolution: {integrity: sha512-by9J2CiM9KPGj9qfp5U4FcPSbXJG7FNzqnYaY4WLzX+v2PHieVGmnsA4dxfpGE3QEC7JofpPZmn7Vn1B9NR2+Q==} - emoji-regex@10.3.0: resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==} @@ -1082,9 +959,6 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} - es6-error@4.1.1: - resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} - esbuild-plugin-import-map@2.1.0: resolution: {integrity: sha512-rlI9H8f1saIqYEUNHxDmIMGZZFroANyD6q3Aht6aXyOq/aOdO6jp5VFF1+n3o9AUe+wAtQcn93Wv1Vuj9na0hg==} @@ -1170,14 +1044,6 @@ packages: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} - find-cache-dir@3.3.2: - resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==} - engines: {node: '>=8'} - - find-up@4.1.0: - resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} - engines: {node: '>=8'} - find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} @@ -1193,9 +1059,9 @@ packages: for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} - foreground-child@2.0.0: - resolution: {integrity: sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==} - engines: {node: '>=8.0.0'} + foreground-child@3.2.0: + resolution: {integrity: sha512-CrWQNaEl1/6WeZoarcM9LHupTo3RpZO2Pdk1vktwzPiQTsJnAKJmm3TACKeG5UZbWDfaH2AbvYxzP96y0MT7fA==} + engines: {node: '>=14'} forever-agent@0.6.1: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} @@ -1212,9 +1078,6 @@ packages: resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} engines: {node: '>=12.20.0'} - fromentries@1.3.2: - resolution: {integrity: sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==} - fs-extra@11.2.0: resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==} engines: {node: '>=14.14'} @@ -1237,10 +1100,6 @@ packages: functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} - gensync@1.0.0-beta.2: - resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} - engines: {node: '>=6.9.0'} - get-caller-file@2.0.5: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} @@ -1256,10 +1115,6 @@ packages: resolution: {integrity: sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==} engines: {node: '>= 0.4'} - get-package-type@0.1.0: - resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==} - engines: {node: '>=8.0.0'} - get-stream@6.0.1: resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==} engines: {node: '>=10'} @@ -1299,6 +1154,11 @@ packages: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} + glob@10.4.1: + resolution: {integrity: sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==} + engines: {node: '>=16 || 14 >=14.18'} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -1312,10 +1172,6 @@ packages: resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==} engines: {node: '>=10'} - globals@11.12.0: - resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} - engines: {node: '>=4'} - globalthis@1.0.4: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} @@ -1381,10 +1237,6 @@ packages: resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} engines: {node: '>= 0.4'} - hasha@5.2.2: - resolution: {integrity: sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==} - engines: {node: '>=8'} - hasown@2.0.2: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} @@ -1461,10 +1313,6 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} - indent-string@4.0.0: - resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} - engines: {node: '>=8'} - inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. @@ -1664,10 +1512,6 @@ packages: is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} - is-windows@1.0.2: - resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} - engines: {node: '>=0.10.0'} - is-wsl@3.1.0: resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} engines: {node: '>=16'} @@ -1689,26 +1533,10 @@ packages: resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} - istanbul-lib-hook@3.0.0: - resolution: {integrity: sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==} - engines: {node: '>=8'} - - istanbul-lib-instrument@6.0.2: - resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} - engines: {node: '>=10'} - - istanbul-lib-processinfo@2.0.3: - resolution: {integrity: sha512-NkwHbo3E00oybX6NGJi6ar0B29vxyvNwoC7eJ4G4Yq28UfY758Hgn/heV8VRFhevPED4LXfFz0DQ8z/0kw9zMg==} - engines: {node: '>=8'} - istanbul-lib-report@3.0.1: resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} engines: {node: '>=10'} - istanbul-lib-source-maps@4.0.1: - resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} - engines: {node: '>=10'} - istanbul-reports@3.1.7: resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} engines: {node: '>=8'} @@ -1719,6 +1547,10 @@ packages: iterate-value@1.0.2: resolution: {integrity: sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==} + jackspeak@3.4.0: + resolution: {integrity: sha512-JVYhQnN59LVPFCEcVa2C3CrEKYacvjRfqIQl+h8oi91aLYQVWRYbxjPcv1bUiUy/kLmQaANrYfNMCO3kuEDHfw==} + engines: {node: '>=14'} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -1736,11 +1568,6 @@ packages: jsbn@1.1.0: resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} - jsesc@2.5.2: - resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} - engines: {node: '>=4'} - hasBin: true - json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -1760,11 +1587,6 @@ packages: json-stringify-safe@5.0.1: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} - json5@2.2.3: - resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} - engines: {node: '>=6'} - hasBin: true - jsonc-parser@3.2.1: resolution: {integrity: sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==} @@ -1797,10 +1619,6 @@ packages: resolution: {integrity: sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - locate-path@5.0.0: - resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} - engines: {node: '>=8'} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -1815,9 +1633,6 @@ packages: lodash.escaperegexp@4.1.2: resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==} - lodash.flattendeep@4.4.0: - resolution: {integrity: sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==} - lodash.isplainobject@4.0.6: resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} @@ -1853,9 +1668,6 @@ packages: resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==} engines: {node: 14 || >=16.14} - lru-cache@5.1.1: - resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - lru-cache@7.18.3: resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} engines: {node: '>=12'} @@ -1867,10 +1679,6 @@ packages: resolution: {integrity: sha512-fSErXALFNsnowREYZ49XCdOHF8wOPWuFOGQrAhP7x5J/BqQv+B02cNsTykGpDgRVx43EKg++6ANmTaGTtW+hUA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - make-dir@3.1.0: - resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} - engines: {node: '>=8'} - make-dir@4.0.0: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} @@ -1933,6 +1741,10 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + mocha@10.4.0: resolution: {integrity: sha512-eqhGB8JKapEYcC4ytX/xrzKforgEc3j1pGlAXVy3eRwrtAy5/nIfT1SvgGzfN0XZZxeLq0aQWkOUAmqIJiv+bA==} engines: {node: '>= 14.0.0'} @@ -1976,13 +1788,6 @@ packages: resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - node-preload@0.2.1: - resolution: {integrity: sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==} - engines: {node: '>=8'} - - node-releases@2.0.14: - resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} - normalize-package-data@6.0.1: resolution: {integrity: sha512-6rvCfeRW+OEZagAB4lMLSNuTNYZWLVtKccK79VSTf//yTY5VOCgcpH80O+bZK8Neps7pUnd5G+QlMg1yV/2iZQ==} engines: {node: ^16.14.0 || >=18.0.0} @@ -2003,11 +1808,6 @@ packages: resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - nyc@17.0.0: - resolution: {integrity: sha512-ISp44nqNCaPugLLGGfknzQwSwt10SSS5IMoPR7GLoMAyS18Iw5js8U7ga2VF9lYuMZ42gOHr3UddZw4WZltxKg==} - engines: {node: '>=18'} - hasBin: true - oauth-sign@0.9.0: resolution: {integrity: sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==} @@ -2057,10 +1857,6 @@ packages: resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==} engines: {node: '>=12.20'} - p-limit@2.3.0: - resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} - engines: {node: '>=6'} - p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} @@ -2069,10 +1865,6 @@ packages: resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - p-locate@4.1.0: - resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} - engines: {node: '>=8'} - p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} @@ -2081,14 +1873,6 @@ packages: resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - p-map@3.0.0: - resolution: {integrity: sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==} - engines: {node: '>=8'} - - p-try@2.2.0: - resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} - engines: {node: '>=6'} - pac-proxy-agent@7.0.1: resolution: {integrity: sha512-ASV8yU4LLKBAjqIPMbrgtaKIvxQri/yh2OpI+S6hVa9JRkUI3Y3NPFbfngDtY7oFtSMD3w31Xns89mDa3Feo5A==} engines: {node: '>= 14'} @@ -2097,10 +1881,6 @@ packages: resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} engines: {node: '>= 14'} - package-hash@4.0.0: - resolution: {integrity: sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==} - engines: {node: '>=8'} - package-json@8.1.1: resolution: {integrity: sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==} engines: {node: '>=14.16'} @@ -2146,6 +1926,10 @@ packages: path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + path-type@5.0.0: resolution: {integrity: sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==} engines: {node: '>=12'} @@ -2164,18 +1948,10 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - pkg-dir@4.2.0: - resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} - engines: {node: '>=8'} - possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} - process-on-spawn@1.0.0: - resolution: {integrity: sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==} - engines: {node: '>=8'} - promise.allsettled@1.0.7: resolution: {integrity: sha512-hezvKvQQmsFkOdrZfYxUxkyxl8mgFQeT259Ajj9PXdbg9VzBCWrItOev72JyWxkCD5VSSqAeHmlN3tWx4DlmsA==} engines: {node: '>= 0.4'} @@ -2265,10 +2041,6 @@ packages: engines: {node: ^18.18.0 || ^20.8.0 || ^22.0.0} hasBin: true - release-zalgo@1.0.0: - resolution: {integrity: sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==} - engines: {node: '>=4'} - request@2.88.2: resolution: {integrity: sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==} engines: {node: '>= 6'} @@ -2278,9 +2050,6 @@ packages: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - require-main-filename@2.0.0: - resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} - requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} @@ -2291,10 +2060,6 @@ packages: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} - resolve-from@5.0.0: - resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} - engines: {node: '>=8'} - resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -2319,11 +2084,6 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} - deprecated: Rimraf versions prior to v4 are no longer supported - hasBin: true - run-applescript@7.0.0: resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} engines: {node: '>=18'} @@ -2356,10 +2116,6 @@ packages: resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==} engines: {node: '>=12'} - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} - hasBin: true - semver@7.6.2: resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} engines: {node: '>=10'} @@ -2368,9 +2124,6 @@ packages: serialize-javascript@6.0.0: resolution: {integrity: sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==} - set-blocking@2.0.0: - resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} - set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -2431,10 +2184,6 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - spawn-wrap@2.0.0: - resolution: {integrity: sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==} - engines: {node: '>=8'} - spdx-correct@3.2.0: resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} @@ -2507,10 +2256,6 @@ packages: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} engines: {node: '>=12'} - strip-bom@4.0.0: - resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} - engines: {node: '>=8'} - strip-final-newline@2.0.0: resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==} engines: {node: '>=6'} @@ -2550,9 +2295,9 @@ packages: resolution: {integrity: sha512-iwY6rkW5DDGq8hE2YgNQlKbptYpY5Nn2xecjQiNjOXWbKzPGUfmeUBCSQbbr306d7Z7U2N0TPl+/SwYRfua1Dg==} engines: {node: '>=10'} - test-exclude@6.0.0: - resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} - engines: {node: '>=8'} + test-exclude@7.0.1: + resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} + engines: {node: '>=18'} text-extensions@2.4.0: resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==} @@ -2565,10 +2310,6 @@ packages: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} - to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} - engines: {node: '>=4'} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -2593,10 +2334,6 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} - type-fest@0.8.1: - resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} - engines: {node: '>=8'} - type-fest@1.4.0: resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} engines: {node: '>=10'} @@ -2677,12 +2414,6 @@ packages: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} - update-browserslist-db@1.0.16: - resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - update-notifier@7.0.0: resolution: {integrity: sha512-Hv25Bh+eAbOLlsjJreVPOs4vd51rrtCrmhyOJtbpAojro34jS4KQaEp4/EvlHJX7jSO42VvEFpkastVyXyIsdQ==} engines: {node: '>=18'} @@ -2712,6 +2443,10 @@ packages: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true + v8-to-istanbul@9.2.0: + resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} + engines: {node: '>=10.12.0'} + validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -2741,9 +2476,6 @@ packages: which-boxed-primitive@1.0.2: resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==} - which-module@2.0.1: - resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - which-typed-array@1.1.15: resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} @@ -2792,20 +2524,10 @@ packages: resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==} engines: {node: '>=12'} - y18n@4.0.3: - resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} - y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} - yallist@3.1.1: - resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} - - yargs-parser@18.1.3: - resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} - engines: {node: '>=6'} - yargs-parser@20.2.4: resolution: {integrity: sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==} engines: {node: '>=10'} @@ -2818,10 +2540,6 @@ packages: resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} engines: {node: '>=10'} - yargs@15.4.1: - resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} - engines: {node: '>=8'} - yargs@16.2.0: resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} engines: {node: '>=10'} @@ -2840,106 +2558,13 @@ packages: snapshots: - '@ampproject/remapping@2.3.0': - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - '@babel/code-frame@7.24.7': dependencies: '@babel/highlight': 7.24.7 picocolors: 1.0.1 - '@babel/compat-data@7.24.7': {} - - '@babel/core@7.24.7': - dependencies: - '@ampproject/remapping': 2.3.0 - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-compilation-targets': 7.24.7 - '@babel/helper-module-transforms': 7.24.7(@babel/core@7.24.7) - '@babel/helpers': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/template': 7.24.7 - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 - convert-source-map: 2.0.0 - debug: 4.3.5 - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - - '@babel/generator@7.24.7': - dependencies: - '@babel/types': 7.24.7 - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - jsesc: 2.5.2 - - '@babel/helper-compilation-targets@7.24.7': - dependencies: - '@babel/compat-data': 7.24.7 - '@babel/helper-validator-option': 7.24.7 - browserslist: 4.23.1 - lru-cache: 5.1.1 - semver: 6.3.1 - - '@babel/helper-environment-visitor@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/helper-function-name@7.24.7': - dependencies: - '@babel/template': 7.24.7 - '@babel/types': 7.24.7 - - '@babel/helper-hoist-variables@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/helper-module-imports@7.24.7': - dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 - transitivePeerDependencies: - - supports-color - - '@babel/helper-module-transforms@7.24.7(@babel/core@7.24.7)': - dependencies: - '@babel/core': 7.24.7 - '@babel/helper-environment-visitor': 7.24.7 - '@babel/helper-module-imports': 7.24.7 - '@babel/helper-simple-access': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 - transitivePeerDependencies: - - supports-color - - '@babel/helper-simple-access@7.24.7': - dependencies: - '@babel/traverse': 7.24.7 - '@babel/types': 7.24.7 - transitivePeerDependencies: - - supports-color - - '@babel/helper-split-export-declaration@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/helper-string-parser@7.24.7': {} - '@babel/helper-validator-identifier@7.24.7': {} - '@babel/helper-validator-option@7.24.7': {} - - '@babel/helpers@7.24.7': - dependencies: - '@babel/template': 7.24.7 - '@babel/types': 7.24.7 - '@babel/highlight@7.24.7': dependencies: '@babel/helper-validator-identifier': 7.24.7 @@ -2947,36 +2572,7 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.0.1 - '@babel/parser@7.24.7': - dependencies: - '@babel/types': 7.24.7 - - '@babel/template@7.24.7': - dependencies: - '@babel/code-frame': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - - '@babel/traverse@7.24.7': - dependencies: - '@babel/code-frame': 7.24.7 - '@babel/generator': 7.24.7 - '@babel/helper-environment-visitor': 7.24.7 - '@babel/helper-function-name': 7.24.7 - '@babel/helper-hoist-variables': 7.24.7 - '@babel/helper-split-export-declaration': 7.24.7 - '@babel/parser': 7.24.7 - '@babel/types': 7.24.7 - debug: 4.3.5 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - - '@babel/types@7.24.7': - dependencies: - '@babel/helper-string-parser': 7.24.7 - '@babel/helper-validator-identifier': 7.24.7 - to-fast-properties: 2.0.0 + '@bcoe/v8-coverage@0.2.3': {} '@esbuild/aix-ppc64@0.21.5': optional: true @@ -3053,26 +2649,19 @@ snapshots: '@inquirer/figures@1.0.3': {} - '@istanbuljs/load-nyc-config@1.1.0': + '@isaacs/cliui@8.0.2': dependencies: - camelcase: 5.3.1 - find-up: 4.1.0 - get-package-type: 0.1.0 - js-yaml: 3.14.1 - resolve-from: 5.0.0 + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 '@istanbuljs/schema@0.1.3': {} - '@jridgewell/gen-mapping@0.3.5': - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.25 - '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/set-array@1.2.1': {} - '@jridgewell/sourcemap-codec@1.4.15': {} '@jridgewell/trace-mapping@0.3.25': @@ -3159,6 +2748,9 @@ snapshots: dependencies: '@octokit/openapi-types': 22.2.0 + '@pkgjs/parseargs@0.11.0': + optional: true + '@pnpm/config.env-replace@1.1.0': {} '@pnpm/network.ca-file@1.0.2': @@ -3193,6 +2785,8 @@ snapshots: '@types/http-cache-semantics@4.0.4': {} + '@types/istanbul-lib-coverage@2.0.6': {} + '@types/node@20.14.2': dependencies: undici-types: 5.26.5 @@ -3224,11 +2818,6 @@ snapshots: transitivePeerDependencies: - supports-color - aggregate-error@3.1.0: - dependencies: - clean-stack: 2.2.0 - indent-string: 4.0.0 - ajv@6.12.6: dependencies: fast-deep-equal: 3.1.3 @@ -3267,12 +2856,6 @@ snapshots: normalize-path: 3.0.0 picomatch: 2.3.1 - append-transform@2.0.0: - dependencies: - default-require-extensions: 3.0.1 - - archy@1.0.0: {} - argparse@1.0.10: dependencies: sprintf-js: 1.0.3 @@ -3380,13 +2963,6 @@ snapshots: browser-stdout@1.3.1: {} - browserslist@4.23.1: - dependencies: - caniuse-lite: 1.0.30001632 - electron-to-chromium: 1.4.798 - node-releases: 2.0.14 - update-browserslist-db: 1.0.16(browserslist@4.23.1) - buffer-from@1.1.2: {} buffer@5.7.1: @@ -3398,6 +2974,20 @@ snapshots: dependencies: run-applescript: 7.0.0 + c8@10.1.1: + dependencies: + '@bcoe/v8-coverage': 0.2.3 + '@istanbuljs/schema': 0.1.3 + find-up: 5.0.0 + foreground-child: 3.2.0 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-report: 3.0.1 + istanbul-reports: 3.1.7 + test-exclude: 7.0.1 + v8-to-istanbul: 9.2.0 + yargs: 17.7.2 + yargs-parser: 21.1.1 + cacheable-lookup@7.0.0: {} cacheable-request@10.2.14: @@ -3410,13 +3000,6 @@ snapshots: normalize-url: 8.0.1 responselike: 3.0.0 - caching-transform@4.0.0: - dependencies: - hasha: 5.2.2 - make-dir: 3.1.0 - package-hash: 4.0.0 - write-file-atomic: 3.0.3 - call-bind@1.0.7: dependencies: es-define-property: 1.0.0 @@ -3427,14 +3010,10 @@ snapshots: callsites@3.1.0: {} - camelcase@5.3.1: {} - camelcase@6.3.0: {} camelcase@7.0.1: {} - caniuse-lite@1.0.30001632: {} - caseless@0.12.0: {} chai-as-promised@8.0.0(chai@5.1.1): @@ -3481,8 +3060,6 @@ snapshots: ci-info@3.9.0: {} - clean-stack@2.2.0: {} - cli-boxes@3.0.0: {} cli-cursor@3.1.0: @@ -3497,12 +3074,6 @@ snapshots: cli-width@4.1.0: {} - cliui@6.0.0: - dependencies: - string-width: 4.2.3 - strip-ansi: 6.0.1 - wrap-ansi: 6.2.0 - cliui@7.0.4: dependencies: string-width: 4.2.3 @@ -3544,8 +3115,6 @@ snapshots: dependencies: delayed-stream: 1.0.0 - commondir@1.0.1: {} - compare-func@2.0.0: dependencies: array-ify: 1.0.0 @@ -3653,8 +3222,6 @@ snapshots: git-semver-tags: 7.0.1 meow: 12.1.1 - convert-source-map@1.9.0: {} - convert-source-map@2.0.0: {} core-util-is@1.0.2: {} @@ -3724,8 +3291,6 @@ snapshots: dependencies: ms: 2.1.2 - decamelize@1.2.0: {} - decamelize@4.0.0: {} decompress-response@6.0.0: @@ -3743,10 +3308,6 @@ snapshots: bundle-name: 4.1.0 default-browser-id: 5.0.0 - default-require-extensions@3.0.1: - dependencies: - strip-bom: 4.0.0 - defaults@1.0.4: dependencies: clone: 1.0.4 @@ -3810,8 +3371,6 @@ snapshots: jsbn: 0.1.1 safer-buffer: 2.1.2 - electron-to-chromium@1.4.798: {} - emoji-regex@10.3.0: {} emoji-regex@8.0.0: {} @@ -3909,8 +3468,6 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 - es6-error@4.1.1: {} - esbuild-plugin-import-map@2.1.0: {} esbuild@0.21.5: @@ -4024,17 +3581,6 @@ snapshots: dependencies: to-regex-range: 5.0.1 - find-cache-dir@3.3.2: - dependencies: - commondir: 1.0.1 - make-dir: 3.1.0 - pkg-dir: 4.2.0 - - find-up@4.1.0: - dependencies: - locate-path: 5.0.0 - path-exists: 4.0.0 - find-up@5.0.0: dependencies: locate-path: 6.0.0 @@ -4051,10 +3597,10 @@ snapshots: dependencies: is-callable: 1.2.7 - foreground-child@2.0.0: + foreground-child@3.2.0: dependencies: cross-spawn: 7.0.3 - signal-exit: 3.0.7 + signal-exit: 4.1.0 forever-agent@0.6.1: {} @@ -4070,8 +3616,6 @@ snapshots: dependencies: fetch-blob: 3.2.0 - fromentries@1.3.2: {} - fs-extra@11.2.0: dependencies: graceful-fs: 4.2.11 @@ -4094,8 +3638,6 @@ snapshots: functions-have-names@1.2.3: {} - gensync@1.0.0-beta.2: {} - get-caller-file@2.0.5: {} get-east-asian-width@1.2.0: {} @@ -4110,8 +3652,6 @@ snapshots: has-symbols: 1.0.3 hasown: 2.0.2 - get-package-type@0.1.0: {} - get-stream@6.0.1: {} get-stream@8.0.1: {} @@ -4159,6 +3699,14 @@ snapshots: dependencies: is-glob: 4.0.3 + glob@10.4.1: + dependencies: + foreground-child: 3.2.0 + jackspeak: 3.4.0 + minimatch: 9.0.4 + minipass: 7.1.2 + path-scurry: 1.11.1 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -4180,8 +3728,6 @@ snapshots: dependencies: ini: 2.0.0 - globals@11.12.0: {} - globalthis@1.0.4: dependencies: define-properties: 1.2.1 @@ -4266,11 +3812,6 @@ snapshots: dependencies: has-symbols: 1.0.3 - hasha@5.2.2: - dependencies: - is-stream: 2.0.1 - type-fest: 0.8.1 - hasown@2.0.2: dependencies: function-bind: 1.1.2 @@ -4350,8 +3891,6 @@ snapshots: imurmurhash@0.1.4: {} - indent-string@4.0.0: {} - inflight@1.0.6: dependencies: once: 1.4.0 @@ -4527,8 +4066,6 @@ snapshots: dependencies: call-bind: 1.0.7 - is-windows@1.0.2: {} - is-wsl@3.1.0: dependencies: is-inside-container: 1.0.0 @@ -4549,43 +4086,12 @@ snapshots: istanbul-lib-coverage@3.2.2: {} - istanbul-lib-hook@3.0.0: - dependencies: - append-transform: 2.0.0 - - istanbul-lib-instrument@6.0.2: - dependencies: - '@babel/core': 7.24.7 - '@babel/parser': 7.24.7 - '@istanbuljs/schema': 0.1.3 - istanbul-lib-coverage: 3.2.2 - semver: 7.6.2 - transitivePeerDependencies: - - supports-color - - istanbul-lib-processinfo@2.0.3: - dependencies: - archy: 1.0.0 - cross-spawn: 7.0.3 - istanbul-lib-coverage: 3.2.2 - p-map: 3.0.0 - rimraf: 3.0.2 - uuid: 8.3.2 - istanbul-lib-report@3.0.1: dependencies: istanbul-lib-coverage: 3.2.2 make-dir: 4.0.0 supports-color: 7.2.0 - istanbul-lib-source-maps@4.0.1: - dependencies: - debug: 4.3.5 - istanbul-lib-coverage: 3.2.2 - source-map: 0.6.1 - transitivePeerDependencies: - - supports-color - istanbul-reports@3.1.7: dependencies: html-escaper: 2.0.2 @@ -4598,6 +4104,12 @@ snapshots: es-get-iterator: 1.1.3 iterate-iterator: 1.0.2 + jackspeak@3.4.0: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -4613,8 +4125,6 @@ snapshots: jsbn@1.1.0: {} - jsesc@2.5.2: {} - json-buffer@3.0.1: {} json-parse-even-better-errors@2.3.1: {} @@ -4627,8 +4137,6 @@ snapshots: json-stringify-safe@5.0.1: {} - json5@2.2.3: {} - jsonc-parser@3.2.1: {} jsonfile@6.1.0: @@ -4660,10 +4168,6 @@ snapshots: lines-and-columns@2.0.4: {} - locate-path@5.0.0: - dependencies: - p-locate: 4.1.0 - locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -4676,8 +4180,6 @@ snapshots: lodash.escaperegexp@4.1.2: {} - lodash.flattendeep@4.4.0: {} - lodash.isplainobject@4.0.6: {} lodash.isstring@4.0.1: {} @@ -4706,20 +4208,12 @@ snapshots: lru-cache@10.2.2: {} - lru-cache@5.1.1: - dependencies: - yallist: 3.1.1 - lru-cache@7.18.3: {} lunr@2.3.9: {} macos-release@3.2.0: {} - make-dir@3.1.0: - dependencies: - semver: 6.3.1 - make-dir@4.0.0: dependencies: semver: 7.6.2 @@ -4765,6 +4259,8 @@ snapshots: minimist@1.2.8: {} + minipass@7.1.2: {} + mocha@10.4.0: dependencies: ansi-colors: 4.1.1 @@ -4814,12 +4310,6 @@ snapshots: fetch-blob: 3.2.0 formdata-polyfill: 4.0.10 - node-preload@0.2.1: - dependencies: - process-on-spawn: 1.0.0 - - node-releases@2.0.14: {} - normalize-package-data@6.0.1: dependencies: hosted-git-info: 7.0.2 @@ -4839,38 +4329,6 @@ snapshots: dependencies: path-key: 4.0.0 - nyc@17.0.0: - dependencies: - '@istanbuljs/load-nyc-config': 1.1.0 - '@istanbuljs/schema': 0.1.3 - caching-transform: 4.0.0 - convert-source-map: 1.9.0 - decamelize: 1.2.0 - find-cache-dir: 3.3.2 - find-up: 4.1.0 - foreground-child: 2.0.0 - get-package-type: 0.1.0 - glob: 7.2.3 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-hook: 3.0.0 - istanbul-lib-instrument: 6.0.2 - istanbul-lib-processinfo: 2.0.3 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 4.0.1 - istanbul-reports: 3.1.7 - make-dir: 3.1.0 - node-preload: 0.2.1 - p-map: 3.0.0 - process-on-spawn: 1.0.0 - resolve-from: 5.0.0 - rimraf: 3.0.2 - signal-exit: 3.0.7 - spawn-wrap: 2.0.0 - test-exclude: 6.0.0 - yargs: 15.4.1 - transitivePeerDependencies: - - supports-color - oauth-sign@0.9.0: {} object-inspect@1.13.1: {} @@ -4936,10 +4394,6 @@ snapshots: p-cancelable@3.0.0: {} - p-limit@2.3.0: - dependencies: - p-try: 2.2.0 - p-limit@3.1.0: dependencies: yocto-queue: 0.1.0 @@ -4948,10 +4402,6 @@ snapshots: dependencies: yocto-queue: 1.0.0 - p-locate@4.1.0: - dependencies: - p-limit: 2.3.0 - p-locate@5.0.0: dependencies: p-limit: 3.1.0 @@ -4960,12 +4410,6 @@ snapshots: dependencies: p-limit: 4.0.0 - p-map@3.0.0: - dependencies: - aggregate-error: 3.1.0 - - p-try@2.2.0: {} - pac-proxy-agent@7.0.1: dependencies: '@tootallnate/quickjs-emscripten': 0.23.0 @@ -4984,13 +4428,6 @@ snapshots: degenerator: 5.0.1 netmask: 2.0.2 - package-hash@4.0.0: - dependencies: - graceful-fs: 4.2.11 - hasha: 5.2.2 - lodash.flattendeep: 4.4.0 - release-zalgo: 1.0.0 - package-json@8.1.1: dependencies: got: 12.6.1 @@ -5037,6 +4474,11 @@ snapshots: path-parse@1.0.7: {} + path-scurry@1.11.1: + dependencies: + lru-cache: 10.2.2 + minipass: 7.1.2 + path-type@5.0.0: {} pathval@2.0.0: {} @@ -5047,16 +4489,8 @@ snapshots: picomatch@2.3.1: {} - pkg-dir@4.2.0: - dependencies: - find-up: 4.1.0 - possible-typed-array-names@1.0.0: {} - process-on-spawn@1.0.0: - dependencies: - fromentries: 1.3.2 - promise.allsettled@1.0.7: dependencies: array.prototype.map: 1.0.7 @@ -5189,10 +4623,6 @@ snapshots: - supports-color - typescript - release-zalgo@1.0.0: - dependencies: - es6-error: 4.1.1 - request@2.88.2: dependencies: aws-sign2: 0.7.0 @@ -5218,16 +4648,12 @@ snapshots: require-directory@2.1.1: {} - require-main-filename@2.0.0: {} - requires-port@1.0.0: {} resolve-alpn@1.2.1: {} resolve-from@4.0.0: {} - resolve-from@5.0.0: {} - resolve@1.22.8: dependencies: is-core-module: 2.13.1 @@ -5252,10 +4678,6 @@ snapshots: reusify@1.0.4: {} - rimraf@3.0.2: - dependencies: - glob: 7.2.3 - run-applescript@7.0.0: {} run-async@3.0.0: {} @@ -5289,16 +4711,12 @@ snapshots: dependencies: semver: 7.6.2 - semver@6.3.1: {} - semver@7.6.2: {} serialize-javascript@6.0.0: dependencies: randombytes: 2.1.0 - set-blocking@2.0.0: {} - set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -5369,15 +4787,6 @@ snapshots: source-map@0.6.1: {} - spawn-wrap@2.0.0: - dependencies: - foreground-child: 2.0.0 - is-windows: 1.0.2 - make-dir: 3.1.0 - rimraf: 3.0.2 - signal-exit: 3.0.7 - which: 2.0.2 - spdx-correct@3.2.0: dependencies: spdx-expression-parse: 3.0.1 @@ -5469,8 +4878,6 @@ snapshots: dependencies: ansi-regex: 6.0.1 - strip-bom@4.0.0: {} - strip-final-newline@2.0.0: {} strip-final-newline@3.0.0: {} @@ -5506,11 +4913,11 @@ snapshots: - encoding - supports-color - test-exclude@6.0.0: + test-exclude@7.0.1: dependencies: '@istanbuljs/schema': 0.1.3 - glob: 7.2.3 - minimatch: 3.1.2 + glob: 10.4.1 + minimatch: 9.0.4 text-extensions@2.4.0: {} @@ -5520,8 +4927,6 @@ snapshots: dependencies: os-tmpdir: 1.0.2 - to-fast-properties@2.0.0: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -5545,8 +4950,6 @@ snapshots: type-fest@0.21.3: {} - type-fest@0.8.1: {} - type-fest@1.4.0: {} type-fest@2.19.0: {} @@ -5627,12 +5030,6 @@ snapshots: universalify@2.0.1: {} - update-browserslist-db@1.0.16(browserslist@4.23.1): - dependencies: - browserslist: 4.23.1 - escalade: 3.1.2 - picocolors: 1.0.1 - update-notifier@7.0.0: dependencies: boxen: 7.1.1 @@ -5669,6 +5066,12 @@ snapshots: uuid@8.3.2: {} + v8-to-istanbul@9.2.0: + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + '@types/istanbul-lib-coverage': 2.0.6 + convert-source-map: 2.0.0 + validate-npm-package-license@3.0.4: dependencies: spdx-correct: 3.2.0 @@ -5705,8 +5108,6 @@ snapshots: is-string: 1.0.7 is-symbol: 1.0.4 - which-module@2.0.1: {} - which-typed-array@1.1.15: dependencies: available-typed-arrays: 1.0.7 @@ -5762,17 +5163,8 @@ snapshots: xdg-basedir@5.1.0: {} - y18n@4.0.3: {} - y18n@5.0.8: {} - yallist@3.1.1: {} - - yargs-parser@18.1.3: - dependencies: - camelcase: 5.3.1 - decamelize: 1.2.0 - yargs-parser@20.2.4: {} yargs-parser@21.1.1: {} @@ -5784,20 +5176,6 @@ snapshots: flat: 5.0.2 is-plain-obj: 2.1.0 - yargs@15.4.1: - dependencies: - cliui: 6.0.0 - decamelize: 1.2.0 - find-up: 4.1.0 - get-caller-file: 2.0.5 - require-directory: 2.1.1 - require-main-filename: 2.0.0 - set-blocking: 2.0.0 - string-width: 4.2.3 - which-module: 2.0.1 - y18n: 4.0.3 - yargs-parser: 18.1.3 - yargs@16.2.0: dependencies: cliui: 7.0.4 From cdaab56fe479608ea321f508bc6cc713b5094c1d Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:08:31 +0200 Subject: [PATCH 09/16] test(package.json): fix coverage Signed-off-by: euberdeveloper --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dc7b535..25f992c 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,8 @@ "script:getr:windows": "node scripts/generate-expected-tests-results windows", "test": "mocha --reporter spec test/test.js", "test:cover": "c8 --reporter=html --reporter=text --reporter=lcov pnpm test", - "cover:coveralls": "c8 report --extension=ts --reporter=text-lcov | coveralls", - "cover:codecov": "c8 report --extension=ts --reporter=text-lcov > coverage.lcov && codecov", + "cover:coveralls": "c8 report --reporter=text-lcov | coveralls", + "cover:codecov": "c8 report --reporter=text-lcov > coverage.lcov && codecov", "cover": "pnpm cover:coveralls && pnpm cover:codecov", "docs:html": "typedoc", "docs:html-dev": "typedoc --options typedoc.dev.js", From b2ad4ee724aa5a99cdce137dd951e6f762af3c2b Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:18:57 +0200 Subject: [PATCH 10/16] test(lib): add c8 ignores for coverage Signed-off-by: euberdeveloper --- source/lib/index.ts | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/source/lib/index.ts b/source/lib/index.ts index 23bc5db..bac7d0b 100644 --- a/source/lib/index.ts +++ b/source/lib/index.ts @@ -527,7 +527,7 @@ function _scan(root: string, path: string, depth: numb stat = statSync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -540,7 +540,7 @@ function _scan(root: string, path: string, depth: numb lstat = lstatSync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -587,7 +587,7 @@ function _scan(root: string, path: string, depth: numb files = sortFiles(files, options.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -658,7 +658,7 @@ function _scan(root: string, path: string, depth: numb data = readFileSync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -672,7 +672,7 @@ function _scan(root: string, path: string, depth: numb } break; default: - /* istanbul ignore next */ + /* c8 ignore next */ return null; } @@ -707,7 +707,7 @@ async function _scanAsync(root: string, path: string, stat = await statAsync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -720,7 +720,7 @@ async function _scanAsync(root: string, path: string, lstat = await lstatAsync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -767,7 +767,7 @@ async function _scanAsync(root: string, path: string, files = sortFiles(files, options.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -837,7 +837,7 @@ async function _scanAsync(root: string, path: string, data = await readFileAsync(path); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -851,7 +851,7 @@ async function _scanAsync(root: string, path: string, } break; default: - /* istanbul ignore next */ + /* c8 ignore next */ return null; } @@ -896,7 +896,7 @@ function _parse(root: string, children: string[], prefix: string, options: Parse stat = statSync(child); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -909,7 +909,7 @@ function _parse(root: string, children: string[], prefix: string, options: Parse lstat = lstatSync(child); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -942,7 +942,7 @@ function _parse(root: string, children: string[], prefix: string, options: Parse children = sortFiles(children, options.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -983,7 +983,7 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt stat = await statAsync(child); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -996,7 +996,7 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt lstat = await lstatAsync(child); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -1029,7 +1029,7 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt children = sortFiles(children, options.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -1137,7 +1137,7 @@ export function parse(path: string, options?: ParseOptions): string { stat = statSync(root); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1150,7 +1150,7 @@ export function parse(path: string, options?: ParseOptions): string { lstat = lstatSync(root); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1167,7 +1167,7 @@ export function parse(path: string, options?: ParseOptions): string { children = sortFiles(children, opt.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1200,7 +1200,7 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< stat = await statAsync(root); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1213,7 +1213,7 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< lstat = await lstatAsync(root); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1230,7 +1230,7 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< children = sortFiles(children, opt.sorted); } catch (exception) { - /* istanbul ignore next */ + /* c8 ignore next */ if (opt.skipErrors) { return null; } From a8e7f8e8a2c3ea30c22cfc9b69c6a3e7f14f7a25 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:31:39 +0200 Subject: [PATCH 11/16] test(lib): adjust coverage Signed-off-by: euberdeveloper --- source/lib/index.ts | 65 ++++++++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 22 deletions(-) diff --git a/source/lib/index.ts b/source/lib/index.ts index bac7d0b..3c08eea 100644 --- a/source/lib/index.ts +++ b/source/lib/index.ts @@ -451,6 +451,7 @@ function postSortFilesFirst(x: Dree, y: Dree): number { function postSortFiles(nodes: Dree[], postSortOption: boolean | PostSortMethodPredefined | PostSortDiscriminator): Dree[] { if (!postSortOption) { + /* c8 ignore next */ return nodes; } @@ -527,7 +528,6 @@ function _scan(root: string, path: string, depth: numb stat = statSync(path); } catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -539,8 +539,8 @@ function _scan(root: string, path: string, depth: numb try { lstat = lstatSync(path); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -548,6 +548,7 @@ function _scan(root: string, path: string, depth: numb throw exception; } } + /* c8 ignore stop */ const symbolicLink = lstat.isSymbolicLink(); const type = stat.isFile() ? Type.FILE : Type.DIRECTORY; @@ -586,8 +587,8 @@ function _scan(root: string, path: string, depth: numb files = readdirSync(path); files = sortFiles(files, options.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -595,6 +596,7 @@ function _scan(root: string, path: string, depth: numb throw exception; } } + /* c8 ignore stop */ if (options.emptyDirectory) { dirTree.isEmpty = !files.length } @@ -657,8 +659,8 @@ function _scan(root: string, path: string, depth: numb try { data = readFileSync(path); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -666,14 +668,16 @@ function _scan(root: string, path: string, depth: numb throw exception; } } + /* c8 ignore end */ hash.update(data); const hashEncoding = options.hashEncoding as BinaryToTextEncoding; dirTree.hash = hash.digest(hashEncoding); } break; + /* c8 ignore start */ default: - /* c8 ignore next */ return null; + /* c8 ignore end */ } if (onFile && type === Type.FILE) { @@ -706,8 +710,8 @@ async function _scanAsync(root: string, path: string, try { stat = await statAsync(path); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -715,12 +719,13 @@ async function _scanAsync(root: string, path: string, throw exception; } } + /* c8 ignore end */ let lstat: Stats; try { lstat = await lstatAsync(path); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -728,6 +733,7 @@ async function _scanAsync(root: string, path: string, throw exception; } } + /* c8 ignore end */ const symbolicLink = lstat.isSymbolicLink(); const type = stat.isFile() ? Type.FILE : Type.DIRECTORY; @@ -766,8 +772,8 @@ async function _scanAsync(root: string, path: string, files = await readdirAsync(path); files = sortFiles(files, options.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -775,6 +781,7 @@ async function _scanAsync(root: string, path: string, throw exception; } } + /* c8 ignore end */ if (options.emptyDirectory) { dirTree.isEmpty = !files.length } @@ -836,8 +843,8 @@ async function _scanAsync(root: string, path: string, try { data = await readFileAsync(path); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -845,14 +852,16 @@ async function _scanAsync(root: string, path: string, throw exception; } } + /* c8 ignore end */ hash.update(data); const hashEncoding = options.hashEncoding as BinaryToTextEncoding; dirTree.hash = hash.digest(hashEncoding); } break; + /* c8 ignore start */ default: - /* c8 ignore next */ return null; + /* c8 ignore end */ } if (onFile && type === Type.FILE) { @@ -895,8 +904,8 @@ function _parse(root: string, children: string[], prefix: string, options: Parse try { stat = statSync(child); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -904,12 +913,13 @@ function _parse(root: string, children: string[], prefix: string, options: Parse throw exception; } } + /* c8 ignore end */ let lstat: Stats; try { lstat = lstatSync(child); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -917,6 +927,7 @@ function _parse(root: string, children: string[], prefix: string, options: Parse throw exception; } } + /* c8 ignore end */ const symbolicLink = lstat.isSymbolicLink(); const type = stat.isFile() ? Type.FILE : Type.DIRECTORY; @@ -941,8 +952,8 @@ function _parse(root: string, children: string[], prefix: string, options: Parse children = readdirSync(child).map(file => resolve(child, file)); children = sortFiles(children, options.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -950,6 +961,7 @@ function _parse(root: string, children: string[], prefix: string, options: Parse throw exception; } } + /* c8 ignore end */ result += children.length ? _parse(root, children, newPrefix, options, depth + 1) : ''; } @@ -982,8 +994,8 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt try { stat = await statAsync(child); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -991,12 +1003,13 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt throw exception; } } + /* c8 ignore end */ let lstat: Stats; try { lstat = await lstatAsync(child); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -1004,6 +1017,7 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt throw exception; } } + /* c8 ignore end */ const symbolicLink = lstat.isSymbolicLink(); const type = stat.isFile() ? Type.FILE : Type.DIRECTORY; @@ -1028,8 +1042,8 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt children = (await readdirAsync(child)).map(file => resolve(child, file)); children = sortFiles(children, options.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (options.skipErrors) { return null; } @@ -1037,6 +1051,7 @@ async function _parseAsync(root: string, children: string[], prefix: string, opt throw exception; } } + /* c8 ignore end */ result += children.length ? (await _parseAsync(root, children, newPrefix, options, depth + 1)) : ''; } @@ -1136,8 +1151,8 @@ export function parse(path: string, options?: ParseOptions): string { try { stat = statSync(root); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1145,12 +1160,13 @@ export function parse(path: string, options?: ParseOptions): string { throw exception; } } + /* c8 ignore end */ let lstat: Stats; try { lstat = lstatSync(root); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1158,6 +1174,7 @@ export function parse(path: string, options?: ParseOptions): string { throw exception; } } + /* c8 ignore end */ const symbolicLink = lstat.isSymbolicLink(); if ((opt.followLinks || !symbolicLink) && stat.isDirectory()) { @@ -1166,8 +1183,8 @@ export function parse(path: string, options?: ParseOptions): string { children = readdirSync(root).map(file => resolve(root, file)); children = sortFiles(children, opt.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1175,6 +1192,7 @@ export function parse(path: string, options?: ParseOptions): string { throw exception; } } + /* c8 ignore end */ result += children.length ? _parse(root, children, '\n ', opt, 1) : ''; } @@ -1199,8 +1217,8 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< try { stat = await statAsync(root); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1208,12 +1226,13 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< throw exception; } } + /* c8 ignore end */ let lstat: Stats; try { lstat = await lstatAsync(root); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1221,6 +1240,7 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< throw exception; } } + /* c8 ignore end */ const symbolicLink = lstat.isSymbolicLink(); if ((opt.followLinks || !symbolicLink) && stat.isDirectory()) { @@ -1229,8 +1249,8 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< children = (await readdirAsync(root)).map(file => resolve(root, file)); children = sortFiles(children, opt.sorted); } + /* c8 ignore start */ catch (exception) { - /* c8 ignore next */ if (opt.skipErrors) { return null; } @@ -1238,6 +1258,7 @@ export async function parseAsync(path: string, options?: ParseOptions): Promise< throw exception; } } + /* c8 ignore end */ result += children.length ? (await _parseAsync(root, children, '\n ', opt, 1)) : ''; } From 948dd771eb058b7612da6d668a6f8e55cc20c93c Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:35:34 +0200 Subject: [PATCH 12/16] ci(test.yml): fix action with c8 Signed-off-by: euberdeveloper --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f1394e..a340893 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: run: pnpm run transpile - name: Run tests and generate coverage report - run: pnpm run nyc + run: pnpm run test:cover - name: Send coverage report to Coveralls uses: coverallsapp/github-action@master From 2eb780ce09efef63982984b53f0a4362a7768cca Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:37:27 +0200 Subject: [PATCH 13/16] ci(test.yml): try to update codecov action Signed-off-by: euberdeveloper --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a340893..5a6af34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Send coverage report to Codecov - uses: Atrox/codecov-action@v0.1.3 + uses: codecov/codecov-action@v4.4.1 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 63aa439a6f72ce73d2ca98f6a1caf44fca07c2f1 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:41:20 +0200 Subject: [PATCH 14/16] ci: try to update all dep actions Signed-off-by: euberdeveloper --- .github/workflows/build.yml | 6 +++--- .github/workflows/dree.yml | 4 ++-- .github/workflows/test.yml | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9178cff..1e95400 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,13 +12,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use pnpm ${{ matrix.pnpm-version }} - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: ${{ matrix.pnpm-version }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/dree.yml b/.github/workflows/dree.yml index 7568d03..55ce8b8 100644 --- a/.github/workflows/dree.yml +++ b/.github/workflows/dree.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main @@ -20,7 +20,7 @@ jobs: config: './docs/tree/dree.config.json' - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "docs: inject dree (automated commit)" branch: main diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a6af34..f180e41 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,13 +12,13 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use pnpm ${{ matrix.pnpm-version }} - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v4 with: version: ${{ matrix.pnpm-version }} - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -32,12 +32,12 @@ jobs: run: pnpm run test:cover - name: Send coverage report to Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Send coverage report to Codecov - uses: codecov/codecov-action@v4.4.1 + uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 73c98044504e03e00160548738381b5c240064a4 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:42:58 +0200 Subject: [PATCH 15/16] ci(test.yml): try to upgrade codeclimate action Signed-off-by: euberdeveloper --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f180e41..fc25e0b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,7 +42,7 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Send coverage report to Code Climate - uses: paambaati/codeclimate-action@v2.7.5 + uses: paambaati/codeclimate-action@v8 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} From 6cab9518c7f83b62a84e9f4aa7578485d59cb925 Mon Sep 17 00:00:00 2001 From: euberdeveloper Date: Wed, 12 Jun 2024 21:47:55 +0200 Subject: [PATCH 16/16] docs(typedoc): fix mjs instead of cjs Signed-off-by: euberdeveloper --- package.json | 2 +- typedoc.js => typedoc.cjs | 0 typedoc.dev.js => typedoc.dev.cjs | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename typedoc.js => typedoc.cjs (100%) rename typedoc.dev.js => typedoc.dev.cjs (100%) diff --git a/package.json b/package.json index 25f992c..6eda603 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "cover:codecov": "c8 report --reporter=text-lcov > coverage.lcov && codecov", "cover": "pnpm cover:coveralls && pnpm cover:codecov", "docs:html": "typedoc", - "docs:html-dev": "typedoc --options typedoc.dev.js", + "docs:html-dev": "typedoc --options typedoc.dev.cjs", "predocs": "shx rm -rf docs/documentation", "docs": "pnpm docs:html && pnpm docs:html-dev", "prepublishOnly": "pnpm bundle", diff --git a/typedoc.js b/typedoc.cjs similarity index 100% rename from typedoc.js rename to typedoc.cjs diff --git a/typedoc.dev.js b/typedoc.dev.cjs similarity index 100% rename from typedoc.dev.js rename to typedoc.dev.cjs