@redacto.io/consent-sdk-js 2.1.0-beta.0 → 2.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24230,7 +24230,9 @@ function ConsentManager(ctx, { variant } = {}) {
24230
24230
  productUuid,
24231
24231
  noticeUuid,
24232
24232
  dataElements,
24233
- language: currentLanguage().langParam
24233
+ // The language the visitor acted in, English included. Left out, the
24234
+ // server records the notice's default language instead.
24235
+ language: currentLanguage().currentLanguage
24234
24236
  });
24235
24237
  if (ctx.disposed) return;
24236
24238
  if (response) {
@@ -16496,7 +16496,9 @@ function ConsentManager(ctx, { variant } = {}) {
16496
16496
  productUuid,
16497
16497
  noticeUuid,
16498
16498
  dataElements,
16499
- language: currentLanguage().langParam
16499
+ // The language the visitor acted in, English included. Left out, the
16500
+ // server records the notice's default language instead.
16501
+ language: currentLanguage().currentLanguage
16500
16502
  });
16501
16503
  if (ctx.disposed) return;
16502
16504
  if (response) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redacto.io/consent-sdk-js",
3
- "version": "2.1.0-beta.0",
3
+ "version": "2.1.0-beta.1",
4
4
  "main": "dist/redacto.js",
5
5
  "module": "dist/redacto.mjs",
6
6
  "types": "dist/redacto.d.ts",