Skip to content

Commit

Permalink
Feat: Submit to API also current language and cookie expiration #CCM-41
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Nov 26, 2021
1 parent e389636 commit 4ead92b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"dependencies": {
"@lmc-eu/spirit-design-tokens": "^0.4.0",
"nanoid": "^3.1.30",
"vanilla-cookieconsent": "^2.7.0-rc1"
"vanilla-cookieconsent": "^2.7.0-rc3"
},
"devDependencies": {
"@babel/preset-env": "^7.16.0",
Expand Down
2 changes: 2 additions & 0 deletions src/consentCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const buildPayload = (cookieConsent, acceptedOnlyNecessary) => {
rejected_categories: rejectedCategories,
revision: cookieConsent.get('revision'),
source: cookieData.serviceName,
language: cookieConsent.getConfig('current_lang'),
days_of_acceptation: cookieConsent.getConfig('cookie_expiration'),
},
},
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5709,10 +5709,10 @@ validate-npm-package-license@^3.0.1:
spdx-correct "^3.0.0"
spdx-expression-parse "^3.0.0"

vanilla-cookieconsent@^2.7.0-rc1:
version "2.7.0-rc1"
resolved "https://registry.yarnpkg.com/vanilla-cookieconsent/-/vanilla-cookieconsent-2.7.0-rc1.tgz#e81c63a68c54d7ca02126eb4412b6f555aac53c4"
integrity sha512-wsiCNMqB1oqplOAKw8JhpWpC0vSfMW88WiieaDcq9dLykZ0lguW8nXt5MZsRNmFCDg0XQFGzaltiXPsZCGlGWg==
vanilla-cookieconsent@^2.7.0-rc3:
version "2.7.0-rc3"
resolved "https://registry.yarnpkg.com/vanilla-cookieconsent/-/vanilla-cookieconsent-2.7.0-rc3.tgz#7bf4170010e248cef0b3ba5219167ebd6eb63475"
integrity sha512-ZBZ2qO7DVdh7R3g3WUgKsvZEvYJWa339aTFAsOJmZBqBIsGwD2SL8C0DCkiE1suMA54twWbQAeVzJfiB0I8fKg==

vfile-message@^2.0.0:
version "2.0.4"
Expand Down

0 comments on commit 4ead92b

Please sign in to comment.