diff --git a/package.json b/package.json index ce803f58..2f9f76f3 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "@lmc-eu/spirit-design-tokens": "^1.1.3", "mergician": "^2.0.2", "nanoid": "^5.0.9", - "vanilla-cookieconsent": "3.0.1" + "vanilla-cookieconsent": "3.1.0" }, "devDependencies": { "@almacareer/stylelint-config": "9.0.1", diff --git a/src/__tests__/consentCollector.test.ts b/src/__tests__/consentCollector.test.ts index 8664be2d..95414198 100644 --- a/src/__tests__/consentCollector.test.ts +++ b/src/__tests__/consentCollector.test.ts @@ -26,6 +26,7 @@ describe('consentCollector', () => { consentId: 'f6152595-45a0-4371-aa68-2fe97137111a', services: {}, lastConsentTimestamp: '2024-12-12T12:12:12.333Z', + languageCode: 'en', expirationTime: Date.now() + 33 * 24 * 60 * 60 * 1000, // 33 days in the future }; diff --git a/src/__tests__/dataLayer.test.ts b/src/__tests__/dataLayer.test.ts index 7332cd2f..b08ca655 100644 --- a/src/__tests__/dataLayer.test.ts +++ b/src/__tests__/dataLayer.test.ts @@ -26,6 +26,7 @@ describe('dataLayer', () => { personalization: [], }, lastConsentTimestamp: '2024-12-12T12:12:12.333Z', + languageCode: 'en', expirationTime: 1764690333666, }; @@ -62,6 +63,7 @@ describe('dataLayer', () => { personalization: [], }, lastConsentTimestamp: '2024-12-12T12:12:12.333Z', + languageCode: 'en', expirationTime: 1764690333666, }; diff --git a/yarn.lock b/yarn.lock index 626b39b9..b5a2bea3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7796,10 +7796,10 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" -vanilla-cookieconsent@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/vanilla-cookieconsent/-/vanilla-cookieconsent-3.0.1.tgz#059d1b2c712476ae4172d4ec7fa9d553a16be12d" - integrity sha512-gqc4x7O9t1I4xWr7x6/jtQWPr4PZK26SmeA0iyTv1WyoECfAGnu5JEOExmMEP+5Fz66AT9OiCBO3GII4wDQHLw== +vanilla-cookieconsent@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/vanilla-cookieconsent/-/vanilla-cookieconsent-3.1.0.tgz#0f430f4788e9a09e22e795088889b0679a88a263" + integrity sha512-/McNRtm/3IXzb9dhqMIcbquoU45SzbN2VB+To4jxEPqMmp7uVniP6BhGLjU8MC7ZCDsNQVOp27fhQTM/ruIXAA== varint@^6.0.0: version "6.0.0"