diff --git a/package-lock.json b/package-lock.json index 1a6695ce17d..1f7ac4c2ca1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "@sentry/opentelemetry": "^10.34.0", "@stripe/stripe-js": "^9.7.0", "@types/jsdom": "^28.0.3", - "@types/node": "^25.3.5", + "@types/node": "^26.4.1", "@types/react": "19.2.17", "@types/react-dom": "19.2.3", "canvas-confetti": "^1.9.4", @@ -13141,12 +13141,12 @@ } }, "node_modules/@types/node": { - "version": "25.3.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.3.5.tgz", - "integrity": "sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA==", + "version": "26.4.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.1.tgz", + "integrity": "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA==", "license": "MIT", "dependencies": { - "undici-types": "~7.18.0" + "undici-types": "~8.3.0" } }, "node_modules/@types/nodemailer": { @@ -28602,9 +28602,9 @@ } }, "node_modules/undici-types": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", - "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz", + "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==", "license": "MIT" }, "node_modules/unicode-canonical-property-names-ecmascript": { diff --git a/package.json b/package.json index 083f5fb2675..58c00291356 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "@sentry/opentelemetry": "^10.34.0", "@stripe/stripe-js": "^9.7.0", "@types/jsdom": "^28.0.3", - "@types/node": "^25.3.5", + "@types/node": "^26.4.1", "@types/react": "19.2.17", "@types/react-dom": "19.2.3", "canvas-confetti": "^1.9.4", diff --git a/src/app/api/utils/mockUtils.ts b/src/app/api/utils/mockUtils.ts index b8842633dfb..09429ece9f5 100644 --- a/src/app/api/utils/mockUtils.ts +++ b/src/app/api/utils/mockUtils.ts @@ -2,12 +2,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -import { BinaryLike } from "crypto"; import { getSha1 } from "../../../utils/fxa"; import { logger } from "../../functions/server/logging"; export function emailHashPrefix(email: string) { - return getSha1(email as BinaryLike) + return getSha1(email) .slice(0, 6) .toUpperCase(); } diff --git a/src/utils/fxa.ts b/src/utils/fxa.ts index e07a4a8d635..e3d6f60b525 100644 --- a/src/utils/fxa.ts +++ b/src/utils/fxa.ts @@ -226,7 +226,7 @@ async function getAttachedClients( // TODO: Add unit test when changing this code: /* c8 ignore next 3 */ -function getSha1(email: crypto.BinaryLike) { +function getSha1(email: string) { return crypto.createHash("sha1").update(email).digest("hex"); }