diff --git a/package-lock.json b/package-lock.json index e193fca2f..580dc8200 100644 --- a/package-lock.json +++ b/package-lock.json @@ -89,7 +89,7 @@ "stylelint-prettier": "^3.0.0", "swc_mut_cjs_exports": "^0.99.0", "to-mock": "1.6.2", - "typescript": "^5.0.3", + "typescript": "5.1", "verdaccio": "^5.23.2", "webpack": "^5.74.0", "webpack-cli": "^5.0.1", @@ -30650,6 +30650,7 @@ "version": "5.1.6", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 0b7e16e7e..6e7065546 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,7 @@ "stylelint-prettier": "^3.0.0", "swc_mut_cjs_exports": "^0.99.0", "to-mock": "1.6.2", - "typescript": "^5.0.3", + "typescript": "5.1", "verdaccio": "^5.23.2", "webpack": "^5.74.0", "webpack-cli": "^5.0.1", diff --git a/packages/core/src/http/HttpAgentImpl.ts b/packages/core/src/http/HttpAgentImpl.ts index 5b6184207..03a3ec16a 100644 --- a/packages/core/src/http/HttpAgentImpl.ts +++ b/packages/core/src/http/HttpAgentImpl.ts @@ -500,6 +500,7 @@ export class HttpAgentImpl extends HttpAgent { */ _setCookiesFromResponse(agentResponse: HttpAgentResponse): void { if (agentResponse.headersRaw) { + // @ts-expect-error this type is not part of older typescript distributions (needs TS update) const receivedCookies = agentResponse.headersRaw.getSetCookie(); if (receivedCookies.length > 0) {