Skip to content

Commit c1d4c61

Browse files
committed
chore: upgrade deps
1 parent 30a6635 commit c1d4c61

File tree

5 files changed

+39
-62
lines changed

5 files changed

+39
-62
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
"dependencies": {
99
"@ph.fritsche/cjstoesm": "^2.1.3-alpha.1",
1010
"@swc/core": "^1.3.100",
11-
"chokidar": "^3.5.3",
11+
"chokidar": "^4.0.3",
1212
"ink": "^5.1.0",
13+
"istanbul-lib-coverage": "^3.2.2",
1314
"puppeteer-core": "^21.5.1",
1415
"react": "^18.3.1",
1516
"source-map": "^0.7.4",
16-
"swc-plugin-coverage-instrument": "^0.0.20"
17+
"swc-plugin-coverage-instrument": "^0.0.20",
18+
"widest-line": "^5.0.0"
1719
},
1820
"devDependencies": {
1921
"@ph.fritsche/eslint-config": "^3.0.0-beta",
@@ -23,7 +25,7 @@
2325
"@types/istanbul-lib-report": "^3.0.0",
2426
"@types/istanbul-lib-source-maps": "^4.0.1",
2527
"@types/istanbul-reports": "^3.0.1",
26-
"@types/node": "^18",
28+
"@types/node": "^20",
2729
"@types/react": "^18.3.12",
2830
"@types/sinonjs__fake-timers": "^8.1.5",
2931
"eslint": "^8.39.0",
@@ -57,4 +59,4 @@
5759
"main": "./dist/index.js",
5860
"module": "./dist/index.js",
5961
"types": "./dist/index.d.ts"
60-
}
62+
}

src/files/FsWatcher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import chokidar from 'chokidar'
1+
import chokidar, { ChokidarOptions } from 'chokidar'
22

33
/**
44
* Wrapper around chokidar that maintains a list of existing files.
@@ -7,7 +7,7 @@ export class FsWatcher {
77
protected readonly fsWatcher
88
protected readonly _files = new Set<string>()
99
constructor(
10-
options?: chokidar.WatchOptions,
10+
options?: ChokidarOptions,
1111
) {
1212
this.fsWatcher = new chokidar.FSWatcher({
1313
...options,

src/loader/ImportResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export async function createNodeImportResolver(catchErrors = true): Promise<Impo
228228

229229
// Returns string since [email protected]
230230
// Support for second parameter still requires experimental flag
231-
if (await import.meta.resolve('./bar.js', 'http://example.org/foo.js') !== 'http://example.org/bar.js') {
231+
if (await (import.meta.resolve('./bar.js', 'http://example.org/foo.js') as string|Promise<string>) !== 'http://example.org/bar.js') {
232232
throw '`import.meta.resolve` does not support second parameter. Run with `--experimental-import-meta-resolve`.'
233233
}
234234

src/ui/Tester.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class Tester extends EventEmitter<TesterEventMap> {
151151
} else if (run.index.results.MIXED.size || run.index.results.fail.size || run.index.results.timeout.size) {
152152
process.exitCode = 3
153153
} else if (run.index.results.skipped.size) {
154-
process.exitCode = Math.max(process.exitCode ?? 0, 2)
154+
process.exitCode = Math.max(Number(process.exitCode ?? 0), 2)
155155
} else {
156156
process.exitCode = 0
157157
}

yarn.lock

Lines changed: 29 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,12 @@
505505
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
506506
integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
507507

508-
"@types/node@^18":
509-
version "18.18.7"
510-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.7.tgz#bb3a7068dc4ba421b6968f2a259298b3a4e129e8"
511-
integrity sha512-bw+lEsxis6eqJYW8Ql6+yTqkE6RuFtsQPSe5JxXbqYRFQEER5aJA9a5UH9igqDWm3X4iLHIKOHlnAXLM4mi7uQ==
508+
"@types/node@^20":
509+
version "20.17.10"
510+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.10.tgz#3f7166190aece19a0d1d364d75c8b0b5778c1e18"
511+
integrity sha512-/jrvh5h6NXhEauFFexRin69nA0uHJ5gwk4iDivp/DeoEua3uwCUto6PC86IpRITBOs4+6i2I56K5x5b6WYGXHA==
512512
dependencies:
513-
undici-types "~5.26.4"
513+
undici-types "~6.19.2"
514514

515515
"@types/prop-types@*":
516516
version "15.7.13"
@@ -731,14 +731,6 @@ ansi-styles@^6.0.0, ansi-styles@^6.2.1:
731731
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5"
732732
integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
733733

734-
anymatch@~3.1.2:
735-
version "3.1.3"
736-
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
737-
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
738-
dependencies:
739-
normalize-path "^3.0.0"
740-
picomatch "^2.0.4"
741-
742734
argparse@^2.0.1:
743735
version "2.0.1"
744736
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
@@ -887,11 +879,6 @@ basic-ftp@^5.0.2:
887879
resolved "https://registry.yarnpkg.com/basic-ftp/-/basic-ftp-5.0.3.tgz#b14c0fe8111ce001ec913686434fe0c2fb461228"
888880
integrity sha512-QHX8HLlncOLpy54mh+k/sWIFd0ThmRqwe9ZjELybGZK+tZ8rUb9VO0saKJUROTbE+KhzDUT7xziGpGrW8Kmd+g==
889881

890-
binary-extensions@^2.0.0:
891-
version "2.2.0"
892-
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
893-
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
894-
895882
brace-expansion@^1.1.7:
896883
version "1.1.11"
897884
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
@@ -907,7 +894,7 @@ brace-expansion@^2.0.1:
907894
dependencies:
908895
balanced-match "^1.0.0"
909896

910-
braces@^3.0.2, braces@~3.0.2:
897+
braces@^3.0.2:
911898
version "3.0.2"
912899
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
913900
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
@@ -963,20 +950,12 @@ chalk@^5.3.0:
963950
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
964951
integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==
965952

966-
chokidar@^3.5.3:
967-
version "3.5.3"
968-
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
969-
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
970-
dependencies:
971-
anymatch "~3.1.2"
972-
braces "~3.0.2"
973-
glob-parent "~5.1.2"
974-
is-binary-path "~2.1.0"
975-
is-glob "~4.0.1"
976-
normalize-path "~3.0.0"
977-
readdirp "~3.6.0"
978-
optionalDependencies:
979-
fsevents "~2.3.2"
953+
chokidar@^4.0.3:
954+
version "4.0.3"
955+
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.3.tgz#7be37a4c03c9aee1ecfe862a4a23b2c70c205d30"
956+
integrity sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==
957+
dependencies:
958+
readdirp "^4.0.1"
980959

981960
982961
version "0.4.33"
@@ -1778,7 +1757,7 @@ get-uri@^6.0.1:
17781757
debug "^4.3.4"
17791758
fs-extra "^8.1.0"
17801759

1781-
glob-parent@^5.1.2, glob-parent@~5.1.2:
1760+
glob-parent@^5.1.2:
17821761
version "5.1.2"
17831762
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
17841763
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -2063,13 +2042,6 @@ is-bigint@^1.0.1:
20632042
dependencies:
20642043
has-bigints "^1.0.1"
20652044

2066-
is-binary-path@~2.1.0:
2067-
version "2.1.0"
2068-
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
2069-
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
2070-
dependencies:
2071-
binary-extensions "^2.0.0"
2072-
20732045
is-boolean-object@^1.1.0:
20742046
version "1.1.2"
20752047
resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719"
@@ -2133,7 +2105,7 @@ is-generator-function@^1.0.10:
21332105
dependencies:
21342106
has-tostringtag "^1.0.0"
21352107

2136-
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
2108+
is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3:
21372109
version "4.0.3"
21382110
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
21392111
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
@@ -2248,6 +2220,11 @@ istanbul-lib-coverage@^3.0.0:
22482220
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3"
22492221
integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==
22502222

2223+
istanbul-lib-coverage@^3.2.2:
2224+
version "3.2.2"
2225+
resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756"
2226+
integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==
2227+
22512228
istanbul-lib-report@^3.0.0:
22522229
version "3.0.1"
22532230
resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d"
@@ -2557,11 +2534,6 @@ node-fetch@^2.6.12:
25572534
dependencies:
25582535
whatwg-url "^5.0.0"
25592536

2560-
normalize-path@^3.0.0, normalize-path@~3.0.0:
2561-
version "3.0.0"
2562-
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
2563-
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
2564-
25652537
object-assign@^4.1.1:
25662538
version "4.1.1"
25672539
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
@@ -2735,7 +2707,7 @@ pend@~1.2.0:
27352707
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
27362708
integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
27372709

2738-
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1:
2710+
picomatch@^2.2.2, picomatch@^2.2.3, picomatch@^2.3.1:
27392711
version "2.3.1"
27402712
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
27412713
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
@@ -2861,12 +2833,10 @@ react@^18.3.1:
28612833
dependencies:
28622834
loose-envify "^1.1.0"
28632835

2864-
readdirp@~3.6.0:
2865-
version "3.6.0"
2866-
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
2867-
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
2868-
dependencies:
2869-
picomatch "^2.2.1"
2836+
readdirp@^4.0.1:
2837+
version "4.0.2"
2838+
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.2.tgz#388fccb8b75665da3abffe2d8f8ed59fe74c230a"
2839+
integrity sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==
28702840

28712841
reflect.getprototypeof@^1.0.4:
28722842
version "1.0.4"
@@ -3442,6 +3412,11 @@ undici-types@~5.26.4:
34423412
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
34433413
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
34443414

3415+
undici-types@~6.19.2:
3416+
version "6.19.8"
3417+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02"
3418+
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==
3419+
34453420
universalify@^0.1.0:
34463421
version "0.1.2"
34473422
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66"

0 commit comments

Comments
 (0)