diff --git a/package.json b/package.json index 694eb6df8187c4..aa9c5608914ec8 100644 --- a/package.json +++ b/package.json @@ -278,7 +278,7 @@ "@types/marshal": "0.5.1", "@types/moo": "0.5.5", "@types/nock": "10.0.3", - "@types/node": "18.16.0", + "@types/node": "18.16.1", "@types/parse-link-header": "2.0.1", "@types/semver": "7.3.13", "@types/semver-stable": "3.0.0", diff --git a/test/util.ts b/test/util.ts index 1ebdc104c79f92..560c9b243117de 100644 --- a/test/util.ts +++ b/test/util.ts @@ -72,7 +72,7 @@ function getCallerFileName(): string | null { let currentFile: string | null = null; for (const frame of stack) { - const fileName = frame.getFileName(); + const fileName = frame.getFileName() ?? null; if (!currentFile) { currentFile = fileName; } else if (currentFile !== fileName) { diff --git a/yarn.lock b/yarn.lock index e8169969f6ba89..2dc989b3c447b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3061,10 +3061,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.3.tgz#6bda7819aae6ea0b386ebc5b24bdf602f1b42b01" integrity sha512-OPs5WnnT1xkCBiuQrZA4+YAV4HEJejmHneyraIaxsbev5yCEr6KMwINNFP9wQeFIw8FWcoTqF3vQsa5CDaI+8Q== -"@types/node@18.16.0": - version "18.16.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.0.tgz#4668bc392bb6938637b47e98b1f2ed5426f33316" - integrity sha512-BsAaKhB+7X+H4GnSjGhJG9Qi8Tw+inU9nJDwmD5CgOmBLEI6ArdhikpLX7DjbjDRDTbqZzU2LSQNZg8WGPiSZQ== +"@types/node@18.16.1": + version "18.16.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.1.tgz#5db121e9c5352925bb1f1b892c4ae620e3526799" + integrity sha512-DZxSZWXxFfOlx7k7Rv4LAyiMroaxa3Ly/7OOzZO8cBNho0YzAi4qlbrx8W27JGqG57IgR/6J7r+nOJWw6kcvZA== "@types/node@^13.7.0": version "13.13.52"