From 2b7d3ee748bd2f0079c5bad2e93aada968487f1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 07:15:08 +0000 Subject: [PATCH 1/2] build(deps-dev): bump @types/node from 22.15.30 to 24.0.3 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.15.30 to 24.0.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a3421d..1b6637f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.29.0", "@types/jest": "29.5.14", - "@types/node": "22.15.30", + "@types/node": "24.0.3", "@vercel/ncc": "0.38.3", "eslint": "9.29.0", "eslint-plugin-prettier": "5.5.0", @@ -1956,13 +1956,13 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.15.30", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.30.tgz", - "integrity": "sha512-6Q7lr06bEHdlfplU6YRbgG1SFBdlsfNC4/lX+SkhiTs0cpJkOElmWls8PxDFv4yY/xKb8Y6SO0OmSX4wgqTZbA==", + "version": "24.0.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.3.tgz", + "integrity": "sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~6.21.0" + "undici-types": "~7.8.0" } }, "node_modules/@types/stack-utils": { @@ -6453,9 +6453,9 @@ } }, "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", "dev": true, "license": "MIT" }, @@ -8186,12 +8186,12 @@ "dev": true }, "@types/node": { - "version": "22.15.30", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.30.tgz", - "integrity": "sha512-6Q7lr06bEHdlfplU6YRbgG1SFBdlsfNC4/lX+SkhiTs0cpJkOElmWls8PxDFv4yY/xKb8Y6SO0OmSX4wgqTZbA==", + "version": "24.0.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.3.tgz", + "integrity": "sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==", "dev": true, "requires": { - "undici-types": "~6.21.0" + "undici-types": "~7.8.0" } }, "@types/stack-utils": { @@ -11258,9 +11258,9 @@ } }, "undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", "dev": true }, "unicorn-magic": { diff --git a/package.json b/package.json index 9a53256..92fdb42 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.29.0", "@types/jest": "29.5.14", - "@types/node": "22.15.30", + "@types/node": "24.0.3", "@vercel/ncc": "0.38.3", "eslint": "9.29.0", "eslint-plugin-prettier": "5.5.0", From d0d71cfe4c969b479880ecaa539baea1ac2586e5 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 23 Jun 2025 20:59:56 -0400 Subject: [PATCH 2/2] test(utils): fix types --- src/utils.test.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/utils.test.ts b/src/utils.test.ts index 5cb3f3b..1e6cfce 100644 --- a/src/utils.test.ts +++ b/src/utils.test.ts @@ -5,15 +5,17 @@ import { getBinaryPath, getDownloadObject } from './utils'; jest.mock('os'); const mockedOs = jest.mocked(os); -const platforms = ['darwin', 'linux', 'win32'] as const; -const architectures = ['arm', 'x32', 'x64'] as const; +const platforms: NodeJS.Platform[] = ['darwin', 'linux', 'win32']; +const architectures = ['arm', 'x32', 'x64'] as NodeJS.Architecture[]; const table = platforms.reduce( (testSuites, os) => [ ...testSuites, - ...architectures.map((arch) => [os, arch] as [string, string]), + ...architectures.map( + (arch) => [os, arch] as [NodeJS.Platform, NodeJS.Architecture], + ), ], - [] as [string, string][], + [] as [NodeJS.Platform, NodeJS.Architecture][], ); describe('getDownloadObject', () => { @@ -22,7 +24,7 @@ describe('getDownloadObject', () => { beforeEach(() => { jest.resetAllMocks(); - mockedOs.platform.mockReturnValueOnce(os as NodeJS.Platform); + mockedOs.platform.mockReturnValueOnce(os); mockedOs.arch.mockReturnValueOnce(arch); });